Commit eafb523b by Wuyuqiu

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

parent 89234f59
...@@ -88,10 +88,10 @@ export default { ...@@ -88,10 +88,10 @@ export default {
// }, // },
start: async function() { start: async function() {
this.handleSubmit && (await this.handleSubmit('bopbut.sav')); this.handleSubmit && (await this.handleSubmit());
}, },
check: async function() { check: async function() {
this.handleCheck && (await this.handleCheck('bopbut.chk')); this.handleCheck && (await this.handleCheck());
}, },
save: async function() { save: async function() {
this.handleStash && (await this.handleStash()); this.handleStash && (await this.handleStash());
......
...@@ -4,13 +4,12 @@ export default { ...@@ -4,13 +4,12 @@ export default {
methods: { methods: {
// 表单提交 // 表单提交
async handleSubmit(rulePath) { async handleSubmit(rulePath) {
let result; let result;let result1;
if(rulePath==""){ if(rulePath==""){
result = await this.save(); result = await this.save();
}else{ }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) { if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({ this.$notify({
title: "成功", title: "成功",
...@@ -43,6 +42,38 @@ export default { ...@@ -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() { async handleConfirm() {
......
...@@ -308,7 +308,8 @@ export default { ...@@ -308,7 +308,8 @@ export default {
'0 1 "申报号码" 170 ', '0 1 "申报号码" 170 ',
'1 2 "客户" 100', '1 2 "客户" 100',
'16 3 "组织机构代码" 120', '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', '5 5 "银行业务编号" 150',
//'6 6, "收付汇日期" 200', //'6 6, "收付汇日期" 200',
{index:6,position:6,width:150,pattern:'date',label:'收付汇日期'}, {index:6,position:6,width:150,pattern:'date',label:'收付汇日期'},
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn <c-function-btn
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit('bopbut.sav')"
:handleCheck="handleCheck" :handleCheck="handleCheck('bopbut.chk')"
:handleStash="handleStash" :handleStash="handleStash"
> >
<!-- ('bopbut.chk') --> <!-- ('bopbut.chk') -->
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
v-model="model.recgrp.bas.ownextkey" v-model="model.recgrp.bas.ownextkey"
style="width: 100%" style="width: 100%"
placeholder="请选择地区机构号" placeholder="请选择地区机构号"
:code="codes.ownextkey3"
disabled disabled
> >
</c-select> </c-select>
...@@ -166,6 +165,7 @@ ...@@ -166,6 +165,7 @@
v-model="model.recgrp.bas.issdate" v-model="model.recgrp.bas.issdate"
style="width: 100%" style="width: 100%"
placeholder="请选择开证日期" placeholder="请选择开证日期"
disabled
></c-date-picker> ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -176,6 +176,7 @@ ...@@ -176,6 +176,7 @@
v-model="model.recgrp.bas.lcbgno" v-model="model.recgrp.bas.lcbgno"
maxlength="20" maxlength="20"
placeholder="请输入信用证/保函编号" placeholder="请输入信用证/保函编号"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -296,6 +297,7 @@ ...@@ -296,6 +297,7 @@
<c-input <c-input
v-model="model.recgrp.bas.tenor" v-model="model.recgrp.bas.tenor"
placeholder="请输入期限" placeholder="请输入期限"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </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