Commit 3c8d4600 by lianyang

gitopn缺陷解决-动态码表,支出目的

parent 878e7362
...@@ -7323,12 +7323,12 @@ const CodeTable = { ...@@ -7323,12 +7323,12 @@ const CodeTable = {
{ label: "受益人", value: "BENE" }, { label: "受益人", value: "BENE" },
], ],
gartypc: [ gartypc: [
{ label: "APAY", value: "APAY Advance Payment" }, { label: "APAY Advance Payment", value: "APAY" },
{ label: "PAYM", value: "PAYM Payment" }, { label: "PAYM Payment", value: "PAYM" },
{ label: "PERF", value: "PERF Performance" }, { label: "PERF Performance", value: "PERF" },
{ label: "TEND", value: "TEND Tender or Bid" }, { label: "TEND Tender or Bid", value: "TEND" },
{ label: "WARR", value: "WARR Warrantyimaintenance" }, { label: "WARR Warrantyimaintenance", value: "WARR" },
], ],
legfrm1: [ legfrm1: [
{ label: "备用信用证", value: "STBY" }, { label: "备用信用证", value: "STBY" },
{ label: "合同保函统一规则URCG", value: "URG" }, { label: "合同保函统一规则URCG", value: "URG" },
......
...@@ -37,8 +37,8 @@ export default { ...@@ -37,8 +37,8 @@ export default {
}, },
/* /*
获取后台setValues、setCodeValues传来的动态码,并自动转为码表值。 获取后台setValues、setCodeValues传来的动态码,并自动转为码表值。
key:为后端传来的CodeSet的字段path,如bddgrp.rec.docprbrol key:为后端传来的CodeSet的字段path,如'bddgrp.rec.docprbrol'
tableName:src下的全局静态码表中的码表名称,如rolall tableName:src下的全局静态码表中的码表名称,如'rolall'
如后端传来的CodeSet下该字段值为"value+lable",则不用传参数tableName 如后端传来的CodeSet下该字段值为"value+lable",则不用传参数tableName
如后端传来的CodeSet下该字段值仅有"value",则需传参数tableName,去全局静态码表中找到相应码表,根据value值找到lable值 如后端传来的CodeSet下该字段值仅有"value",则需传参数tableName,去全局静态码表中找到相应码表,根据value值找到lable值
*/ */
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
v-model="model.bopmod.szflg" v-model="model.bopmod.szflg"
style="width: 100%" style="width: 100%"
placeholder="请选择申报类型" placeholder="请选择申报类型"
:code="codes.szflg3" :code="getValues('bopmod.szflg','szflg1')"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
......
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
style="width: 100%" style="width: 100%"
placeholder="请选择支出目的" placeholder="请选择支出目的"
:code="getValues('gidgrp.rec.purpos')" :code="getValues('gidgrp.rec.purpos')"
@change="purposChange"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -2035,8 +2036,21 @@ export default { ...@@ -2035,8 +2036,21 @@ export default {
onSeainf(data) { onSeainf(data) {
this.$emit("onSeainf", data); this.$emit("onSeainf", data);
}, },
valueChange() { async purposChange(){
if (this.onlySearch) return; let rtnmsg = await this.executeRule("gidgrp.rec.purpos");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
if(this.model.gidgrp.rec.purpos == 'ISCO' || this.model.gidgrp.rec.purpos == 'ICCO'){
this.$nextTick(() => {
this.executeRule("gitp.ptypc").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS)
this.updateModel(res.data);
});
});
}
}
}, },
async atxexpBlur() { async atxexpBlur() {
let rtnmsg = await this.executeRule("gidgrp.blk.atxexptxt"); let rtnmsg = await this.executeRule("gidgrp.blk.atxexptxt");
......
...@@ -51,14 +51,16 @@ ...@@ -51,14 +51,16 @@
v-model="model.gidgrp.rec.gartypc" v-model="model.gidgrp.rec.gartypc"
style="width: 100%" style="width: 100%"
placeholder="请选择保函类型 " placeholder="请选择保函类型 "
:code="getValues('gidgrp.rec.gartypc','gartypc')"
> >
<el-option <!-- -->
<!-- <el-option
v-for="item in codes.gartypc" v-for="item in codes.gartypc"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
> >
</el-option> </el-option> -->
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -173,8 +173,8 @@ ...@@ -173,8 +173,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.iss.pts.extkey`) showGridPromptDialog(`gidgrp.iss.pts.extkey`)
" "
@blur="issBlur"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -208,7 +208,6 @@ ...@@ -208,7 +208,6 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
label="最终收款行参考号" label="最终收款行参考号"
...@@ -344,12 +343,12 @@ export default { ...@@ -344,12 +343,12 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
async issBlur() { // async issBlur() {
let rtnmsg = await this.executeDefault("gidgrp.rec.sndto"); // let rtnmsg = await this.executeDefault("gidgrp.rec.sndto");
if (rtnmsg.respCode == SUCCESS) { // if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data); // Utils.copyValueFromVO(this.model, rtnmsg.data);
} // }
}, // },
}, },
created: function () {}, created: function () {},
}; };
......
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