Commit eafb523b by Wuyuqiu

申报交易增删改查临时提交

parent 89234f59
......@@ -88,10 +88,10 @@ export default {
// },
start: async function() {
this.handleSubmit && (await this.handleSubmit('bopbut.sav'));
this.handleSubmit && (await this.handleSubmit());
},
check: async function() {
this.handleCheck && (await this.handleCheck('bopbut.chk'));
this.handleCheck && (await this.handleCheck());
},
save: async function() {
this.handleStash && (await this.handleStash());
......
......@@ -4,13 +4,12 @@ export default {
methods: {
// 表单提交
async handleSubmit(rulePath) {
let result;
let result;let result1;
if(rulePath==""){
result = await this.save();
}else{
result = await this.executeRule(rulePath);
result1 = await this.executeRule(rulePath);
}
// let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
......@@ -43,6 +42,38 @@ export default {
});
}
if (result1.respCode == SUCCESS && Object.keys(result1.fieldErrors).length == 0) {
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'bopsel')
//修改待复核界面刷新状态为需要刷新
this.$store.commit("setLoadingFreshReview", true)
});
}else if(result1.fieldErrors && Object.keys(result1.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result1.fieldErrors)
if (tab) {
// tab切换之后,需出发tab-click的事件
this.tabClick(tab);
}
this.$notify({
title: "错误",
message: "检核失败!",
type: "error",
});
}
else{
this.$notify({
title: "失败",
message: "保存失败",
type: "error",
});
}
},
async handleConfirm() {
......
......@@ -308,7 +308,8 @@ export default {
'0 1 "申报号码" 170 ',
'1 2 "客户" 100',
'16 3 "组织机构代码" 120',
'2 4 "基础" 80',
// '2 4 "基础" 80',
{index:2,position:4,width:80,pattern:'code',label:'基础',code:this.codes.staflg},
'5 5 "银行业务编号" 150',
//'6 6, "收付汇日期" 200',
{index:6,position:6,width:150,pattern:'date',label:'收付汇日期'},
......
......@@ -31,8 +31,8 @@
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleSubmit="handleSubmit('bopbut.sav')"
:handleCheck="handleCheck('bopbut.chk')"
:handleStash="handleStash"
>
<!-- ('bopbut.chk') -->
......
......@@ -30,7 +30,6 @@
v-model="model.recgrp.bas.ownextkey"
style="width: 100%"
placeholder="请选择地区机构号"
:code="codes.ownextkey3"
disabled
>
</c-select>
......@@ -166,6 +165,7 @@
v-model="model.recgrp.bas.issdate"
style="width: 100%"
placeholder="请选择开证日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
......@@ -176,6 +176,7 @@
v-model="model.recgrp.bas.lcbgno"
maxlength="20"
placeholder="请输入信用证/保函编号"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -296,6 +297,7 @@
<c-input
v-model="model.recgrp.bas.tenor"
placeholder="请输入期限"
disabled
></c-input>
</el-form-item>
</c-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment