Commit 1310c05c by WH

letame交易缺陷修复

parent 14a6910e
...@@ -204,28 +204,7 @@ export default class Letame { ...@@ -204,28 +204,7 @@ export default class Letame {
}, },
rmbrol: '' rmbrol: ''
}, },
// trnmod: {
// swiadd: {
// newnomtop: '',
// shpfro: '',
// shpper: '',
// amedat: '',
// pordis: '',
// addamtcov: '',
// newnomton: '',
// amenbr: '',
// addamt: '',
// amecur: '',
// newshpdat: '',
// newamt: '',
// shpto: '',
// newexpdat: '',
// ameamt: '',
// newcur: '',
// porloa: '',
// nomspc: ''
// }
// },
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
...@@ -233,6 +212,28 @@ export default class Letame { ...@@ -233,6 +212,28 @@ export default class Letame {
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv, liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
trnmod: {
swiadd: {
newnomtop: '',
shpfro: '',
shpper: '',
amedat:new Date(),
pordis: '',
addamtcov: '',
newnomton: '',
amenbr: '',
addamt: '',
amecur: '',
newshpdat: '',
newamt: '',
shpto: '',
newexpdat: new Date(),
ameamt: '',
newcur: '',
porloa: '',
nomspc: ''
}
},
}; };
} }
} }
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="名义金额(改)" prop="trnmod.swiadd.amecur"> <el-form-item label="名义金额(改)" prop="trnmod.swiadd.amecur">
<c-select <c-select
v-model="model.trnmod.swiadd.amecur" v-model="amecur"
style="width: 100%" style="width: 100%"
:code="codes.curtxt1" :code="codes.curtxt1"
placeholder="请选择币种" placeholder="请选择币种"
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="名义金额(新)" prop="trnmod.swiadd.newcur"> <el-form-item label="名义金额(新)" prop="trnmod.swiadd.newcur">
<c-select <c-select
v-model="model.trnmod.swiadd.newcur" v-model="newcur"
style="width: 100%" style="width: 100%"
:code="codes.curtxt1" :code="codes.curtxt1"
disabled disabled
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
prop="trnmod.swiadd.newamt" prop="trnmod.swiadd.newamt"
> >
<c-input <c-input
v-model="model.trnmod.swiadd.newamt" v-model="newamt"
placeholder="请输入金额" placeholder="请输入金额"
@keyup.enter.native=" @keyup.enter.native="
eventFunction( eventFunction(
...@@ -487,6 +487,23 @@ export default { ...@@ -487,6 +487,23 @@ export default {
}, },
methods: { methods: {
}, },
computed: {
amecur() {
this.model.trnmod.swiadd.amecur = this.model.ledgrp.cbs.nom1.cur
return this.model.trnmod.swiadd.amecur
},
newcur() {
this.model.trnmod.swiadd.newcur = this.model.ledgrp.cbs.nom1.cur
return this.model.trnmod.swiadd.newcur
},
newamt() {
const ameamt = this.model.trnmod.swiadd.ameamt
const amt = this.model.oldledgrp.cbs.nom1.amt
this.model.trnmod.swiadd.newamt = parseFloat(isNaN(ameamt) || !ameamt ? 0 : ameamt) +
parseFloat(isNaN(amt) || !amt ? 0 : amt)
return this.model.trnmod.swiadd.newamt
}
},
} }
</script> </script>
<style> <style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment