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
fukai
vue-gjjs
Commits
f3de2cda
Commit
f3de2cda
authored
Apr 03, 2023
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端暂存代码
parent
096a98e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
129 additions
and
131 deletions
+129
-131
index.js
src/business/gitopn/event/index.js
+129
-131
No files found.
src/business/gitopn/event/index.js
View file @
f3de2cda
...
@@ -6,7 +6,6 @@ import glentry from '~/components/business/glentry/event'
...
@@ -6,7 +6,6 @@ import glentry from '~/components/business/glentry/event'
import
engp
from
'~/components/business/engp/event'
import
engp
from
'~/components/business/engp/event'
import
docpan
from
'~/components/business/docpan/event'
import
docpan
from
'~/components/business/docpan/event'
import
ccvpan
from
'~/components/business/ccvpan/event'
import
ccvpan
from
'~/components/business/ccvpan/event'
import
Api
from
"~/service/Api"
import
GitopnRequest
from
"../model/GitopnRequest"
import
GitopnRequest
from
"../model/GitopnRequest"
export
default
{
export
default
{
...
@@ -169,143 +168,142 @@ export default {
...
@@ -169,143 +168,142 @@ export default {
// 支出目的修改--联动保函开立类型
// 支出目的修改--联动保函开立类型
handleChangePurpos
()
{
handleChangePurpos
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
methods
:
{
},
//组GitopnRequest
//组GitopnRequest
buildGitopnRequest
()
{
buildGitopnRequest
()
{
let
gitopnRequest
=
new
GitopnRequest
().
data
;
let
gitopnRequest
=
new
GitopnRequest
().
data
;
gitopnRequest
.
transName
=
"GITOPN"
;
gitopnRequest
.
transName
=
"GITOPN"
;
gitopnRequest
.
userId
=
window
.
sessionStorage
.
userId
||
'ZL'
;
gitopnRequest
.
userId
=
window
.
sessionStorage
.
userId
||
'ZL'
;
gitopnRequest
.
liaccvg
=
this
.
model
.
liaccv
.
liaccvg
;
gitopnRequest
.
liaccvg
=
this
.
model
.
liaccv
.
liaccvg
;
gitopnRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
gitopnRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
gitopnRequest
.
setfog
=
this
.
model
.
setmod
.
setfog
;
gitopnRequest
.
setfog
=
this
.
model
.
setmod
.
setfog
;
gitopnRequest
.
setfeg
=
this
.
model
.
setmod
.
setfeg
;
gitopnRequest
.
setfeg
=
this
.
model
.
setmod
.
setfeg
;
gitopnRequest
.
setglg
=
this
.
model
.
setmod
.
setglg
;
gitopnRequest
.
setglg
=
this
.
model
.
setmod
.
setglg
;
gitopnRequest
.
doceot
=
this
.
model
.
docpan
.
doceot
;
gitopnRequest
.
doceot
=
this
.
model
.
docpan
.
doceot
;
gitopnRequest
.
gidgrp
=
this
.
model
.
gidgrp
;
gitopnRequest
.
gidgrp
=
this
.
model
.
gidgrp
;
gitopnRequest
.
gitp
=
this
.
model
.
gitp
;
gitopnRequest
.
gitp
=
this
.
model
.
gitp
;
return
gitopnRequest
;
return
gitopnRequest
;
},
},
// 提交
// 提交
handleSubmit
()
{
handleSubmit
()
{
console
.
log
(
'提交'
,
this
.
model
)
console
.
log
(
'提交'
,
this
.
model
)
},
},
// 检核
// 检核
async
handleCheck
()
{
async
handleCheck
()
{
// this.$refs['modelForm'].validate((valid) => {
// this.$refs['modelForm'].validate((valid) => {
// console.log('valid', valid)
// console.log('valid', valid)
// })
// })
const
loading
=
this
.
loading
(
"正在校验数据"
)
const
loading
=
this
.
loading
(
"正在校验数据"
)
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/checkAll"
,
{
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/checkAll"
,
{
...
this
.
model
,
...
this
.
model
,
transName
:
this
.
trnName
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
})
})
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
this
.
updateValueSet
(
rtnmsg
.
codeSet
)
this
.
updateValueSet
(
rtnmsg
.
codeSet
)
}
}
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
const
fieldErrors
=
rtnmsg
.
fieldErrors
;
const
fieldErrors
=
rtnmsg
.
fieldErrors
;
this
.
updateModel
(
rtnmsg
.
data
);
this
.
updateModel
(
rtnmsg
.
data
);
if
(
fieldErrors
&&
Object
.
keys
(
fieldErrors
).
length
===
0
)
{
if
(
fieldErrors
&&
Object
.
keys
(
fieldErrors
).
length
===
0
)
{
// 清除之前的校验状态
// 清除之前的校验状态
this
.
getRoot
().
$refs
.
modelForm
.
clearValidate
();
this
.
getRoot
().
$refs
.
modelForm
.
clearValidate
();
this
.
$notify
({
title
:
"成功"
,
message
:
"校验成功"
,
type
:
"success"
,
});
return
}
}
loading
.
close
()
},
// 暂存
async
handleStash
()
{
const
loading
=
this
.
loading
(
"正在暂存数据"
);
let
gitopnRequest
=
this
.
buildGitopnRequest
();
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/txnHold"
,
gitopnRequest
);
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
this
.
$notify
({
this
.
$notify
({
title
:
"成功"
,
title
:
"成功"
,
message
:
"
暂存
成功"
,
message
:
"
校验
成功"
,
type
:
"success"
,
type
:
"success"
,
});
});
return
}
}
loading
.
close
();
}
},
loading
.
close
()
// 点击获取按钮拉取当前key字段下的表单数据
},
queryFormData
(
key
)
{
// 暂存
console
.
log
(
key
)
async
handleStash
()
{
},
const
loading
=
this
.
loading
(
"正在暂存数据"
);
// 业务信息=》基本信息=》保函编号-----获取保函编号
let
gitopnRequest
=
this
.
buildGitopnRequest
();
async
queryOwnref
()
{
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/txnHold"
,
gitopnRequest
);
let
params
=
{
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
ptainr
:
this
.
model
.
gidgrp
.
apl
.
pts
.
ptainr
,
this
.
$notify
({
businessType
:
'LG'
,
title
:
"成功"
,
tbl
:
'LG'
message
:
"暂存成功"
,
}
type
:
"success"
,
const
loading
=
this
.
loading
()
});
let
res
=
await
Api
.
post
(
'/service/gitopn/getOwnRef'
,
params
)
}
if
(
res
.
respCode
==
SUCCESS
)
{
loading
.
close
();
loading
.
close
()
},
this
.
model
.
gidgrp
.
rec
.
ownref
=
res
.
data
// 点击获取按钮拉取当前key字段下的表单数据
}
queryFormData
(
key
)
{
},
console
.
log
(
key
)
// 获取gitopn弹框表格数据
},
async
queryGridEtyPromptDialogData
(
type
,
ptytyp
)
{
// 业务信息=》基本信息=》保函编号-----获取保函编号
let
params
=
{
async
queryOwnref
()
{
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
let
params
=
{
ptytyp
:
ptytyp
,
ptainr
:
this
.
model
.
gidgrp
.
apl
.
pts
.
ptainr
,
extkey
:
this
.
model
.
gidgrp
[
type
.
toLowerCase
()].
pts
.
extkey
businessType
:
'LG'
,
}
tbl
:
'LG'
let
res
=
await
Api
.
post
(
'/service/ptspta/list'
,
params
)
}
if
(
res
.
respCode
==
SUCCESS
)
{
const
loading
=
this
.
loading
()
this
.
root
.
$refs
[
'etyDialog'
].
show
=
true
let
res
=
await
Api
.
post
(
'/service/gitopn/getOwnRef'
,
params
)
this
.
root
.
promptData
.
data
=
res
.
data
.
ptaInfos
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
root
.
promptData
.
type
=
type
loading
.
close
()
}
this
.
model
.
gidgrp
.
rec
.
ownref
=
res
.
data
},
}
// 选中gitopn弹框表格的行数据
},
async
selectGridEtyPromptData
(
row
)
{
// 获取gitopn弹框表格数据
let
params
=
{
async
queryGridEtyPromptDialogData
(
type
,
ptytyp
)
{
...
row
let
params
=
{
}
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
)
ptytyp
:
ptytyp
,
if
(
res
.
respCode
==
SUCCESS
)
{
extkey
:
this
.
model
.
gidgrp
[
type
.
toLowerCase
()].
pts
.
extkey
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
)
}
}
let
res
=
await
Api
.
post
(
'/service/ptspta/list'
,
params
)
},
if
(
res
.
respCode
==
SUCCESS
)
{
// 业务信息=》基本信息=》支出目的
this
.
root
.
$refs
[
'etyDialog'
].
show
=
true
purposChange
(
key
,
value
)
{
this
.
root
.
promptData
.
data
=
res
.
data
.
ptaInfos
this
.
handleChangeForm
(
key
,
value
)
this
.
root
.
promptData
.
type
=
type
},
}
// 初始化保函开立类型码表下拉列表
},
async
queryHndtypCodeTableList
(
trnName
)
{
// 选中gitopn弹框表格的行数据
let
params
=
{
async
selectGridEtyPromptData
(
row
)
{
gitp
:
{
let
params
=
{
swiftflg
:
this
.
model
.
gitp
.
swiftflg
...
row
},
}
gidgrp
:
{
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
)
rec
:
{
if
(
res
.
respCode
==
SUCCESS
)
{
purpos
:
this
.
model
.
gidgrp
.
rec
.
purpos
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
)
}
}
},
},
transName
:
trnName
.
toUpperCase
()
// 业务信息=》基本信息=》支出目的
}
purposChange
(
key
,
value
)
{
let
res
=
await
Api
.
post
(
'/service/gitopn/initHndtyp'
,
params
)
this
.
handleChangeForm
(
key
,
value
)
if
(
res
.
respCode
==
SUCCESS
)
{
},
this
.
$set
(
this
.
codes
,
'voHndtyp'
,
res
.
data
)
// 初始化保函开立类型码表下拉列表
}
async
queryHndtypCodeTableList
(
trnName
)
{
},
let
params
=
{
// 是否SWIFT格式修改--联动保函开立类型
gitp
:
{
handleChangeSwiftflg
()
{
swiftflg
:
this
.
model
.
gitp
.
swiftflg
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
)
},
},
gidgrp
:
{
// 支出目的修改--联动保函开立类型
rec
:
{
handleChangePurpos
()
{
purpos
:
this
.
model
.
gidgrp
.
rec
.
purpos
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
)
}
},
transName
:
trnName
.
toUpperCase
()
}
let
res
=
await
Api
.
post
(
'/service/gitopn/initHndtyp'
,
params
)
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
codes
,
'voHndtyp'
,
res
.
data
)
}
}
},
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
)
},
// 支出目的修改--联动保函开立类型
handleChangePurpos
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
)
}
},
},
};
};
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