Commit b27fce16 by 潘际乾

信用证金额、申请人Extkey

parent 0c6978cf
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
}, },
showGridPromptDialog(rulePath) { showGridPromptDialog(rulePath) {
this.executeRule(rulePath).then((res) => { this.executeRule(rulePath).then((res) => {
if (res.respCode = SUCCESS){ if (res.respCode === SUCCESS){
if (res.data.params) { if (res.data.params) {
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} else { } else {
...@@ -118,6 +118,9 @@ export default { ...@@ -118,6 +118,9 @@ export default {
} }
} }
} }
const fields = this.root.$refs.modelForm.fields
const fieldErrors = res.fieldErrors;
Utils.positioningErrorMsg(fieldErrors, fields)
}) })
}, },
selectEty(val, rulePath) { selectEty(val, rulePath) {
......
...@@ -26,7 +26,7 @@ let checkObj = { ...@@ -26,7 +26,7 @@ let checkObj = {
"lidgrp.rec.avbby" :null, "lidgrp.rec.avbby" :null,
"lidgrp.ben.pts.extkey" :null, "lidgrp.ben.pts.extkey" :null,
"lidgrp.age.pts.extkey" :null, "lidgrp.age.pts.extkey" :null,
"lidgrp.cbs.nom1.amt" :null, "lidgrp.cbs.nom1.amt" :lidgrpCbsNom1AmtCheck,
"lidgrp.blk.defdet" :null, "lidgrp.blk.defdet" :null,
"lidgrp.blk.lcrdoc" :null, "lidgrp.blk.lcrdoc" :null,
"lidgrp.rmb.pts.adrblk" :null, "lidgrp.rmb.pts.adrblk" :null,
...@@ -66,5 +66,19 @@ for (const key in checkObj) { ...@@ -66,5 +66,19 @@ for (const key in checkObj) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
} }
} }
async function lidgrpCbsNom1AmtCheck (rule, value, callback){
//调用具体的check
const key = "lidgrp.cbs.nom1.amt";
const res = await this.exeuteCheck(key)
if (res.respCode == SUCCESS){
Utils.copyValueFromVO(this.model, res.data)
}
if (Object.hasOwnProperty.call(res.fieldErrors, key)) {
callback(new Error(res.fieldErrors[key]))
} else {
callback();
}
}
export default checkObj export default checkObj
...@@ -7,7 +7,7 @@ import Utils from "~/utils/index" ...@@ -7,7 +7,7 @@ import Utils from "~/utils/index"
export default { export default {
"lidgrp.cbs.nom1.cur" :Utils.defaultFunction, "lidgrp.cbs.nom1.cur" :Utils.defaultFunction,
"lidgrp.cbs.nom1.amt" :Utils.defaultFunction, // "lidgrp.cbs.nom1.amt" :Utils.defaultFunction,
"lidgrp.rec.shpto" :Utils.defaultFunction, "lidgrp.rec.shpto" :Utils.defaultFunction,
"lidgrp.rec.shpfro" :Utils.defaultFunction, "lidgrp.rec.shpfro" :Utils.defaultFunction,
"lidgrp.rmb.pts.extkey" :Utils.defaultFunction, "lidgrp.rmb.pts.extkey" :Utils.defaultFunction,
......
...@@ -65,11 +65,11 @@ export default { ...@@ -65,11 +65,11 @@ export default {
], ],
"lidgrp.rec.nomtop":[ "lidgrp.rec.nomtop":[
{type: "string", required: false, message: "必输项"}, {required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"} {max: 2,message:"长度不能超过2"}
], ],
"lidgrp.rec.nomton":[ "lidgrp.rec.nomton":[
{type: "string", required: false, message: "必输项"}, {required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"} {max: 2,message:"长度不能超过2"}
], ],
"lidgrp.apl.pta.issbchinf":[ "lidgrp.apl.pta.issbchinf":[
......
...@@ -209,6 +209,22 @@ export default class Utils { ...@@ -209,6 +209,22 @@ export default class Utils {
} }
} }
static showErrorMessage(fieldErrors, formFields) {
for (let i = 0; i < formFields.length; i++) {
const field = formFields[i];
for (const key in fieldErrors) {
if (Object.hasOwnProperty.call(fieldErrors, key)) {
if (field.prop === key) {
const fieldError = fieldErrors[key];
field.validateState = 'error';
field.validateMessage = fieldError;
break;
}
}
}
}
}
static defaultFunction(rule, value, callback){ static defaultFunction(rule, value, callback){
this.executeNotify().then(res => { this.executeNotify().then(res => {
if (res.respCode == SUCCESS){ if (res.respCode == SUCCESS){
......
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
<el-form-item label=""> <el-form-item label="">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.lidgrp.apl.pts.adrblk" v-model="model.lidgrp.apl.dbfadrblkcn"
maxlength="35" maxlength="35"
:rows="5" :rows="5"
show-word-limit show-word-limit
...@@ -403,7 +403,7 @@ ...@@ -403,7 +403,7 @@
<el-form-item label=""> <el-form-item label="">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.lidgrp.adv.pts.adrblk" v-model="model.lidgrp.adv.dbfadrblkcn"
maxlength="35" maxlength="35"
:rows="5" :rows="5"
show-word-limit show-word-limit
...@@ -448,7 +448,7 @@ ...@@ -448,7 +448,7 @@
<el-form-item label=""> <el-form-item label="">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.lidgrp.ben.pts.adrblk" v-model="model.lidgrp.ben.dbfadrblkcn"
maxlength="35" maxlength="35"
:rows="5" :rows="5"
show-word-limit show-word-limit
...@@ -495,8 +495,8 @@ export default { ...@@ -495,8 +495,8 @@ export default {
return { return {
codeTable: { codeTable: {
lcrtyp: [ lcrtyp: [
{label: "不可撤销可转让", value: '1'}, {label: "不可撤销可转让", value: 'IT'},
{label: "不可撤销不可转让", value: '2'}, {label: "不可撤销不可转让", value: 'I'},
], ],
isstyp: [ isstyp: [
{label: "WE ISSUE", value: '1'}, {label: "WE ISSUE", value: '1'},
......
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