Commit e52f7045 by 潘际乾
parents ed331a2c 0e47e122
...@@ -93,15 +93,9 @@ export default { ...@@ -93,15 +93,9 @@ export default {
}, },
async handleSearch() { async handleSearch() {
if(this.sourceModel.length===0){ if(this.sourceModel.length===0){
this.model.chkinc = "t"; this.sourceData.forEach(s => {
this.model.chkdzt = "t"; this.model[s.value] = 't';
this.model.chkcor = "t"; })
this.model.chkaut = "t";
this.model.chkdel = "t";
this.model.chktco = "t";
this.model.chkcan = "t";
this.model.chkypt = "t";
} }
this.executeDefault("sptstm").then(res => { this.executeDefault("sptstm").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
......
...@@ -88,25 +88,64 @@ export default { ...@@ -88,25 +88,64 @@ export default {
}, },
async onRelrow(idx,row) { async onRelrow(idx,row) {
const selIds = [idx+1]; //rowno选中行 this.$confirm('您确定复核该笔交易?', '提示', {
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream confirmButtonText: '确定',
cancelButtonText: '取消',
let params = { selDst: selDst, selIds: selIds }; type: 'warning'
}).then(async ()=>{
let rtnmsg = await this.executeRule("relrow", params) const selIds = [idx+1]; //rowno选中行
if (rtnmsg.respCode == SUCCESS) { const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
this.$message({
type: 'success', let rtnmsg = await this.executeRule("relrow", params)
message: 'Reject成功!' if (rtnmsg.respCode == SUCCESS) {
}); debugger;
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;
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 {
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+']'});
}
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}, },
sleep(ms) { sleep(ms) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -287,18 +326,18 @@ export default { ...@@ -287,18 +326,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 +351,8 @@ export default { ...@@ -312,7 +351,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
<template> <template>
<div class="eibs-tab"> <c-row>
<!-- ====================左边======================= --> <!-- ====================左边======================= -->
<c-col :span="12"> <c-col :span="12">
<c-col :span="24"> <c-col :span="24">
...@@ -107,7 +106,7 @@ ...@@ -107,7 +106,7 @@
<c-checkbox v-model="model.bcdgrp.rec.focflg">Free of Payment</c-checkbox> <c-checkbox v-model="model.bcdgrp.rec.focflg">Free of Payment</c-checkbox>
</c-col> </c-col>
</c-col> </c-col>
</div> </c-row>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-button size="small">拆分报文</el-button> <el-button size="small">拆分报文</el-button>
<el-button size="small">智能提示</el-button> <el-button size="small">智能提示</el-button>
</c-function-btn> </c-function-btn>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right"
size="small" :validate-on-rule-change="false"> size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
......
<template> <template>
<div class="eibs-tab"> <c-row>
<!-- ====================左边======================= --> <!-- ====================左边======================= -->
<c-col :span="12"> <c-col :span="12">
<c-col :span="24"> <c-col :span="24">
...@@ -59,12 +58,12 @@ ...@@ -59,12 +58,12 @@
<!-- ====================右边======================= --> <!-- ====================右边======================= -->
<c-col :span="12"> <c-col :span="12">
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <c-col :span="24">
<el-form-item label="Charges Condition" prop="bcdgrp.blk.othins"> <el-form-item label="Charges Condition" prop="bcdgrp.blk.othins">
<c-select type="textarea" v-model="model.bcdgrp.blk.othins" maxlength="65" show-word-limit <c-select type="textarea" v-model="model.bcdgrp.blk.othins" maxlength="65" show-word-limit
placeholder="请输入Charges Condition"></c-select> placeholder="请输入Charges Condition"></c-select>
</el-form-item> </el-form-item>
<el-option v-for="item in codes.chadet" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in codes.othins" :key="item.value" :label="item.label" :value="item.value">
</el-option> </el-option>
</c-col> </c-col>
</c-col> </c-col>
...@@ -107,7 +106,7 @@ ...@@ -107,7 +106,7 @@
<c-checkbox v-model="model.bcdgrp.rec.focflg">Free of Payment</c-checkbox> <c-checkbox v-model="model.bcdgrp.rec.focflg">Free of Payment</c-checkbox>
</c-col> </c-col>
</c-col> </c-col>
</div> </c-row>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-button size="small">拆分报文</el-button> <el-button size="small">拆分报文</el-button>
<el-button size="small">智能提示</el-button> <el-button size="small">智能提示</el-button>
</c-function-btn> </c-function-btn>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right"
size="small" :validate-on-rule-change="false"> size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
......
...@@ -125,6 +125,7 @@ ...@@ -125,6 +125,7 @@
v-model="model.infcon.opndatfrom" v-model="model.infcon.opndatfrom"
style="width: 100%" style="width: 100%"
placeholder="请选择Opening between" placeholder="请选择Opening between"
value-format="yyyy-MM-dd"
></el-date-picker> ></el-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
...@@ -136,6 +137,7 @@ ...@@ -136,6 +137,7 @@
v-model="model.infcon.opndatto" v-model="model.infcon.opndatto"
style="width: 100%" style="width: 100%"
placeholder="请选择Open Date to" placeholder="请选择Open Date to"
value-format="yyyy-MM-dd"
></el-date-picker> ></el-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
......
...@@ -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 -->
......
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
placeholder="请选择来源" placeholder="请选择来源"
multiple multiple
collapse-tags collapse-tags
@change="sourceChangeEvent"
> >
<el-option <el-option
v-for="item in sourceData" v-for="item in sourceData"
...@@ -367,7 +368,7 @@ export default { ...@@ -367,7 +368,7 @@ export default {
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return { return {
//sourceModel: [], sourceModel: [],
sourceData: [], sourceData: [],
initdialog: false, initdialog: false,
transactionStatus: { transactionStatus: {
...@@ -420,95 +421,17 @@ export default { ...@@ -420,95 +421,17 @@ export default {
{ label: "云平台", value: "chkypt" }, { label: "云平台", value: "chkypt" },
]; ];
}, },
computed: { methods: {
chkinc: { sourceChangeEvent(val) {
get() { this.sourceData.forEach(s => {
return this.model.chkinc === "t"; this.model[s.value] = '';
}, })
set(val) { val.forEach((element) => {
this.model.chkinc = val ? "t" : ""; this.model[element] = 't';
}, });
},
chkdzt: {
get() {
return this.model.chkdzt === "t";
},
set(val) {
this.model.chkdzt = val ? "t" : "";
},
},
chkpen: {
get() {
return this.model.chkpen === "t";
},
set(val) {
this.model.chkpen = val ? "t" : "";
},
},
chkcor: {
get() {
return this.model.chkcor === "t";
},
set(val) {
this.model.chkcor = val ? "t" : "";
},
},
chkaut: {
get() {
return this.model.chkaut === "t";
},
set(val) {
this.model.chkaut = val ? "t" : "";
},
},
chkdel: {
get() {
return this.model.chkdel === "t";
},
set(val) {
this.model.chkdel = val ? "t" : "";
},
},
chktco: {
get() {
return this.model.chktco === "t";
},
set(val) {
this.model.chktco = val ? "t" : "";
},
},
chkcan: {
get() {
return this.model.chkcan === "t";
},
set(val) {
this.model.chkcan = val ? "t" : "";
},
},
sourceModel: {
get() {
let arr = [];
this.sourceData.forEach((element) => {
if (this.model[element.value]) {
arr.push(element.value);
}
});
return arr;
},
set(val) {
let set = new Set(val);
this.sourceData.forEach((element) => {
if (set.has(element.value)) {
this.model[element.value] = true;
} else {
this.model[element.value] = false;
}
});
},
}, },
...Event
}, },
methods: { ...Event },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -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"
......
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