Commit e527c700 by WuBing

getset缺陷修改

parent 3761e416
...@@ -413,9 +413,8 @@ export default { ...@@ -413,9 +413,8 @@ export default {
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: false, message: "输入正确的日期"}
], ],
"cnybop.cnyinc.fprepayeeamt":[ "cnybop.cnyinc.fprepayeeamt":[
{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位" }
], ],
"cnybop.cnyinc.iaccountperiod":[ "cnybop.cnyinc.iaccountperiod":[
...@@ -423,43 +422,36 @@ export default { ...@@ -423,43 +422,36 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"cnybop.cnyinc.ftotalamt":[ "cnybop.cnyinc.ftotalamt":[
{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位" }
], ],
"cnybop.cnyinc.sorilevyno":[ "cnybop.cnyinc.sorilevyno":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"} {max: 24,message:"长度不能超过24"}
], ],
"cnybop.cnyinc.fpayeeamt":[ "cnybop.cnyinc.fpayeeamt":[
{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位" }
], ],
"cnybop.cnyinc.fonshoreamt":[ "cnybop.cnyinc.fonshoreamt":[
{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位" }
], ],
"cnybop.cnyinc.fcustomsamt":[ "cnybop.cnyinc.fcustomsamt":[
{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位" }
], ],
"cnybop.cnyinc.foffshoreamt":[ "cnybop.cnyinc.foffshoreamt":[
{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位" }
], ],
"cnybop.cnyinc.frecordamt":[ "cnybop.cnyinc.frecordamt":[
{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位" }
], ],
"cnybop.cnyinc.fnogoodsamt":[ "cnybop.cnyinc.fnogoodsamt":[
{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位" }
], ],
"cnybop.saddword":[ "cnybop.saddword":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</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-form-item <c-form-item
v-if="model.gitp.swiftflg == 'N'" v-if="model.gitp.swiftflg == 'N'"
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
label-width="5px" label-width="5px"
prop="trnmod.swiadd.addamt" prop="trnmod.swiadd.addamt"
> >
<!-- 不确定能否回显负金额,因此空为disabled,故暂定能显示负金额 -->
<c-input-currency-min <c-input-currency-min
disabled disabled
v-model="model.trnmod.swiadd.addamt" v-model="model.trnmod.swiadd.addamt"
...@@ -174,7 +173,7 @@ ...@@ -174,7 +173,7 @@
></c-input-currency-min> ></c-input-currency-min>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> </c-col> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
......
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
v-model="model.gidgrp.ghd.segtyp" v-model="model.gidgrp.ghd.segtyp"
style="width: 100%" style="width: 100%"
placeholder="请选择特殊保函类型" placeholder="请选择特殊保函类型"
:code="codes.segtyp" :code="codes.segtyppop"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
......
...@@ -32,6 +32,11 @@ import Wg from "./Wg"; ...@@ -32,6 +32,11 @@ import Wg from "./Wg";
import Cnyp1 from "./Cnyp1"; import Cnyp1 from "./Cnyp1";
import Basp from "./Basp"; import Basp from "./Basp";
import Incp from "./Incp"; import Incp from "./Incp";
const tabNameToRulePathMapping = {
"incp": "cnybop.incp",
}
export default { export default {
inject: ["root"], inject: ["root"],
components: { components: {
...@@ -49,7 +54,28 @@ export default { ...@@ -49,7 +54,28 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
handleChange() {} handleChange(names){
// console.log(names);//激活的(展开的)面板的name数组集合
if (this.isInDisplay) {
return
}
const arr = []
for (let i = 0; i < names.length; i++) {
const n = names[i];
const path = tabNameToRulePathMapping[n]//取出激活/展开面板name对应的rulePath
if (path) {
arr.push(path)
}
}
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -95,25 +95,25 @@ ...@@ -95,25 +95,25 @@
<c-col :span="24"> <c-col :span="24">
<c-form-item label="原币金额" prop="cnybop.cnyinc.ftotalamt"> <c-form-item label="原币金额" prop="cnybop.cnyinc.ftotalamt">
<c-input v-model="model.cnybop.cnyinc.ftotalamt" placeholder="请输入原币金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.ftotalamt" class="input-currency-left" placeholder="请输入原币金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="货物贸易收款金额" prop="cnybop.cnyinc.fpayeeamt"> <c-form-item label="货物贸易收款金额" prop="cnybop.cnyinc.fpayeeamt">
<c-input v-model="model.cnybop.cnyinc.fpayeeamt" placeholder="请输入货物贸易收款金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.fpayeeamt" class="input-currency-left" placeholder="请输入货物贸易收款金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="已报关收款金额" prop="cnybop.cnyinc.fcustomsamt"> <c-form-item label="已报关收款金额" prop="cnybop.cnyinc.fcustomsamt">
<c-input v-model="model.cnybop.cnyinc.fcustomsamt" placeholder="请输入已报关收款金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.fcustomsamt" class="input-currency-left" placeholder="请输入已报关收款金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="已备案收款金额" prop="cnybop.cnyinc.frecordamt"> <c-form-item label="已备案收款金额" prop="cnybop.cnyinc.frecordamt">
<c-input v-model="model.cnybop.cnyinc.frecordamt" placeholder="请输入已备案收款金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.frecordamt" class="input-currency-left" placeholder="请输入已备案收款金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<c-col :span="24"> <c-col :span="24">
<c-form-item label="预收款金额" prop="cnybop.cnyinc.fprepayeeamt"> <c-form-item label="预收款金额" prop="cnybop.cnyinc.fprepayeeamt">
<c-input v-model="model.cnybop.cnyinc.fprepayeeamt" placeholder="请输入预收款金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.fprepayeeamt" class="input-currency-left" placeholder="请输入预收款金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -215,19 +215,19 @@ ...@@ -215,19 +215,19 @@
<c-col :span="24"> <c-col :span="24">
<c-form-item label="无货物报关进出境物流货物金额" prop="cnybop.cnyinc.fonshoreamt"> <c-form-item label="无货物报关进出境物流货物金额" prop="cnybop.cnyinc.fonshoreamt">
<c-input v-model="model.cnybop.cnyinc.fonshoreamt" placeholder="请输入无货物报关进出境物流货物金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.fonshoreamt" class="input-currency-left" placeholder="请输入无货物报关进出境物流货物金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="无货物报关离岸转手买卖金额" prop="cnybop.cnyinc.foffshoreamt"> <c-form-item label="无货物报关离岸转手买卖金额" prop="cnybop.cnyinc.foffshoreamt">
<c-input v-model="model.cnybop.cnyinc.foffshoreamt" placeholder="请输入无货物报关离岸转手买卖金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.foffshoreamt" class="input-currency-left" placeholder="请输入无货物报关离岸转手买卖金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="无货物报关其他金额" prop="cnybop.cnyinc.fnogoodsamt"> <c-form-item label="无货物报关其他金额" prop="cnybop.cnyinc.fnogoodsamt">
<c-input v-model="model.cnybop.cnyinc.fnogoodsamt" placeholder="请输入无货物报关其他金额"></c-input> <c-input-currency v-model="model.cnybop.cnyinc.fnogoodsamt" class="input-currency-left" placeholder="请输入无货物报关其他金额"></c-input-currency>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> </c-col>
......
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