Commit d66e5fd4 by zhoutian

333

parents 6fe3ed4c 59909f72
...@@ -2980,6 +2980,12 @@ const CodeTable = { ...@@ -2980,6 +2980,12 @@ const CodeTable = {
{ label: "票据买断", value: "F" }, { label: "票据买断", value: "F" },
{ label: "出口贴现", value: "D" }, { label: "出口贴现", value: "D" },
], ],
fintyp1:[
{label:"进口信用证押汇",value:"BRF"},
{label:"进口代收押汇",value:"BCF"},
{label:"汇出汇款押汇",value:"ECF"},
{label:"打包贷款",value:"PCL"},
],
fktype: [ fktype: [
{ label: "邮划", value: "Y" }, { label: "邮划", value: "Y" },
{ label: "电划", value: "D" }, { label: "电划", value: "D" },
......
...@@ -106,5 +106,8 @@ export default { ...@@ -106,5 +106,8 @@ export default {
async handlePass(data) { async handlePass(data) {
this.$store.state.Transaction.operateFuns[data.operateId]["pass"]() this.$store.state.Transaction.operateFuns[data.operateId]["pass"]()
}, },
async handleRefuse(data) {
this.$store.state.Transaction.operateFuns[data.operateId]["refuse"]()
},
}, },
}; };
...@@ -197,6 +197,7 @@ export default { ...@@ -197,6 +197,7 @@ export default {
} }
} }
} }
this.$el.querySelectorAll('input').forEach(input => input.blur())
}) })
}, },
/** /**
......
import Utils from "~/utils"
/**
* Busvol Check规则
*/
let checkObj={
"" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
\ No newline at end of file
/**
* Busvol Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"": Utils.defaultFunction,
}
import Api from "~/service/Api"
import Utils from "~/utils"
export default{
async handleSearch(){
},
async handleReset(){
}
}
\ No newline at end of file
export default {
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Gitset{
constructor () {
this.data = {
}
}
}
\ No newline at end of file
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({
type: 'success',
message: '获取成功!'
});
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onSeainf() {},
onExtkey() {},
mytypeChange() {},
avbbykeyEvent() {},
recTratypChange() {},
async onBenpDet() {
let rtnmsg = await this.executeRule("benp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onAplpDet() {
}, let rtnmsg = await this.executeRule("aplp.det")
async onBenpDet(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("benp.det") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onLcrdftatButtxmsel() {
}, let rtnmsg = await this.executeRule("lcrdftat.buttxmsel")
async onAplpDet(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("aplp.det") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onPreperButtxmsel() {
}, let rtnmsg = await this.executeRule("preper.buttxmsel")
async onLcrdftatButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("lcrdftat.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onLcrgodButtxmsel() {
}, let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
async onPreperButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("preper.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onLcrdocButtxmsel() {
}, let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
async onLcrgodButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("lcrgod.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onAdlcndButtxmsel() {
}, let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
async onLcrdocButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("lcrdoc.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onInsbnkButtxmsel() {
}, let rtnmsg = await this.executeRule("insbnk.buttxmsel")
async onAdlcndButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("adlcnd.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onSetmodDet() {
}, let rtnmsg = await this.executeRule("setmod.det")
async onInsbnkButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("insbnk.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
}
},
} }
\ No newline at end of file
...@@ -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":[
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
], ],
"dedgrp.cbs.nom1.amt":[ "dedgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: true, 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位" }
], ],
...@@ -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: "number", required: false, 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"
export default class Detame{ export default class Detopn{
constructor () { constructor () {
this.data = { this.data = {
detp:{ detp:{
...@@ -147,6 +149,14 @@ export default class Detame{ ...@@ -147,6 +149,14 @@ export default class Detame{
pts:new Pts().data, pts:new Pts().data,
}, },
}, },
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
leta2bl1blk: "",
letbenl2blk: "",
letbenl1blk: "",
letissl1blk: "",
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -2,127 +2,104 @@ import Api from "~/service/Api" ...@@ -2,127 +2,104 @@ import Api from "~/service/Api"
import Utils from "~/utils/index" 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.model.dedgrp.rec.ownref = rtnmsg.data.dedgrp_rec_ownref; this.$message({
this.$message({ type: 'success',
type: 'success', message: '获取成功!'
message: '获取成功!' });
}); } else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); onSeainf() {},
} onExtkey() {},
}, mytypeChange() {},
async onBenpDet(){ avbbykeyEvent() {},
let rtnmsg = await this.executeRule("benp.det") recTratypChange() {},
if(rtnmsg.respCode == SUCCESS) async onBenpDet() {
{ let rtnmsg = await this.executeRule("benp.det")
//TODO 处理数据逻辑 if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onAplpDet() {
}, let rtnmsg = await this.executeRule("aplp.det")
async onAplpDet(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("aplp.det") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onLcrdftatButtxmsel() {
}, let rtnmsg = await this.executeRule("lcrdftat.buttxmsel")
async onLcrdftatButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("lcrdftat.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onPreperButtxmsel() {
}, let rtnmsg = await this.executeRule("preper.buttxmsel")
async onPreperButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("preper.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onLcrgodButtxmsel() {
}, let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
async onLcrgodButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("lcrgod.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onLcrdocButtxmsel() {
}, let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
async onLcrdocButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("lcrdoc.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onAdlcndButtxmsel() {
}, let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
async onAdlcndButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("adlcnd.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onInsbnkButtxmsel() {
}, let rtnmsg = await this.executeRule("insbnk.buttxmsel")
async onInsbnkButtxmsel(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("insbnk.buttxmsel") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
} } else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async onSetmodDet() {
}, let rtnmsg = await this.executeRule("setmod.det")
async onSetmodDet() { if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("setmod.det") //TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 } else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
else { },
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
} }
\ No newline at end of file
...@@ -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":[
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
], ],
"dedgrp.cbs.nom1.amt":[ "dedgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: true, 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位" }
], ],
...@@ -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: "number", required: false, 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
...@@ -153,9 +153,10 @@ export default class Detopn{ ...@@ -153,9 +153,10 @@ 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,
letbenl1blk: "",
letissl1blk: "",
leta2bl1blk: "",
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
} }
\ No newline at end of file
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bfdgrp.cbs.max.amt":[ "bfdgrp.cbs.max.amt":[
{type: "number", required: false, 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位" }
], ],
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"bfdgrp.cbs.opn1.amt":[ "bfdgrp.cbs.opn1.amt":[
{type: "number", required: false, 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位" }
], ],
......
import Utils from "~/utils"
/**
* Iaefts Check规则
*/
let checkObj={
"" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
\ No newline at end of file
/**
* Iaefts Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"": Utils.defaultFunction,
}
...@@ -3,16 +3,18 @@ import Utils from "~/utils" ...@@ -3,16 +3,18 @@ import Utils from "~/utils"
export default { export default {
async handleSearch(){ async handleSearch(){
let rtnmsg = await this.executeRule("infbut.butprt") console.log(this.tempData.tdata)
if(rtnmsg.respCode == SUCCESS) // this.stmData.data=this.tempData.tdata
{ // let rtnmsg = await this.executeRule("infbut.butprt")
//TODO 处理数据逻辑 // if(rtnmsg.respCode == SUCCESS)
// {
} // //TODO 处理数据逻辑
else // this.data=this.tdata
{ // }
this.$notify.error({title: '错误',message: '服务请求失败!'}); // else
} // {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
}, },
async handleReset(){ async handleReset(){
......
export default {
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Gitset{
constructor () {
this.data = {
}
}
}
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import { rejrow } from "~/service/business/trnrel" import { rejrow, reprow } from "~/service/business/trnrel"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
async onSeaown() { async onSeaown() {
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
const operateId = await this.$store.dispatch('Transaction/setOperateFuns', { const operateId = await this.$store.dispatch('Transaction/setOperateFuns', {
pass: this.onRelrow.bind(this, idx), pass: this.onRelrow.bind(this, idx),
refuse: () => { alert("功能开发中") } refuse: this.onReprow.bind(this, idx),
}); });
this.$router.push({ path: viewurl, query: { trn: row['INR'], operateId: operateId } }); this.$router.push({ path: viewurl, query: { trn: row['INR'], operateId: operateId } });
...@@ -227,15 +227,61 @@ export default { ...@@ -227,15 +227,61 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
async onReprow() { async onReprow(idx) {
let rtnmsg = await this.executeRule("reprow") this.$confirm('您确定退回该笔交易?', '提示', {
if (rtnmsg.respCode == SUCCESS) { confirmButtonText: '确定',
//TODO 处理数据逻辑 cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
const selIds = [idx + 1]; //rowno选中行
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
} let params = { selDst: selDst, selIds: selIds };
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); let rtnmsg = await reprow(this.wrapper(params))
} if (rtnmsg.respCode == SUCCESS) {
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'
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'trnrel');
this.handleSearch()
});
}
}
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 = errorMsg + errorMsgkey + ':' + errorMsgVal + ";";
}
} else if (rtnmsg.respMsg) {
errorMsg = rtnmsg.respMsg;
}
this.$notify.error({ title: '错误', message: '退回失败!错误信息[' + errorMsg + ']' });
}
})
}, },
async onRejrow() { async onRejrow() {
console.log(this.getSelectedData()) console.log(this.getSelectedData())
......
...@@ -2,4 +2,8 @@ import Api from "~/service/Api" ...@@ -2,4 +2,8 @@ import Api from "~/service/Api"
export function rejrow(data) { export function rejrow(data) {
return Api.post('/business/trnrel/rejrow', data) return Api.post('/business/trnrel/rejrow', data)
}
export function reprow(data) {
return Api.post('/business/trnrel/reprow', data)
} }
\ No newline at end of file
...@@ -129,6 +129,7 @@ import Notice from "./Notice" ...@@ -129,6 +129,7 @@ import Notice from "./Notice"
import Iaefts from "./Iaefts" import Iaefts from "./Iaefts"
import Expben from "./Expben" import Expben from "./Expben"
import Busvol from "./Busvol"
import AssetInfo from "./AssetInfo" import AssetInfo from "./AssetInfo"
import AssetPub from "./AssetPub" import AssetPub from "./AssetPub"
...@@ -264,8 +265,8 @@ const BusRouter = [ ...@@ -264,8 +265,8 @@ const BusRouter = [
{ path: 'gitcrq', component: Gitcrq, name: 'Gitcrq', meta: { title: '进口保函索赔登记' } }, { path: 'gitcrq', component: Gitcrq, name: 'Gitcrq', meta: { title: '进口保函索赔登记' } },
{ path: 'ditdav', component: Ditdav, name: 'Ditdav', meta: { title: '信用证收单' } }, { path: 'ditdav', component: Ditdav, name: 'Ditdav', meta: { title: '信用证收单' } },
{ path: 'Infpty', component: Infpty, name: 'Infpty', meta: { title: 'Infpty' } }, { path: 'Infpty', component: Infpty, name: 'Infpty', meta: { title: '客户查询' } },
{ path: 'Dbipty', component: Dbipty, name: 'Dbipty', meta: { title: 'Dbipty' } }, { path: 'Dbipty', component: Dbipty, name: 'Dbipty', meta: { title: '客户静态信息管理' } },
{ path: 'betdcr', component: Betdcr, name: 'Betdcr', meta: { title: '出口信用证电提不符点/拒付' } }, { path: 'betdcr', component: Betdcr, name: 'Betdcr', meta: { title: '出口信用证电提不符点/拒付' } },
{ path: 'betdrv', component: Betdrv, name: 'Betdrv', meta: { title: '出口信用证单据修改' } }, { path: 'betdrv', component: Betdrv, name: 'Betdrv', meta: { title: '出口信用证单据修改' } },
{ path: 'letnot', component: Letnot, name: 'Letnot', meta: { title: '出口信用证预通知' } }, { path: 'letnot', component: Letnot, name: 'Letnot', meta: { title: '出口信用证预通知' } },
...@@ -278,8 +279,9 @@ const BusRouter = [ ...@@ -278,8 +279,9 @@ const BusRouter = [
{ path: 'notice', component: Notice, name: 'Notice', meta: { title: '通知公告设置' } }, { path: 'notice', component: Notice, name: 'Notice', meta: { title: '通知公告设置' } },
{ path: 'Iaefts', component: Iaefts, name: 'Iaefts', meta: { title: '进出口融资交易' } }, { path: 'Iaefts', component: Iaefts, name: 'Iaefts', meta: { title: '融资量交易' } },
{ path: 'Expben', component: Expben, name: 'Expben', meta: { title: '费用收益交易' } }, { path: 'Expben', component: Expben, name: 'Expben', meta: { title: '费用收益' } },
{ path: 'Busvol', component: Busvol, name: 'Busvol', meta: { title: '业务量交易' } },
{ path: 'assetinfo', component: AssetInfo, name: 'AssetInfo', meta: { title: '资产信息管理' } }, { path: 'assetinfo', component: AssetInfo, name: 'AssetInfo', meta: { title: '资产信息管理' } },
{ path: 'assetpub', component: AssetPub, name: 'AssetPub', meta: { title: '资产发布信息管理' } }, { path: 'assetpub', component: AssetPub, name: 'AssetPub', meta: { title: '资产发布信息管理' } },
......
<template>
<div class="eContainer">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<m-Volume :model="model" :codes="codes" />
</el-form>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import CodeTable from "~/config/CodeTable";
import Check from "~/model/Busvol/Check";
import Default from "~/model/Busvol/Default";
import Pattern from "~/model/Busvol/Pattern"
import Busvol from "~/model/Busvol"
import Volume from "./Volume";
export default {
name:"Busvol",
mixins:[commonProcess, commonFuncs],
components:{
"m-Volume" : Volume,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal:"Volume",
trnNam:"Busvol",
model: null,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
}
},
methods: {
},
created: async function () {
console.log("进入业务量交易");
},
};
</script>
<style></style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Description of Goods" prop="dedgrp.blk.lcrgod"> <el-form-item label="货物描述" prop="dedgrp.blk.lcrgod">
<c-input type="textarea" v-model="model.dedgrp.blk.lcrgod" maxlength="65" show-word-limit placeholder="请输入Description of Goods" ></c-input> <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.dedgrp.blk.lcrgod" style="width:70%;margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入Description of Goods" ></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型" prop="dedgrp.rec.stagod">
<c-select v-model="model.dedgrp.rec.stagod" style="width:70%" placeholder="请选择货物类型">
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-button size="small" type="primary" icon="el-icon-search" @click="onLcrgodButtxmsel"> <el-form-item label="单据要求" prop="dedgrp.blk.lcrdoc">
... <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.dedgrp.blk.lcrdoc" maxlength="1950" style="width:70%;margin-right:20px;" show-word-limit placeholder="请输入单据要求" ></c-input>
</c-button> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="附加条款" prop="dedgrp.blk.adlcnd">
<c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.dedgrp.blk.adlcnd" style="width:70%;margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入附加条款" ></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="给付款、承兑、议付行的指示" prop="dedgrp.blk.insbnk">
<c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.dedgrp.blk.insbnk" style="width:70%;margin-right:20px;" maxlength="325" show-word-limit placeholder="请输入付行的指示" ></c-input>
</el-form-item>
</c-col>
<!--
<c-col :span="12"> <c-col :span="12">
<span v-text="model.detp.hwfwms" data-path=".detp.hwfwms" > </span> <span v-text="model.detp.hwfwms" data-path=".detp.hwfwms" > </span>
</c-col> </c-col>
...@@ -21,12 +48,7 @@ ...@@ -21,12 +48,7 @@
<span v-text="model.detp.hwtype" data-path=".detp.hwtype" > </span> <span v-text="model.detp.hwtype" data-path=".detp.hwtype" > </span>
</c-col> </c-col>
<c-col :span="12">
<el-form-item label="Goods Code for Statistics" prop="dedgrp.rec.stagod">
<c-select v-model="model.dedgrp.rec.stagod" style="width:100%" placeholder="请选择Goods Code for Statistics">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="单据条款" prop="dedgrp.blk.lcrdoc"> <el-form-item label="单据条款" prop="dedgrp.blk.lcrdoc">
...@@ -63,13 +85,14 @@ ...@@ -63,13 +85,14 @@
... ...
</c-button> </c-button>
</c-col> </c-col>
-->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "~/model/Detame/Event" import Event from "~/model/Detopn/Event"
export default { export default {
inject: ['root'], inject: ['root'],
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="12"> <!-- ========================= Left ========================= -->
<span v-text="model.detp.fenzhu" data-path=".detp.fenzhu" > </span> <c-col :span="11">
</c-col> <el-form-item label="分批装运货物" prop="dedgrp.rec.shppar">
<c-select v-model="model.dedgrp.rec.shppar" style="width:100%" placeholder="请选择">
<c-col :span="12"> <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value">
<el-form-item label="Partial Shipment" prop="dedgrp.rec.shppar"> </el-option>
<c-select v-model="model.dedgrp.rec.shppar" style="width:100%" placeholder="请选择Partial Shipment"> </c-select>
</c-select>
</el-form-item> </el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.detp.hwzydi" data-path=".detp.hwzydi" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="分期装运/提供服务" prop="dedgrp.rec.fqzytgfw"> <el-form-item label="分期装运/提供服务" prop="dedgrp.rec.fqzytgfw">
<c-select v-model="model.dedgrp.rec.fqzytgfw" style="width:100%" placeholder="请选择分期装运/提供服务"> <c-select v-model="model.dedgrp.rec.fqzytgfw" placeholder="请选择" :disabled="model.dedgrp.rec.shppar != 'Y'" style="width:100%">
</c-select> <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col>
<el-form-item label="分期装运/提供服务约定" prop="dedgrp.rec.fqtime">
<c-col :span="12"> <c-input type="textarea" :rows="3" v-model="model.dedgrp.rec.fqtime" maxlength="140" show-word-limit placeholder="请输入" style="width:100%"></c-input>
<el-form-item label="分期装运/提供服务" prop="dedgrp.rec.shpfro">
<c-input type="textarea" v-model="model.dedgrp.rec.shpfro" maxlength="35" show-word-limit placeholder="请输入分期装运/提供服务" ></c-input>
</el-form-item> </el-form-item>
</c-col>
<el-form-item label="货物运输/交货/服务方式" prop="dedgrp.rec.tratyp">
<c-col :span="12"> <c-select v-model="model.dedgrp.rec.tratyp" style="width:100%" placeholder="请选择" @change="recTratypChange" :disabled="model.dedgrp.rec.mytype == 'F'">
<el-form-item label="分期时镧表" prop="dedgrp.rec.fqtime"> <el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label"
<c-input type="textarea" v-model="model.dedgrp.rec.fqtime" maxlength="35" show-word-limit placeholder="请输入分期时镧表" ></c-input> :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col>
<el-form-item v-if="model.dedgrp.rec.mytype == 'H'" label="手输运输方式" prop="dedgrp.rec.sdsrfs">
<c-col :span="12"> <c-input type="textarea" v-model="model.dedgrp.rec.sdsrfs" :disabled="this.mytypeFlag" maxlength="140" show-word-limit placeholder="请输入"></c-input>
<el-form-item label="货物运输或交货方式/服务方式" prop="dedgrp.rec.shpto"> </el-form-item>
<c-input type="textarea" v-model="model.dedgrp.rec.shpto" maxlength="35" show-word-limit placeholder="请输入货物运输或交货方式/服务方式" ></c-input> <el-form-item v-if="model.dedgrp.rec.mytype == 'F'" label="服务提供方式" prop="dedgrp.rec.sdsrfs">
<c-input type="textarea" v-model="model.dedgrp.rec.sdsrfs" maxlength="140" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
<el-form-item v-if="model.dedgrp.rec.mytype == '3'" label="手输运输方式/服务提供方式" prop="dedgrp.rec.sdsrfs">
<c-input type="textarea" v-model="model.dedgrp.rec.sdsrfs" :disabled="this.mytypeFlag" maxlength="140" show-word-limit placeholder="请输入"></c-input>
</el-form-item> </el-form-item>
</c-col>
<el-form-item label="合同编号" prop="dedgrp.rec.conno">
<c-col :span="12"> <c-input v-model="model.dedgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input>
<el-form-item label="运输方式" prop="dedgrp.rec.tratyp">
<c-select v-model="model.dedgrp.rec.tratyp" style="width:100%" placeholder="请选择运输方式">
</c-select>
</el-form-item> </el-form-item>
</c-col>
<el-form-item label="合同金额" prop="dedgrp.rec.conamt">
<c-col :span="12"> <c-col :span="10">
<span v-text="model.detp.sdysfs" data-path=".detp.sdysfs" > </span> <c-select v-model="model.dedgrp.rec.concur" style="width:90%" placeholder="请选择">
</c-col> <el-option label="CNY 人民币" value="CNY"></el-option>
</c-select>
<c-col :span="12"> </c-col>
<el-form-item label="输入运输方式" prop="dedgrp.rec.sdsrfs"> <c-col :span="14">
<c-input type="textarea" v-model="model.dedgrp.rec.sdsrfs" maxlength="35" show-word-limit placeholder="请输入输入运输方式" ></c-input> <c-input v-model="model.dedgrp.rec.conamt" placeholder="请输入"></c-input>
</c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <!-- ========================= Right ========================= -->
<el-form-item label="服务提供地点" prop="dedgrp.rec.shppro"> <c-col :span="11" :offset="1">
<c-input type="textarea" v-model="model.dedgrp.rec.shppro" maxlength="35" show-word-limit placeholder="请输入服务提供地点" ></c-input> <el-form-item label="货物转运地(港)" prop="dedgrp.rec.shpfro">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.dedgrp.rec.shpfro" :disabled="model.dedgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
</el-form-item> </el-form-item>
</c-col>
<el-form-item label="货物目的地/交货地(港)" prop="dedgrp.rec.shpto">
<c-col :span="12"> <c-input type="textarea" style="width:100%" :rows="3" v-model="model.dedgrp.rec.shpto" :disabled="model.dedgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
<el-form-item label="合同编号" prop="dedgrp.rec.conno">
<c-input v-model="model.dedgrp.rec.conno" maxlength="35" placeholder="请输入合同编号"></c-input>
</el-form-item> </el-form-item>
</c-col>
<el-form-item label="服务提供地点" prop="dedgrp.rec.shppro">
<c-col :span="12"> <c-input type="textarea" style="width:100%" :rows="3" v-model="model.dedgrp.rec.shppro" :disabled="model.dedgrp.rec.mytype == 'H'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
<el-form-item label="合同币种" prop="dedgrp.rec.concur">
<c-select v-model="model.dedgrp.rec.concur" style="width:100%" placeholder="请选择合同币种">
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!--
<c-col :span="12">
<span v-text="model.detp.fenzhu"
a-path=".detp.fenzhu" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="合同金额" prop="dedgrp.rec.conamt"> <c-col :span="12">
<c-input v-model="model.dedgrp.rec.conamt" placeholder="请输入合同金额"></c-input> <span v-text="model.detp.hwzydi" data-path=".detp.hwzydi" > </span>
</el-form-item> </c-col>
</c-col>
<c-col :span="12">
<span v-text="model.detp.sdysfs" data-path=".detp.sdysfs" > </span>
</c-col>
-->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "~/model/Detame/Event" import Event from "~/model/Detopn/Event"
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -96,7 +102,7 @@ export default { ...@@ -96,7 +102,7 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
mytypeFlag:true,
} }
}, },
methods:{...Event}, methods:{...Event},
......
<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"
<!--PD000017 --> :handleCheck="handleCheck"
<el-tab-pane label="PD000017" name="ovwp"> :handleStash="handleStash"
<m-ovwp :model="model" :codes="codes"/> >
</el-tab-pane> <el-button size="small">流程附言</el-button>
<el-button size="small">交易历史</el-button>
<!--PD000405 --> <el-button size="small">备忘录</el-button>
<el-tab-pane label="PD000405" name="detp"> <el-button size="small">影像信息</el-button>
<m-detp :model="model" :codes="codes"/> <!-- <el-button size="small">保存模板</el-button> -->
</el-tab-pane> <!-- <el-button size="small">使用模板</el-button> -->
<el-button size="small">制裁信息</el-button>
<!--PD000494 --> <!-- <el-button size="small">拆分报文</el-button> -->
<el-tab-pane label="PD000494" name="detp1"> <el-button size="small">智能提示</el-button>
<m-detp1 :model="model" :codes="codes"/> </c-function-btn>
</el-tab-pane>
<el-form
<!--PD000525 --> :model="model"
<el-tab-pane label="PD000525" name="detp2"> :rules="rules"
<m-detp2 :model="model" :codes="codes"/> ref="modelForm"
</el-tab-pane> label-width="150px"
label-position="right"
<!--PD000548 --> size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000017 -->
<el-tab-pane label="基本信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000494 -->
<el-tab-pane label="其他当事人" name="detp1">
<c-content>
<m-detp1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000525 -->
<el-tab-pane label="详细信息" name="detp2">
<m-detp2 :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000405 -->
<el-tab-pane label="单据要求" name="detp">
<m-detp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane>
<el-tab-pane label="表外" name="engp">
<!--PD000027 -->
<c-content>
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文及面函" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="授信额度" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000548 -->
<!--
<el-tab-pane label="PD000548" name="stament"> <el-tab-pane label="PD000548" name="stament">
<m-stament :model="model" :codes="codes"/> <m-stament :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
-->
<!--PD000001 --> <!--PD000001 -->
<!--
<el-tab-pane label="PD000001" name="aamp"> <el-tab-pane label="PD000001" name="aamp">
<m-aamp :model="model" :codes="codes"/> <m-aamp :model="model" :codes="codes"/>
</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>
</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 Glepan from "~/views/Public/Glepan";
import Engp from "~/views/Public/Engp";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
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,
provide() { "m-glepan": Glepan,
return { "m-engp": Engp,
root: this "m-coninfp": Coninfp,
} "m-docpan": Docpan,
}, "m-limitbody": Limitbody,
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 },
data(){ provide() {
return { return {
tabVal: "", root: this,
trnName: "detame", };
model: new Detame().data, },
checkRules: Check, // mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入detame交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
} mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
else computed: {},
{ data() {
this.$notify.error({title: '错误',message: '服务请求失败!'}); return {
} tabVal: "ovwp",
trnName: "detopn",
model: new Detopn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
};
},
methods: {
},
created: async function () {
console.log("进入detopn交易");
//let rtnmsg = await this.init({})
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
//更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
} },
};
</script> </script>
<style> <style>
</style> </style>
...@@ -129,14 +129,14 @@ export default { ...@@ -129,14 +129,14 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "", tabVal: "drv",
trnName: "detdrv", trnName: "detdrv",
model: new Detdrv().data, model: new Detdrv().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {...CodeTable
}, },
} }
}, },
......
...@@ -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,14 +181,13 @@ ...@@ -181,14 +181,13 @@
--> -->
<c-ptapdome <c-ptapdome
:disabledJigomc="true"
:model="model" :model="model"
:argadr="{ :argadr="{
title: '开证行', title: '开证行',
rol: 'iss', rol: 'iss',
grp: 'dedgrp' grp: 'dedgrp'
}" }"
:isIss="true" :isIss="false"
></c-ptapdome> ></c-ptapdome>
...@@ -209,7 +208,7 @@ ...@@ -209,7 +208,7 @@
<!--=== ==========右边=============== --> <!--=== ==========右边=============== -->
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-col :span="11"> <c-col :span="24">
<el-form-item label="是否可保兑" prop="dedgrp.rec.bdflg"> <el-form-item label="是否可保兑" prop="dedgrp.rec.bdflg">
<c-select <c-select
v-model="model.dedgrp.rec.bdflg" v-model="model.dedgrp.rec.bdflg"
...@@ -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>
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
<!-- ========================= Left ========================= --> <!-- ========================= Left ========================= -->
<c-col :span="11"> <c-col :span="11">
<el-form-item label="分批装运货物" prop="dedgrp.rec.shppar"> <el-form-item label="分批装运货物" prop="dedgrp.rec.shppar">
<c-select v-model="model.dedgrp.rec.shppar" style="width:50%" placeholder="请选择"> <c-select v-model="model.dedgrp.rec.shppar" style="width:100%" placeholder="请选择">
<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>
</c-select> </c-select>
</el-form-item> </el-form-item>
<el-form-item label="分期装运/提供服务" prop="dedgrp.rec.fqzytgfw"> <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:50%"> <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>
</c-select> </c-select>
...@@ -22,13 +22,11 @@ ...@@ -22,13 +22,11 @@
</el-form-item> </el-form-item>
<el-form-item label="货物运输/交货/服务方式" prop="dedgrp.rec.tratyp"> <el-form-item label="货物运输/交货/服务方式" prop="dedgrp.rec.tratyp">
<c-col :span="10"> <c-select v-model="model.dedgrp.rec.tratyp" style="width:100%" placeholder="请选择" @change="recTratypChange" :disabled="model.dedgrp.rec.mytype == 'F'">
<c-select v-model="model.dedgrp.rec.tratyp" style="width:90%" placeholder="请选择" @change="recTratypChange" :disabled="model.dedgrp.rec.mytype == 'F'">
<el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label" <el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</c-select> </c-select>
</c-col>
</el-form-item> </el-form-item>
<el-form-item v-if="model.dedgrp.rec.mytype == 'H'" label="手输运输方式" prop="dedgrp.rec.sdsrfs"> <el-form-item v-if="model.dedgrp.rec.mytype == 'H'" label="手输运输方式" prop="dedgrp.rec.sdsrfs">
...@@ -75,7 +73,8 @@ ...@@ -75,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>
...@@ -103,7 +102,7 @@ export default { ...@@ -103,7 +102,7 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
mytypeFlag:true,
} }
}, },
methods:{...Event}, methods:{...Event},
......
...@@ -168,7 +168,6 @@ export default { ...@@ -168,7 +168,6 @@ export default {
}; };
}, },
methods: { methods: {
tabClick() {},
}, },
created: async function () { created: async function () {
console.log("进入detopn交易"); console.log("进入detopn交易");
......
<template> <template>
<el-table <el-table
:data="data" :data="tableData"
border border
stripe stripe
:show-header="false" :show-header="false"
:cell-style="cellSttyle" :cell-style="cellSttyle"
> >
<el-table-column prop="title" align="center"> <el-table-column prop="label" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<c-button <c-button
@click.native="onNarBtnClick(scope.row.url, scope.row.hotsubx)" @click="onNarBtnClick(scope.row.url, scope.row.label)"
:title="scope.row.title" :label="scope.row.label"
:disabled="scope.row.disabled" :disabled="scope.row.disabled"
>{{ scope.row.title }}</c-button >{{ scope.row.label }}</c-button
> >
<!-- <el-link <!-- <el-link
:disabled="scope.row.disabled" :disabled="scope.row.disabled"
:href="scope.row.url" :href="scope.row.url"
v-if="scope.row.title" v-if="scope.row.title"
>{{ scope.row.title }}</el-link >{{ scope.row.title }}</el-link
> --> > -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</template> </template>
<script> <script>
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["data", "model"], props: ["data", "model"],
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
cellSttyle: { height: "25px" }, cellSttyle: { height: "25px" },
}; meumItem: [],
}, };
methods: { },
//各入口按钮请求 methods: {
async onNarBtnClick(href, hotsubx) { //各入口按钮请求
let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`); async onNarBtnClick(url, label) {
console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]); let key = 0;
if ((rtnmsg.respCode == SUCCESS)) {
this.$router.history.push(href); for(let i = 1; i <= 11 ; i++){
} else { let temp_label = this.model.cfgfil['subtxt'+i];
this.$notify.error({ title: "错误", message: "服务请求失败!" }); if(temp_label == label){
} key = i;
break;
}
}
let rtnmsg = await this.executeRule("cfgfil.hotsub"+key);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
this.$router.history.push("/business/" + url);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
// let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`);
// console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]);
// if (rtnmsg.respCode == SUCCESS) {
// this.$router.history.push(href);
// } else {
// this.$notify.error({
// title: "错误",
// message: "服务请求失败!",
// });
// }
},
},
computed: {
tableData() {
const arr = [];
var data = this.data;
for (let i = 0; i < data.length; i++) {
const items = data[i].split("\t");
arr.push({
url: items[0],
label: items[1],
disabled: items[2] == "N" ? true : false,
other: items[3],
});
}
console.log(arr);
return arr;
},
}, },
},
}; };
</script> </script>
<style> <style>
a { a {
text-decoration-line: none; text-decoration-line: none;
color: #606266; color: #606266;
} }
a:hover { a:hover {
color: blue; color: blue;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<c-page title="出口信用证查询"> <c-page title="出口信用证查询">
<!-- <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"> <el-form
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :model="model"
:rules="rules"
<!--PD000035 --> ref="modelForm"
<el-tab-pane label="查询" name="sel"> label-width="150px"
<m-sel :model="model" :codes="codes"/> label-position="right"
</el-tab-pane> size="small"
</c-tabs> :validate-on-rule-change="false"
</el-form> >
<c-grid-ety-prompt-dialog <c-tabs
ref="etyDialog" v-model="tabVal"
:promptData="promptData" ref="elment"
v-on:select-ety="selectEty" type="card"
> @tab-click="myTabClick"
</c-grid-ety-prompt-dialog> >
<!-- </div> --> <!--PD000035 -->
</c-page> <el-tab-pane label="查询" name="sel">
<m-sel :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<!-- </div> -->
</c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Detsel from "~/model/Detsel" import Detsel from "~/model/Detsel";
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Detsel/Check" import Check from "~/model/Detsel/Check";
import Default from "~/model/Detsel/Default" import Default from "~/model/Detsel/Default";
import Pattern from "~/model/Detsel/Pattern" import Pattern from "~/model/Detsel/Pattern";
import Sel from "./Sel" import Sel from "./Sel";
export default { export default {
name: "Detsel", name: "Detsel",
components:{ components: {
"m-sel" : Sel, "m-sel": Sel,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "", tabVal: "sel",
trnName: "detsel", trnName: "detsel",
model: new Detsel().data, model: new Detsel().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {},
}, };
}
}, },
methods:{ methods: {
myTabClick(tab){ myTabClick(tab) {
this.tabClick(tab) this.tabClick(tab);
/** /**
* do it yourself * do it yourself
**/ **/
} },
}, },
created:async function(){ created: async function () {
console.log("进入detsel交易"); console.log("进入detsel交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({});
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ //TODO 处理数据逻辑
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑 } else {
Utils.copyValueFromVO(this.model, rtnmsg.data); this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} };
</script> </script>
<style> <style>
</style> </style>
...@@ -142,7 +142,6 @@ ...@@ -142,7 +142,6 @@
placeholder="请输入Amount Tolerance - Negative" placeholder="请输入Amount Tolerance - Negative"
></c-input> ></c-input>
</c-col> </c-col>
</c-col> </c-col>
<!-- <c-col :span="12" style="text-align: left"> <!-- <c-col :span="12" style="text-align: left">
<el-form-item <el-form-item
......
<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"> <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"> -->
<el-tab-pane label="费用收益" name="ExpenseIncome"> <!-- <el-tab-pane label="费用收益" name="ExpenseIncome"> -->
<m-ExpenseIncome :model="model" :codes="codes"/> <m-ExpenseIncome :model="model" :codes="codes"/>
</el-tab-pane> <!-- </el-tab-pane> -->
</c-tabs> <!-- </c-tabs> -->
</el-form> </el-form>
</div> </div>
</template> </template>
......
<template> <template>
<div class="eContainer"> <div class="eContainer" style="height: 90%">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> :model="model"
:rules="rules"
<el-tab-pane label="进出口融资量" name="Finance"> ref="modelForm"
<m-Finance :model="model" :codes="codes"/> label-width="150px"
</el-tab-pane> label-position="right"
size="small"
</c-tabs> :validate-on-rule-change="false"
</el-form> >
</div> <m-Finance :model="model" :codes="codes" />
<!-- 去除tabs的蓝底下划线 -->
<!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> -->
<!-- Tabs 标签页 -->
<!-- <el-tab-pane label="进出口融资量" name="Finance"> -->
<!-- </el-tab-pane> -->
<!-- </c-tabs> -->
</el-form>
</div>
</template> </template>
<script> <script>
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import commonFuncs from "~/mixin/commonFuncs";
import CodeTable from "~/config/CodeTable";
import Iaefts from "~/model/Iaefts";
import Finance from "./Finance"
import Finance from "./Finance";
export default { export default {
name:"Iaefts", name: "Iaefts",
mixins: [commonProcess], mixins: [commonProcess, commonFuncs],
components:{
"m-Finance" : Finance,
},
provide() {
return {
root: this
}
},
data(){
return {
tabVal: "Finance",
trnName: "iaefts",
model: null,
rules: null,
codes: {
},
}
},
methods:{
tabClick(){
}
},
created:async function(){
console.log("进入进出口融资")
}
}
</script> components: {
"m-Finance": Finance,
},
provide() {
return {
root: this,
};
},
<style> data() {
return {
tabVal: "Finance",
trnName: "iaefts",
model: null,
checkRules: null,
defaultRules: null,
pattern: null,
rules: null,
codes: { ...CodeTable },
};
},
methods: {
},
created: async function () {
console.log("进入进出口融资");
},
};
</script>
</style> <style></style>
\ No newline at end of file
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<c-button size="small" type="primary">Use</c-button> <c-button size="small" type="primary">Use</c-button>
<c-button size="small" type="primary">Loginfo</c-button> <c-button size="small" type="primary">Loginfo</c-button>
</div> </div>
</p>
<c-row> <c-row>
<c-col :span="12"> <c-col :span="12">
<c-col :span="12"> <c-col :span="12">
......
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable
}, },
showflg: true, showflg: true,
} }
...@@ -152,7 +153,7 @@ export default { ...@@ -152,7 +153,7 @@ export default {
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
} }
else else
{ {
......
...@@ -31,39 +31,39 @@ export default { ...@@ -31,39 +31,39 @@ export default {
echartInstance: null, echartInstance: null,
//componentIndex //componentIndex
mapping: { mapping: {
0: "trnfnd", 0: "busvol",
1: "iaefts", 1: "iaefts",
2: "expben", 2: "expben",
}, },
category: [],
seriesData : [] ,
seriesData1 : [] ,
seriesData2 : [] ,
}; };
}, },
mounted() { mounted() {
this.$nextTick(() => { // 仅在整个视图都被渲染之后才会运行的代码
this.$nextTick(async() => {
await this.loadData();
this.loadCharts(); this.loadCharts();
this.loadChartsBind = this.loadCharts.bind(this); this.loadChartsBind = this.loadCharts.bind(this);
window.addEventListener("resize", this.loadChartsBind); window.addEventListener("resize", this.loadChartsBind);
}); });
}, },
methods: { methods: {
//加载图标函数 async loadData() {
async loadCharts() {
if (this.echartInstance) {
this.echartInstance.dispose();
}
this.echartInstance = echarts.init(
this.$el.querySelector(".chart-container .chartWrapper .chart")
);
//统计 业务量 //统计 业务量
let volume = await busvolume(); const volume = await busvolume();
//统计 融资量 //统计 融资量
let amount = await finamount(); const amount = await finamount();
//统计 费用收益 //统计 费用收益
let income = await expincome(); const income = await expincome();
//定义 seriesData数组 金额 category数组 客户名 let categoryArr = [];
let seriesData = []; //定义 seriesData数组 金额 category数组 客户名
let seriesData1 = []; // let seriesData = [];
let seriesData2 = []; // let seriesData1 = [];
let category = []; // let seriesData2 = [];
// 优先遍历客户名,方便后续的数组匹配 // 优先遍历客户名,方便后续的数组匹配
// volume.forEach((v) => { // volume.forEach((v) => {
// console.log(v.nam1) // console.log(v.nam1)
...@@ -73,18 +73,17 @@ export default { ...@@ -73,18 +73,17 @@ export default {
// console.log(category) // console.log(category)
// }); // });
console.log("volume.length:" + volume.length);
console.log(category);
for (let i = 0; i < volume.length; i++) { for (let i = 0; i < volume.length; i++) {
let v = volume[i].nam1; let v = volume[i].nam1;
// console.log(typeof v); // console.log(typeof v);
// console.log(volume[i].nam1); // console.log(volume[i].nam1);
category.push(v); categoryArr.push(v);
// console.log(category.toString()); // console.log(category.toString());
// console.log(category); // console.log(category);
// console.log(typeof category); // console.log(typeof category);
} }
this.category = categoryArr;
//存在bug后续要解决 //存在bug后续要解决
// amount.forEach((v) => { // amount.forEach((v) => {
...@@ -107,37 +106,45 @@ export default { ...@@ -107,37 +106,45 @@ export default {
// } // }
// } // }
// }); // });
const volumeArr = []
volume.forEach((v) => { volume.forEach((v) => {
for (let i = 0; i < category.length; i++) { for (let i = 0; i < categoryArr.length; i++) {
if (category[i] == v.nam1) { if (categoryArr[i] == v.nam1) {
seriesData[i] = v.amount; volumeArr.push(v.amount)
break; break;
} }
} }
}); });
this.seriesData = volumeArr;
const amountArr = []
amount.forEach((v) => { amount.forEach((v) => {
for (let i = 0; i < category.length; i++) { for (let i = 0; i < categoryArr.length; i++) {
if (category[i] == v.nam1) { if (categoryArr[i] == v.nam1) {
seriesData1[i] = v.amount; amountArr.push(v.amount);
break; break;
} }
} }
}); });
this.seriesData1 = amountArr;
const incomeArr = []
income.forEach((v) => { income.forEach((v) => {
for (let i = 0; i < category.length; i++) { for (let i = 0; i < categoryArr.length; i++) {
if (category[i] == v.nam1) { if (categoryArr[i] == v.nam1) {
seriesData2[i] = v.amount; incomeArr.push(v.amount);
break; break;
} }
} }
}); });
console.log(category); this.seriesData2 = incomeArr;
console.log(seriesData); },
console.log(seriesData1); //加载图标函数
console.log(seriesData2); loadCharts() {
if (this.echartInstance) {
this.echartInstance.dispose();
}
this.echartInstance = echarts.init(
this.$el.querySelector(".chart-container .chartWrapper .chart")
);
const option = { const option = {
tooltip: { tooltip: {
...@@ -161,23 +168,23 @@ export default { ...@@ -161,23 +168,23 @@ export default {
}, },
yAxis: { yAxis: {
type: "category", type: "category",
data: category, data: this.category,
}, },
series: [ series: [
{ {
name: "业务量金额(美元)", name: "业务量金额(美元)",
type: "bar", type: "bar",
data: seriesData, data: this.seriesData,
}, },
{ {
name: "融资量金额(万美元)", name: "融资量金额(万美元)",
type: "bar", type: "bar",
data: seriesData1, data: this.seriesData1,
}, },
{ {
name: "费用收益金额(千美元)", name: "费用收益金额(千美元)",
type: "bar", type: "bar",
data: seriesData2, data: this.seriesData2,
}, },
], ],
}; };
...@@ -201,11 +208,10 @@ export default { ...@@ -201,11 +208,10 @@ export default {
// 要使用=>函数使内外的this指向一致 // 要使用=>函数使内外的this指向一致
if (path === 0) { if (path === 0) {
this.$router.push("/taskList").then(() => { this.$router.push({
this.$store.commit( path:"/business/Busvol",
"setTaskListTabVal", query:{name: params.name}
this.mapping[params.componentIndex]
);
}); });
} else if (path === 1) { } else if (path === 1) {
//{path:"/xxxpath",query:"id:xxx"} router跳转页面传参业务 接受页面用created(){if(this.$route.query){todo}} //{path:"/xxxpath",query:"id:xxx"} router跳转页面传参业务 接受页面用created(){if(this.$route.query){todo}}
......
<template> <template>
<div class="eibs-tab"> <!-- <div class="eibs-tab"> -->
<div>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="argadr.title + '编号'" :prop="argadr.url + 'ref'"> <el-form-item :label="argadr.title + '编号'" :prop="'${argadr.grp}.${argadr.rol}.pts.ref'">
<c-input <c-input
v-model="model[argadr.url + 'ref']" v-model="model[argadr.grp][argadr.rol].pts.ref"
maxlength="16" maxlength="16"
:placeholder="'请输入' + argadr.title + '编号'" :placeholder="'请输入' + argadr.title + '编号'"
:disabled="disabled" :disabled="disabled"
...@@ -12,9 +13,9 @@ ...@@ -12,9 +13,9 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="argadr.title + '名称'" :prop="argadr.url + 'nam'"> <el-form-item :label="argadr.title + '名称'" :prop="'${argadr.grp}.${argadr.rol}.pts.nam'">
<c-input <c-input
v-model="model[argadr.url + 'nam']" v-model="model[argadr.grp][argadr.rol].pts.nam"
maxlength="40" maxlength="40"
:placeholder="'请输入' + argadr.title + '名称'" :placeholder="'请输入' + argadr.title + '名称'"
:disabled="disabled" :disabled="disabled"
......
<template>
<ReviewWrapper>
<Detopn></Detopn>
</ReviewWrapper>
</template>
<script>
import Detopn from "~/views/Business/Detopn";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewDetopn",
components: { ReviewWrapper, Detopn },
created() {},
mounted() {},
};
</script>
<style></style>
...@@ -4,6 +4,7 @@ import ReviewBdtset from "./Business/ReviewBdtset.vue"; ...@@ -4,6 +4,7 @@ import ReviewBdtset from "./Business/ReviewBdtset.vue";
import ReviewCptadv from "./Business/ReviewCptadv.vue"; import ReviewCptadv from "./Business/ReviewCptadv.vue";
import ReviewCptopn from "./Business/ReviewCptopn.vue"; import ReviewCptopn from "./Business/ReviewCptopn.vue";
import ReviewGetset from "./Business/ReviewGetset.vue"; import ReviewGetset from "./Business/ReviewGetset.vue";
import ReviewDetopn from "./Business/ReviewDetopn.vue";
const ReviewRouter = [ const ReviewRouter = [
{ path: "ditopn", component: ReviewDitopn, name: "ReviewDitopn", meta: { title: "复核-买方信用证开立" } }, { path: "ditopn", component: ReviewDitopn, name: "ReviewDitopn", meta: { title: "复核-买方信用证开立" } },
...@@ -12,6 +13,7 @@ const ReviewRouter = [ ...@@ -12,6 +13,7 @@ const ReviewRouter = [
{ path: "cptadv", component: ReviewCptadv, name: "ReviewCptadv", meta: { title: "复核-汇入汇款" } }, { path: "cptadv", component: ReviewCptadv, name: "ReviewCptadv", meta: { title: "复核-汇入汇款" } },
{ path: "cptopn", component: ReviewCptopn, name: "ReviewCptopn", meta: { title: "复核-汇出汇款" } }, { path: "cptopn", component: ReviewCptopn, name: "ReviewCptopn", meta: { title: "复核-汇出汇款" } },
{ path: "getset", component: ReviewGetset, name: "ReviewGetset", meta: { title: "复核-Getset" } }, { path: "getset", component: ReviewGetset, name: "ReviewGetset", meta: { title: "复核-Getset" } },
{ path: "detopn", component: ReviewDetopn, name: "ReviewDetopn", meta: { title: "复核-Detopn" } },
]; ];
export default ReviewRouter; export default ReviewRouter;
...@@ -47,13 +47,7 @@ module.exports = { ...@@ -47,13 +47,7 @@ module.exports = {
'^/gjjs/report': '/gjjs/report' '^/gjjs/report': '/gjjs/report'
} }
}, },
'/gjjs/notice/': {
target: 'http://127.0.0.1:8085',
changeOrigin: true,
pathRewrite: {
'^/gjjs/notice': '/gjjs/notice'
}
},
'/gjjs/devtools/': { '/gjjs/devtools/': {
target: 'http://127.0.0.1:8083', target: 'http://127.0.0.1:8083',
changeOrigin: true, changeOrigin: true,
......
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