Commit eeab8c22 by xionglin

litdck多笔到单单据问题

parent 72ba0cef
......@@ -126,10 +126,28 @@ export default {
}
}
},
handleClick (btn) {
async handleClick (btn) {
if (btn.value === 'N') {
return
}
if ( btn.label == '到单' ) {
const inr = this.currentHandleRow.inr
const res = await Api.post(`/service/litdck/findLitdck?inr=${inr}`);
this.dckData = res.data;
if( res.data.length > 1) {
this.$confirm('该笔信用证有多笔通知到单单据,是否选择其中一条?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.litdckdialog = true
}).catch(() => {
this.litdckdialog = false
});
return
}
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
......@@ -156,6 +174,15 @@ export default {
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
checkData(row){
this.$router.history.push({
path: '/business-new/litdck',
query: {
inr: this.currentHandleRow.inr,brdinr:row.inr
}
});
}
},
};
......@@ -239,6 +239,17 @@
</div>
</div>
</el-dialog>
<el-dialog :visible.sync="litdckdialog">
<el-table :data="dckData" :columns="dckColumns" style="width:100%" @row-dblclick="checkData">
<el-table-column
v-for="(item, key) in dckColumns"
:key="key"
:label="item.label"
:prop="item.prop"
>
</el-table-column>
</el-table>
</el-dialog>
<!-- <m-busbtn ref="childs" :ownref="ownref" trnCode="litsel" :model="litselModel" ownrefPath="lidget.lid.ownref">
</m-busbtn> -->
......@@ -256,6 +267,13 @@ export default {
return {
ownref: "",
isGuarantee: "",
litdckdialog:false,
dckData:[],
dckColumns: [
{ label: 'inr', prop: 'inr', width: '120' },
{ label: '单据申请号', prop: 'ownref', width: '120' },
{ label:'Nam',prop:'nam',width:'120'}
],
// 表格相关
stmData: {
columns: [
......
......@@ -22,7 +22,15 @@ export default {
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
brdgrp:{
rec:{
inr:this.$route.query.brdinr
}
}
}
if (typeof(this.$route.query.brdinr) == 'undefined') {
params.brdgrp.rec.inr = null
}
const res = await Api.post('/service/litdck/init', {
...params,
......
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