Commit 8a8157db by jianglong

修改BDTCAN

parent ec2dd6ec
...@@ -8,17 +8,13 @@ let checkObj = { ...@@ -8,17 +8,13 @@ let checkObj = {
"liaall.limmod.limpts.oth.pts.extkey" :null, "liaall.limmod.limpts.oth.pts.extkey" :null,
"liaall.limmod.ownref" :null, "liaall.limmod.ownref" :null,
"liaall.limmod.ecifno" :null, "liaall.limmod.ecifno" :null,
"bdtp0.didget.sdamod.dadsnd" :null,
"liaall.limmod.othp.ptsget.sdamod.dadsnd" :null,
"liaall.limmod.limpts.oth.pts.nam" :null, "liaall.limmod.limpts.oth.pts.nam" :null,
"setmod.dspflg" :null, "setmod.dspflg" :null,
"liaall.limmod.limpts.wrk.pts.nam" :null, "liaall.limmod.limpts.wrk.pts.nam" :null,
"liaall.limmod.limpts.wrk.pts.extkey" :null, "liaall.limmod.limpts.wrk.pts.extkey" :null,
"mtabut.coninf.conexedat" :null, "mtabut.coninf.conexedat" :null,
"liaall.limmod.limpts.nonrevflg1" :null, "liaall.limmod.limpts.nonrevflg1" :null,
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd" :null,
"setmod.docamt" :null, "setmod.docamt" :null,
"bdtp0.recget.sdamod.dadsnd" :null,
} }
for (const key in checkObj) { for (const key in checkObj) {
......
...@@ -2,148 +2,173 @@ import Api from "~/service/Api" ...@@ -2,148 +2,173 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onLiaallButmisamt() { async onLiaallButmisamt(){
let rtnmsg = await this.executeRule("liaall.butmisamt") let rtnmsg = await this.executeRule("liaall.butmisamt")
if (rtnmsg.respCode == SUCCESS) { if(rtnmsg.respCode == SUCCESS)
//TODO 处理数据逻辑 {
//TODO 处理数据逻辑
}
else { }
this.$notify.error({ title: '错误', message: '服务请求失败!' }); else
} {
}, this.$notify.error({title: '错误',message: '服务请求失败!'});
async onLiaallButmissig() { }
let rtnmsg = await this.executeRule("liaall.butmissig") },
if (rtnmsg.respCode == SUCCESS) { async onLiaallButmissig(){
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("liaall.butmissig")
if(rtnmsg.respCode == SUCCESS)
} {
else { //TODO 处理数据逻辑
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, else
async onSetmodDet() { {
let rtnmsg = await this.executeRule("setmod.det") this.$notify.error({title: '错误',message: '服务请求失败!'});
if (rtnmsg.respCode == SUCCESS) { }
//TODO 处理数据逻辑 },
async onSetmodDet(){
} let rtnmsg = await this.executeRule("setmod.det")
else { if(rtnmsg.respCode == SUCCESS)
this.$notify.error({ title: '错误', message: '服务请求失败!' }); {
} //TODO 处理数据逻辑
},
async onTrndocButshw() { }
let rtnmsg = await this.executeRule("trndoc.butshw") else
if (rtnmsg.respCode == SUCCESS) { {
//TODO 处理数据逻辑 this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} },
else { async onTrndocButshw(){
this.$notify.error({ title: '错误', message: '服务请求失败!' }); let rtnmsg = await this.executeRule("trndoc.butshw")
} if(rtnmsg.respCode == SUCCESS)
}, {
async onTrndocButadd() { //TODO 处理数据逻辑
let rtnmsg = await this.executeRule("trndoc.butadd")
if (rtnmsg.respCode == SUCCESS) { }
//TODO 处理数据逻辑 else
{
} this.$notify.error({title: '错误',message: '服务请求失败!'});
else { }
this.$notify.error({ title: '错误', message: '服务请求失败!' }); },
} async onTrndocButadd(){
}, let rtnmsg = await this.executeRule("trndoc.butadd")
async onTrndocButnew() { if(rtnmsg.respCode == SUCCESS)
let rtnmsg = await this.executeRule("trndoc.butnew") {
if (rtnmsg.respCode == SUCCESS) { //TODO 处理数据逻辑
//TODO 处理数据逻辑
}
} else
else { {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onTrndocButattto() { async onTrndocButnew(){
let rtnmsg = await this.executeRule("trndoc.butattto") let rtnmsg = await this.executeRule("trndoc.butnew")
if (rtnmsg.respCode == SUCCESS) { if(rtnmsg.respCode == SUCCESS)
//TODO 处理数据逻辑 {
//TODO 处理数据逻辑
}
else { }
this.$notify.error({ title: '错误', message: '服务请求失败!' }); else
} {
}, this.$notify.error({title: '错误',message: '服务请求失败!'});
async onTrndocButdel() { }
let rtnmsg = await this.executeRule("trndoc.butdel") },
if (rtnmsg.respCode == SUCCESS) { async onTrndocButattto(){
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("trndoc.butattto")
if(rtnmsg.respCode == SUCCESS)
} {
else { //TODO 处理数据逻辑
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, else
async onTrndocButatt() { {
let rtnmsg = await this.executeRule("trndoc.butatt") this.$notify.error({title: '错误',message: '服务请求失败!'});
if (rtnmsg.respCode == SUCCESS) { }
//TODO 处理数据逻辑 },
async onTrndocButdel(){
} let rtnmsg = await this.executeRule("trndoc.butdel")
else { if(rtnmsg.respCode == SUCCESS)
this.$notify.error({ title: '错误', message: '服务请求失败!' }); {
} //TODO 处理数据逻辑
},
async onWrkpDet() { }
let rtnmsg = await this.executeRule("wrkp.det") else
if (rtnmsg.respCode == SUCCESS) { {
//TODO 处理数据逻辑 this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} },
else { async onTrndocButatt(){
this.$notify.error({ title: '错误', message: '服务请求失败!' }); let rtnmsg = await this.executeRule("trndoc.butatt")
} if(rtnmsg.respCode == SUCCESS)
}, {
async onOthpDet() { //TODO 处理数据逻辑
let rtnmsg = await this.executeRule("othp.det")
if (rtnmsg.respCode == SUCCESS) { }
//TODO 处理数据逻辑 else
{
} this.$notify.error({title: '错误',message: '服务请求失败!'});
else { }
this.$notify.error({ title: '错误', message: '服务请求失败!' }); },
} async onWrkpDet(){
}, let rtnmsg = await this.executeRule("wrkp.det")
async onLimptsGet1() { if(rtnmsg.respCode == SUCCESS)
let rtnmsg = await this.executeRule("limpts.get1") {
if (rtnmsg.respCode == SUCCESS) { //TODO 处理数据逻辑
//TODO 处理数据逻辑
}
} else
else { {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onLimptsGet2() { async onOthpDet(){
let rtnmsg = await this.executeRule("limpts.get2") let rtnmsg = await this.executeRule("othp.det")
if (rtnmsg.respCode == SUCCESS) { if(rtnmsg.respCode == SUCCESS)
//TODO 处理数据逻辑 {
//TODO 处理数据逻辑
}
else { }
this.$notify.error({ title: '错误', message: '服务请求失败!' }); else
} {
}, this.$notify.error({title: '错误',message: '服务请求失败!'});
async onLimmodTrycal() { }
let rtnmsg = await this.executeRule("limmod.trycal") },
if (rtnmsg.respCode == SUCCESS) { async onLimptsGet1(){
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("limpts.get1")
if(rtnmsg.respCode == SUCCESS)
} {
else { //TODO 处理数据逻辑
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, else
async onSeainf() { {
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
},
async onLimptsGet2(){
let rtnmsg = await this.executeRule("limpts.get2")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLimmodTrycal(){
let rtnmsg = await this.executeRule("limmod.trycal")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
} }
\ No newline at end of file
...@@ -172,7 +172,28 @@ export default class Bdtcan { ...@@ -172,7 +172,28 @@ export default class Bdtcan {
// }, // },
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut:{
coninf:{
oitinf:{
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit:{
inftxt:"", // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev:"", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
},
oitset:{
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit:{
inftxt:"", // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev:"", // Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
conexedat:"", // 执行日期 .mtabut.coninf.conexedat
usr:{
extkey:"", // User ID .mtabut.coninf.usr.extkey
},
},
},
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
pageId: "" // ctx的key pageId: "" // ctx的key
} }
......
...@@ -306,7 +306,9 @@ export default { ...@@ -306,7 +306,9 @@ export default {
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: { ...Event ,
changed(e) {},
},
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<c-page title="买方信用证单据注销">
<div class="eContainer"> <div class="eContainer">
<el-form <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
:model="model" <c-function-btn
:rules="rules" :handleSubmit="handleSubmit"
ref="modelForm" :handleCheck="handleCheck"
label-width="150px" :handleStash="handleStash"
label-position="right" >
size="small" <el-button size="small">备忘录</el-button>
:validate-on-rule-change="false" <el-button size="small">影像信息</el-button>
> <!-- <el-button size="small">保存模板</el-button> -->
<!-- <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>
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
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">
<!--PD000016 --> <!--PD000016 -->
<el-tab-pane label="Cancelation" name="canp"> <el-tab-pane label="取消" name="canp">
<c-content>
<m-canp :model="model" :codes="codes" /> <m-canp :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
...@@ -22,7 +39,9 @@ ...@@ -22,7 +39,9 @@
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="账务" name="setpan"> <el-tab-pane label="账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
...@@ -51,7 +70,16 @@ ...@@ -51,7 +70,16 @@
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
></c-grid-ety-prompt-dialog>
</div> </div>
</c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
...@@ -59,6 +87,7 @@ import Utils from "~/utils/index"; ...@@ -59,6 +87,7 @@ import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Bdtcan from "~/model/Bdtcan"; import Bdtcan from "~/model/Bdtcan";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bdtcan/Check"; import Check from "~/model/Bdtcan/Check";
import Default from "~/model/Bdtcan/Default"; import Default from "~/model/Bdtcan/Default";
import Pattern from "~/model/Bdtcan/Pattern"; import Pattern from "~/model/Bdtcan/Pattern";
...@@ -71,7 +100,7 @@ import Glepan from "~/views/Public/Glepan"; ...@@ -71,7 +100,7 @@ import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Doctre from "./Doctre"; import Doctre from "./Doctre";
import Limitbody from "./Limitbody"; import Limitbody from "~/views/Public/Limitbody";
export default { export default {
name: "Bdtcan", name: "Bdtcan",
...@@ -90,7 +119,8 @@ export default { ...@@ -90,7 +119,8 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
computed: {},
data() { data() {
return { return {
tabVal: "canp", tabVal: "canp",
...@@ -100,7 +130,7 @@ export default { ...@@ -100,7 +130,7 @@ export default {
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: {}, codes: {...CodeTable},
}; };
}, },
methods: { methods: {
...@@ -108,7 +138,7 @@ export default { ...@@ -108,7 +138,7 @@ export default {
}, },
created: async function () { created: async function () {
console.log("进入bdtcan交易"); console.log("进入bdtcan交易");
let rtnmsg = await this.init(this.$route.query); let rtnmsg = await this.init();
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//更新数据 //更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
......
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