|
|
|
@ -1,12 +1,30 @@ |
|
|
|
<script> |
|
|
|
import {queryList} from "../../../api/inventory/materialIssue"; |
|
|
|
import th from "element-ui/src/locale/lang/th"; |
|
|
|
import {issueNotifyPageSearch, pickDetailIssued, queryPickDetailList} from "../../../api/issueNotify/issueNotify"; |
|
|
|
import { |
|
|
|
createBillLadingSummary, |
|
|
|
getBillLadingDetail, |
|
|
|
issueNotifyPageSearch, |
|
|
|
pickDetailIssued, |
|
|
|
queryPickDetailList |
|
|
|
} from "../../../api/issueNotify/issueNotify"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'MaterialIssue', |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
// 导出 start |
|
|
|
exportData: [], |
|
|
|
exportName: "提货单明细汇总" + this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
exportHeader: ["提货单明细汇总"], |
|
|
|
exportFooter: [], |
|
|
|
exportList:[], |
|
|
|
// 导出 start |
|
|
|
exportBillLadingDetailData: [], |
|
|
|
exportBillLadingDetailName: "提货单明细" + this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
exportBillLadingDetailHeader: ['提货单明细'], |
|
|
|
exportBillLadingDetailFooter: [], |
|
|
|
exportBillLadingDetailList:[], |
|
|
|
queryLoading:false, |
|
|
|
queryParams:{ |
|
|
|
notifyNo: '', |
|
|
|
@ -181,6 +199,622 @@ export default { |
|
|
|
columnWidth: 90, |
|
|
|
}, |
|
|
|
], |
|
|
|
pickDetailColumnList: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3PickListNo', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'pickListNo', |
|
|
|
columnLabel: '提货单号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3RequireQty', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'requireQty', |
|
|
|
columnLabel: '所需数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3OnHandQty', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'onHandQty', |
|
|
|
columnLabel: '库存数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3StockQty', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'stockQty', |
|
|
|
columnLabel: '库存可用数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3WaivDevRejNo', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'waivDevRejNo', |
|
|
|
columnLabel: 'WDR', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 60, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3RmPartNo', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'rmPartNo', |
|
|
|
columnLabel: '零件编码', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3RmPartDesc', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'rmPartDesc', |
|
|
|
columnLabel: '零件描述', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 140, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3PartFam', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'partFam', |
|
|
|
columnLabel: '零件大类', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3LocationNo', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'locationNo', |
|
|
|
columnLabel: '库位', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3BatchNo', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'batchNo', |
|
|
|
columnLabel: '批次', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3EngChgLevel', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'engChgLevel', |
|
|
|
columnLabel: '版本', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3ActivitySeq', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'activitySeq', |
|
|
|
columnLabel: '序号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3IssueQty', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'issueQty', |
|
|
|
columnLabel: '下发数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3IssuedQty', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'issuedQty', |
|
|
|
columnLabel: '已下发数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table3Status', |
|
|
|
tableId: '400002Table3', |
|
|
|
tableName: '提货明细汇总表', |
|
|
|
columnProp: 'status', |
|
|
|
columnLabel: '状态', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
} |
|
|
|
], |
|
|
|
billLadingDetailColumnList: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2NeedDate', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'needDate', |
|
|
|
columnLabel: '车间订单需要日期', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 110, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2Status', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'status', |
|
|
|
columnLabel: '车间订单状态', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2OnhandQty', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'onhandQty', |
|
|
|
columnLabel: '库存数量_仓库库位', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 110, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2FgPartDesc', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'fgPartDesc', |
|
|
|
columnLabel: '成品零件描述', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 210, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2FgPartNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'fgPartNo', |
|
|
|
columnLabel: '成品零件号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2IssueQty', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'issueQty', |
|
|
|
columnLabel: '下发数量(实时)', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2Remark', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'remark', |
|
|
|
columnLabel: '备注', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2IssueQty', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'issueQty', |
|
|
|
columnLabel: '已领数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 70, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2Contract', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'contract', |
|
|
|
columnLabel: '域', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 40, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2RmPartDesc', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'rmPartDesc', |
|
|
|
columnLabel: '子件描述', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 210, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2RmPartNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'rmPartNo', |
|
|
|
columnLabel: '子件号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2ThOrderNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'thOrderNo', |
|
|
|
columnLabel: '3H订单号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2EngChgLevel', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'engChgLevel', |
|
|
|
columnLabel: '层级号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 50, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2LineItemNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'lineItemNo', |
|
|
|
columnLabel: '车间订单行号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2LineNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'lineNo', |
|
|
|
columnLabel: 'Line No', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 60, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2LocationNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'locationNo', |
|
|
|
columnLabel: '库位号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 50, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2OderNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'orderNo', |
|
|
|
columnLabel: '车间订单号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 90, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2OrigAssignedQty', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'origAssignedQty', |
|
|
|
columnLabel: '待领总数量', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 70, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 400002, |
|
|
|
serialNumber: '400002Table2PickListNo', |
|
|
|
tableId: '400002Table2', |
|
|
|
tableName: '领料申请单明细表', |
|
|
|
columnProp: 'pickListNo', |
|
|
|
columnLabel: '提货单号', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
], |
|
|
|
pickDetailVisible:false, |
|
|
|
pickDetailList:[], |
|
|
|
pickDetailLoading:false, |
|
|
|
@ -189,6 +823,18 @@ export default { |
|
|
|
}, |
|
|
|
selectionPickDetailList:[], |
|
|
|
issuedLoading:false, |
|
|
|
pickDetailFlag:true, |
|
|
|
|
|
|
|
billLadingDetailDataList: [], |
|
|
|
billLadingDetailFlag: false, |
|
|
|
billLadingDetailLoading: false, |
|
|
|
billLadingModalData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
notifyNo: '', |
|
|
|
ifsPickListNo: '', |
|
|
|
thOrderNo: '', |
|
|
|
orderNo: '' |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
@ -208,11 +854,19 @@ export default { |
|
|
|
this.queryLoading = false; |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleQueryPickDetail(row){ |
|
|
|
handleQueryPickDetail(row,type){ |
|
|
|
this.currentRow = { |
|
|
|
site:row.site, |
|
|
|
ifsPickListNo:row.ifsPickListNo, |
|
|
|
notifyNo:row.notifyNo, |
|
|
|
thOrderNo:row.thOrderNo, |
|
|
|
orderNo:row.orderNo, |
|
|
|
partNo:'', |
|
|
|
} |
|
|
|
if (type===1){ |
|
|
|
this.pickDetailFlag = false; |
|
|
|
} else if (type===2){ |
|
|
|
this.pickDetailFlag = true; |
|
|
|
} |
|
|
|
this.queryPickDetailList(this.currentRow) |
|
|
|
this.pickDetailVisible = true; |
|
|
|
@ -267,6 +921,111 @@ export default { |
|
|
|
this.issuedLoading = false; |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getBillLadingDetail(row){ |
|
|
|
let inData = { |
|
|
|
site: row.site, |
|
|
|
ifsPickListNo: row.ifsPickListNo, |
|
|
|
thOrderNo: row.thOrderNo |
|
|
|
}; |
|
|
|
this.billLadingDetailFlag = true; |
|
|
|
this.billLadingDetailLoading = true; |
|
|
|
getBillLadingDetail(inData).then(({data}) => |
|
|
|
{ |
|
|
|
if (data.code === 0) { |
|
|
|
this.billLadingDetailDataList = data.list; |
|
|
|
this.billLadingDetailLoading = false; |
|
|
|
this.billLadingModalData = { |
|
|
|
site: row.site, |
|
|
|
notifyNo: row.notifyNo, |
|
|
|
ifsPickListNo: row.ifsPickListNo, |
|
|
|
thOrderNo: row.thOrderNo, |
|
|
|
orderNo: row.orderNo |
|
|
|
}; |
|
|
|
} else { |
|
|
|
this.$message.error('获取失败:' + data.msg); |
|
|
|
this.billLadingDetailLoading = false; |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
createBillLadingSummary (row) { |
|
|
|
let inData = { |
|
|
|
site: row.site, |
|
|
|
ifsPickListNo: row.ifsPickListNo, |
|
|
|
status: row.status |
|
|
|
}; |
|
|
|
this.$confirm('确定创建提货单汇总吗?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
createBillLadingSummary(inData).then(({data}) => |
|
|
|
{ |
|
|
|
if (data.code === 0) { |
|
|
|
this.$message.success('创建成功'); |
|
|
|
this.getDataList(); |
|
|
|
} else { |
|
|
|
this.$message.error('创建失败:' + data.msg); |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//导出excel |
|
|
|
async createExportData () { |
|
|
|
let params = { |
|
|
|
site:this.$store.state.user.site, |
|
|
|
ifsPickListNo:this.currentRow.ifsPickListNo, |
|
|
|
partNo:'', |
|
|
|
} |
|
|
|
await queryPickDetailList(params).then(({data}) => { |
|
|
|
this.exportList = data.rows |
|
|
|
}) |
|
|
|
return this.exportList |
|
|
|
}, |
|
|
|
|
|
|
|
startDownload () {}, |
|
|
|
|
|
|
|
finishDownload () {}, |
|
|
|
|
|
|
|
fields () { |
|
|
|
let json = "{" |
|
|
|
this.pickDetailColumnList.forEach((item, index) => { |
|
|
|
if (index == this.pickDetailColumnList.length - 1) { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" |
|
|
|
} else { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," |
|
|
|
} |
|
|
|
}) |
|
|
|
json += "}" |
|
|
|
let s = eval("(" + json + ")") |
|
|
|
return s |
|
|
|
}, |
|
|
|
|
|
|
|
//导出excel |
|
|
|
async createExportBillLadingDetailData () { |
|
|
|
this.exportBillLadingDetailList = this.billLadingDetailDataList |
|
|
|
return this.exportBillLadingDetailList |
|
|
|
}, |
|
|
|
|
|
|
|
startBillLadingDetailDownload () {}, |
|
|
|
|
|
|
|
finishBillLadingDetailDownload () {}, |
|
|
|
|
|
|
|
fieldsBillLadingDetail () { |
|
|
|
let json = "{" |
|
|
|
this.billLadingDetailColumnList.forEach((item, index) => { |
|
|
|
if (index == this.billLadingDetailColumnList.length - 1) { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" |
|
|
|
} else { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," |
|
|
|
} |
|
|
|
}) |
|
|
|
json += "}" |
|
|
|
let s = eval("(" + json + ")") |
|
|
|
return s |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
queryLoading(newValue){ |
|
|
|
@ -377,7 +1136,15 @@ export default { |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" width="100" label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a @click="handleQueryPickDetail(scope.row)">提货单汇总明细</a> |
|
|
|
<a @click="getBillLadingDetail(scope.row)">提货单明细</a> |
|
|
|
<el-dropdown trigger="click"> |
|
|
|
<el-link style="cursor: pointer;font-size: 12px">更多</el-link> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item @click.native="createBillLadingSummary(scope.row)">创建提货单汇总</el-dropdown-item> |
|
|
|
<el-dropdown-item @click.native="handleQueryPickDetail(scope.row,1)">提货单汇总</el-dropdown-item> |
|
|
|
<el-dropdown-item @click.native="handleQueryPickDetail(scope.row,2)">发料</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -392,8 +1159,8 @@ export default { |
|
|
|
:total="total"> |
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
<el-dialog :visible.sync="pickDetailVisible" title="提货单明细" v-drag width="1200px" :close-on-click-modal="false"> |
|
|
|
<el-form :model="currentRow" label-position="top"> |
|
|
|
<el-dialog :visible.sync="pickDetailVisible" title="提货单明细汇总" v-drag width="1200px" :close-on-click-modal="false"> |
|
|
|
<el-form :model="currentRow" label-position="top" v-if="pickDetailFlag"> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="零件编码"> |
|
|
|
@ -408,8 +1175,39 @@ export default { |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="currentRow" style="margin-top: 5px;" v-if="!pickDetailFlag"> |
|
|
|
<el-form-item label="申请单号" prop="notifyNo"> |
|
|
|
<el-input v-model="currentRow.notifyNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="IFS提货单号" prop="ifsPickListNo"> |
|
|
|
<el-input v-model="currentRow.ifsPickListNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="3H订单号" prop="thOrderNo"> |
|
|
|
<el-input v-model="currentRow.thOrderNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="生产订单号" prop="orderNo"> |
|
|
|
<el-input v-model="currentRow.orderNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
type="xls" |
|
|
|
:name="exportName" |
|
|
|
:header="exportHeader" |
|
|
|
:footer="exportFooter" |
|
|
|
:fetch="createExportData" |
|
|
|
:before-generate="startDownload" |
|
|
|
:before-finish="finishDownload" |
|
|
|
worksheet="导出信息" |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ "导出" }} |
|
|
|
</download-excel> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="rq"> |
|
|
|
<el-table :data="pickDetailList" border height="350px" v-loading="pickDetailLoading" @selection-change="handleSelectionChange"> |
|
|
|
<el-table :data="pickDetailList" border height="350px" v-loading="pickDetailLoading" |
|
|
|
@selection-change="handleSelectionChange" v-if="pickDetailFlag"> |
|
|
|
<el-table-column |
|
|
|
type="selection" |
|
|
|
width="55" |
|
|
|
@ -436,11 +1234,85 @@ export default { |
|
|
|
<el-table-column label="已下发数量" prop="issuedQty" header-align="center" align="center" min-width="80px"/> |
|
|
|
<el-table-column label="状态" prop="status" header-align="center" align="center" min-width="80px"/> |
|
|
|
</el-table> |
|
|
|
<el-table :data="pickDetailList" border height="350px" v-loading="pickDetailLoading" |
|
|
|
v-if="!pickDetailFlag"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item, index) in pickDetailColumnList" :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> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<el-footer style="text-align: center;line-height: 30px;height: 30px"> |
|
|
|
<el-button @click="pickDetailVisible = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="提货单明细" :close-on-click-modal="false" v-drag :visible.sync="billLadingDetailFlag" width="1200px"> |
|
|
|
<el-form :inline="true" label-position="top" :model="billLadingModalData" style="margin-top: 5px;"> |
|
|
|
<el-form-item label="申请单号" prop="notifyNo"> |
|
|
|
<el-input v-model="billLadingModalData.notifyNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="IFS提货单号" prop="ifsPickListNo"> |
|
|
|
<el-input v-model="billLadingModalData.ifsPickListNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="3H订单号" prop="thOrderNo"> |
|
|
|
<el-input v-model="billLadingModalData.thOrderNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="生产订单号" prop="orderNo"> |
|
|
|
<el-input v-model="billLadingModalData.orderNo" disabled style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<download-excel |
|
|
|
:fields="fieldsBillLadingDetail()" |
|
|
|
:data="exportBillLadingDetailData" |
|
|
|
type="xls" |
|
|
|
:name="exportBillLadingDetailName" |
|
|
|
:header="exportBillLadingDetailHeader" |
|
|
|
:footer="exportBillLadingDetailFooter" |
|
|
|
:fetch="createExportBillLadingDetailData" |
|
|
|
:before-generate="startBillLadingDetailDownload" |
|
|
|
:before-finish="finishBillLadingDetailDownload" |
|
|
|
worksheet="导出信息" |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ "导出" }} |
|
|
|
</download-excel> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
height="350px" |
|
|
|
:data="billLadingDetailDataList" |
|
|
|
v-loading="billLadingDetailLoading" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item, index) in billLadingDetailColumnList" :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> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-footer style="text-align: center;line-height: 30px;height: 30px"> |
|
|
|
<el-button @click="billLadingDetailFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|