Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
f79c99d1
Commit
f79c99d1
authored
Sep 22, 2022
by
taojinrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cptbat交易
parent
3bfab765
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
165 additions
and
100 deletions
+165
-100
Event.js
src/model/Cptbat/Event.js
+21
-0
Dbb.vue
src/views/Business/Cptati/Dbb.vue
+1
-1
Dbe.vue
src/views/Business/Cptati/Dbe.vue
+1
-1
index.vue
src/views/Business/Cptato/index.vue
+1
-0
Fpanel.vue
src/views/Business/Cptbat/Fpanel.vue
+141
-98
No files found.
src/model/Cptbat/Event.js
View file @
f79c99d1
...
...
@@ -15,6 +15,8 @@ export default {
}
},
async
onUpload
(){
let
rtnmsg1
=
await
this
.
executeRule
(
"init"
)
let
rtnmsg
=
await
this
.
executeRule
(
"upload"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
...
...
@@ -62,5 +64,23 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
row
(
row
,
column
,
event
){
console
.
log
(
12121
)
this
.
flag
=
false
// this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row);
let
rtnmsg
=
await
this
.
executeRule
(
"filstm"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
model
.
filpth
=
rtnmsg
.
data
.
filpth
this
.
model
.
newnam
=
rtnmsg
.
data
.
newnam
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/views/Business/Cptati/Dbb.vue
View file @
f79c99d1
...
...
@@ -177,7 +177,7 @@ export default {
},
methods
:{...
Event
},
created
:
function
(){
this
.
executeRule
(
"bopmod.db
b
p.basp"
).
then
((
res
)
=>
{
this
.
executeRule
(
"bopmod.db
a
p.basp"
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
copyValueFromVO
(
res
.
data
);
}
...
...
src/views/Business/Cptati/Dbe.vue
View file @
f79c99d1
...
...
@@ -663,7 +663,7 @@ export default {
},
methods
:{...
Event
},
created
:
function
(){
this
.
executeRule
(
"bopmod.db
e
p.basp"
).
then
((
res
)
=>
{
this
.
executeRule
(
"bopmod.db
d
p.basp"
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
copyValueFromVO
(
res
.
data
);
}
...
...
src/views/Business/Cptato/index.vue
View file @
f79c99d1
...
...
@@ -144,6 +144,7 @@ export default {
/**
* do it yourself
**/
}
},
created
:
async
function
()
{
...
...
src/views/Business/Cptbat/Fpanel.vue
View file @
f79c99d1
<
template
>
<div
class=
"eibs-tab"
>
<c-
col
:span=
"9"
>
<c-istream-table
:list=
"stmData.data
"
:columns=
"stmData.columns
"
>
</c-istream-table>
</c-col>
<c-col
:span=
"9"
>
<c-
istream-table
:list=
"model.filstm.rows||[]"
:columns=
"stmData.columns
"
:showButtonFlg=
"true
"
@
chooseRowEvent=
"row"
>
</c-istream-table>
</c-col>
<c-col
:span=
"9"
:offset=
"1"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"操作选择"
prop=
"opetye"
>
<c-select
v-model=
"model.opetye"
style=
"width: 100%"
>
<el-option
v-for=
"item in opetye"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"本地文件路径"
prop=
"flpth"
>
<c-input
v-model=
"model.flpth"
style=
"width:100%"
placeholder=
"请输入本地文件路径"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"上传文件名"
prop=
"newnam"
>
<c-input
v-model=
"model.newnam"
style=
"width:100%"
:disabled=
"model.opetye !== '1'"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<span>
注意:上传文件若包含表头系统将无法解析
</span>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"删除首行上传"
>
<c-checkbox
v-model=
"model.flg"
:disabled=
"model.opetye !== '1'"
></c-checkbox>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"解析文件名"
prop=
"opefil"
>
<c-input
v-model=
"model.opefil"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"9"
:offset=
"1"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"操作选择"
prop=
"opetye"
>
<c-select
v-model=
"model.opetye"
style=
"width: 100%"
>
<el-option
v-for=
"item in opetye"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"本地文件路径"
prop=
"filpth"
>
<c-input
v-model=
"model.filpth"
style=
"width: 100%"
placeholder=
"请输入本地文件路径"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"上传文件名"
prop=
"newnam"
>
<c-input
v-model=
"model.newnam"
style=
"width: 100%"
:disabled=
"model.opetye !== '1'"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<span
>
注意:上传文件若包含表头系统将无法解析
</span
>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"删除首行上传"
>
<c-checkbox
v-model=
"model.flg"
:disabled=
"model.opetye !== '1'"
></c-checkbox>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"解析文件名"
prop=
"opefil"
>
<c-input
v-model=
"model.opefil"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"4"
:offset=
"1"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
disabled
>
文件预览
</c-button>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"model.newnam === ''"
>
文件上传
</c-button>
</c-col>
<c-col><br/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
disabled
>
文件解析
</c-button>
</c-col
>
<c-col><br/>
</c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
disabled
>
文件删除
</c-button
>
</c-col
>
<c-col
:span=
"4"
:offset=
"1"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"flag"
@
click=
"onOpnfil"
>
文件预览
</c-button>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"model.newnam === ''"
@
click=
"onUpload"
>
文件上传
</c-button
>
</c-col>
<c-col><br
/></c-col
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"flag"
@
click=
"onReadfil"
>
文件解析
</c-button
>
</c-col>
<!--
<c-col
:span=
"12"
>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"flag"
@
click=
"onDel"
>
文件删除
</c-button>
</c-col>
</c-col>
<!--
<c-col
:span=
"24"
>
<el-upload
action=
"http://127.0.0.1:8010/gjjs/business/infcpd/executeRule/upload"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:before-remove=
"beforeRemove"
multiple
:limit=
"3"
:on-exceed=
"handleExceed"
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
</el-upload>
</c-col>
-->
<!--
<c-col
:span=
"24"
>
<div
style=
""
>
<input
type=
"file"
name=
"file"
id=
"getAttchmentFile"
><button
@
click=
"onUpload"
>
上传
</button>
</div>
</c-col>
-->
<!--
<c-col
:span=
"12"
>
<c-form-item
label=
""
prop=
"filstm"
>
<c-input
v-model=
"model.filstm"
:placeholder=
"$t('other.please_enter')+''"
></c-input>
</c-form-item>
...
...
@@ -143,43 +185,44 @@
</div>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
import
Event
from
"~/model/Cptbat/Event"
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Cptbat/Event"
;
export
default
{
inject
:
[
'root'
],
props
:[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
(){
return
{
opetye
:[
{
label
:
"文件上传"
,
value
:
"1"
},
{
label
:
"文件解析"
,
value
:
"2"
},
{
label
:
"已解析文件"
,
value
:
"3"
},
],
stmData
:
{
columns
:
[
'0 1 "批量文件列表" 500'
// '0 1 "业务编号" 110',
// '1 2 "币种" 110',
// '2 3 "金额" 120 2 8:1 2 5',
// '3 4 "收款人名称" 250',
// '4 5 "付款人名称" 250',
// '5 6 "业务发生日期" 150 20 30 1',
// { index: 6, position: 7, width: 100, pattern: "code", label: "复核状态" ,"code":"relsta"},
],
data
:
[],
},
}
},
methods
:{...
Event
},
created
:
function
(){
}
}
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{
flag
:
true
,
opetye
:
[
{
label
:
"文件上传"
,
value
:
"1"
},
{
label
:
"文件解析"
,
value
:
"2"
},
{
label
:
"已解析文件"
,
value
:
"3"
},
],
stmData
:
{
columns
:
[
'0 1 "批量文件列表" 500'
,
],
data
:
[],
},
};
},
methods
:
{
...
Event
,
// rowClick(row, column, event) {
// console.log(789)
// this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row);
// this.executerule("")
// },
},
created
:
function
()
{},
};
</
script
>
<
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment