Commit f250bbd2 by panziyi

letcan修改

parent e8cc4de7
export default {
buildPtspta (ptsptaObj) {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
......@@ -17,7 +17,7 @@ export default {
};
return ptspta;
},
buildCommonData (model, trnName) {
buildCommonData(model, trnName) {
let ptsptaList = [];
if (model.ledgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.apl));
......@@ -63,7 +63,7 @@ export default {
};
return dataObj
},
buildSetfeg (model, trnName) {
buildSetfeg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
......@@ -72,7 +72,7 @@ export default {
};
return params
},
buildSetglg (model, trnName) {
buildSetglg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
......@@ -81,7 +81,7 @@ export default {
};
return params
},
buildGlentry (model, trnName) {
buildGlentry(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
......@@ -91,20 +91,20 @@ export default {
};
return params
},
buildEngp (model, trnName) {
buildEngp(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
buildDocpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
buildCcvpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
......@@ -114,7 +114,7 @@ export default {
};
return params
},
buildLimitbody (model, trnName) {
buildLimitbody(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -125,7 +125,7 @@ export default {
};
return params
},
buildDoctre (model, trnName) {
buildDoctre(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -138,7 +138,7 @@ export default {
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
buildSetgllAccts(model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
......
......@@ -20,7 +20,7 @@ export default {
...ccvpan,
...limitbody,
...doctre,
async init () {
async init() {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr,
......@@ -29,12 +29,12 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
ledgrp:{
rec:{
inr:this.$route.query.inr
ledgrp: {
rec: {
inr: this.$route.query.inr
}
}
});
if (!res.data) {
return
......@@ -45,7 +45,7 @@ export default {
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
copyValueFromVoData(model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
......@@ -94,7 +94,7 @@ export default {
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest);
break;
default:
return;
}
......@@ -171,7 +171,7 @@ export default {
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
buildLiaccv() {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
......@@ -179,11 +179,11 @@ export default {
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
changeSetmodModel(emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
......@@ -193,7 +193,7 @@ export default {
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
setglgRequest.setglg = { setgll: emitParams.list };
this.setgllAccts(setglgRequest, index);
break
default:
......
......@@ -62,17 +62,17 @@ export default {
{ max: 40, message: '长度不能超过40' },
],
'ledgrp.rec.opndat': [
{ required: false, message: '输入正确的日期' },
{ required: false, message: '输入正确的日期' },
],
'ledgrp.rec.shpdat': [
{ required: false, message: '输入正确的日期' },
{ required: false, message: '输入正确的日期' },
],
'ledgrp.ben.pts.ref': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'ledgrp.rec.expdat': [
{required: false, message: '输入正确的日期' },
{ required: false, message: '输入正确的日期' },
],
'ledgrp.rec.expplc': [
{ type: 'string', required: false, message: '必输项' },
......@@ -257,7 +257,7 @@ export default {
{ max: 35, message: '长度不能超过35' },
],
'rmbclm.valdat': [
{ required: false, message: '输入正确的日期' },
{ required: false, message: '输入正确的日期' },
],
// 'mtabut.coninf.oitinf.oit.inftxt': [
......
......@@ -4,7 +4,7 @@ export default class Letcan {
constructor() {
this.data = {
letp: {
swiftflg:'',
swiftflg: '',
furide: '',
matp: {
mattxtlab: '',
......@@ -14,7 +14,7 @@ export default class Letcan {
ledgrp: {
con: {
pts: new Pts().data,
},
},
avb: {
pts: new Pts().data,
},
......@@ -34,7 +34,7 @@ export default class Letcan {
pts: new Pts().data,
},
rec: {
inr:'',
inr: '',
revflg: '',
expdat: '',
expplc: '',
......@@ -45,7 +45,7 @@ export default class Letcan {
nam: '',
opndat: '',
redclsflg: '',
branchinr:'',
branchinr: '',
},
cbs: {
opn1: {
......@@ -67,10 +67,10 @@ export default class Letcan {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
......
......@@ -4,7 +4,7 @@
<!-- ============================顶部================================ -->
<c-row>
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="12" style="padding-right: 20px">
<el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref">
<c-input
v-model="model.ledgrp.rec.ownref"
......@@ -14,7 +14,7 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="12" style="padding-left: 20px">
<el-form-item label="简略信息" prop="ledgrp.rec.nam">
<c-input
text-align="middle"
......@@ -29,9 +29,9 @@
</c-col>
</c-row>
<!-- ========================上半部分的左边=========================== -->
<!-- ========================上半部分的左边=========================== -->
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="12" style="padding-right: 20px">
<!-- L/C Amount -->
<c-col :span="24">
<c-col :span="11">
......@@ -53,7 +53,6 @@
style="text-align: left; width: 100%"
class="m-input-currency"
placeholder="请输入信用证金额"
disabled
></c-input-currency>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
......@@ -70,7 +69,7 @@
</c-col>
</c-col>
<!-- Open Amount -->
<!-- Open Amount -->
<c-col :span="24">
<c-col :span="11">
<el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
......@@ -95,9 +94,10 @@
</el-form-item>
</c-col>
<c-col :span="5">
<c-checkbox v-model="model.ledgrp.rec.revflg"
style="margin-left: 10px"
disabled
<c-checkbox
v-model="model.ledgrp.rec.revflg"
style="margin-left: 10px"
disabled
>循环信用证</c-checkbox
>
</c-col>
......@@ -130,14 +130,15 @@
</el-form-item>
</c-col>
<c-col :span="5">
<c-checkbox v-model="model.ledgrp.rec.redclsflg"
<c-checkbox
v-model="model.ledgrp.rec.redclsflg"
style="margin-left: 10px"
disabled
>红/绿条款</c-checkbox
>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="开立日期" prop="ledgrp.rec.opndat">
......@@ -202,11 +203,11 @@
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- ========================上半部分的右边======================= -->
<c-col :span="12" style="padding-left: 20px;">
<!-- ========================上半部分的右边======================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="申请人参考号" prop="ledgrp.apl.pts.ref">
<c-input
......@@ -280,12 +281,11 @@
</el-form-item>
</c-col>
</c-col>
</c-row>
<!-- ========================下半部分======================= -->
<!-- ========================下半部分======================= -->
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="叙述信息" prop="letcanf.strinf">
<c-fullbox>
......@@ -299,12 +299,7 @@
></c-input>
<template slot="footer">
<!-- @click="onCanletButtxmsel" -->
<c-button
size="small"
type="primary"
icon="el-icon-more"
>
<c-button size="small" type="primary" icon="el-icon-more">
</c-button>
</template>
</c-fullbox>
......@@ -314,34 +309,29 @@
<c-checkbox v-model="model.sndmsg">发送信息</c-checkbox>
</el-form-item>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
import Ptap from '~/views/Public/Ptap'
import event from "../event";
import Ptap from "~/views/Public/Ptap";
export default {
inject: ["root"],
components: { 'c-ptap': Ptap },
components: { "c-ptap": Ptap },
props: ["model", "codes"],
mixins: [event],
data() {
return {}
return {};
},
methods: {},
created: function () {},
computed:{
cnftxt(){
this.model.letp0.cnftxt="The L/C was canceled "+new Date()
return this.model.letp0.cnftxt
}
}
}
computed: {
cnftxt() {
this.model.letp0.cnftxt = "The L/C was canceled " + new Date();
return this.model.letp0.cnftxt;
},
},
};
</script>
<style></style>
......@@ -12,7 +12,7 @@
</div>
</template>
<script>
import event from '../event'
import event from "../event";
import Canp from "./Canp";
import Rcldetp from "./Rcldetp";
......@@ -27,11 +27,10 @@ export default {
data() {
return {
activeNames: ["canp"],
}
};
},
methods: {},
created: function () { },
}
created: function () {},
};
</script>
<style></style>
export default {
buildPtspta (ptsptaObj) {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
......@@ -17,7 +17,7 @@ export default {
};
return ptspta;
},
buildCommonData (model, trnName) {
buildCommonData(model, trnName) {
let ptsptaList = [];
if (model.ledgrp.a2b.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.a2b));
......@@ -88,7 +88,7 @@ export default {
};
return dataObj
},
buildSetfeg (model, trnName) {
buildSetfeg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
......@@ -97,7 +97,7 @@ export default {
};
return params
},
buildSetglg (model, trnName) {
buildSetglg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
......@@ -106,7 +106,7 @@ export default {
};
return params
},
buildGlentry (model, trnName) {
buildGlentry(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
......@@ -116,20 +116,20 @@ export default {
};
return params
},
buildEngp (model, trnName) {
buildEngp(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
buildDocpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
buildCcvpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
......@@ -139,7 +139,7 @@ export default {
};
return params
},
buildLimitbody (model, trnName) {
buildLimitbody(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -150,7 +150,7 @@ export default {
};
return params
},
buildDoctre (model, trnName) {
buildDoctre(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -163,7 +163,7 @@ export default {
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
buildSetgllAccts(model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
......
......@@ -19,20 +19,20 @@ export default {
...ccvpan,
...limitbody,
...doctre,
async init () {
async init() {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr,
}
if ( typeof(this.$route.query.inr) == 'string' ){
if (typeof (this.$route.query.inr) == 'string') {
params.spt = null
}
const res = await Api.post('/service/letrsv/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
ledgrp:{
rec:{
ledgrp: {
rec: {
inr: this.$route.query.inr
}
},
......@@ -47,7 +47,7 @@ export default {
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
copyValueFromVoData(model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
......@@ -160,8 +160,8 @@ export default {
};
let res = await Api.post('/service/letrsv/avbwthflg', params);
if (res.respCode == SUCCESS) {
this.model.ledgrp.avb.pts.extkey=res.data.pts.extkey;
this.model.ledgrp.avb.pts.adrblk=res.data.pts.adrblk;
this.model.ledgrp.avb.pts.extkey = res.data.pts.extkey;
this.model.ledgrp.avb.pts.adrblk = res.data.pts.adrblk;
}
},
//最大金额
......@@ -169,7 +169,7 @@ export default {
let params = {
nom1cur: this.model.ledgrp.cbs.nom1.cur,
nom1amt: this.model.ledgrp.cbs.nom1.amt,
nomtop: this.model.ledgrp.rec.nomtop
nomtop: this.model.ledgrp.rec.nomtop
};
let res = await Api.post('/service/letrsv/cbsmax', params);
if (res.respCode == SUCCESS) {
......@@ -177,6 +177,6 @@ export default {
this.model.ledgrp.cbs.max.amt = res.data.maxamt;
}
},
},
};
......@@ -4,17 +4,17 @@ import Utils from '~/utils';
* Letrsv Check规则
*/
let checkObj = {
"setmod.dspflg" :null,
"ledgrp.rec.nomspc" :null,
"ledgrp.cbs.nom1.cur" :null,
"ledgrp.rec.revtyp" :null,
"ledgrp.rec.avbby" :null,
"ledgrp.rec.avbwth" :null,
"ledgrp.rec.stacty" :null,
"ledgrp.rec.lcrtyp" :null,
"ledgrp.rec.apprul" :null,
"liaall.limmod.limpts.nonrevflg1" :null,
"ledgrp.rec.cnfdet" :null,
"setmod.dspflg": null,
"ledgrp.rec.nomspc": null,
"ledgrp.cbs.nom1.cur": null,
"ledgrp.rec.revtyp": null,
"ledgrp.rec.avbby": null,
"ledgrp.rec.avbwth": null,
"ledgrp.rec.stacty": null,
"ledgrp.rec.lcrtyp": null,
"ledgrp.rec.apprul": null,
"liaall.limmod.limpts.nonrevflg1": null,
"ledgrp.rec.cnfdet": null,
"letp.recget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
......@@ -59,7 +59,7 @@ let checkObj = {
"ledgrp.ben.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 140, message: "长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.cbs.nom1.amt": [
......@@ -70,24 +70,24 @@ let checkObj = {
"ledgrp.ben.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 140, message: "长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.ben.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 140, message: "长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.rec.nomtop": [
{ type: "number", required: false, message: "必输项" },
{ type: "number",max: 999, message: "长度不能超过2" }
{ type: "number", max: 999, message: "长度不能超过2" }
],
"ledgrp.rec.nomton": [
{ type: "number",required: false, message: "必输项" },
{ type: "number",max: 999, message: "长度不能超过2" }
{ type: "number", required: false, message: "必输项" },
{ type: "number", max: 999, message: "长度不能超过2" }
],
"ledgrp.ben.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 140, message: "长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
......@@ -107,10 +107,10 @@ let checkObj = {
{ max: 16, message: "长度不能超过16" }
],
"ledgrp.rec.opndat": [
{ required: false, message: "输入正确的日期" }
{ required: false, message: "输入正确的日期" }
],
"ledgrp.rec.preadvdt": [
{ required: false, message: "输入正确的日期" }
{ required: false, message: "输入正确的日期" }
],
"ledgrp.iss.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
......@@ -123,24 +123,24 @@ let checkObj = {
"ledgrp.iss.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.rec.shpdat": [
{ required: false, message: "输入正确的日期" }
{ required: false, message: "输入正确的日期" }
],
// "ledgrp.rec.advdat": [
// { required: false, message: "输入正确的日期" }
// ],
"ledgrp.iss.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.iss.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.rec.expdat": [
{ required: true, message: "输入正确的日期" }
{ required: true, message: "输入正确的日期" }
],
"ledgrp.iss.adrelc": [
{ type: "string", required: true, message: "必输项" },
......@@ -179,20 +179,20 @@ let checkObj = {
],
"ledgrp.apl.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140"}
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.apl.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.apl.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.rec.apprultxt": [
{ type: "string", required: false, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
......@@ -222,11 +222,11 @@ let checkObj = {
"ledgrp.avb.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140"}
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.blk.avbwthtxt": [
{ type: "string", required: false, message: "必输项" },
{ max: 140,message:"长度不能超过140"}
{ max: 140, message: "长度不能超过140" }
],
// "ledgrp.avb.pts.adrblk": [
// { type: "string", required: true, message: "必输项" },
......@@ -234,19 +234,19 @@ let checkObj = {
// ],
"ledgrp.avb.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140"}
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.avb.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 140,message:"长度不能超过140" }
{ max: 140, message: "长度不能超过140" }
],
"ledgrp.blk.preper": [
{ required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"ledgrp.rec.prepers18": [
{ type:"number",required: false, message: "必输项" },
{ type:"number",max: 999, message: "长度不能超过3" }
{ type: "number", required: false, message: "必输项" },
{ type: "number", max: 999, message: "长度不能超过3" }
],
......@@ -305,8 +305,8 @@ let checkObj = {
{ max: 65, message: "长度不能超过65" }
],
"ledgrp.rec.tenmaxday": [
{ type: "number",required: false, message: "必输项" },
{ type: "number",max: 999, message: "长度不能超过4" }
{ type: "number", required: false, message: "必输项" },
{ type: "number", max: 999, message: "长度不能超过4" }
],
"ledgrp.rec.porloa": [
{ type: "string", required: false, message: "必输项" },
......@@ -538,7 +538,7 @@ let checkObj = {
// ],
"mtabut.coninf.conexedat": [
{ required: false, message: "输入正确的日期" }
{ required: false, message: "输入正确的日期" }
],
"mtabut.coninf.usr.extkey": [
{ type: "string", required: false, message: "必输项" },
......@@ -594,7 +594,7 @@ let checkObj = {
{ max: 2, message: "长度不能超过2" }
],
"ledgrp.rec.revdat": [
{ required: false, message: "输入正确的日期" }
{ required: false, message: "输入正确的日期" }
],
"ledgrp.blk.revcls": [
{ type: "string", required: true, message: "必输项" },
......
......@@ -37,14 +37,14 @@ export default class Letrsv {
rec: {
inr: '',
tenmaxday: '',
nomton: '',
nomton: '0',
expplc: '',
stacty: '',
revtyp: '',
revtimes: '',
resflg: '',
opndat: '',
nomtop: '',
nomtop: '0',
avbwth: '',
revflg: '',
spcbenflg: '',
......
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