Commit 2efb8141 by panziyi

letame修改

parent 8213da25
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
nom1amt: this.model.ledgrp.cbs.nom1.amt, 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/letopn/cbsmax', params); let res = await Api.post('/service/letamc/cbsmax', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.model.ledgrp.cbs.max.cur = res.data.maxcur; this.model.ledgrp.cbs.max.cur = res.data.maxcur;
this.model.ledgrp.cbs.max.amt = res.data.maxamt; this.model.ledgrp.cbs.max.amt = res.data.maxamt;
......
export default { export default {
buildPtspta (ptsptaObj) { buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts; let pts = ptsptaObj.pts;
let ptspta = { let ptspta = {
rol: pts.rol, rol: pts.rol,
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}; };
return ptspta; return ptspta;
}, },
buildCommonData (model, trnName) { buildCommonData(model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.ledgrp.a2b.pts.extkey) { if (model.ledgrp.a2b.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.a2b)); ptsptaList.push(this.buildPtspta(model.ledgrp.a2b));
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
let dataObj = { let dataObj = {
rec: { rec: {
objinr:model.ledgrp.rec.inr, objinr: model.ledgrp.rec.inr,
objtyp: 'LED', objtyp: 'LED',
ownref: model.ledgrp.rec.ownref, ownref: model.ledgrp.rec.ownref,
opndat: model.ledgrp.rec.opndat, opndat: model.ledgrp.rec.opndat,
...@@ -81,6 +81,7 @@ export default { ...@@ -81,6 +81,7 @@ export default {
cnfsta: model.ledgrp.rec.cnfsta, cnfsta: model.ledgrp.rec.cnfsta,
maxamt: model.letamep.maxamt, maxamt: model.letamep.maxamt,
engamt: model.letamep.engamt, engamt: model.letamep.engamt,
newamt: model.trnmod.swiadd.newamt,
// advRolsetflg: model.ledgrp.Adv.Rolsetflg, // advRolsetflg: model.ledgrp.Adv.Rolsetflg,
// advPtainr: model.ledgrp.Adv.pts.ptainr, // advPtainr: model.ledgrp.Adv.pts.ptainr,
// advAdrblk: model.ledgrp.Adv.pts.adrblk, // advAdrblk: model.ledgrp.Adv.pts.adrblk,
...@@ -91,7 +92,6 @@ export default { ...@@ -91,7 +92,6 @@ export default {
// issRolsetflg: model.ledgrp.iss.Rolsetflg, // issRolsetflg: model.ledgrp.iss.Rolsetflg,
// issPtainr: model.ledgrp.iss.pts.ptainr, // issPtainr: model.ledgrp.iss.pts.ptainr,
// issAdrblk: model.ledgrp.iss.pts.adrblk, // issAdrblk: model.ledgrp.iss.pts.adrblk,
// newamt: model.letamep.Swiadd.newamt,
// engamt: model.letamep.engamt, // engamt: model.letamep.engamt,
// opn1Amt: model.oldledgrp.cbs.opn1.Amt, // opn1Amt: model.oldledgrp.cbs.opn1.Amt,
// opn2Amt: model.oldledgrp.cbs.opn2.Amt, // opn2Amt: model.oldledgrp.cbs.opn2.Amt,
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
}; };
return dataObj return dataObj
}, },
buildSetfeg (model, trnName) { buildSetfeg(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaall: model.liaall, liaall: model.liaall,
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
}; };
return params return params
}, },
buildSetglg (model, trnName) { buildSetglg(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg, setfeg: model.setmod.setfeg,
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
}; };
return params return params
}, },
buildGlentry (model, trnName) { buildGlentry(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg, liaallg: model.liaall.liaallg,
...@@ -143,24 +143,24 @@ export default { ...@@ -143,24 +143,24 @@ export default {
}; };
return params return params
}, },
buildEngp (model, trnName) { buildEngp(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg, liaallg: model.liaall.liaallg,
amdRec:{ amdRec: {
maxamt: model.letamep.maxamt, maxamt: model.letamep.maxamt,
engamt: model.letamep.engamt, engamt: model.letamep.engamt,
} }
}; };
return params return params
}, },
buildDocpan (model, trnName) { buildDocpan(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
}; };
return params return params
}, },
buildCcvpan (model, trnName) { buildCcvpan(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg, liaccvg: model.liaccv.liaccvg,
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
}; };
return params return params
}, },
buildLimitbody (model, trnName) { buildLimitbody(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
}; };
return params return params
}, },
buildDoctre (model, trnName) { buildDoctre(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
return params return params
}, },
// 公共组件setmod中dsp字段改变,触发联动时候的入参 // 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) { buildSetgllAccts(model, trnName, setglg) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
}; };
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
...ccvpan, ...ccvpan,
...limitbody, ...limitbody,
...doctre, ...doctre,
async init () { async init() {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr, trninr: this.$route.query.trninr,
...@@ -29,12 +29,12 @@ export default { ...@@ -29,12 +29,12 @@ export default {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
ledgrp:{ ledgrp: {
rec:{ rec: {
inr:this.$route.query.inr inr: this.$route.query.inr
} }
} }
}); });
if (!res.data) { if (!res.data) {
return return
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg) this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
}, },
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题 // 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) { copyValueFromVoData(model, data) {
let keysList = Object.keys(model) let keysList = Object.keys(model)
keysList.map((key) => { keysList.map((key) => {
if (data[key]) { if (data[key]) {
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName); let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest); this.processDoctre(doctreRequest);
break; break;
default: default:
return; return;
} }
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
handleChangePurpos() { handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName); this.queryHndtypCodeTableList(this.root.trnName);
}, },
buildLiaccv () { buildLiaccv() {
let params = { let params = {
...buildFn.buildCommonData(this.model, this.trnName), ...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg, liaccvg: this.model.liaccv.liaccvg,
...@@ -179,11 +179,11 @@ export default { ...@@ -179,11 +179,11 @@ export default {
chgamt: this.model.liaccv.chgamt, chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur, concur: this.model.liaccv.concur,
}; };
return params return params
}, },
// 公共组件setmod处理方式改变触发联动 // 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) { changeSetmodModel(emitParams) {
let reqParams = {} let reqParams = {}
switch (emitParams.code) { switch (emitParams.code) {
case 'processMethods': case 'processMethods':
...@@ -193,13 +193,26 @@ export default { ...@@ -193,13 +193,26 @@ export default {
case 'changeDsp': case 'changeDsp':
let index = emitParams.index; let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName); let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list}; setglgRequest.setglg = { setgll: emitParams.list };
this.setgllAccts(setglgRequest, index); this.setgllAccts(setglgRequest, index);
break break
default: default:
return return
} }
}, },
onSeainf() {}, //最大金额
async cbsmax() {
let params = {
nom1cur: this.model.oldledgrp.cbs.max.cur,
nom1amt: this.model.oldledgrp.cbs.max.amt,
nomtop: this.model.trnmod.swiadd.newnomtop,
};
let res = await Api.post('/service/letame/cbsmax', params);
if (res.respCode == SUCCESS) {
this.model.letamep.maxcur = res.data.maxcur;
this.model.letamep.maxamt = res.data.maxamt;
}
},
onSeainf() { },
}, },
}; };
...@@ -16,16 +16,16 @@ export default class Letame { ...@@ -16,16 +16,16 @@ export default class Letame {
}, },
cbs: { cbs: {
max: { max: {
cur:"", cur: "",
amt:"", amt: "",
}, },
max2: { max2: {
cur:"", cur: "",
amt:"", amt: "",
}, },
nom1: { nom1: {
cur:"", cur: "",
amt:"", amt: "",
} }
} }
}, },
...@@ -52,8 +52,8 @@ export default class Letame { ...@@ -52,8 +52,8 @@ export default class Letame {
lcrgodame: '' lcrgodame: ''
}, },
rec: { rec: {
inr:'', inr: '',
branchinr:'', branchinr: '',
tenmaxday: '', tenmaxday: '',
nomton: '', nomton: '',
expplc: '', expplc: '',
...@@ -187,7 +187,7 @@ export default class Letame { ...@@ -187,7 +187,7 @@ export default class Letame {
modmanflg: '', modmanflg: '',
usrblk: '' usrblk: ''
}, },
engamt: '', engamt: '0.00',
lcrgodame: { lcrgodame: {
buttxmsel: '' buttxmsel: ''
} }
...@@ -218,7 +218,7 @@ export default class Letame { ...@@ -218,7 +218,7 @@ export default class Letame {
newnomtop: '', newnomtop: '',
shpfro: '', shpfro: '',
shpper: '', shpper: '',
amedat:new Date(), amedat: new Date(),
pordis: '', pordis: '',
addamtcov: '', addamtcov: '',
newnomton: '', newnomton: '',
...@@ -229,7 +229,7 @@ export default class Letame { ...@@ -229,7 +229,7 @@ export default class Letame {
newamt: '', newamt: '',
shpto: '', shpto: '',
newexpdat: new Date(), newexpdat: new Date(),
ameamt: '', ameamt: '0.00',
newcur: '', newcur: '',
porloa: '', porloa: '',
nomspc: '' nomspc: ''
......
<template> <template>
<div class="eibs"> <div class="eibs">
<c-col :span="12" style="padding-right: 20px;"> <c-col :span="12" style="padding-right: 20px">
<!-- ======================= 左边 ========================= --> <!-- ======================= 左边 ========================= -->
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="修改日期" prop="trnmod.swiadd.amedat"> <el-form-item label="修改日期" prop="trnmod.swiadd.amedat">
<c-date-picker <c-date-picker
v-model="model.trnmod.swiadd.amedat" v-model="model.trnmod.swiadd.amedat"
style="width: 100%" style="width: 100%"
placeholder="请选择日期" placeholder="请选择日期"
></c-date-picker> ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="13"> <c-col :span="13">
...@@ -83,11 +83,7 @@ ...@@ -83,11 +83,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item <el-form-item label="" label-width="5px" prop="trnmod.swiadd.ameamt">
label=""
label-width="5px"
prop="trnmod.swiadd.ameamt"
>
<c-input <c-input
v-model="model.trnmod.swiadd.ameamt" v-model="model.trnmod.swiadd.ameamt"
placeholder="请输入金额" placeholder="请输入金额"
...@@ -95,7 +91,7 @@ ...@@ -95,7 +91,7 @@
style="width: 100%" style="width: 100%"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
<!-- 回车失去焦点,失去焦点会自动触发默认事件:@keyup.enter.native="$event.target.blur()" --> <!-- 回车失去焦点,失去焦点会自动触发默认事件:@keyup.enter.native="$event.target.blur()" -->
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -113,19 +109,11 @@ ...@@ -113,19 +109,11 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item <el-form-item label="" label-width="5px" prop="trnmod.swiadd.newamt">
label=""
label-width="5px"
prop="trnmod.swiadd.newamt"
>
<c-input <c-input
v-model="newamt" v-model="newamt"
placeholder="请输入金额" placeholder="请输入金额"
@keyup.enter.native=" @keyup.enter.native="eventFunction('trnmod.swiadd.newamt')"
eventFunction(
'trnmod.swiadd.newamt'
)
"
style="width: 100%" style="width: 100%"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
...@@ -167,10 +155,7 @@ ...@@ -167,10 +155,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="13"> <c-col :span="13">
<el-form-item <el-form-item label="交单期限" prop="oldledgrp.rec.prepers18">
label="交单期限"
prop="oldledgrp.rec.prepers18"
>
<c-input <c-input
v-model.number="model.oldledgrp.rec.prepers18" v-model.number="model.oldledgrp.rec.prepers18"
placeholder="请输入交单期限(天)" placeholder="请输入交单期限(天)"
...@@ -203,10 +188,7 @@ ...@@ -203,10 +188,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="空运/装货港" prop="trnmod.swiadd.porloa">
label="空运/装货港"
prop="trnmod.swiadd.porloa"
>
<c-input <c-input
v-model="model.trnmod.swiadd.porloa" v-model="model.trnmod.swiadd.porloa"
maxlength="65" maxlength="65"
...@@ -215,10 +197,7 @@ ...@@ -215,10 +197,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="空运/卸货港" prop="trnmod.swiadd.pordis">
label="空运/卸货港"
prop="trnmod.swiadd.pordis"
>
<c-input <c-input
v-model="model.trnmod.swiadd.pordis" v-model="model.trnmod.swiadd.pordis"
maxlength="65" maxlength="65"
...@@ -238,49 +217,43 @@ ...@@ -238,49 +217,43 @@
</c-col> </c-col>
<!-- ======================= 右边 ========================= --> <!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px;"> <c-col :span="12" style="padding-left: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="简略信息" prop="ledgrp.rec.nam"> <el-form-item label="简略信息" prop="ledgrp.rec.nam">
<c-input <c-input
text-align="middle" text-align="middle"
v-model="model.ledgrp.rec.nam" v-model="model.ledgrp.rec.nam"
maxlength="40" maxlength="40"
placeholder="请输入" placeholder="请输入"
disabled disabled
> >
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item <el-form-item label="收到修改日期" prop="trnmod.swiadd.amenbr">
label="收到修改日期" <c-input
prop="trnmod.swiadd.amenbr" v-model.number="model.trnmod.swiadd.amenbr"
> style="width: 100%"
<c-input ></c-input>
v-model.number="model.trnmod.swiadd.amenbr" </el-form-item>
style="width: 100%"
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="实际修改次数" prop="letamep.amenbr"> <el-form-item label="实际修改次数" prop="letamep.amenbr">
<c-input <c-input
v-model.number="model.letamep.amenbr" v-model.number="model.letamep.amenbr"
placeholder="请输入实际修改次数" placeholder="请输入实际修改次数"
style="width: 100%" style="width: 100%"
disabled disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<c-col :span="17"> <c-col :span="17">
<el-form-item <el-form-item label="浮动(+/-)" prop="oldledgrp.rec.nomtop">
label="浮动(+/-)"
prop="oldledgrp.rec.nomtop"
>
<c-input <c-input
v-model.number="model.oldledgrp.rec.nomtop" v-model.number="model.oldledgrp.rec.nomtop"
placeholder="请输入上浮比例" placeholder="请输入上浮比例"
...@@ -306,10 +279,7 @@ ...@@ -306,10 +279,7 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item <el-form-item label="最大金额" prop="oldledgrp.cbs.max.amt">
label="最大金额"
prop="oldledgrp.cbs.max.amt"
>
<c-input <c-input
v-model="model.oldledgrp.cbs.max.amt" v-model="model.oldledgrp.cbs.max.amt"
placeholder="请输入金额" placeholder="请输入金额"
...@@ -333,15 +303,12 @@ ...@@ -333,15 +303,12 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<c-col :span="17"> <c-col :span="17">
<el-form-item <el-form-item label="浮动(+/-)" prop="trnmod.swiadd.newnomtop">
label="浮动(+/-)"
prop="trnmod.swiadd.newnomtop"
>
<c-input <c-input
v-model.number="model.trnmod.swiadd.newnomtop" v-model.number="model.trnmod.swiadd.newnomtop"
placeholder="请输入内容" placeholder="请输入内容"
style="width: 100%" style="width: 100%"
@keyup.enter.native="$event.target.blur()" @change="cbsmax"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -362,13 +329,13 @@ ...@@ -362,13 +329,13 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="最大金额" prop="letamep.maxamt"> <el-form-item label="最大金额" prop="letamep.maxamt">
<c-input <c-input
v-model="model.letamep.maxamt" v-model="model.letamep.maxamt"
placeholder="请输入金额" placeholder="请输入金额"
disabled disabled
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -383,10 +350,7 @@ ...@@ -383,10 +350,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="装运日期(新)" prop="trnmod.swiadd.newshpdat">
label="装运日期(新)"
prop="trnmod.swiadd.newshpdat"
>
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.trnmod.swiadd.newshpdat" v-model="model.trnmod.swiadd.newshpdat"
...@@ -421,8 +385,7 @@ ...@@ -421,8 +385,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="5"> <c-col :span="5">
<c-checkbox v-model="model.letp.aamp.aammod.addamtflg" <c-checkbox v-model="model.letp.aamp.aammod.addamtflg" disabled
disabled
>附加金额</c-checkbox >附加金额</c-checkbox
> >
</c-col> </c-col>
...@@ -437,7 +400,6 @@ ...@@ -437,7 +400,6 @@
v-model="model.ledgrp.cbs.max2.cur" v-model="model.ledgrp.cbs.max2.cur"
maxlength="3" maxlength="3"
placeholder="请输入附加金额" placeholder="请输入附加金额"
:code="codes.cur" :code="codes.cur"
disabled disabled
></c-select> ></c-select>
...@@ -452,19 +414,25 @@ ...@@ -452,19 +414,25 @@
> >
<c-input-currency <c-input-currency
v-model="model.trnmod.swiadd.addamt" v-model="model.trnmod.swiadd.addamt"
placeholder="请输入金额" placeholder="请输入金额"
></c-input-currency> ></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.letamep.benaccflg" class="checkbox-left" style="margin-left:120px" <c-checkbox
v-model="model.letamep.benaccflg"
class="checkbox-left"
style="margin-left: 120px"
>受益人接受修改</c-checkbox >受益人接受修改</c-checkbox
> >
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.letamep.cre707flg" class="checkbox-left" style="margin-left:120px" <c-checkbox
v-model="model.letamep.cre707flg"
class="checkbox-left"
style="margin-left: 120px"
>创建修改报文707</c-checkbox >创建修改报文707</c-checkbox
> >
</c-col> </c-col>
...@@ -473,47 +441,47 @@ ...@@ -473,47 +441,47 @@
</div> </div>
</template> </template>
<script> <script>
import Api from '~/service/Api' import Api from "~/service/Api";
import event from "../event" import event from "../event";
import CodeTable from '~/config/CodeTable' import CodeTable from "~/config/CodeTable";
import Utils from "~/utils" import Utils from "~/utils";
export default { export default {
inject: ['root'], inject: ["root"],
props: ['model', 'codes'], props: ["model", "codes"],
mixins: [event], mixins: [event],
data() { data() {
return {} return {};
},
methods: {
}, },
methods: {},
computed: { computed: {
amecur() { amecur() {
this.model.trnmod.swiadd.amecur = this.model.ledgrp.cbs.nom1.cur this.model.trnmod.swiadd.amecur = this.model.ledgrp.cbs.nom1.cur;
return this.model.trnmod.swiadd.amecur return this.model.trnmod.swiadd.amecur;
}, },
newcur() { newcur() {
this.model.trnmod.swiadd.newcur = this.model.ledgrp.cbs.nom1.cur this.model.trnmod.swiadd.newcur = this.model.ledgrp.cbs.nom1.cur;
return this.model.trnmod.swiadd.newcur return this.model.trnmod.swiadd.newcur;
}, },
nomspc() { nomspc() {
this.model.trnmod.swiadd.nomspc = this.model.ledgrp.rec.nomspc this.model.trnmod.swiadd.nomspc = this.model.ledgrp.rec.nomspc;
return this.model.trnmod.swiadd.nomspc return this.model.trnmod.swiadd.nomspc;
}, },
newamt() { newamt() {
const ameamt = this.model.trnmod.swiadd.ameamt const ameamt = this.model.trnmod.swiadd.ameamt;
const amt = this.model.oldledgrp.cbs.nom1.amt const amt = this.model.oldledgrp.cbs.nom1.amt;
this.model.trnmod.swiadd.newamt = parseFloat(isNaN(ameamt) || !ameamt ? 0 : ameamt) + this.model.trnmod.swiadd.newamt =
parseFloat(isNaN(amt) || !amt ? 0 : amt) parseFloat(isNaN(ameamt) || !ameamt ? 0 : ameamt) +
return this.model.trnmod.swiadd.newamt parseFloat(isNaN(amt) || !amt ? 0 : amt);
return this.model.trnmod.swiadd.newamt;
}, },
engamt(){ engamt() {
this.model.letamep.engamt = this.model.letamep.maxamt -this.model.oldledgrp.cbs.max.amt this.model.letamep.engamt =
return this.model.letamep.engamt this.model.letamep.maxamt - this.model.oldledgrp.cbs.max.amt;
return this.model.letamep.engamt;
} },
}, },
} };
</script> </script>
<style> <style>
.letame_amep_amt { .letame_amep_amt {
......
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