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
0e58bfb9
Commit
0e58bfb9
authored
Dec 01, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待经办列表为传入状态加更改按钮跳转到sptrou交易
parent
306f1e82
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
183 additions
and
90 deletions
+183
-90
Default.js
src/model/Sptsel/Default.js
+39
-68
Event.js
src/model/Sptsel/Event.js
+25
-0
Prtcfg.vue
src/views/Business/Sptrou/Prtcfg.vue
+39
-2
Sptnegp.vue
src/views/Business/Sptrou/Sptnegp.vue
+18
-4
index.vue
src/views/Business/Sptrou/index.vue
+59
-15
Menu.vue
src/views/Business/Sptsel/Menu.vue
+3
-1
No files found.
src/model/Sptsel/Default.js
View file @
0e58bfb9
...
...
@@ -6,74 +6,45 @@ import Api from "~/service/Api";
import
Utils
from
"~/utils/index"
export
default
{
"sptstm"
:
defaultSptstm
,
"dlaxq"
:
defaultDlaxq
,
"usfmod.labtxt"
:
defaultUsfmodLabtxt
,
"usfmod.flt"
:
defaultUsfmodFlt
,
"usfmod.shwflt"
:
defaultUsfmodShwflt
,
"dlmft"
:
defaultDlmft
,
"butimg"
:
defaultButimg
,
"dflg"
:
defaultDflg
,
"yptinf"
:
defaultYptinf
,
"usfmod.usr.extkey"
:
defaultUsfmodUsrExtkey
,
"chkinc"
:
defaultCheckbox
,
"chkdzt"
:
defaultCheckbox
,
"chkpen"
:
defaultCheckbox
,
"chkcor"
:
defaultCheckbox
,
"chkaut"
:
defaultCheckbox
,
"chkdel"
:
defaultCheckbox
,
"chktco"
:
updateTable
,
"sptstm"
:
Utils
.
defaultFunction
,
"dlaxq"
:
Utils
.
defaultFunction
,
"usfmod.labtxt"
:
Utils
.
defaultFunction
,
"usfmod.flt"
:
Utils
.
defaultFunction
,
"usfmod.shwflt"
:
Utils
.
defaultFunction
,
"dlmft"
:
Utils
.
defaultFunction
,
"butimg"
:
Utils
.
defaultFunction
,
"dflg"
:
Utils
.
defaultFunction
,
"yptinf"
:
Utils
.
defaultFunction
,
"usfmod.usr.extkey"
:
Utils
.
defaultFunction
,
"chkinc"
:
Utils
.
defaultFunction
,
"chkdzt"
:
Utils
.
defaultFunction
,
"chkpen"
:
Utils
.
defaultFunction
,
"chkcor"
:
Utils
.
defaultFunction
,
"chkaut"
:
Utils
.
defaultFunction
,
"chkdel"
:
Utils
.
defaultFunction
,
"chktco"
:
Utils
.
defaultFunction
,
// "chkcan": updateTable,
}
function
defaultSptstm
()
{
}
function
defaultDlaxq
()
{
}
function
defaultUsfmodLabtxt
()
{
}
function
defaultUsfmodFlt
()
{
}
function
defaultUsfmodShwflt
()
{
}
function
defaultDlmft
()
{
}
function
defaultButimg
()
{
}
async
function
defaultDflg
()
{
const
that
=
this
;
that
.
executeDefault
(
"dflg"
).
then
(
res
=>
{
that
.
model
.
dflg
=
res
.
data
.
dflg
;
})
}
async
function
defaultYptinf
()
{
const
that
=
this
;
that
.
executeDefault
(
"yptinf"
).
then
(
res
=>
{
//TODO 处理数据逻辑
})
}
function
defaultUsfmodUsrExtkey
()
{
}
function
defaultCheckbox
(
rule
,
value
,
callback
)
{
const
that
=
this
;
if
(
that
.
model
[
rule
.
field
]
===
""
)
{
return
}
if
(
that
.
model
[
rule
.
field
]
===
false
){
that
.
model
[
rule
.
field
]
=
""
;
}
that
.
executeDefault
(
"sptstm"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
Menu
.
stmData
.
data
=
res
.
data
.
sptstm
.
rows
;
})
// function defaultCheckbox(rule, value, callback) {
// const that = this;
// if (that.model[rule.field] === "") {
// return
// }
// if(that.model[rule.field] === false){
// that.model[rule.field] = "";
// }
// that.executeDefault("sptstm").then(res => {
// //TODO 处理数据逻辑
// that.$refs.Menu.stmData.data = res.data.sptstm.rows;
// })
}
function
updateTable
(
rule
,
value
,
callback
){
const
that
=
this
;
if
(
that
.
model
[
rule
.
field
]
===
true
&&
that
.
$refs
.
Menu
.
stmData
.
columns
[
3
]
===
"7 6
\"
Creation
\"
101 20 DateTime 1"
)
{
that
.
$refs
.
Menu
.
stmData
.
columns
.
splice
(
3
,
0
,
"18 5
\"
MT
\"
100"
);
}
if
(
that
.
model
[
rule
.
field
]
===
false
&&
that
.
$refs
.
Menu
.
stmData
.
columns
[
3
]
===
"18 5
\"
MT
\"
100"
)
{
that
.
$refs
.
Menu
.
stmData
.
columns
.
splice
(
3
,
1
);
}
}
//
}
//
function updateTable(rule, value, callback){
//
const that = this;
//
if (that.model[rule.field] === true && that.$refs.Menu.stmData.columns[3] === "7 6 \"Creation\" 101 20 DateTime 1") {
//
that.$refs.Menu.stmData.columns.splice(3, 0, "18 5 \"MT\" 100");
//
}
//
if (that.model[rule.field] === false && that.$refs.Menu.stmData.columns[3] === "18 5 \"MT\" 100") {
//
that.$refs.Menu.stmData.columns.splice(3, 1);
//
}
//
}
src/model/Sptsel/Event.js
View file @
0e58bfb9
...
...
@@ -99,6 +99,31 @@ export default {
//}
},
async
onChange
(
row
,
scope
)
{
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == SUCCESS) {
//var cacheFileName = rtnmsg.data.cacheFileName;
// showGridPromptDialog('rou')
this
.
model
.
selsptinr
=
row
[
'INR'
];
const
selIds
=
[];
selIds
.
push
(
row
[
'IDX'
]);
let
params
=
{
selDst
:
"sptstm"
,
selIds
:
selIds
};
let
rtnmsg
=
await
this
.
executeRule
(
"rou"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
// let trnName = row.交易代码.toLowerCase();
let
trnName
=
"sptrou"
;
// let viewurl = "/business/ditopn?selsptinr=" + row[0];
//let viewurl = "/business/"+trnName+"?selsptinr=" + row['INR'];
this
.
$router
.
push
({
name
:
trnName
.
charAt
(
0
).
toUpperCase
()
+
trnName
.
substring
(
1
),
params
:
{
prePageId
:
this
.
model
.
pageId
}
});
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
//}
},
async
handleReset
()
{
this
.
model
.
chkinc
=
""
;
this
.
model
.
chkdzt
=
""
;
...
...
src/views/Business/Sptrou/Prtcfg.vue
View file @
0e58bfb9
...
...
@@ -2,7 +2,7 @@
<div
class=
"eibs-tab"
>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"
srvprtm.prtmod.cltprtflg
"
>
<el-form-item
label=
""
prop=
"
chgetyprt
"
>
<c-checkbox
v-model=
"model.chgetyprt"
>
实体更改时打印消息
</c-checkbox
>
...
...
@@ -15,6 +15,7 @@
v-model=
"model.srvprtm.prtmod.cltprtflg"
style=
"width: 100%"
placeholder=
"请选择客户端打印"
:code=
"codes.cltprtflg"
>
</c-select>
</el-form-item>
...
...
@@ -37,6 +38,7 @@
v-model=
"model.srvprtm.prt.tef"
style=
"width: 100%"
placeholder=
"请选择技术表格"
:code=
"codes.tef"
>
</c-select>
</el-form-item>
...
...
@@ -48,6 +50,7 @@
v-model=
"model.srvprtm.prt.getprt"
style=
"width: 100%"
placeholder=
"请选择默认打印机来自"
:code=
"codes.getprt"
>
</c-select>
</el-form-item>
...
...
@@ -60,6 +63,13 @@
style=
"width: 100%"
placeholder=
"请选择打印机"
>
<el-option
v-for=
"item in prt"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -71,6 +81,13 @@
style=
"width: 100%"
placeholder=
"请选择Paperbin"
>
<el-option
v-for=
"item in bin"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -82,6 +99,13 @@
style=
"width: 100%"
placeholder=
"请选择Bin for 2nd Page"
>
<el-option
v-for=
"item in bin"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -108,7 +132,20 @@ export default {
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{};
return
{
bin
:
[
{
label
:
"Bin"
,
value
:
"Bin"
},
],
prt
:
[
{
label
:
"导出为WPS PDF"
,
value
:
"导出为WPS PDF"
},
{
label
:
"OneNote (Desktop)"
,
value
:
"OneNote (Desktop)"
},
{
label
:
"Microsoft XPS Document Writer"
,
value
:
"Microsoft XPS Document Writer"
},
{
label
:
"Microsoft Print to PDF"
,
value
:
"Microsoft Print to PDF"
},
{
label
:
"Fax"
,
value
:
"Fax"
},
{
label
:
"Adobe PDF"
,
value
:
"Adobe PDF"
},
{
label
:
""
,
value
:
""
},
],
};
},
methods
:
{
...
Event
},
created
:
function
()
{},
...
...
src/views/Business/Sptrou/Sptnegp.vue
View file @
0e58bfb9
...
...
@@ -33,6 +33,7 @@
v-model=
"model.spt.sta"
style=
"width: 100%"
placeholder=
"请选择类型"
:code=
"codes.sptrelstatus"
disabled
>
</c-select>
...
...
@@ -113,15 +114,17 @@
v-model=
"model.spt.usr"
maxlength=
"8"
placeholder=
"请输入经办柜员"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"创建时间"
prop=
"spt.dattim"
label-width=
"
6
0px"
>
<el-form-item
label=
"创建时间"
prop=
"spt.dattim"
label-width=
"
8
0px"
>
<c-input
v-model=
"model.spt.dattim"
placeholder=
"请输入创建时间"
disabled
></c-input>
</el-form-item>
</c-col>
...
...
@@ -169,7 +172,7 @@
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<
!--
<
c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"recpan.atpget.sdamod.seainf"
label-width=
"10px"
>
<c-input
v-model=
"model.recpan.atpget.sdamod.seainf"
...
...
@@ -177,6 +180,15 @@
disabled
></c-input>
</el-form-item>
</c-col>
-->
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"recpan.atptxt"
label-width=
"10px"
>
<c-input
v-model=
"model.recpan.atptxt"
placeholder=
"请输入"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
...
...
@@ -187,7 +199,7 @@
v-model=
"model.spt.wrkgrp"
style=
"width: 100%"
placeholder=
"请选择虚拟机构"
:code=
"
sptWrkgrp
"
:code=
"
getValues('spt.wrkgrp')
"
>
</c-select>
</el-form-item>
...
...
@@ -212,6 +224,7 @@
v-model=
"model.spt.infdsp"
style=
"width: 100%"
placeholder=
"请选择消息文本"
:code=
"codes.infdsp"
>
</c-select>
</el-form-item>
...
...
@@ -223,6 +236,7 @@
v-model=
"model.spt.cretrn"
maxlength=
"6"
placeholder=
"请输入创建交易id"
disabled
></c-input>
</el-form-item>
</c-col>
...
...
@@ -246,7 +260,7 @@ export default {
mixins
:
[
commonProcess
],
data
()
{
return
{
sptWrkgrp
:
[]
//
sptWrkgrp: []
};
},
methods
:
{
...
Event
,
...
...
src/views/Business/Sptrou/index.vue
View file @
0e58bfb9
...
...
@@ -4,29 +4,28 @@
type=
"primary"
@
click=
"handleSave"
>
save
</el-button>
-->
<!--
<el-button
size=
"small"
@
click=
"handletak"
>
tak
</el-button>
-->
<div
class=
"m-Btn-eContainer"
>
<div
class=
"m-funcBtn-eContainer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSave"
>
{{
$t
(
'buttons.submit'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"handleCancel"
>
{{
$t
(
'buttons.quit'
)
}}
</el-button>
</div>
</div>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"120px"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
>
<!--PD000052 -->
<el-tab-pane
label=
"项目概述"
name=
"sptroup"
v-if=
"false"
>
<m-sptroup
:model=
"model"
:codes=
"codes"
/>
<c-content>
<m-sptroup
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
<!--PD000035 -->
<el-tab-pane
label=
"待定项目"
name=
"sptnegp"
>
<m-sptnegp
ref=
"sptnegp"
:model=
"model"
:codes=
"codes"
/>
<c-content>
<m-sptnegp
ref=
"sptnegp"
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
<!--PD000090 -->
<el-tab-pane
label=
"配置打印以重新路由"
name=
"prtcfg"
>
<m-prtcfg
:model=
"model"
:codes=
"codes"
/>
<c-content>
<m-prtcfg
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
</c-tabs>
...
...
@@ -38,6 +37,18 @@
>
</c-grid-ety-prompt-dialog>
</el-form>
<div
class=
"m-Btn-eContainer"
>
<div
class=
"m-funcBtn-eContainer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSave"
>
{{
$t
(
'buttons.submit'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"handleStash"
>
{{
$t
(
'buttons.stash'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"handleCancel"
>
{{
$t
(
'buttons.quit'
)
}}
</el-button>
</div>
</div>
<!--
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleStash=
"handleStash"
>
</c-function-btn>
-->
</div>
</
template
>
<
script
>
...
...
@@ -45,6 +56,7 @@ import Api from "~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Sptrou
from
"~/model/Sptrou"
import
commonProcess
from
"~/mixin/commonProcess"
import
commonFuncs
from
"~/mixin/commonFuncs"
;
import
Check
from
"~/model/Sptrou/Check"
import
Default
from
"~/model/Sptrou/Default"
import
Pattern
from
"~/model/Sptrou/Pattern"
...
...
@@ -65,7 +77,7 @@ export default {
root
:
this
}
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
,
commonFuncs
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
"sptnegp"
,
...
...
@@ -85,7 +97,7 @@ export default {
},
async
handleSave
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sav"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
if
(
rtnmsg
.
respCode
==
SUCCESS
&&
Object
.
keys
(
rtnmsg
.
fieldErrors
).
length
==
0
)
{
this
.
$notify
({
title
:
"成功"
,
...
...
@@ -98,14 +110,46 @@ export default {
//修改待复核界面刷新状态为需要刷新
this
.
$store
.
commit
(
"setLoadingFreshSptsel"
,
true
)
});
}
else
}
else
if
(
rtnmsg
.
fieldErrors
&&
Object
.
keys
(
rtnmsg
.
fieldErrors
).
length
>
0
)
{
const
tab
=
this
.
showBackendErrors
(
rtnmsg
.
fieldErrors
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
this
.
tabClick
(
tab
);
}
this
.
$notify
({
title
:
"错误"
,
message
:
"检核失败!"
,
type
:
"error"
,
});
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
handleCancel
:
function
()
{
this
.
$confirm
(
"确认退出?"
,
""
,
{
confirmButtonText
:
"确认"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(
res
=>
{
// this.$router.back();
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
handleExit
&&
this
.
handleExit
()
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
routeParams
)
{
setTimeout
(()
=>
{
this
.
$router
.
back
()
},
500
)
}
else
{
setTimeout
(()
=>
{
this
.
$router
.
push
(
'/home'
)
},
500
)
}
})
.
catch
(()
=>
{});
},
handletak
(){
},
...
...
src/views/Business/Sptsel/Menu.vue
View file @
0e58bfb9
...
...
@@ -99,7 +99,7 @@
</c-col>
<c-col
:span=
"24"
>
<c-istream-table
:list=
"stmData.data"
:columns=
"stmData.columns"
:showButtonFlg=
"true"
>
<el-table-column
fixed=
"right"
prop=
"op"
label=
"操作"
width=
"
165
px"
>
<el-table-column
fixed=
"right"
prop=
"op"
label=
"操作"
width=
"
250
px"
>
<template
slot=
"header"
>
<c-col
:span=
"11"
style=
"text-align:center"
><span>
操作
</span></c-col>
</
template
>
...
...
@@ -108,6 +108,8 @@
</c-button>
<c-button
style=
"margin-left: 5px"
size=
"small"
type=
"primary"
@
click=
"continueEdit(scope.row)"
>
处理
</c-button>
<c-button
style=
"margin-left: 5px"
size=
"small"
@
click=
"onChange(scope.row)"
:disabled=
"scope.row.状态!='INC'"
>
更改
</c-button>
<el-popover
placement=
"top-start"
width=
"50"
trigger=
"click"
>
<ul
class=
"table-button-item-list"
>
...
...
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