Commit d4f207bd by liuxin

detame交易处理

parent fbce144c
import Utils from "~/utils" import Utils from "~/utils"
/** /**
* Detame Check规则 * Detopn Check规则
*/ */
let checkObj = { let checkObj = {
"dedgrp.iss.pts.dizhii" :null, "dedgrp.iss.pts.dizhii" :null,
"dedgrp.apl.namelc" :null, "dedgrp.apl.namelc" :null,
"dedgrp.rec.lcrtyp" :null, "dedgrp.rec.lcrtyp" :null,
"dedgrp.rec.nomton" :null,
"dedgrp.rec.nomtop" :null,
"dedgrp.blk.lcrgod" :null, "dedgrp.blk.lcrgod" :null,
"dedgrp.avb.pts.bankno" :null, "dedgrp.avb.pts.bankno" :null,
"dedgrp.apb.pts.bankno" :null, "dedgrp.apb.pts.bankno" :null,
"dedgrp.cbs.nom1.amt" :null,
"dedgrp.rmb.pts.bankno" :null, "dedgrp.rmb.pts.bankno" :null,
"dedgrp.rec.rejflg" :null,
"dedgrp.beb.pts.bankno" :null, "dedgrp.beb.pts.bankno" :null,
"dedgrp.apc.pts.jigomc" :null, "dedgrp.apc.pts.jigomc" :null,
"dedgrp.ben.adrelc" :null, "dedgrp.ben.adrelc" :null,
"dedgrp.apl.pts.adrblk" :null, "dedgrp.apl.pts.adrblk" :null,
"dedgrp.adv.pts.jigomc" :null, "dedgrp.adv.pts.jigomc" :null,
"dedgrp.cbs.nom1.cur" :null,
"dedgrp.blk.preper" :null, "dedgrp.blk.preper" :null,
"dedgrp.ben.namelc" :null, "dedgrp.ben.namelc" :null,
"dedgrp.ben.pts.extkey" :null, "dedgrp.ben.pts.extkey" :null,
...@@ -24,8 +29,10 @@ let checkObj = { ...@@ -24,8 +29,10 @@ let checkObj = {
"dedgrp.iss.pts.extkey" :null, "dedgrp.iss.pts.extkey" :null,
"dedgrp.adv.pts.dizhii" :null, "dedgrp.adv.pts.dizhii" :null,
"dedgrp.cmb.pts.bankno" :null, "dedgrp.cmb.pts.bankno" :null,
"dedgrp.rec.expdat" :null,
"dedgrp.apl.adrelc" :null, "dedgrp.apl.adrelc" :null,
"dedgrp.rmb.pts.jigomc" :null, "dedgrp.rmb.pts.jigomc" :null,
"dedgrp.blk.rejadvrsn" :null,
"dedgrp.avb.pts.dizhii" :null, "dedgrp.avb.pts.dizhii" :null,
"dedgrp.adv.pts.extkey" :null, "dedgrp.adv.pts.extkey" :null,
"dedgrp.rec.sdsrfs" :null, "dedgrp.rec.sdsrfs" :null,
...@@ -44,8 +51,12 @@ let checkObj = { ...@@ -44,8 +51,12 @@ let checkObj = {
"dedgrp.blk.defdet" :null, "dedgrp.blk.defdet" :null,
"dedgrp.apl.pts.extkey" :null, "dedgrp.apl.pts.extkey" :null,
"dedgrp.iss.pts.jigomc" :null, "dedgrp.iss.pts.jigomc" :null,
"dedgrp.ben.pts.ref" :null,
"dedgrp.rec.kzref" :null,
"dedgrp.cmb.pts.dizhii" :null, "dedgrp.cmb.pts.dizhii" :null,
"dedgrp.adv.pts.bankno" :null, "dedgrp.adv.pts.bankno" :null,
"detp.dzlhhh" :null,
"dedgrp.rec.elcflg" :null,
"dedgrp.rec.expplc" :null, "dedgrp.rec.expplc" :null,
"dedgrp.apc.pts.bankno" :null, "dedgrp.apc.pts.bankno" :null,
"dedgrp.rec.avbby" :null, "dedgrp.rec.avbby" :null,
......
/** /**
* Detame Default规则 * Detopn Default规则
*/ */
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
...@@ -9,35 +9,39 @@ export default { ...@@ -9,35 +9,39 @@ export default {
"dedgrp.ben.adrelc" :Utils.defaultFunction, "dedgrp.ben.adrelc" :Utils.defaultFunction,
"dedgrp.ben.namelc" :Utils.defaultFunction, "dedgrp.ben.namelc" :Utils.defaultFunction,
"dedgrp.adv.pts.extkey" :Utils.defaultFunction, "dedgrp.adv.pts.extkey" :Utils.defaultFunction,
"dedgrp.cbs.max.cur" :Utils.defaultFunction, "dedgrp.rec.mytype" :Utils.defaultFunction,
"dedgrp.rec.ownref" :Utils.defaultFunction,
"dedgrp.cbs.max.amt" :Utils.defaultFunction, "dedgrp.cbs.max.amt" :Utils.defaultFunction,
"dedgrp.blk.adlcnd" :Utils.defaultFunction,
"dedgrp.rec.ownref" :Utils.defaultFunction,
"dedgrp.rec.avbwth" :Utils.defaultFunction, "dedgrp.rec.avbwth" :Utils.defaultFunction,
"dedgrp.iss.pts.extkey" :Utils.defaultFunction, "dedgrp.iss.pts.extkey" :Utils.defaultFunction,
"dedgrp.cbs.nom1.amt" :Utils.defaultFunction, "dedgrp.cbs.nom1.amt" :Utils.defaultFunction,
"dedgrp.cbs.nom1.cur" :Utils.defaultFunction, "dedgrp.cbs.nom1.cur" :Utils.defaultFunction,
"dedgrp.rec.elcflg" :Utils.defaultFunction,
"dedgrp.rec.mytype" :Utils.defaultFunction,
"dedgrp.apl.pts.extkey" :Utils.defaultFunction, "dedgrp.apl.pts.extkey" :Utils.defaultFunction,
"dedgrp.apl.adrelc" :Utils.defaultFunction, "dedgrp.apl.adrelc" :Utils.defaultFunction,
"dedgrp.apl.namelc" :Utils.defaultFunction, "dedgrp.apl.namelc" :Utils.defaultFunction,
"dedgrp.apl.dbfadrblkcn" :Utils.defaultFunction, "dedgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"dedgrp.rec.shpdat" :Utils.defaultFunction, "dedgrp.rec.shpdat" :Utils.defaultFunction,
"dedgrp.cbs.max2.cur" :Utils.defaultFunction,
"dedgrp.rec.avbby" :Utils.defaultFunction, "dedgrp.rec.avbby" :Utils.defaultFunction,
"detp.usr.extkey" :Utils.defaultFunction, "detp.usr.extkey" :Utils.defaultFunction,
"dedgrp.cbs.max.cur" :Utils.defaultFunction,
"dedgrp.rec.opndat" :Utils.defaultFunction,
"dedgrp.ben.pts.extkey" :Utils.defaultFunction, "dedgrp.ben.pts.extkey" :Utils.defaultFunction,
"dedgrp.ben.dbfadrblkcn" :Utils.defaultFunction, "dedgrp.ben.dbfadrblkcn" :Utils.defaultFunction,
"dedgrp.blk.preper" :Utils.defaultFunction,
"dedgrp.cbs.max2.amt" :Utils.defaultFunction, "dedgrp.cbs.max2.amt" :Utils.defaultFunction,
"dedgrp.cbs.max2.cur" :Utils.defaultFunction,
"dedgrp.blk.addamtcov" :Utils.defaultFunction, "dedgrp.blk.addamtcov" :Utils.defaultFunction,
"dedgrp.rec.opndat" :Utils.defaultFunction,
"dedgrp.ben.pts.adrblk" :Utils.defaultFunction, "dedgrp.ben.pts.adrblk" :Utils.defaultFunction,
"dedgrp.apl.pts.adrblk" :Utils.defaultFunction, "dedgrp.apl.pts.adrblk" :Utils.defaultFunction,
"dedgrp.rec.nomtop" :Utils.defaultFunction, "dedgrp.blk.insbnk" :Utils.defaultFunction,
"dedgrp.rec.bdflg" :Utils.defaultFunction,
"dedgrp.rec.rejflg" :Utils.defaultFunction, "dedgrp.rec.rejflg" :Utils.defaultFunction,
"detp.dzlhhh" :Utils.defaultFunction, "detp.dzlhhh" :Utils.defaultFunction,
"dedgrp.rec.nomtop" :Utils.defaultFunction,
"dedgrp.rec.shppar" :Utils.defaultFunction, "dedgrp.rec.shppar" :Utils.defaultFunction,
"dedgrp.rec.fqzytgfw" :Utils.defaultFunction, "dedgrp.rec.fqzytgfw" :Utils.defaultFunction,
"dedgrp.rec.elcflg" :Utils.defaultFunction,
"dedgrp.rec.expdat" :Utils.defaultFunction, "dedgrp.rec.expdat" :Utils.defaultFunction,
"dedgrp.rec.tratyp" :Utils.defaultFunction, "dedgrp.rec.tratyp" :Utils.defaultFunction,
} }
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils/index"
export default { export default {
async onDetpButgetref(){ async onDetpButgetref() {
let rtnmsg = await this.executeRule("detp.butgetref") let rtnmsg = await this.executeRule("detp.butgetref")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.dedgrp.rec.ownref = rtnmsg.data.dedgrp_rec_ownref;
} this.$message({
else type: 'success',
{ message: '获取成功!'
this.$notify.error({title: '错误',message: '服务请求失败!'}); });
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
async onBenpDet(){ onSeainf() {},
onExtkey() {},
mytypeChange() {},
avbbykeyEvent() {},
recTratypChange() {},
async onBenpDet() {
let rtnmsg = await this.executeRule("benp.det") let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onAplpDet(){ async onAplpDet() {
let rtnmsg = await this.executeRule("aplp.det") let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onLcrdftatButtxmsel(){ async onLcrdftatButtxmsel() {
let rtnmsg = await this.executeRule("lcrdftat.buttxmsel") let rtnmsg = await this.executeRule("lcrdftat.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onPreperButtxmsel(){ async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper.buttxmsel") let rtnmsg = await this.executeRule("preper.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onLcrgodButtxmsel(){ async onLcrgodButtxmsel() {
let rtnmsg = await this.executeRule("lcrgod.buttxmsel") let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onLcrdocButtxmsel(){ async onLcrdocButtxmsel() {
let rtnmsg = await this.executeRule("lcrdoc.buttxmsel") let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onAdlcndButtxmsel(){ async onAdlcndButtxmsel() {
let rtnmsg = await this.executeRule("adlcnd.buttxmsel") let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInsbnkButtxmsel(){ async onInsbnkButtxmsel() {
let rtnmsg = await this.executeRule("insbnk.buttxmsel") let rtnmsg = await this.executeRule("insbnk.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
else },
{ async onSetmodDet() {
this.$notify.error({title: '错误',message: '服务请求失败!'}); let rtnmsg = await this.executeRule("setmod.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
], ],
"dedgrp.ben.pts.ref":[ "dedgrp.ben.pts.ref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"dedgrp.ben.pts.extkey":[ "dedgrp.ben.pts.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"detp.benp.ptsget.sdamod.seainf":[ "detp.benp.ptsget.sdamod.seainf":[
...@@ -82,12 +82,12 @@ export default { ...@@ -82,12 +82,12 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"dedgrp.cbs.max.amt":[ "dedgrp.cbs.max.amt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"dedgrp.ben.pts.extact":[ "dedgrp.ben.pts.extact":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 34,message:"长度不能超过34"} {max: 34,message:"长度不能超过34"}
], ],
"dedgrp.rec.opndat":[ "dedgrp.rec.opndat":[
...@@ -99,10 +99,10 @@ export default { ...@@ -99,10 +99,10 @@ export default {
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"dedgrp.rec.expdat":[ "dedgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: true, message: "输入正确的日期"}
], ],
"dedgrp.beb.pts.jigomc":[ "dedgrp.beb.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.rec.expplc":[ "dedgrp.rec.expplc":[
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"dedgrp.apl.pts.extkey":[ "dedgrp.apl.pts.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"detp.aplp.ptsget.sdamod.seainf":[ "detp.aplp.ptsget.sdamod.seainf":[
...@@ -146,8 +146,7 @@ export default { ...@@ -146,8 +146,7 @@ export default {
], ],
"dedgrp.rec.tenmaxday":[ "dedgrp.rec.tenmaxday":[
{type: "string", required: false, message: "必输项"}, {required: true, message: "必输项"}
{max: 4,message:"长度不能超过4"}
], ],
"dedgrp.blk.defdet":[ "dedgrp.blk.defdet":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -158,13 +157,13 @@ export default { ...@@ -158,13 +157,13 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.blk.dftat":[ "dedgrp.blk.dftat":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.blk.preper":[ "dedgrp.blk.preper":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
...@@ -173,7 +172,7 @@ export default { ...@@ -173,7 +172,7 @@ export default {
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"dedgrp.blk.rejadvrsn":[ "dedgrp.blk.rejadvrsn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.blk.lcrgod":[ "dedgrp.blk.lcrgod":[
...@@ -207,7 +206,7 @@ export default { ...@@ -207,7 +206,7 @@ export default {
], ],
"dedgrp.rmb.pts.jigomc":[ "dedgrp.rmb.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.avb.pts.bankno":[ "dedgrp.avb.pts.bankno":[
...@@ -215,15 +214,15 @@ export default { ...@@ -215,15 +214,15 @@ export default {
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"dedgrp.avb.pts.jigomc":[ "dedgrp.avb.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.rmb.pts.dizhii":[ "dedgrp.rmb.pts.dizhii":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.avb.pts.dizhii":[ "dedgrp.avb.pts.dizhii":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.cmb.pts.bankno":[ "dedgrp.cmb.pts.bankno":[
...@@ -231,7 +230,7 @@ export default { ...@@ -231,7 +230,7 @@ export default {
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"dedgrp.cmb.pts.jigomc":[ "dedgrp.cmb.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.adv.pts.extkey":[ "dedgrp.adv.pts.extkey":[
...@@ -239,7 +238,7 @@ export default { ...@@ -239,7 +238,7 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"dedgrp.cmb.pts.dizhii":[ "dedgrp.cmb.pts.dizhii":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.adv.pts.bankno":[ "dedgrp.adv.pts.bankno":[
...@@ -259,7 +258,7 @@ export default { ...@@ -259,7 +258,7 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.apc.pts.jigomc":[ "dedgrp.apc.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.adv.pts.youzbm":[ "dedgrp.adv.pts.youzbm":[
...@@ -271,15 +270,15 @@ export default { ...@@ -271,15 +270,15 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"dedgrp.apc.pts.dizhii":[ "dedgrp.apc.pts.dizhii":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.rec.kzref":[ "dedgrp.rec.kzref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.iss.pts.extkey":[ "dedgrp.iss.pts.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"dedgrp.apc.pts.youzbm":[ "dedgrp.apc.pts.youzbm":[
...@@ -291,7 +290,7 @@ export default { ...@@ -291,7 +290,7 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"dedgrp.iss.pts.bankno":[ "dedgrp.iss.pts.bankno":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"dedgrp.apl.pts.extact":[ "dedgrp.apl.pts.extact":[
...@@ -299,7 +298,7 @@ export default { ...@@ -299,7 +298,7 @@ export default {
{max: 34,message:"长度不能超过34"} {max: 34,message:"长度不能超过34"}
], ],
"dedgrp.iss.pts.jigomc":[ "dedgrp.iss.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.apb.pts.bankno":[ "dedgrp.apb.pts.bankno":[
...@@ -307,11 +306,11 @@ export default { ...@@ -307,11 +306,11 @@ export default {
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"dedgrp.iss.pts.dizhii":[ "dedgrp.iss.pts.dizhii":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.apb.pts.jigomc":[ "dedgrp.apb.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.iss.pts.youzbm":[ "dedgrp.iss.pts.youzbm":[
...@@ -382,4 +381,16 @@ export default { ...@@ -382,4 +381,16 @@ export default {
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.rec.avbby":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.lcrtyp":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.cbs.nom1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "../Common/Pts" import Pts from "../Common/Pts"
import Dids from "../Public/Dids"
import Pub from "../Public" import Pub from "../Public"
export default class Detame{ export default class Detopn{
constructor () { constructor () {
this.data = { this.data = {
detp:{ detp:{
...@@ -152,7 +153,6 @@ export default class Detame{ ...@@ -152,7 +153,6 @@ export default class Detame{
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
//面函
leta2bl1blk: "", leta2bl1blk: "",
letbenl2blk: "", letbenl2blk: "",
letbenl1blk: "", letbenl1blk: "",
......
...@@ -153,9 +153,9 @@ export default class Detopn{ ...@@ -153,9 +153,9 @@ export default class Detopn{
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
litbenl1blk: "", // XMLPanel litbenl1的内置block .litbenl1blk letbenl1blk: "",
litapll1blk: "", // XMLPanel litapll1的内置block .litapll1blk letissl1blk: "",
litrmbl1blk: "", // XMLPanel litrmbl1的内置block .litrmbl1blk leta2bl1blk: "",
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -123,13 +123,13 @@ ...@@ -123,13 +123,13 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="通知行邮编" prop="dedgrp.adv.pts.youzbm"> <el-form-item label="通知行邮编" prop="dedgrp.adv.pts.youzbm">
<c-input v-model="model.dedgrp.adv.pts.youzbm" maxlength="6" placeholder="请输入邮编"></c-input> <c-input v-model="model.dedgrp.adv.pts.youzbm" maxlength="6" disabled placeholder="请输入邮编"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item label="通知行电话" prop="dedgrp.adv.pts.dihdig" label-width="100px"> <el-form-item label="通知行电话" prop="dedgrp.adv.pts.dihdig" label-width="100px">
<c-input v-model="model.dedgrp.adv.pts.dihdig" maxlength="16" placeholder="请输入电话"></c-input> <c-input v-model="model.dedgrp.adv.pts.dihdig" maxlength="16" disabled placeholder="请输入电话"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -181,7 +181,6 @@ ...@@ -181,7 +181,6 @@
--> -->
<c-ptapdome <c-ptapdome
:disabledJigomc="true"
:model="model" :model="model"
:argadr="{ :argadr="{
title: '开证行', title: '开证行',
...@@ -335,13 +334,13 @@ ...@@ -335,13 +334,13 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="申请人邮编" prop="dedgrp.apc.pts.youzbm"> <el-form-item label="申请人邮编" prop="dedgrp.apc.pts.youzbm">
<c-input v-model="model.dedgrp.apc.pts.youzbm" maxlength="6" placeholder="请输入邮编 电证用"></c-input> <c-input v-model="model.dedgrp.apc.pts.youzbm" maxlength="6" disabled placeholder="请输入邮编 电证用"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item label="申请人电话" prop="dedgrp.apc.pts.dihdig" label-width="100px"> <el-form-item label="申请人电话" prop="dedgrp.apc.pts.dihdig" label-width="100px">
<c-input v-model="model.dedgrp.apc.pts.dihdig" maxlength="16" placeholder="请输入电话"></c-input> <c-input v-model="model.dedgrp.apc.pts.dihdig" maxlength="16" disabled placeholder="请输入电话"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
<el-form-item label="分期装运/提供服务" prop="dedgrp.rec. 看看评【评【评【"> <el-form-item label="分期装运/提供服务" prop="dedgrp.rec.fqzytgfw">
<c-select v-model="model.dedgrp.rec.fqzytgfw" placeholder="请选择" :disabled="model.dedgrp.rec.shppar != 'Y'" style="width:100%"> <c-select v-model="model.dedgrp.rec.fqzytgfw" placeholder="请选择" :disabled="model.dedgrp.rec.shppar != 'Y'" style="width:100%">
<el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value">
</el-option> </el-option>
...@@ -73,7 +73,8 @@ ...@@ -73,7 +73,8 @@
<!-- <!--
<c-col :span="12"> <c-col :span="12">
<span v-text="model.detp.fenzhu" data-path=".detp.fenzhu" > </span> <span v-text="model.detp.fenzhu"
a-path=".detp.fenzhu" > </span>
</c-col> </c-col>
...@@ -104,17 +105,7 @@ export default { ...@@ -104,17 +105,7 @@ export default {
mytypeFlag:true, mytypeFlag:true,
} }
}, },
methods:{...Event, methods:{...Event},
recTratypChange(){
if (this.model.dedgrp.rec.tratyp == "08"){
this.model.dedgrp.rec.sdsrfs = "";
this.mytypeFlag = false;
}else{
this.model.dedgrp.rec.sdsrfs = "";
this.mytypeFlag = true;
}
}
},
created:function(){ created:function(){
} }
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
style="margin: 0 10px 0 0; padding: 0 12px" style="margin: 0 10px 0 0; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
> >
<span <span
style="font-size: 15px; font-family: '宋体'; font-weight: bold" style="font-size: 15px; font-family: '宋体'; font-weight: bold"
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
label="所属客户经理" label="所属客户经理"
prop="ditp.usr.extkey" prop="detp.usr.extkey"
style="width: 100%" style="width: 100%"
> >
<c-fullbox> <c-fullbox>
...@@ -86,6 +87,7 @@ ...@@ -86,6 +87,7 @@
size="small" size="small"
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
@click="onExtkey"
></c-button> ></c-button>
</template> </template>
</c-fullbox> </c-fullbox>
...@@ -101,7 +103,7 @@ ...@@ -101,7 +103,7 @@
<c-select <c-select
disabled disabled
v-model="model.dedgrp.cbs.nom1.cur" v-model="model.dedgrp.cbs.nom1.cur"
style="width: 95%" style="width: 100%"
placeholder="请选择Currency" placeholder="请选择Currency"
@keyup.enter.native="nom1CurEvent" @keyup.enter.native="nom1CurEvent"
> >
...@@ -119,7 +121,7 @@ ...@@ -119,7 +121,7 @@
<c-col :span="11"> <c-col :span="11">
<el-form-item <el-form-item
style="text-align: left" style="text-align: left"
label-width="0" label-width="5px"
prop="dedgrp.cbs.nom1.amt" prop="dedgrp.cbs.nom1.amt"
> >
<c-input-currency <c-input-currency
...@@ -134,9 +136,9 @@ ...@@ -134,9 +136,9 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="大写金额" prop="detp.amt"> <el-form-item label="大写金额" prop="detp.upamt">
<c-input <c-input
v-model="model.detp.amt" v-model="model.detp.upamt"
maxlength="76" maxlength="76"
placeholder="请输入大写金额" placeholder="请输入大写金额"
disabled disabled
...@@ -170,7 +172,7 @@ ...@@ -170,7 +172,7 @@
<c-col :span="13"> <c-col :span="13">
<c-form-item label="上下浮动限额" prop="dedgrp.rec.nomtop"> <c-form-item label="上下浮动限额" prop="dedgrp.rec.nomtop">
<c-input <c-input
v-model="model.dedgrp.rec.nomton" v-model="model.dedgrp.rec.nomtop"
maxlength="9" maxlength="9"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Positive" placeholder="请输入Amount Tolerance - Positive"
...@@ -211,7 +213,6 @@ ...@@ -211,7 +213,6 @@
<el-form-item label="信用证最大金额" prop="dedgrp.cbs.max.cur"> <el-form-item label="信用证最大金额" prop="dedgrp.cbs.max.cur">
<c-select <c-select
v-model="model.dedgrp.cbs.max.cur" v-model="model.dedgrp.cbs.max.cur"
style="width: 95%"
placeholder="请选择Currency" placeholder="请选择Currency"
disabled disabled
> >
...@@ -227,7 +228,7 @@ ...@@ -227,7 +228,7 @@
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item label="" label-width="0" prop="dedgrp.cbs.max.amt"> <el-form-item label="" label-width="5px" prop="dedgrp.cbs.max.amt">
<c-input <c-input
v-model="model.dedgrp.cbs.max.amt" v-model="model.dedgrp.cbs.max.amt"
placeholder="请输入信用证最大金额" placeholder="请输入信用证最大金额"
...@@ -457,28 +458,28 @@ ...@@ -457,28 +458,28 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="远期付款指示" prop="dedgrp.blk.dftat"> <el-form-item label="天数" prop="dedgrp.rec.tenmaxday">
<c-input <c-input
type="textarea" v-model="model.dedgrp.rec.tenmaxday"
v-model="model.dedgrp.blk.dftat"
maxlength="35" maxlength="35"
show-word-limit placeholder="请输入天数"
placeholder="请输入远期付款指示" :disabled = "model.dedgrp.rec.avbby == 'P'"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="交单期限" prop="dedgrp.blk.preper"> <el-form-item label="远期付款指示" prop="dedgrp.blk.dftat">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.dedgrp.blk.preper" v-model="model.dedgrp.blk.dftat"
maxlength="35" maxlength="35"
show-word-limit show-word-limit
placeholder="请输入交单期限" placeholder="请输入远期付款指示"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- ========================右边======================= --> <!-- ========================右边======================= -->
...@@ -486,7 +487,7 @@ ...@@ -486,7 +487,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="摘要" prop="dedgrp.rec.nam"> <el-form-item label="摘要" prop="dedgrp.rec.nam">
<c-input <c-input
align="middle" text-align="middle"
v-model="model.dedgrp.rec.nam" v-model="model.dedgrp.rec.nam"
maxlength="40" maxlength="40"
disabled disabled
...@@ -505,6 +506,8 @@ ...@@ -505,6 +506,8 @@
}" }"
:disabled="true" :disabled="true"
:isAdrblk="false" :isAdrblk="false"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -600,6 +603,8 @@ ...@@ -600,6 +603,8 @@
}" }"
:disabled="true" :disabled="true"
:isAdrblk="false" :isAdrblk="false"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
...@@ -682,6 +687,19 @@ ...@@ -682,6 +687,19 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="交单期限" prop="dedgrp.blk.preper">
<c-input
type="textarea"
v-model="model.dedgrp.blk.preper"
maxlength="35"
show-word-limit
placeholder="请输入交单期限"
></c-input>
</el-form-item>
</c-col>
</c-col> </c-col>
<!-- <!--
...@@ -810,31 +828,7 @@ export default { ...@@ -810,31 +828,7 @@ export default {
trade: "", trade: "",
}; };
}, },
methods: { ...Event, methods: { ...Event },
mytypeChange() {
if (this.model.dedgrp.rec.mytype == "F") {
this.model.dedgrp.rec.tratyp = "";
this.model.dedgrp.rec.sdsrfs = "";
this.model.dedgrp.rec.shptrs = "";
this.model.dedgrp.rec.shpfro = "";
this.model.dedgrp.rec.shpto = "";
this.model.dedgrp.rec.shppro = "";
}
},
avbbykeyEvent(){
if(this.model.dedgrp.rec.avbby == 'P'){
this.model.dedgrp.rec.tenmaxday = 0;
this.model.dedgrp.blk.defdet = "";
}
this.executeCheck("dedgrp.rec.avbby").then(
(res) => {
if (res.respCode == SUCCESS){
Utils.copyValueFromVO(this.model, res.data);
}
}
);
},
},
created: function () {}, created: function () {},
computed: { computed: {
flag() { flag() {
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<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> -->
<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">
<!--PD000017 --> <!--PD000017 -->
<el-tab-pane label="基本信息" name="ovwp"> <el-tab-pane label="基本信息" name="ovwp">
<m-ovwp :model="model" :codes="codes"/> <c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000494 --> <!--PD000494 -->
<el-tab-pane label="其他当事人" name="detp1"> <el-tab-pane label="其他当事人" name="detp1">
<m-detp1 :model="model" :codes="codes"/> <c-content>
<m-detp1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000525 --> <!--PD000525 -->
...@@ -20,7 +48,7 @@ ...@@ -20,7 +48,7 @@
<!--PD000405 --> <!--PD000405 -->
<el-tab-pane label="单据要求" name="detp"> <el-tab-pane label="单据要求" name="detp">
<m-detp :model="model" :codes="codes"/> <m-detp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
...@@ -55,24 +83,45 @@ ...@@ -55,24 +83,45 @@
<el-tab-pane label="授信额度" name="limitbody"> <el-tab-pane label="授信额度" name="limitbody">
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000548 -->
<!--
<el-tab-pane label="PD000548" name="stament">
<m-stament :model="model" :codes="codes"/>
</el-tab-pane>
-->
<!--PD000001 -->
<!--
<el-tab-pane label="PD000001" name="aamp">
<m-aamp :model="model" :codes="codes"/>
</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>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import Utils from "~/utils/index";
import Detame from "~/model/Detame" import CodeTable from "~/config/CodeTable";
import commonProcess from "~/mixin/commonProcess" import Detopn from "~/model/Detopn";
import Check from "~/model/Detame/Check" import commonProcess from "~/mixin/commonProcess";
import Default from "~/model/Detame/Default" import commonFuncs from "~/mixin/commonFuncs";
import Pattern from "~/model/Detame/Pattern" import Check from "~/model/Detopn/Check";
import Ovwp from "./Ovwp" import Default from "~/model/Detopn/Default";
import Detp from "./Detp" import Pattern from "~/model/Detopn/Pattern";
import Detp1 from "./Detp1" import Ovwp from "./Ovwp";
import Detp2 from "./Detp2" import Detp from "./Detp";
import Stament from "./Stament" import Detp1 from "./Detp1";
import Aamp from "./Aamp" import Detp2 from "./Detp2";
import Stament from "./Stament";
import Aamp from "./Aamp";
import Setpan from "~/views/Public/Setpan"; import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan"; import Glepan from "~/views/Public/Glepan";
...@@ -81,16 +130,15 @@ import Coninfp from "~/views/Public/Coninfp"; ...@@ -81,16 +130,15 @@ import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody"; import Limitbody from "~/views/Public/Limitbody";
export default { export default {
name: "Detame", name: "Detopn",
components:{ components: {
"m-ovwp" : Ovwp, "m-ovwp": Ovwp,
"m-detp" : Detp, "m-detp": Detp,
"m-detp1" : Detp1, "m-detp1": Detp1,
"m-detp2" : Detp2, "m-detp2": Detp2,
"m-stament" : Stament, "m-stament": Stament,
"m-aamp" : Aamp, "m-aamp": Aamp,
"m-setpan": Setpan, "m-setpan": Setpan,
"m-glepan": Glepan, "m-glepan": Glepan,
"m-engp": Engp, "m-engp": Engp,
...@@ -100,48 +148,42 @@ export default { ...@@ -100,48 +148,42 @@ export default {
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 // mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
computed: {},
data() {
return { return {
tabVal: "ovwp", tabVal: "ovwp",
trnName: "detame", trnName: "detopn",
model: new Detame().data, model: new Detopn().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: { ...CodeTable },
...CodeTable };
}, },
} methods: {
}, },
methods:{ created: async function () {
myTabClick(tab){ console.log("进入detopn交易");
this.tabClick(tab) //let rtnmsg = await this.init({})
/** let rtnmsg = await this.init(this.$route.query);
* do it yourself if (rtnmsg.respCode == SUCCESS) {
**/ //更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
} }
}, } else {
created:async function(){ this.$notify.error({ title: "错误", message: "服务请求失败!" });
console.log("进入detame交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
} }
else },
{ };
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script> </script>
<style> <style>
</style> </style>
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