Commit dafaf4b3 by WH

brtlat中init调用setmod接口

parent a22ce94c
......@@ -51,6 +51,13 @@ export default {
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
}
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
......
<template>
<div class="eibs">
<c-row >
<c-row>
<c-col :span="24">
<!---------------------------左边--------------------------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="信用证编号" prop="lidgrp.rec.ownref">
<c-input v-model="model.lidgrp.rec.ownref" maxlength="16" placeholder="请输入信用证编号" disabled></c-input>
<c-input v-model="model.lidgrp.rec.ownref" maxlength="16" placeholder="请输入信用证编号"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据参考号" prop="brdgrp.rec.ownref">
<c-input v-model="model.brdgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号" disabled></c-input>
<c-input v-model="model.brdgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
<c-select v-model="model.brdgrp.cbs.max.cur" style="width:100%" placeholder="请选择单据金额" disabled :code="codes.cur">
<c-select v-model="model.brdgrp.cbs.max.cur" style="width:100%" placeholder="请选择单据金额" disabled
:code="codes.cur">
</c-select>
</el-form-item>
</c-col>
......@@ -33,7 +36,8 @@
<c-col :span="24">
<c-col :span="13">
<el-form-item label="单据余额" prop="brdgrp.cbs.opn1.cur">
<c-input v-model="model.brdgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入单据余额" disabled :code="codes.cur"></c-input>
<c-input v-model="model.brdgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入单据余额" disabled
:code="codes.cur"></c-input>
</el-form-item>
</c-col>
......@@ -47,12 +51,14 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="到单日期" prop="brdgrp.rec.rcvdat">
<c-date-picker type="date" v-model="model.brdgrp.rec.rcvdat" style="width:100%" placeholder="请选择到单日期" disabled></c-date-picker>
<c-date-picker type="date" v-model="model.brdgrp.rec.rcvdat" style="width:100%"
placeholder="请选择到单日期" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="通知到单日期" prop="brdgrp.rec.advdat">
<c-date-picker type="date" v-model="model.brdgrp.rec.advdat" style="width:100%" placeholder="请选择通知到单日期" disabled></c-date-picker>
<c-date-picker type="date" v-model="model.brdgrp.rec.advdat" style="width:100%"
placeholder="请选择通知到单日期" disabled></c-date-picker>
</el-form-item>
</c-col>
</c-col>
......@@ -60,19 +66,22 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="远期单据到期日" prop="brdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.brdgrp.rec.matdat" style="width:100%" placeholder="请选择远期单据到期日" disabled></c-date-picker>
<c-date-picker type="date" v-model="model.brdgrp.rec.matdat" style="width:100%"
placeholder="请选择远期单据到期日" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="开始日期" prop="brdgrp.rec.stadat">
<c-date-picker type="date" v-model="model.brdgrp.rec.stadat" style="width:100%" placeholder="请选择开始日期" disabled></c-date-picker>
<c-date-picker type="date" v-model="model.brdgrp.rec.stadat" style="width:100%"
placeholder="请选择开始日期" disabled></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="单据类型" prop="brdgrp.rec.docflg">
<c-select v-model="model.brdgrp.rec.docflg" style="width:100%" placeholder="请选择单据类型" :code="codes.docflg" disabled>
<c-select v-model="model.brdgrp.rec.docflg" style="width:100%" placeholder="请选择单据类型"
:code="codes.docflg" disabled>
</c-select>
</el-form-item>
</c-col>
......@@ -84,14 +93,16 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="brdgrp.rec.docsta">
<c-select v-model="model.brdgrp.rec.docsta" style="width:100%" placeholder="请选择单据状态" :code="codes.docsta1" disabled>
<c-select v-model="model.brdgrp.rec.docsta" style="width:100%" placeholder="请选择单据状态"
:code="codes.docsta1" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="提交单据" prop="brdgrp.blk.prsdoc">
<c-input type="textarea" v-model="model.brdgrp.blk.prsdoc" maxlength="65" show-word-limit placeholder="请输入" :rows="5" disabled></c-input>
<c-input type="textarea" v-model="model.brdgrp.blk.prsdoc" maxlength="65" show-word-limit
placeholder="请输入" :rows="5" disabled></c-input>
</el-form-item>
</c-col>
......@@ -101,7 +112,8 @@
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="到期日" prop="lidgrp.rec.expdat">
<c-date-picker type="date" v-model="model.lidgrp.rec.expdat" style="width:100%" placeholder="请选择到期日" disabled></c-date-picker>
<c-date-picker type="date" v-model="model.lidgrp.rec.expdat" style="width:100%" placeholder="请选择到期日"
disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -118,13 +130,15 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据简略信息" prop="brdgrp.rec.nam">
<c-input v-model="model.brdgrp.rec.nam" maxlength="40" placeholder="请输入单据简略信息" disabled></c-input>
<c-input v-model="model.brdgrp.rec.nam" maxlength="40" placeholder="请输入单据简略信息"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="申请人" prop="brdgrp.apl.pts.ref">
<c-input v-model="model.brdgrp.apl.pts.ref" maxlength="16" placeholder="请输入申请人" disabled></c-input>
<c-input v-model="model.brdgrp.apl.pts.ref" maxlength="16" placeholder="请输入申请人"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
......@@ -137,7 +151,8 @@
<c-col :span="24">
<c-col :span="13">
<el-form-item label="受益人" prop="brdgrp.ben.pts.ref">
<c-input v-model="model.brdgrp.ben.pts.ref" maxlength="16" placeholder="请输入受益人" disabled></c-input>
<c-input v-model="model.brdgrp.ben.pts.ref" maxlength="16" placeholder="请输入受益人"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
......@@ -150,7 +165,8 @@
<c-col :span="24">
<c-col :span="13">
<el-form-item label="交单行" prop="brdgrp.prb.pts.ref">
<c-input v-model="model.brdgrp.prb.pts.ref" maxlength="16" placeholder="请输入交单行" disabled></c-input>
<c-input v-model="model.brdgrp.prb.pts.ref" maxlength="16" placeholder="请输入交单行"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
......@@ -172,7 +188,8 @@
<c-col :span="24">
<c-col :span="13">
<el-form-item label="减少后的结算金额" prop="setmod.doccur">
<c-input v-model="model.setmod.doccur" maxlength="3" placeholder="请输入减少后的结算金额" disabled></c-input>
<c-input v-model="model.setmod.doccur" maxlength="3" placeholder="请输入减少后的结算金额"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
......@@ -183,7 +200,8 @@
</c-col>
<c-col :span="24">
<el-form-item label="收到申请人指示" prop="brdgrp.blk.aplins">
<c-input type="textarea" v-model="model.brdgrp.blk.aplins" maxlength="40" show-word-limit placeholder="请输入指示内容" :rows="5"></c-input>
<c-input type="textarea" v-model="model.brdgrp.blk.aplins" maxlength="40" show-word-limit
placeholder="请输入指示内容" :rows="5"></c-input>
</el-form-item>
</c-col>
</c-col>
......@@ -213,7 +231,7 @@
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.brtp.matp.mattxtlab" data-path=".brtp.matp.mattxtlab" > </span>
<span v-text="model.brtp.matp.mattxtlab" data-path=".brtp.matp.mattxtlab"> </span>
</c-col>
......@@ -224,17 +242,21 @@
</template>
<script>
import event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
props: ["model", "codes"],
mixins: [event],
data(){
return {
}
data() {
return {}
},
created:function(){
created: function () {
},
computed: {
setmoddoccur() {
this.model.setmod.doccur = this.brdgrp.cbs.max.cur
return this.model.setmod.doccur
}
}
}
</script>
......
......@@ -105,7 +105,7 @@ export default {
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() {
let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr,
ptainr: this.model.brdgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
};
......@@ -113,7 +113,7 @@ export default {
let res = await Api.post('/service/brtudp/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
this.model.brdgrp.rec.ownref = res.data;
}
},
// 获取brtudp弹框表格数据
......
......@@ -24,19 +24,19 @@ export default class Brtudp {
relstoadr: ''
},
prb: {
pts:new Pts().data
pts: new Pts().data
},
acb: {
pts:new Pts().data
pts: new Pts().data
},
rmb: {
pts:new Pts().data
pts: new Pts().data
},
beb: {
pts:new Pts().data
pts: new Pts().data
},
shp: {
pts:new Pts().data
pts: new Pts().data
},
rec: {
tenmaxday: '',
......@@ -94,7 +94,7 @@ export default class Brtudp {
brtp: {
connum: '',
oth: {
pts:new Pts().data
pts: new Pts().data
},
},
aamset: {
......
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