Commit ad65c4a2 by huxi

litrog

parent aa0a13ac
...@@ -28,6 +28,9 @@ export default { ...@@ -28,6 +28,9 @@ export default {
if (model.lidgrp.ben.pts.extkey) { if (model.lidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.ben)); ptsptaList.push(this.buildPtspta(model.lidgrp.ben));
} }
if (model.lidgrp.rog.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.rog));
}
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'LID', objtyp: 'LID',
......
...@@ -22,7 +22,12 @@ export default { ...@@ -22,7 +22,12 @@ export default {
...doctre, ...doctre,
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
lidgrp:{
rec:{
inr:this.$route.query.inr
}
}
} }
const res = await Api.post('/service/litrog/init', { const res = await Api.post('/service/litrog/init', {
...params, ...params,
...@@ -95,18 +100,31 @@ export default { ...@@ -95,18 +100,31 @@ export default {
queryFormData(key) { queryFormData(key) {
console.log(key); console.log(key);
}, },
// 业务信息=》基本信息=》保函编号-----获取保函编号 // 获取提货担保编号
async queryOwnref() { async queryShgref() {
let params = {
ptainr: this.model.lidgrp.apl.pts.ptainr,
businessType: 'SG',
tbl: 'SG',
};
const loading = this.loading();
let res = await Api.post('/service/litrog/getSgRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.brdgrp.rec.shgref = res.data;
}
},
// 获取单据编号
async Butgetref(){
let params = { let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr, lid: this.model.lidgrp.rec,
businessType: 'LC', brd: this.model.brdgrp.rec,
tbl: 'LC',
}; };
const loading = this.loading(); const loading = this.loading();
let res = await Api.post('/service/litame/getOwnRef', params); let res = await Api.post('/service/litrog/butgetref', 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;
} }
}, },
// 获取gitopn弹框表格数据 // 获取gitopn弹框表格数据
......
...@@ -304,21 +304,21 @@ export default { ...@@ -304,21 +304,21 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
], ],
"mtabut.coninf.oitinf.oit.inftxt":[ // "mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"} // {max: 60,message:"长度不能超过60"}
], // ],
"mtabut.coninf.oitset.oit.inftxt":[ // "mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"} // {max: 60,message:"长度不能超过60"}
], // ],
"mtabut.coninf.conexedat":[ // "mtabut.coninf.conexedat":[
{type: "string", required: false, message: "输入正确的日期"} // {type: "string", required: false, message: "输入正确的日期"}
], // ],
"mtabut.coninf.usr.extkey":[ // "mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"} // {max: 8,message:"长度不能超过8"}
], // ],
"trnmod.trndoc.advnam":[ "trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"} {max: 50,message:"长度不能超过50"}
...@@ -474,7 +474,7 @@ export default { ...@@ -474,7 +474,7 @@ export default {
"addbcb.pwtyp9": null, "addbcb.pwtyp9": null,
"brdgrp.shp.adrelc": null, "brdgrp.shp.adrelc": null,
"addbcb.ameadvrmk": null, "addbcb.ameadvrmk": null,
"mtabut.coninf.conexedat": null, // "mtabut.coninf.conexedat": null,
"liaall.limmod.limpts.nonrevflg2": null, "liaall.limmod.limpts.nonrevflg2": null,
"liaall.limmod.limpts.nonrevflg1": null, "liaall.limmod.limpts.nonrevflg1": null,
"addbcb.preexpdat": null, "addbcb.preexpdat": null,
......
...@@ -51,6 +51,9 @@ export default class Litrog { ...@@ -51,6 +51,9 @@ export default class Litrog {
}, },
apl: { apl: {
pts: new Pts().data, pts: new Pts().data,
},
rog: {
pts: new Pts().data,
} }
}, },
number: '', number: '',
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" type="primary"> <c-button size="small" type="primary" @click="queryShgref">
获取 获取
</c-button> </c-button>
</template> </template>
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
placeholder="请输入单据编号" placeholder="请输入单据编号"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" type="primary"> <c-button size="small" type="primary" @click="Butgetref">
获取 获取
</c-button> </c-button>
</template> </template>
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
<m-setmod <m-setmod
:model="model" :model="model"
:codes="codes" :codes="codes"
@changeSetmodModel="changeSetmodModel"
/> />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
......
...@@ -3,23 +3,23 @@ export default class Cbs { ...@@ -3,23 +3,23 @@ export default class Cbs {
this.data = { this.data = {
nom1: { nom1: {
cur: "", // Currency .xxxgrp.cbs.nom1.cur cur: "", // Currency .xxxgrp.cbs.nom1.cur
amt: "", // 信用证金额 .xxxgrp.cbs.nom1.amt amt: 0, // 信用证金额 .xxxgrp.cbs.nom1.amt
}, },
max: { max: {
cur: "", // Currency .xxxgrp.cbs.max.cur cur: "", // Currency .xxxgrp.cbs.max.cur
amt: "", // 信用证最大金额 .xxxgrp.cbs.max.amt amt: 0, // 信用证最大金额 .xxxgrp.cbs.max.amt
}, },
max2: { max2: {
cur: "", // Additional Amount .xxxgrp.cbs.max2.cur cur: "", // Additional Amount .xxxgrp.cbs.max2.cur
amt: "", // Additional Amount .xxxgrp.cbs.max2.amt amt: 0, // Additional Amount .xxxgrp.cbs.max2.amt
}, },
opn2: { opn2: {
cur: "", // Open Add. Amount .xxxgrp.cbs.opn2.cur cur: "", // Open Add. Amount .xxxgrp.cbs.opn2.cur
amt: "", // Open Add. Amount .xxxgrp.cbs.opn2.amt amt: 0, // Open Add. Amount .xxxgrp.cbs.opn2.amt
}, },
opn1: { opn1: {
cur: "", // Open Add. Amount .xxxgrp.cbs.opn1.cur cur: "", // Open Add. Amount .xxxgrp.cbs.opn1.cur
amt: "", // Open Add. Amount .xxxgrp.cbs.opn1.amt amt: 0, // Open Add. Amount .xxxgrp.cbs.opn1.amt
}, },
} }
} }
......
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