Commit ad65c4a2 by huxi

litrog

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