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
feda776f
Commit
feda776f
authored
Oct 27, 2021
by
mabaofu
Browse files
Options
Browse Files
Download
Plain Diff
更新前段
parents
582b42c8
df6ee642
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
1249 additions
and
1946 deletions
+1249
-1946
commonApi.js
src/mixin/commonApi.js
+8
-7
commonProcess.js
src/mixin/commonProcess.js
+38
-17
Event.js
src/model/Cptadv/Event.js
+181
-288
Event.js
src/model/Cptopn/Event.js
+194
-307
Event.js
src/model/Ditame/Event.js
+351
-560
Check.js
src/model/Ditopn/Check.js
+1
-1
Event.js
src/model/Ditopn/Event.js
+193
-287
Event.js
src/model/Infpta/Event.js
+64
-105
Event.js
src/model/Sptsel/Event.js
+46
-66
Event.js
src/model/Trnrel/Event.js
+91
-197
index.js
src/utils/index.js
+0
-16
Setpan.vue
src/views/Business/Cptopn/Setpan.vue
+25
-28
index.vue
src/views/Business/Cptopn/index.vue
+3
-3
Detp.vue
src/views/Business/Ditame/Detp.vue
+4
-6
Docpan.vue
src/views/Business/Ditame/Docpan.vue
+8
-10
Ovwp.vue
src/views/Business/Ditame/Ovwp.vue
+2
-3
Setpan.vue
src/views/Business/Ditame/Setpan.vue
+10
-10
index.vue
src/views/Business/Ditame/index.vue
+1
-1
Detp.vue
src/views/Business/Ditopn/Detp.vue
+4
-6
Docpan.vue
src/views/Business/Ditopn/Docpan.vue
+7
-9
Ovwp.vue
src/views/Business/Ditopn/Ovwp.vue
+2
-3
Setpan.vue
src/views/Business/Ditopn/Setpan.vue
+10
-10
index.vue
src/views/Business/Ditopn/index.vue
+3
-3
index.vue
src/views/Business/Ditsel/index.vue
+1
-1
index.vue
src/views/Business/Office/index.vue
+1
-1
Show.vue
src/views/Docpan/Show.vue
+1
-1
No files found.
src/mixin/commonApi.js
View file @
feda776f
...
...
@@ -13,25 +13,25 @@ export default {
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/init"
,{
params
})
},
save
(
params
){
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/saveData"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/saveData"
,
this
.
wrapper
(
params
))
},
exeuteCheck
(
rulePath
,
params
){
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeCheck/"
+
rulePath
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeCheck/"
+
rulePath
,
this
.
wrapper
(
params
))
},
executeDefault
(
rulePath
,
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeDefault/"
+
rulePath
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeDefault/"
+
rulePath
,
this
.
wrapper
(
params
))
},
executeRule
(
rulePath
,
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeRule/"
+
rulePath
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeRule/"
+
rulePath
,
this
.
wrapper
(
params
))
},
async
checkAll
(
params
){
const
res
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/checkAll"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
const
res
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/checkAll"
,
this
.
wrapper
(
params
))
return
res
},
pedding
(
params
){
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/pending"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/pending"
,
this
.
wrapper
(
params
))
},
async
restoreDisplay
()
{
...
...
@@ -43,7 +43,7 @@ export default {
},
executeNotify
(
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeNotify"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeNotify"
,
this
.
wrapper
(
params
))
},
}
}
\ No newline at end of file
src/mixin/commonProcess.js
View file @
feda776f
...
...
@@ -45,7 +45,8 @@ export default {
ruleCheck
()
{
if
(
!
this
.
pattern
)
return
const
keySet
=
new
Set
(
Object
.
keys
(
this
.
pattern
).
concat
(
Object
.
keys
(
this
.
checkRules
).
concat
(
Object
.
keys
(
this
.
defaultRules
))))
// const keySet = new Set(Object.keys(this.pattern).concat(Object.keys(this.checkRules).concat(Object.keys(this.defaultRules))))
const
keySet
=
new
Set
(
Object
.
keys
(
this
.
pattern
).
concat
(
Object
.
keys
(
this
.
defaultRules
)))
const
res
=
{};
const
that
=
this
;
for
(
let
key
of
keySet
.
keys
())
{
...
...
@@ -54,22 +55,22 @@ export default {
rule
.
push
(...
that
.
pattern
[
key
])
}
const
triggerType
=
that
.
getTriggerType
(
key
)
if
(
that
.
checkRules
[
key
]){
if
(
Array
.
isArray
(
that
.
checkRules
[
key
]))
{
for
(
let
j
=
0
;
j
<
that
.
checkRules
[
key
].
length
;
j
++
)
{
const
check
=
that
.
checkRules
[
key
][
j
];
rule
.
push
({
validator
:
check
.
bind
(
that
),
trigger
:
triggerType
})
}
}
else
{
rule
.
push
({
validator
:
that
.
checkRules
[
key
].
bind
(
that
),
trigger
:
triggerType
})
}
}
//
if(that.checkRules[key]){
//
if (Array.isArray(that.checkRules[key])) {
//
for (let j = 0; j < that.checkRules[key].length; j++) {
//
const check = that.checkRules[key][j];
//
rule.push({
//
validator: check.bind(that),
//
trigger: triggerType
//
})
//
}
//
} else {
//
rule.push({
//
validator: that.checkRules[key].bind(that),
//
trigger: triggerType
//
})
//
}
//
}
if
(
that
.
defaultRules
[
key
])
{
rule
.
push
({
validator
:
that
.
defaultRules
[
key
].
bind
(
that
),
...
...
@@ -97,6 +98,26 @@ export default {
return
"blur"
;
},
/**
* 以函数形式获取model(请求参数),保证取到的是最新赋值的
* @param {any} params 参数
* @returns
*/
wrapper
(
params
)
{
params
=
params
||
{}
const
fn
=
async
()
=>
{
const
that
=
this
;
const
data
=
await
new
Promise
(
resolve
=>
{
// 保证前一次请求结果赋值VO完成
setTimeout
(()
=>
{
const
d
=
Utils
.
flatObject
(
that
.
model
)
resolve
(
d
)
},
0
)
})
return
{...
data
,
params
}
}
return
fn
;
},
/**
* 更新Model
* @param {any} data model数据
*/
...
...
src/model/Cptadv/Event.js
View file @
feda776f
import
Api
from
"~/service/Api"
export
default
{
onCptpGetref
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getref"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetinf
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getinf"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetuetr
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getuetr"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_selbut"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut1
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_selbut1"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSndpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/sndp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOripDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/orip_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetmod
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getmod"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOrcpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/orcp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPyepDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/pyep_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSerpty
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_serpty"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/setmod_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButadd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butadd"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButnew
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butnew"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButattto
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butattto"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButdel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butdel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButatt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butatt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
onCptpGetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getref"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetinf
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getinf"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetuetr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getuetr"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSelbut
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSelbut1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut1"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSndpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"sndp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOripDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orip_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetmod
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getmod"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOrcpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orcp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPyepDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"pyep_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSerpty
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_serpty"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButadd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butadd"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButnew
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butnew"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButattto
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butattto"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButdel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butdel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButatt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butatt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Cptopn/Event.js
View file @
feda776f
import
Api
from
"~/service/Api"
export
default
{
onCptpGetref
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getref"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetinf
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getinf"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetuetr
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getuetr"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_selbut"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut1
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_selbut1"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSndpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/sndp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOripDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/orip_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetmod
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getmod"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOrcpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/orcp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPyepDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/pyep_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSerpty
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_serpty"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/setmod_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButadd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butadd"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButnew
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butnew"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButattto
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butattto"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButdel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butdel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButatt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butatt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeainf
()
{
},
onFippDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/fipp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
onCptpGetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getref"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetinf
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getinf"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetuetr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getuetr"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSelbut
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSelbut1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut1"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSndpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"sndp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOripDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orip_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetmod
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getmod"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOrcpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orcp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPyepDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"pyep_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSerpty
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_serpty"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButadd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butadd"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButnew
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butnew"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButattto
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butattto"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButdel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butdel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButatt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butatt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSeainf
()
{
},
async
onFippDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"fipp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Ditame/Event.js
View file @
feda776f
import
Api
from
"~/service/Api"
export
default
{
onDitpButgetref
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/ditp_butgetref"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAplpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/aplp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onBenpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/benp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDefdetButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/defdet_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPreperButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/preper_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrgodButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrgod_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrdocButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrdoc_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAdlcndButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/adlcnd_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInsbnkButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/insbnk_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSav
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/sav"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onUsrcon
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/usrcon"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onChk
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/chk"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onUsrchk
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/usrchk"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSyswrnButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/syswrn_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPen
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/pen"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCan
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/can"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrgodameButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrgodame_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrdocameButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrdocame_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAdlcndameButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/adlcndame_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaallButmisamt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaall_butmisamt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaallButmissig
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaall_butmissig"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaccvAdd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaccv_add"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaccvDel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaccv_del"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/setmod_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButadd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butadd"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButnew
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butnew"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButattto
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butattto"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButdel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butdel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButatt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butatt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onWrkpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/wrkp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOthpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/othp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimptsGet1
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/limpts_get1"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimptsGet2
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/limpts_get2"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimmodTrycal
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/limmod_trycal"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
onDitpButgetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"ditp_butgetref"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAplpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"aplp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onBenpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"benp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onDefdetButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"defdet_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPreperButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"preper_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrgodButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrgod_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrdocButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrdoc_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAdlcndButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"adlcnd_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInsbnkButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"insbnk_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSav
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"sav"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onUsrcon
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"usrcon"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onChk
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"chk"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onUsrchk
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"usrchk"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSyswrnButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"syswrn_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPen
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"pen"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCan
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"can"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrgodameButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrgodame_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrdocameButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrdocame_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAdlcndameButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"adlcndame_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaallButmisamt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmisamt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaallButmissig
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmissig"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvAdd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaccv_add"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvDel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaccv_del"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButadd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butadd"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButnew
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butnew"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButattto
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butattto"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButdel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butdel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButatt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butatt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onWrkpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"wrkp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOthpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"othp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLimptsGet1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get1"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLimptsGet2
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get2"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLimmodTrycal
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limmod_trycal"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Ditopn/Check.js
View file @
feda776f
...
...
@@ -771,7 +771,7 @@ function checkDidgrpRecAvbbyN100(rule, value, callback) {
const
that
=
this
;
that
.
exeuteCheck
(
"didgrp.rec.avbby"
).
then
(
res
=>
{
//TODO
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
);
}
})
...
...
src/model/Ditopn/Event.js
View file @
feda776f
...
...
@@ -2,10 +2,10 @@ import Api from "~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
async
onDitpButgetref
()
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/ditp.butgetref"
,
Utils
.
getRequestDataFn
.
call
(
this
)
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"ditp.butgetref"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
model
.
didgrp
.
rec
.
ownref
=
rtnmsg
.
data
.
didgrp_rec_ownref
this
.
model
.
didgrp
.
rec
.
ownref
=
rtnmsg
.
data
.
didgrp_rec_ownref
this
.
$message
({
type
:
'success'
,
message
:
'获取成功!'
...
...
@@ -16,8 +16,8 @@ export default {
}
},
async
onAplpDet
()
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/ditp.aplp.det"
,
Utils
.
getRequestDataFn
.
call
(
this
)
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"ditp.aplp.det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
// console.log(rtnmsg.data);
}
...
...
@@ -25,287 +25,193 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onBenpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/benp_det"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onBenpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"benp_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onRevclauseButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/revclause_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onRevclauseButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"revclause_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLcrgodButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrgod_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLcrgodButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrgod_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLcrdocButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrdoc_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLcrdocButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrdoc_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onAdlcndButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/adlcnd_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onAdlcndButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"adlcnd_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onInsbnkButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/insbnk_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onInsbnkButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"insbnk_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onRmbpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/rmbp_det"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onRmbpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"rmbp_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onDefdetButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/defdet_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDefdetButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"defdet_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onPreperButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/preper_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onPreperButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"preper_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onSetmodDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/setmod_det"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLiaallButmisamt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmisamt"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLiaallButmisamt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmisamt"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLiaallButmissig
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmissig"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLiaallButmissig
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmissig"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onWrkpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/wrkp_det"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onWrkpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"wrkp_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onOthpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/othp_det"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onOthpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"othp_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLimptsGet1
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get1"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLimptsGet1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get1"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLimptsGet2
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get2"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLimptsGet2
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get2"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLimmodTrycal
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limmod_trycal"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLimmodTrycal
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limmod_trycal"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvAdd
()
{
// this.root.$refs.modelForm.validate(async valid => {
// if (!valid)
// return;
// let rtnmsg = await Api.post("ditopn/liaccv_add", Utils.getRequestDataFn.call(this))
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/liaall.liaccv.add"
,
Utils
.
getRequestDataFn
.
call
(
this
))
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.add"
)
//const that = this.root;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
debugger
;
this
.
stmData
.
data
=
rtnmsg
.
data
.
liaall_liaccv_stgstm
.
rows
;
this
.
dialogTableVisible
=
true
;
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvDel
()
{
// this.root.$refs.modelForm.validate(async valid => {
// if (!valid)
// return;
// let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", Utils.getRequestDataFn.call(this))
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/liaall.liaccv.del"
,
Utils
.
getRequestDataFn
.
call
(
this
))
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.del"
)
//const that = this.root;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
debugger
;
this
.
$message
({
...
...
@@ -313,7 +219,7 @@ export default {
message
:
'删除成功!'
});
//this.model.liaall.liaccv.liaccvg = [];
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
else
{
...
...
@@ -344,53 +250,53 @@ export default {
async
handleDisplay
(
index
,
row
){
let
cortyp
=
row
.
cortyp
let
rtnmsg
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
this
.
model
.
setmod
.
msgmod
.
doccod
=
row
.
id
rtnmsg
=
await
Api
.
post
(
'cptopn/msgmod_butshw'
,
{
data
:
Utils
.
getRequestDataFn
.
call
(
this
)
}
)
rtnmsg
=
await
Api
.
post
(
'cptopn/msgmod_butshw'
,
this
.
wrapper
()
)
}
else
{
this
.
model
.
trnmod
.
trndoc
.
doccod
=
row
.
id
this
.
model
.
trnmod
.
trndoc
.
cortyp
=
cortyp
const
params
=
{
index
:
index
}
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpan"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpan"
,
this
.
wrapper
(
params
))
}
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
let
viewurl
=
rtnmsg
.
data
.
setmod_msgmod_docpth
;
let
viewurl
=
rtnmsg
.
data
.
setmod_msgmod_docpth
;
this
.
viewurl
=
viewurl
this
.
title
=
"报文"
this
.
title
=
"报文"
//window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
else
if
(
cortyp
==
'ELC'
)
{
Modal
.
info
({
title
:
'电证报文'
,
content
:
<
div
style
=
{{
height
:
400
,
overflow
:
'auto'
}}
><
ELCMessage
mty
=
{
row
.
id
}
message
=
{
rtnmsg
.
data
[
"
\\
trnmod
\\
trndoc
\\
docinf"
]}
/></
div
>
,
width
:
1000
,
})
}
else
if
(
cortyp
==
'ELC'
)
{
Modal
.
info
(
{
title
:
'电证报文'
,
content
:
<
div
style
=
{{
height
:
400
,
overflow
:
'auto'
}}
><
ELCMessage
mty
=
{
row
.
id
}
message
=
{
rtnmsg
.
data
[
"
\\
trnmod
\\
trndoc
\\
docinf"
]}
/></
div
>
,
width
:
1000
,
})
}
else
{
// let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
this
.
title
=
"面函"
let
viewurl
=
"/#/docpan/show"
;
let
XMLdata
;
if
(
row
.
pandsc
==
"国内信用证"
)
{
if
(
row
.
pandsc
==
"国内信用证"
)
{
window
.
sessionStorage
.
docTXT
=
''
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litbenl1blk
;
}
else
if
(
row
.
pandsc
==
"开立国内信用证备查表"
)
{
else
if
(
row
.
pandsc
==
"开立国内信用证备查表"
)
{
window
.
sessionStorage
.
docTXT
=
''
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litapll1blk
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litapll1blk
}
else
if
(
row
.
pandsc
==
"elcs.101.001.01"
)
{
else
if
(
row
.
pandsc
==
"elcs.101.001.01"
)
{
window
.
sessionStorage
.
docXML
=
''
window
.
sessionStorage
.
docTXT
=
''
rtnmsg
.
data
.
trnmod_trndoc_doceot
[
index
].
doctxt
.
rows
.
forEach
(
element
=>
{
window
.
sessionStorage
.
docTXT
+=
element
+
"
\
r
\
n"
window
.
sessionStorage
.
docTXT
+=
element
+
"
\
r
\
n"
});
}
else
if
(
row
.
pandsc
==
"MT799"
)
{
}
else
if
(
row
.
pandsc
==
"MT799"
)
{
window
.
sessionStorage
.
docTXT
=
''
XMLdata
=
rtnmsg
.
data
.
litbenl1blk
}
...
...
@@ -398,18 +304,18 @@ export default {
// console.log( window.sessionStorage.docXML);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
this
.
dialogOpen
=
true
this
.
dialogOpen
=
true
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
})
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
})
}
},
async
handleDetail
(
index
,
row
){
async
handleDetail
(
index
,
row
)
{
const
params
=
{
index
:
index
}
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpanDetail"
,
{
...
Utils
.
getRequestDataFn
.
call
(
this
),
params
}
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpanDetail"
,
this
.
wrapper
(
params
)
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
title
=
row
.
pandsc
this
.
centerDialogVisible
=
true
,
...
...
@@ -417,47 +323,46 @@ export default {
this
.
index
=
index
}
},
async
BlurBennam
(
e
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDefault/ditp.remark"
,
Utils
.
getRequestDataFn
.
call
(
this
)
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
BlurBennam
(
e
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
"ditp.remark"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
model
.
ditp
.
remark
=
rtnmsg
.
data
.
ditp_remark
}
},
async
BlurAplname
(
e
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDefault/ditp.remark"
,
Utils
.
getRequestDataFn
.
call
(
this
)
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
BlurAplname
(
e
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
"ditp.remark"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
model
.
ditp
.
remark
=
rtnmsg
.
data
.
ditp_remark
}
},
async
BlurSignam
(
e
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDefault/ditp.remark"
,
Utils
.
getRequestDataFn
.
call
(
this
)
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
BlurSignam
(
e
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
"ditp.remark"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
model
.
ditp
.
remark
=
rtnmsg
.
data
.
ditp_remark
}
},
async
onExtkey
(
e
){
async
onExtkey
(
e
)
{
},
async
pickDepItem
(
row
){
async
pickDepItem
(
row
)
{
debugger
;
var
params
=
{
'selsptinr'
:
row
[
0
]
};
var
params
=
{
'selsptinr'
:
row
[
0
]
};
//{params:{'selsptinr':row[0]}}
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/liaall.liaccv.add"
,{...
Utils
.
flatObject
(
this
.
model
),
params
})
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.add"
,
{
params
})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
dialogTableVisible
=
false
;
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
},
// didgrp.iss.pts.extkey
async
changeExtkey
(
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/didgrp.iss.pts.extkey"
,{...
Utils
.
getRequestDataFn
.
call
(
this
)})
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
async
changeExtkey
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"didgrp.iss.pts.extkey"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
}
}
\ No newline at end of file
src/model/Infpta/Event.js
View file @
feda776f
import
Api
from
"~/service/Api"
export
default
{
onInfbutSearow
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_searow"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
async
onInfbutSearow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_searow"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutDsp
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_dsp"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutDsp
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_dsp"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutUserow
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_userow"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutUserow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_userow"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutClr
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_clr"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutClr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_clr"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutButprt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_butprt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutButprt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_butprt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutExi
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_exi"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutExi
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_exi"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanLnkinfptm
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/recpan_lnkinfptm"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanLnkinfptm
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_lnkinfptm"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Sptsel/Event.js
View file @
feda776f
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onUsfmodShwflt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onUsfmodShwflt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"usfmod_shwflt"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onButypt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onButypt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"butypt"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onDlmft
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDlmft
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dlmft"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onDlaxq
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDlaxq
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dlaxq"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onButimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onButimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"butimg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
tabClick
()
{
},
async
continueEdit
(
row
){
//let rtnmsg = await Api.post("
sptsel/
getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode ==
"AAAAAA"
) {
//var cacheFileName = rtnmsg.data.cacheFileName;
let
viewurl
=
"/business/ditopn?selsptinr="
+
row
[
0
];
this
.
$router
.
push
(
viewurl
);
async
continueEdit
(
row
)
{
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode ==
SUCCESS
) {
//var cacheFileName = rtnmsg.data.cacheFileName;
let
viewurl
=
"/business/ditopn?selsptinr="
+
row
[
0
];
this
.
$router
.
push
(
viewurl
);
//}
}
...
...
src/model/Trnrel/Event.js
View file @
feda776f
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onSeaown
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
const
that
=
this
.
root
;
async
onSeaown
()
{
const
that
=
this
.
root
;
that
.
executeRule
(
"searow"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
this
.
model
.
trncorco
.
trnstm
=
res
.
data
.
trncorco_trnstm
;
})
// let rtnmsg = await Api.post("trnrel/executeRule/searow", Utils.getRequestDataFn.call(this))
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
})
},
onSeajbh
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
const
that
=
this
.
root
;
async
onSeajbh
()
{
const
that
=
this
.
root
;
that
.
executeRule
(
"seajbh"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
})
})
},
onSeactr
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seactr"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onSeactr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"seactr"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSearow
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/searow"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onSearow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"searow"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDsp
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/dsp"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onDsp
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dsp"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodNewimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newimg"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onImgmodNewimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_newimg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onImgmodNewhisimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newhisimg"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onImgmodNewhisimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_newhisimg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDiaconButdia
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/diacon_butdia"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onDiaconButdia
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"diacon_butdia"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodHisimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_hisimg"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onImgmodHisimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_hisimg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRelrow
()
{
async
onRelrow
()
{
const
that
=
this
that
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
that
.
model
.
trncorco
.
selinr
=
{
"rows"
:
that
.
multipleSelection
.
map
(
idx
=>
that
.
model
.
trncorco
.
trnstm
.
rows
[
idx
])
}
const
data
=
Utils
.
getRequestDataFn
.
call
(
this
)
let
rtnmsg
=
await
Api
.
post
(
"/trnrel/executeRule/relrow"
,
data
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
that
.
model
.
trncorco
.
selinr
=
{
"rows"
:
that
.
multipleSelection
.
map
(
idx
=>
that
.
model
.
trncorco
.
trnstm
.
rows
[
idx
])
}
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
$message
({
type
:
'success'
,
message
:
'Release成功!'
});
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
this
.
$message
({
type
:
'success'
,
message
:
'Release成功!'
});
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
}
else
{
that
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
)
}
else
{
that
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
sleep
(
ms
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -165,47 +115,36 @@ export default {
},
ms
)
})
},
onPrinte
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/printe"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onPrinte
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"printe"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onReprow
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/reprow"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onReprow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"reprow"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRejrow
()
{
async
onRejrow
()
{
console
.
log
(
this
.
getSelectedData
())
this
.
model
.
trncorco
.
selinr
[
'rows'
]
=
this
.
getSelectedData
();
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
// if (!valid)
// return;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
// var cacheFileName = rtnmsg.data.cacheFileName;
// let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
// if(rejrowRtnmsg.respCode ==
"AAAAAA"
){
// if(rejrowRtnmsg.respCode ==
SUCCESS
){
// this.$message({
// type: 'success',
// message: 'Reject成功!'
...
...
@@ -225,162 +164,117 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRelcor
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/relcor"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRelcor
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"relcor"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onExi
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/exi"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onExi
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"exi"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_det"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRecpanDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSyswrnButshw
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/syswrn_butshw"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onSyswrnButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"syswrn_butshw"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanNotmap
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_notmap"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRecpanNotmap
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_notmap"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanButspt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butspt"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRecpanButspt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_butspt"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanInc
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_inc"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRecpanInc
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_inc"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanButord
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butord"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRecpanButord
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_butord"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodImage
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_image"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onImgmodImage
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_image"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanIncben
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_incben"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onRecpanIncben
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_incben"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInftxtButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/inftxt_buttxmsel"
,
Utils
.
getRequestDataFn
.
call
(
this
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
async
onInftxtButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"inftxt_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeainf
()
{
...
...
src/utils/index.js
View file @
feda776f
...
...
@@ -142,22 +142,6 @@ export default class Utils {
return
output
.
join
(
''
);
}
static
getRequestDataFn
(
params
)
{
params
=
params
||
{}
const
fn
=
async
()
=>
{
const
that
=
this
;
const
data
=
await
new
Promise
(
resolve
=>
{
// 保证前一次请求结果赋值VO完成
setTimeout
(()
=>
{
const
d
=
Utils
.
flatObject
(
that
.
model
)
resolve
(
d
)
},
0
)
})
return
{...
data
,
params
}
}
return
fn
;
}
static
positioningErrorMsg
(
fieldErrors
,
formFields
)
{
let
firstErrorItem
=
null
for
(
let
i
=
0
;
i
<
formFields
.
length
;
i
++
)
{
...
...
src/views/Business/Cptopn/Setpan.vue
View file @
feda776f
...
...
@@ -360,39 +360,36 @@ import Utils from "~/utils/index"
export
default
{
inject
:
[
'root'
],
props
:
[
"model"
,
"codes"
],
components
:
{
SetpanDialog
},
data
()
{
return
{
dialogVisible2
:
false
,
dialog2
:
{
feetxtinf
:
""
,
feetxt
:
""
,
},
index
:
0
,
data
:[]
};
},
methods
:
{
...
Event
,
dispDefault
(){
Api
.
post
(
"cptopn/executeDefault/mac"
,
Utils
.
getRequestDataFn
.
call
(
this
)).
then
(
res
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
props
:
[
"model"
,
"codes"
],
components
:
{
SetpanDialog
},
data
()
{
return
{
dialogVisible2
:
false
,
dialog2
:
{
feetxtinf
:
""
,
feetxt
:
""
,
},
index
:
0
,
data
:[]
};
},
methods
:
{
...
Event
,
dispDefault
(){
this
.
executeDefault
(
"mac"
).
then
(
res
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
})
},
detail2
(
index
,
row
)
{
Api
.
post
(
"cptopn/executeRule/det"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
this
.
dialogVisible2
=
true
;
this
.
index
=
index
;
this
.
dialog2
=
row
})
this
.
executeRule
(
"det"
).
then
(
res
=>
{
this
.
dialogVisible2
=
true
;
this
.
index
=
index
;
this
.
dialog2
=
row
})
},
},
created
:
function
()
{},
},
created
:
function
()
{},
};
</
script
>
<
style
>
...
...
src/views/Business/Cptopn/index.vue
View file @
feda776f
...
...
@@ -135,7 +135,7 @@ export default {
if
(
label
===
"Settlement"
)
{
this
.
executeRule
(
"setmod.setpan"
).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
const
data
=
res
.
data
;
Utils
.
copyValueFromVO
(
this
.
model
,
data
)
}
...
...
@@ -149,7 +149,7 @@ export default {
}
if
(
label
===
"Messages"
)
{
this
.
executeRule
(
"trnmod.trndoc.docpan"
).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
const
data
=
res
.
data
;
Utils
.
copyValueFromVO
(
this
.
model
,
data
)
var
stm
=
[];
...
...
@@ -165,7 +165,7 @@ export default {
}
if
(
label
===
"Attachments"
)
{
this
.
executeRule
(
"trnmod.trndoc.doctre"
).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
const
data
=
res
.
data
;
Utils
.
copyValueFromVO
(
this
.
model
,
data
)
}
...
...
src/views/Business/Ditame/Detp.vue
View file @
feda776f
...
...
@@ -147,20 +147,18 @@ export default {
this
.
model
.
didgrp
.
rec
.
tenmaxday
=
0
;
this
.
model
.
didgrp
.
blk
.
defdet
=
""
;
}
const
arg
=
Utils
.
getRequestDataFn
.
call
(
this
);
Api
.
post
(
"ditopn/executeCheck/didgrp.rec.avbby"
,
arg
).
then
(
this
.
executeCheck
(
"didgrp.rec.avbby"
).
then
(
(
res
)
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
}
);
},
recTenmaxdayEvent
(){
const
arg
=
Utils
.
getRequestDataFn
.
call
(
this
);
Api
.
post
(
"ditopn/executeDefault/didgrp.rec.tenmaxday"
,
arg
).
then
(
this
.
executeDefault
(
"didgrp.rec.tenmaxday"
).
then
(
(
res
)
=>
{
if
(
res
.
respCode
=
"AAAAAA"
){
if
(
res
.
respCode
=
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
}
...
...
src/views/Business/Ditame/Docpan.vue
View file @
feda776f
...
...
@@ -528,16 +528,14 @@ export default {
this
.
centerDialogVisible
=
false
;
console
.
log
(
this
.
model
);
this
.
model
.
trnmod
.
trndoc
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
let
res
=
Api
.
post
(
"ditopn/executeRule/trnmod.trndoc.doccur.butaddok"
,
Utils
.
getRequestDataFn
.
call
(
this
)
);
if
(
res
.
data
.
respCode
==
"AAAAAA"
){
//TODO
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
this
.
executeRule
(
"trnmod.trndoc.doccur.butaddok"
).
then
(
res
=>
{
if
(
res
.
data
.
respCode
==
SUCCESS
){
//TODO
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
},
created
:
function
()
{},
...
...
src/views/Business/Ditame/Ovwp.vue
View file @
feda776f
...
...
@@ -734,10 +734,9 @@ export default {
}
},
nom1CurEvent
(){
const
data
=
Utils
.
flatObject
(
this
.
model
);
Api
.
post
(
"ditopn/executeDefault/didgrp.cbs.nom1.cur"
,
Utils
.
getRequestDataFn
.
call
(
this
)).
then
(
this
.
executeDefault
(
"didgrp.cbs.nom1.cur"
).
then
(
(
res
)
=>
{
if
(
res
.
respCode
=
"AAAAAA"
){
if
(
res
.
respCode
=
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
}
...
...
src/views/Business/Ditame/Setpan.vue
View file @
feda776f
...
...
@@ -433,26 +433,26 @@ export default {
},
// 第二个表格
detail1
(
index
,
row
)
{
Api
.
post
(
"ditopn/executeDefault/det"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
this
.
executeDefault
(
"det"
).
then
(
res
=>
{
this
.
dialogVisible
=
true
;
this
.
dialog
=
row
;
this
.
index
=
index
;
this
.
dialog
=
row
;
this
.
index
=
index
;
})
},
dispDefault
(){
Api
.
post
(
"ditopn/executeDefault/mac"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
this
.
executeDefault
(
"mac"
).
then
(
res
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
})
},
// 第三个表格
detail2
(
index
,
row
)
{
Api
.
post
(
"ditopn/executeRule/det"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
this
.
dialogVisible2
=
true
;
this
.
index
=
index
;
this
.
dialog2
=
row
})
this
.
executeRule
(
"det"
).
then
(
res
=>
{
this
.
dialogVisible2
=
true
;
this
.
index
=
index
;
this
.
dialog2
=
row
})
},
},
created
:
function
()
{},
...
...
src/views/Business/Ditame/index.vue
View file @
feda776f
...
...
@@ -2012,7 +2012,7 @@ export default {
created
:
async
function
()
{
console
.
log
(
"进入ditame交易"
);
let
rtnmsg
=
await
Api
.
post
(
"ditame/init"
,
{
params
:
{}
});
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
else
{
...
...
src/views/Business/Ditopn/Detp.vue
View file @
feda776f
...
...
@@ -147,20 +147,18 @@ export default {
this
.
model
.
didgrp
.
rec
.
tenmaxday
=
0
;
this
.
model
.
didgrp
.
blk
.
defdet
=
""
;
}
const
arg
=
Utils
.
getRequestDataFn
.
call
(
this
);
Api
.
post
(
"ditopn/executeCheck/didgrp.rec.avbby"
,
arg
).
then
(
this
.
executeCheck
(
"didgrp.rec.avbby"
).
then
(
(
res
)
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
}
);
},
recTenmaxdayEvent
(){
const
arg
=
Utils
.
getRequestDataFn
.
call
(
this
);
Api
.
post
(
"ditopn/executeDefault/didgrp.rec.tenmaxday"
,
arg
).
then
(
this
.
executeDefault
(
"didgrp.rec.tenmaxday"
).
then
(
(
res
)
=>
{
if
(
res
.
respCode
=
"AAAAAA"
){
if
(
res
.
respCode
=
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
}
...
...
src/views/Business/Ditopn/Docpan.vue
View file @
feda776f
...
...
@@ -528,16 +528,14 @@ export default {
this
.
centerDialogVisible
=
false
;
console
.
log
(
this
.
model
);
this
.
model
.
trnmod
.
trndoc
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
let
res
=
Api
.
post
(
"ditopn/executeRule/trnmod.trndoc.doccur.butaddok"
,
Utils
.
getRequestDataFn
.
call
(
this
)
);
if
(
res
.
data
.
respCode
==
"AAAAAA"
){
//TODO
this
.
executeRule
(
"trnmod.trndoc.doccur.butaddok"
).
then
(
res
=>
{
if
(
res
.
data
.
respCode
==
SUCCESS
){
//TODO
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
},
created
:
function
()
{},
...
...
src/views/Business/Ditopn/Ovwp.vue
View file @
feda776f
...
...
@@ -713,10 +713,9 @@ export default {
}
},
nom1CurEvent
(){
const
data
=
Utils
.
flatObject
(
this
.
model
);
Api
.
post
(
"ditopn/executeDefault/didgrp.cbs.nom1.cur"
,
Utils
.
getRequestDataFn
.
call
(
this
)).
then
(
this
.
executeDefault
(
"didgrp.cbs.nom1.cur"
).
then
(
(
res
)
=>
{
if
(
res
.
respCode
=
"AAAAAA"
){
if
(
res
.
respCode
=
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
}
...
...
src/views/Business/Ditopn/Setpan.vue
View file @
feda776f
...
...
@@ -432,26 +432,26 @@ export default {
},
// 第二个表格
detail1
(
index
,
row
)
{
Api
.
post
(
"ditopn/executeDefault/det"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
this
.
executeDefault
(
"det"
).
then
(
res
=>
{
this
.
dialogVisible
=
true
;
this
.
dialog
=
row
;
this
.
index
=
index
;
this
.
dialog
=
row
;
this
.
index
=
index
;
})
},
dispDefault
(){
Api
.
post
(
"ditopn/executeDefault/mac"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
this
.
executeDefault
(
"mac"
).
then
(
res
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
})
},
// 第三个表格
detail2
(
index
,
row
)
{
Api
.
post
(
"ditopn/executeRule/det"
,
Utils
.
getRequestDataFn
.
call
(
this
)
).
then
(
res
=>
{
this
.
dialogVisible2
=
true
;
this
.
index
=
index
;
this
.
dialog2
=
row
})
this
.
executeRule
(
"det"
).
then
(
res
=>
{
this
.
dialogVisible2
=
true
;
this
.
index
=
index
;
this
.
dialog2
=
row
})
},
},
created
:
function
()
{},
...
...
src/views/Business/Ditopn/index.vue
View file @
feda776f
...
...
@@ -190,7 +190,7 @@ export default {
}
if
(
name
===
"setpan"
)
{
this
.
executeRule
(
"setmod.setpan"
).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
const
data
=
res
.
data
;
Utils
.
copyValueFromVO
(
this
.
model
,
data
)
}
...
...
@@ -198,7 +198,7 @@ export default {
}
if
(
name
===
"docpan"
)
{
this
.
executeRule
(
"trnmod.trndoc.docpan"
).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
const
data
=
res
.
data
;
Utils
.
copyValueFromVO
(
this
.
model
,
data
)
var
stm
=
[];
...
...
@@ -214,7 +214,7 @@ export default {
}
if
(
name
===
"limitbody"
)
{
this
.
executeRule
(
"liaall.limmod.limitbody"
).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
){
if
(
res
.
respCode
==
SUCCESS
){
const
data
=
res
.
data
;
Utils
.
copyValueFromVO
(
this
.
model
,
data
)
}
...
...
src/views/Business/Ditsel/index.vue
View file @
feda776f
...
...
@@ -541,7 +541,7 @@ export default {
created
:
async
function
()
{
console
.
log
(
"进入ditsel交易"
);
let
rtnmsg
=
await
Api
.
post
(
"ditsel/init"
,
{
params
:
{}
});
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
)
}
else
{
...
...
src/views/Business/Office/index.vue
View file @
feda776f
...
...
@@ -194,7 +194,7 @@ export default {
console
.
log
(
"进入office交易"
);
if
(
1
)
return
let
rtnmsg
=
await
Api
.
post
(
"office/init"
,
Utils
.
getRequestDataFn
.
call
(
this
,
{})
)
let
rtnmsg
=
await
this
.
init
(
)
console
.
log
(
rtnmsg
)
if
(
rtnmsg
.
code
==
SUCCESS
)
{
...
...
src/views/Docpan/Show.vue
View file @
feda776f
...
...
@@ -48,7 +48,7 @@ export default {
});
if
(
this
.
model
.
docXML
!=
""
)
Api
.
post
(
"pdf"
,
{
xml
:
this
.
model
.
docXML
}).
then
((
res
)
=>
{
if
(
res
.
respCode
==
"AAAAAA"
)
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
pdf
+=
res
.
data
;
}
});
...
...
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