Commit e527c700 by WuBing

getset缺陷修改

parent 3761e416
......@@ -413,9 +413,8 @@ export default {
{type: "date", required: false, message: "输入正确的日期"}
],
"cnybop.cnyinc.fprepayeeamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.iaccountperiod":[
......@@ -423,43 +422,36 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"cnybop.cnyinc.ftotalamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.sorilevyno":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"cnybop.cnyinc.fpayeeamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.fonshoreamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.fcustomsamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.foffshoreamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.frecordamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.fnogoodsamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.saddword":[
{type: "string", required: false, message: "必输项"},
......
......@@ -143,7 +143,7 @@
</c-col>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<c-col :span="12">
<c-form-item
v-if="model.gitp.swiftflg == 'N'"
......@@ -165,7 +165,6 @@
label-width="5px"
prop="trnmod.swiadd.addamt"
>
<!-- 不确定能否回显负金额,因此空为disabled,故暂定能显示负金额 -->
<c-input-currency-min
disabled
v-model="model.trnmod.swiadd.addamt"
......@@ -174,7 +173,7 @@
></c-input-currency-min>
</c-form-item>
</c-col>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item
......
......@@ -307,7 +307,7 @@
v-model="model.gidgrp.ghd.segtyp"
style="width: 100%"
placeholder="请选择特殊保函类型"
:code="codes.segtyp"
:code="codes.segtyppop"
>
</c-select>
</el-form-item>
......
......@@ -32,6 +32,11 @@ import Wg from "./Wg";
import Cnyp1 from "./Cnyp1";
import Basp from "./Basp";
import Incp from "./Incp";
const tabNameToRulePathMapping = {
"incp": "cnybop.incp",
}
export default {
inject: ["root"],
components: {
......@@ -49,7 +54,28 @@ export default {
},
methods: {
...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 () {},
};
......
......@@ -95,25 +95,25 @@
<c-col :span="24">
<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-col>
<c-col :span="24">
<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-col>
<c-col :span="24">
<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-col>
<c-col :span="24">
<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-col>
......@@ -197,7 +197,7 @@
<c-col :span="24">
<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-col>
......@@ -215,19 +215,19 @@
<c-col :span="24">
<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-col>
<c-col :span="24">
<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-col>
<c-col :span="24">
<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-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