Commit b76032f5 by liaoxing

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents 89d40c89 4ecb05f4
...@@ -117,10 +117,10 @@ export default { ...@@ -117,10 +117,10 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"brdgrp.rec.totamt":[ // "brdgrp.rec.totamt":[
{max: 18,required: true,message:"整数位不能超过14位"}, // {max: 18,required: true,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], // ],
"brdgrp.prb.pts.adrblk":[ "brdgrp.prb.pts.adrblk":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
......
...@@ -82,7 +82,8 @@ export default { ...@@ -82,7 +82,8 @@ export default {
}, },
toLitopn() { toLitopn() {
// 点击开立,清空从待经办进来的时候带的行参数 // 点击开立,清空从待经办进来的时候带的行参数
localStorage.setItem('row_gitopn', null) localStorage.setItem('row_litopn', null)
localStorage.setItem('review_litopn',null)
this.$router.history.push('/business-new/litopn'); this.$router.history.push('/business-new/litopn');
}, },
toLetopn() { toLetopn() {
......
...@@ -129,8 +129,8 @@ export default { ...@@ -129,8 +129,8 @@ export default {
async onLitpButgetref() { async onLitpButgetref() {
let params = { let params = {
ptainr: this.model.ledgrp.apl.pts.ptainr, ptainr: this.model.ledgrp.apl.pts.ptainr,
businessType: 'LC', businessType: 'AD',
tbl: 'LC', tbl: 'AD',
}; };
const loading = this.loading(); const loading = this.loading();
let res = await Api.post('/service/letopn/getOwnRef', params); let res = await Api.post('/service/letopn/getOwnRef', params);
......
...@@ -445,6 +445,18 @@ export default { ...@@ -445,6 +445,18 @@ export default {
return {}; return {};
}, },
watch:{ watch:{
"model.ledgrp":{
immediate: true,
deep: true,
handler(val,oldval){
const res = this.model.ledgrp
if(res.cbs.nom1.cur !== "" || res.cbs.nom1.amt !== "" || res.apl.pts.adrblk !== ""){
this.model.ledgrp.cbs.max.cur=this.model.ledgrp.cbs.nom1.cur;
this.model.ledgrp.cbs.max.amt=this.model.ledgrp.cbs.nom1.amt;
this.model.ledgrp.rec.nam = `${res.apl.pts.adrblk.substring(0,15)}${res.cbs.nom1.cur}${res.cbs.nom1.amt}`
}
}
},
"model.ledgrp.rec.nomtop":{ "model.ledgrp.rec.nomtop":{
immediate:true, immediate:true,
handler(val,old) { handler(val,old) {
......
...@@ -37,11 +37,11 @@ export default { ...@@ -37,11 +37,11 @@ export default {
], ],
'oldlidgrp.rec.nomtop':[ 'oldlidgrp.rec.nomtop':[
{required: false, message: '必输项'}, {required: false, message: '必输项'},
{type: 'string',max: 99,message:'只能输入数字,长度不能超过2'} {type: 'number',max: 99,message:'只能输入数字,长度不能超过2'}
], ],
'oldlidgrp.rec.nomton':[ 'oldlidgrp.rec.nomton':[
{required: false, message: '必输项'}, {required: false, message: '必输项'},
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'} {type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
], ],
'oldlidgrp.cbs.max.cur':[ 'oldlidgrp.cbs.max.cur':[
{type: 'string', required: false, message: '必输项'}, {type: 'string', required: false, message: '必输项'},
...@@ -67,11 +67,11 @@ export default { ...@@ -67,11 +67,11 @@ export default {
], ],
'swiadd.newnomtop':[ 'swiadd.newnomtop':[
{required: false, message: '必输项'}, {required: false, message: '必输项'},
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'} {type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
], ],
'swiadd.newnomton':[ 'swiadd.newnomton':[
{ required: false, message: '必输项'}, { required: false, message: '必输项'},
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'} {type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
], ],
'litamep.maxcur':[ 'litamep.maxcur':[
{type: 'string', required: false, message: '必输项'}, {type: 'string', required: false, message: '必输项'},
...@@ -189,11 +189,11 @@ export default { ...@@ -189,11 +189,11 @@ export default {
], ],
'lidgrp.rec.nomtop':[ 'lidgrp.rec.nomtop':[
{required: false, message: '必输项'}, {required: false, message: '必输项'},
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'} {type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
], ],
'lidgrp.rec.nomton':[ 'lidgrp.rec.nomton':[
{ required: false, message: '必输项'}, { required: false, message: '必输项'},
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'} {type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
], ],
'lidgrp.apl.adrelc':[ 'lidgrp.apl.adrelc':[
{type: 'string', required: true, message: '必输项'}, {type: 'string', required: true, message: '必输项'},
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
v-model="model.lidgrp.cbs.nom1.cur" v-model="model.lidgrp.cbs.nom1.cur"
maxlength="3" maxlength="3"
placeholder="请输入金额" placeholder="请输入金额"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="溢短装上浮" prop="oldlidgrp.rec.nomtop"> <el-form-item label="金额上浮" prop="oldlidgrp.rec.nomtop">
<c-input <c-input
v-model.number="model.oldlidgrp.rec.nomtop" v-model.number="model.oldlidgrp.rec.nomtop"
placeholder="请输入上浮比例" placeholder="请输入上浮比例"
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="溢短装下浮" prop="oldlidgrp.rec.nomton"> <el-form-item label="金额下浮" prop="oldlidgrp.rec.nomton">
<c-input <c-input
v-model.number="model.oldlidgrp.rec.nomton" v-model.number="model.oldlidgrp.rec.nomton"
placeholder="请输入下浮比例" placeholder="请输入下浮比例"
......
...@@ -91,11 +91,11 @@ export default class Litdav { ...@@ -91,11 +91,11 @@ export default class Litdav {
}, },
max: { max: {
cur: '', cur: '',
amt: '' amt: '0'
}, },
max2: { max2: {
cur:'', cur:'',
amt: '' amt: '0'
} }
}, },
rmb: { rmb: {
......
...@@ -134,6 +134,25 @@ export default { ...@@ -134,6 +134,25 @@ export default {
}, },
methods: {}, methods: {},
created: function() {}, created: function() {},
watch:{
"model.brdgrp.cbs.max.amt":{
handler(val,oldVal){
this.model.brdgrp.rec.totamt = parseFloat(val)+parseFloat(this.model.brdgrp.cbs.max2.amt)
if(isNaN(this.model.brdgrp.rec.totamt)){
this.model.brdgrp.rec.totamt=0
}
}
},
"model.brdgrp.cbs.max2.amt":{
handler(val,oldVal){
this.model.brdgrp.rec.totamt = parseFloat(val)+parseFloat(this.model.brdgrp.cbs.max.amt)
if(isNaN(this.model.brdgrp.rec.totamt)){
this.model.brdgrp.rec.totamt=0
}
}
}
}
}; };
</script> </script>
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
...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)),
trnmod:{ trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName)) trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
} }
......
...@@ -463,8 +463,8 @@ export default { ...@@ -463,8 +463,8 @@ export default {
'lidgrp.rec.stagod': [{ required: true, message: '必输项' }], 'lidgrp.rec.stagod': [{ required: true, message: '必输项' }],
'lidgrp.rec.tenmaxday': [ 'lidgrp.rec.tenmaxday': [
{ type: 'string', required: true, message: '请输入数字' }, { type: 'number', required: true, message: '请输入数字' },
{ type: 'string', max: 999, message: '不能超过999' }, { type: 'number', max: 999, message: '不能超过999' },
{ pattern: /(^-?[1-9][0-9]{0,2}$)|0/, message: '-999至999之间' }, { pattern: /(^-?[1-9][0-9]{0,2}$)|0/, message: '-999至999之间' },
// ^-?[1-9]\d*$   //匹配整数 // ^-?[1-9]\d*$   //匹配整数
], ],
......
...@@ -336,6 +336,7 @@ export default { ...@@ -336,6 +336,7 @@ export default {
flag4: true, flag4: true,
flag5: false, flag5: false,
flag6: false, flag6: false,
}; };
}, },
methods: { methods: {
...@@ -392,6 +393,7 @@ export default { ...@@ -392,6 +393,7 @@ export default {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
this.model.lidgrp.rec.tenmaxday == 0
} }
if (val == "M") { if (val == "M") {
this.flag1 = true; this.flag1 = true;
...@@ -405,13 +407,15 @@ export default { ...@@ -405,13 +407,15 @@ export default {
} }
}, },
}, },
"model.lidgrp.rec.tenmaxday":{ // "model.lidgrp.rec.tenmaxday":{
immediate: true, // immediate: true,
handler(val,oldval){ // handler(val,oldval){
if(this.model.lidgrp.rec.tenmaxday==""){} // console.log(val);
this.model.lidgrp.rec.tenmaxday='0';
} // if(this.model.lidgrp.rec.avbby !== 'P'){}
} // // this.model.lidgrp.rec.tenmaxday='0';
// }
// }
}, },
}; };
</script> </script>
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</c-col> </c-col>
</el-col> </el-col>
<c-col :span="14"> <c-col :span="14">
<el-form-item label="溢短装" prop="lidgrp.rec.nomtop"> <el-form-item label="浮动金额" prop="lidgrp.rec.nomtop">
<c-input <c-input
v-model="model.lidgrp.rec.nomtop" v-model="model.lidgrp.rec.nomtop"
maxlength="2" maxlength="2"
......
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