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
000c604b
Commit
000c604b
authored
Mar 28, 2023
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化event文件
parent
c20f1ead
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
77 deletions
+74
-77
index.js
src/business/gitopn/event/index.js
+42
-43
index.js
src/business/infgid/event/index.js
+32
-34
No files found.
src/business/gitopn/event/index.js
View file @
000c604b
import
Api
from
"~/service/Api"
import
Api
from
'~/service/Api'
;
export
default
{
methods
:
{
// 提交
handleSubmit
()
{
console
.
log
(
'提交'
,
this
.
model
)
console
.
log
(
'提交'
,
this
.
model
);
},
// 检核
async
handleCheck
()
{
// this.$refs['modelForm'].validate((valid) => {
// console.log('valid', valid)
// })
const
loading
=
this
.
loading
(
"正在校验数据"
)
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/checkAll"
,
{
const
loading
=
this
.
loading
(
'正在校验数据'
);
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
'/checkAll'
,
{
...
this
.
model
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
})
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
});
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
this
.
updateValueSet
(
rtnmsg
.
codeSet
)
this
.
updateValueSet
(
rtnmsg
.
codeSet
);
}
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
...
...
@@ -28,35 +28,35 @@ export default {
// 清除之前的校验状态
this
.
getRoot
().
$refs
.
modelForm
.
clearValidate
();
this
.
$notify
({
title
:
"成功"
,
message
:
"校验成功"
,
type
:
"success"
,
title
:
'成功'
,
message
:
'校验成功'
,
type
:
'success'
,
});
return
return
;
}
}
loading
.
close
()
loading
.
close
();
},
// 暂存
handleStash
()
{
console
.
log
(
'暂存'
)
console
.
log
(
'暂存'
);
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData
(
key
)
{
console
.
log
(
key
)
console
.
log
(
key
);
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
async
queryOwnref
()
{
let
params
=
{
ptainr
:
this
.
model
.
gidgrp
.
apl
.
pts
.
ptainr
,
businessType
:
'LG'
,
tbl
:
'LG'
}
const
loading
=
this
.
loading
()
let
res
=
await
Api
.
post
(
'/service/gitopn/getOwnRef'
,
params
)
tbl
:
'LG'
,
};
const
loading
=
this
.
loading
();
let
res
=
await
Api
.
post
(
'/service/gitopn/getOwnRef'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
loading
.
close
()
this
.
model
.
gidgrp
.
rec
.
ownref
=
res
.
data
loading
.
close
();
this
.
model
.
gidgrp
.
rec
.
ownref
=
res
.
data
;
}
},
// 获取gitopn弹框表格数据
...
...
@@ -64,54 +64,54 @@ export default {
let
params
=
{
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
ptytyp
:
ptytyp
,
extkey
:
this
.
model
.
gidgrp
[
type
.
toLowerCase
()].
pts
.
extkey
}
let
res
=
await
Api
.
post
(
'/service/ptspta/list'
,
params
)
extkey
:
this
.
model
.
gidgrp
[
type
.
toLowerCase
()].
pts
.
extkey
,
};
let
res
=
await
Api
.
post
(
'/service/ptspta/list'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
root
.
$refs
[
'etyDialog'
].
show
=
true
this
.
root
.
promptData
.
data
=
res
.
data
.
ptaInfos
this
.
root
.
promptData
.
type
=
type
this
.
root
.
$refs
[
'etyDialog'
].
show
=
true
;
this
.
root
.
promptData
.
data
=
res
.
data
.
ptaInfos
;
this
.
root
.
promptData
.
type
=
type
;
}
},
// 选中gitopn弹框表格的行数据
async
selectGridEtyPromptData
(
row
)
{
let
params
=
{
...
row
}
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
)
...
row
,
};
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
)
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
}
},
// 业务信息=》基本信息=》支出目的
purposChange
(
key
,
value
)
{
this
.
handleChangeForm
(
key
,
value
)
this
.
handleChangeForm
(
key
,
value
);
},
// 初始化保函开立类型码表下拉列表
async
queryHndtypCodeTableList
(
trnName
)
{
let
params
=
{
gitp
:
{
swiftflg
:
this
.
model
.
gitp
.
swiftflg
swiftflg
:
this
.
model
.
gitp
.
swiftflg
,
},
gidgrp
:
{
rec
:
{
purpos
:
this
.
model
.
gidgrp
.
rec
.
purpos
}
purpos
:
this
.
model
.
gidgrp
.
rec
.
purpos
,
},
transName
:
trnName
.
toUpperCase
()
}
let
res
=
await
Api
.
post
(
'/service/gitopn/initHndtyp'
,
params
)
},
transName
:
trnName
.
toUpperCase
(),
};
let
res
=
await
Api
.
post
(
'/service/gitopn/initHndtyp'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
codes
,
'voHndtyp'
,
res
.
data
)
this
.
$set
(
this
.
codes
,
'voHndtyp'
,
res
.
data
);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
)
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
)
}
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
},
},
}
\ No newline at end of file
};
src/business/infgid/event/index.js
View file @
000c604b
import
Api
from
"~/service/Api"
import
Api
from
'~/service/Api'
;
export
default
{
methods
:
{
async
handleSearch
()
{
let
opndatfrom
=
this
.
model
.
infcon
.
opndatfrom
;
if
(
!
opndatfrom
||
opndatfrom
==
''
)
{
if
(
!
opndatfrom
||
opndatfrom
==
''
)
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'查询开始日期必输!'
});
return
;
}
let
opndatto
=
this
.
model
.
infcon
.
opndatto
;
if
(
!
opndatto
||
opndatto
==
''
)
{
if
(
!
opndatto
||
opndatto
==
''
)
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'查询结束日期必输!'
});
return
;
}
...
...
@@ -20,43 +20,42 @@ export default {
fromflg
:
this
.
model
.
fromflg
,
cmtflg
:
this
.
model
.
cmtflg
,
fingua
:
this
.
model
.
fingua
,
}
let
rtnmsg
=
await
Api
.
post
(
'/service/infgid'
,
params
)
};
let
rtnmsg
=
await
Api
.
post
(
'/service/infgid'
,
params
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
stmData
.
data
=
[];
this
.
stmData
.
data
=
rtnmsg
.
data
;
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
handleReset
()
{
this
.
model
.
infcon
.
seaownref
=
""
this
.
model
.
infcon
.
seaownref
=
''
;
this
.
model
.
infcon
.
opndatfrom
=
new
Date
();
this
.
model
.
infcon
.
opndatto
=
new
Date
();
this
.
isGuarantee
=
""
;
this
.
model
.
infcon
.
nam
=
""
;
this
.
model
.
infcon
.
pty
.
extkey
=
""
;
this
.
model
.
infcon
.
seapty
=
""
;
this
.
model
.
infcon
.
searef
=
""
;
this
.
model
.
infcon
.
pty
.
nam
=
""
;
this
.
model
.
infcon
.
searol
=
""
;
this
.
model
.
infcon
.
usr
.
extkey
=
""
;
this
.
model
.
infcon
.
seasta
=
""
;
this
.
model
.
infcon
.
seacur
=
""
;
this
.
model
.
infcon
.
seaamtfr
=
""
;
this
.
model
.
infcon
.
seaamtto
=
""
;
this
.
model
.
seagtyp
=
""
;
this
.
model
.
infcon
.
relflg
=
""
;
this
.
model
.
infcon
.
hndtyp
=
""
;
this
.
model
.
infcon
.
cxmflg
=
""
;
this
.
model
.
seapurpos
=
""
;
this
.
model
.
seahndtyp
=
""
;
this
.
model
.
infcon
.
segtyp
=
""
;
this
.
model
.
fromflg
=
""
;
this
.
model
.
fenlishi
=
""
;
this
.
model
.
cmtflg
=
""
;
this
.
model
.
fingua
=
""
;
this
.
isGuarantee
=
''
;
this
.
model
.
infcon
.
nam
=
''
;
this
.
model
.
infcon
.
pty
.
extkey
=
''
;
this
.
model
.
infcon
.
seapty
=
''
;
this
.
model
.
infcon
.
searef
=
''
;
this
.
model
.
infcon
.
pty
.
nam
=
''
;
this
.
model
.
infcon
.
searol
=
''
;
this
.
model
.
infcon
.
usr
.
extkey
=
''
;
this
.
model
.
infcon
.
seasta
=
''
;
this
.
model
.
infcon
.
seacur
=
''
;
this
.
model
.
infcon
.
seaamtfr
=
''
;
this
.
model
.
infcon
.
seaamtto
=
''
;
this
.
model
.
seagtyp
=
''
;
this
.
model
.
infcon
.
relflg
=
''
;
this
.
model
.
infcon
.
hndtyp
=
''
;
this
.
model
.
infcon
.
cxmflg
=
''
;
this
.
model
.
seapurpos
=
''
;
this
.
model
.
seahndtyp
=
''
;
this
.
model
.
infcon
.
segtyp
=
''
;
this
.
model
.
fromflg
=
''
;
this
.
model
.
fenlishi
=
''
;
this
.
model
.
cmtflg
=
''
;
this
.
model
.
fingua
=
''
;
},
}
}
\ No newline at end of file
},
};
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