|
|
|
@ -81,7 +81,29 @@ |
|
|
|
<el-tab-pane label="装箱清单" name="boxing" style=""> |
|
|
|
<boxing ref="boxing"></boxing> |
|
|
|
</el-tab-pane> |
|
|
|
|
|
|
|
<el-tab-pane label="出库单明细" name="outboundDetail"> |
|
|
|
<el-table |
|
|
|
:data="detailList" |
|
|
|
:height="height - 20" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnDetailList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed===''?false:item.fixed" |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
|
|
|
@ -96,7 +118,7 @@ |
|
|
|
|
|
|
|
import excel from "@/utils/excel-util.js"; |
|
|
|
import boxing from "./com_saleBoxManage_boxing.vue" |
|
|
|
import {searchOutboundNotification} from '../../../api/qc/outbound_notification' |
|
|
|
import {getOutboundDetail, searchOutboundNotification} from '../../../api/qc/outbound_notification' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -123,6 +145,7 @@ export default { |
|
|
|
totalPage: 0, |
|
|
|
tagNo:'', |
|
|
|
mainDataList:[], |
|
|
|
detailList:[], |
|
|
|
dataListLoading: false, |
|
|
|
activeName: 'boxing', |
|
|
|
columnArray1: [ |
|
|
|
@ -235,6 +258,99 @@ export default { |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
], |
|
|
|
columnDetailList: [ |
|
|
|
{ |
|
|
|
columnProp: 'relatedOrderNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '销售订单号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'relatedOrderLineNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
columnLabel: '销售订单行号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '物料编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '物料名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 200, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'orderQty', |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
columnLabel: '销售订单数量', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'requiredQty', |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
columnLabel: '要求发货数量', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'unit', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '单位', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
], |
|
|
|
exportName: '发货通知单'+this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -298,6 +414,9 @@ export default { |
|
|
|
if(this.activeName==='boxing'){ |
|
|
|
this.refreshBoxingTable(); |
|
|
|
} |
|
|
|
if(this.activeName==='outboundDetail'){ |
|
|
|
this.refreshDetailTable(); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
async exportExcel() { |
|
|
|
@ -324,7 +443,16 @@ export default { |
|
|
|
} |
|
|
|
this.$refs.boxing.init(inData) |
|
|
|
}, |
|
|
|
|
|
|
|
refreshDetailTable(){ |
|
|
|
let templateData = { |
|
|
|
site: this.currentRow.site, |
|
|
|
buNo: this.currentRow.buNo, |
|
|
|
orderNo: this.currentRow.orderNo, |
|
|
|
} |
|
|
|
getOutboundDetail(templateData).then(({data}) => { |
|
|
|
this.detailList = data.rows |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
//查询报表的类型 |
|
|
|
|