Commit dafaf4b3 by WH

brtlat中init调用setmod接口

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