Commit 2793bac1 by wjj
parents d470efa1 40113c29
...@@ -98,6 +98,7 @@ export default { ...@@ -98,6 +98,7 @@ export default {
}) })
.then(res => { .then(res => {
// this.$router.back(); // this.$router.back();
this.$store.dispatch("TagsView/delView", this.$route)
this.handleExit && this.handleExit() this.handleExit && this.handleExit()
if (this.$route.query && this.$route.query.routeParams) { if (this.$route.query && this.$route.query.routeParams) {
setTimeout(() => { setTimeout(() => {
......
...@@ -11,7 +11,10 @@ export default { ...@@ -11,7 +11,10 @@ export default {
message: "保存成功", message: "保存成功",
type: "success", type: "success",
}); });
this.$router.history.push("/business/trnrel"); this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'trnrel')
});
} else{ } else{
this.$notify({ this.$notify({
title: "失败", title: "失败",
...@@ -36,7 +39,10 @@ export default { ...@@ -36,7 +39,10 @@ export default {
message: "暂存成功", message: "暂存成功",
type: "success", type: "success",
}); });
this.$router.history.push("/business/sptsel"); this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'sptbrk')
});
} else { } else {
this.$notify({ this.$notify({
title: "失败", title: "失败",
...@@ -70,11 +76,6 @@ export default { ...@@ -70,11 +76,6 @@ export default {
}); });
return return
} }
this.$notify({
title: "成功",
message: "校核成功",
type: "success",
});
} else { } else {
this.$notify.error({ title: "错误", message: result.respMsg }); this.$notify.error({ title: "错误", message: result.respMsg });
} }
......
...@@ -95,17 +95,48 @@ export default { ...@@ -95,17 +95,48 @@ export default {
let rtnmsg = await this.executeRule("relrow", params) let rtnmsg = await this.executeRule("relrow", params)
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
debugger;
let errorMsg = "";
this.$message({ let fieldErrorsFlag = (JSON.stringify(rtnmsg.fieldErrors) == "{}");
type: 'success', if(!fieldErrorsFlag){
message: 'Reject成功!' let errorMsgkey = "";
let errorMsgVal = "";
for (const key in rtnmsg.fieldErrors) {
errorMsgkey = key;
errorMsgVal = rtnmsg.fieldErrors[key];
}
errorMsg = errorMsgkey+':'+errorMsgVal;
this.$notify.error({title: '错误',message: '复核失败!错误信息['+errorMsg+']'});
}else{
this.$notify({
title: '成功',
message: '复核成功',
type: 'success'
}); });
debugger;
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;
})
}
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); let errorMsg = "";
let fieldErrorsFlag = (JSON.stringify(rtnmsg.fieldErrors) == "{}");
if(!fieldErrorsFlag){
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in rtnmsg.fieldErrors) {
errorMsgkey = key;
errorMsgVal = rtnmsg.fieldErrors[key];
}
errorMsg = errorMsgkey+':'+errorMsgVal;
}else if(rtnmsg.respMsg){
errorMsg = rtnmsg.respMsg;
}
this.$notify.error({title: '错误',message: '复核失败!错误信息['+errorMsg+']'});
} }
}, },
sleep(ms) { sleep(ms) {
...@@ -287,18 +318,18 @@ export default { ...@@ -287,18 +318,18 @@ export default {
}, },
async handleSearch() { async handleSearch() {
const that = this.root; const that = this.root;
if (this.model.searchAllUsers) { // if (this.model.searchAllUsers) {
that.executeRule("seajbh").then(res => { // that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑 // //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows; // that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
}) // })
} else { // } else {
that.executeRule("searow").then(res => { that.executeRule("searow").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
this.model.trncorco.trnstm = res.data.trncorco_trnstm; this.model.trncorco.trnstm = res.data.trncorco_trnstm;
}) })
} // }
}, },
async handleReset() { async handleReset() {
...@@ -312,7 +343,8 @@ export default { ...@@ -312,7 +343,8 @@ export default {
this.model.trncorco.dflg = "ALL"; this.model.trncorco.dflg = "ALL";
this.model.atptxt = ""; this.model.atptxt = "";
this.model.searchAllUsers = false; this.model.searchAllUsers = false;
} },
} }
\ No newline at end of file
...@@ -21,7 +21,8 @@ const Status = { ...@@ -21,7 +21,8 @@ const Status = {
check: false, check: false,
// 暂存 // 暂存
stash: false stash: false
} },
taskListTabVal: ''
}, },
mutations: { mutations: {
setMode(state, value) { setMode(state, value) {
...@@ -78,6 +79,9 @@ const Status = { ...@@ -78,6 +79,9 @@ const Status = {
}, },
setLoadingStash(state, value) { setLoadingStash(state, value) {
state.loading.stash = value; state.loading.stash = value;
},
setTaskListTabVal(state, value) {
state.taskListTabVal = value;
} }
} }
} }
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
<!--PD000006 --> <!--PD000006 -->
<!-- <el-tab-pane label="信用证查询" name="infsea"> --> <!-- <el-tab-pane label="信用证查询" name="infsea"> -->
<c-content>
<m-infsea :model="model" :codes="codes"/> <m-infsea :model="model" :codes="codes"/>
</c-content>
<!-- </el-tab-pane> --> <!-- </el-tab-pane> -->
<!--PD000001 --> <!--PD000001 -->
......
...@@ -412,10 +412,12 @@ ...@@ -412,10 +412,12 @@
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="display(scope.$index, scope.row)"
> >
详情 快照
</c-button> </c-button>
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
......
...@@ -37,13 +37,24 @@ import Bopsel from "~/views/Business/Bopsel"; ...@@ -37,13 +37,24 @@ import Bopsel from "~/views/Business/Bopsel";
export default { export default {
data(){ data(){
return{ return{
tabVal:"sptsel", }
},
computed: {
tabVal: {
get() {
return this.$store.state.Status.taskListTabVal || "sptsel"
},
set(val) {
this.$store.commit("setTaskListTabVal", val)
}
} }
}, },
name: "TaskList", name: "TaskList",
created() {
},
methods: { methods: {
tabClick() {}, tabClick(tab) {
},
}, },
components:{ components:{
"t-sptsel" : Sptsel, "t-sptsel" : Sptsel,
...@@ -53,10 +64,6 @@ export default { ...@@ -53,10 +64,6 @@ export default {
"t-diasel" : Diasel, "t-diasel" : Diasel,
"t-bopsel" : Bopsel, "t-bopsel" : Bopsel,
}, },
}; };
</script> </script>
......
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