diff --git a/src/api/orderIssure/soIssueNotify.js b/src/api/orderIssure/soIssueNotify.js index 62671e4..6ddb916 100644 --- a/src/api/orderIssure/soIssueNotify.js +++ b/src/api/orderIssure/soIssueNotify.js @@ -79,5 +79,7 @@ export const checkUserHasUnissueShopOrder = data => createAPI(`/orderIssure/issu // 取消下达申请单 - rqrq export const cancelIssueNotify = data => createAPI(`/orderIssure/issureNotify/cancelIssueNotify`,'post',data) +// 查询预留标签清单 - rqrq +export const searchMaterialListDetail = data => createAPI(`/orderIssure/newIssure/searchMaterialListDetail`,'post',data) diff --git a/src/views/modules/noOrderIssue/noOrderNotification.vue b/src/views/modules/noOrderIssue/noOrderNotification.vue index f7b0637..77a2b14 100644 --- a/src/views/modules/noOrderIssue/noOrderNotification.vue +++ b/src/views/modules/noOrderIssue/noOrderNotification.vue @@ -11,6 +11,15 @@ + + + + + + + + + @@ -40,7 +49,12 @@ :align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" :label="item.columnLabel"> @@ -56,7 +70,7 @@ 关闭 - 推送WCS + 推送WCS @@ -120,7 +134,12 @@ :align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" :label="item.columnLabel"> @@ -160,6 +179,35 @@ + + + + + + + @@ -669,7 +717,9 @@ import { // rqrq - 导入推送WCS相关API(使用领料申请的通用API) import { checkIssueNotifyInventory, - pushInventoryToWcs + pushInventoryToWcs, + searchMaterialListDetail, // rqrq - 导入预留标签清单API + deleteNotifySOS // rqrq - 导入删除申请订单API } from '@/api/orderIssure/soIssueNotify.js' import { getSiteAndBuByUserName, @@ -708,6 +758,7 @@ export default { orderType: '', orderStatus: '', orderStatusList: [], + pushWcsFlag: '', // rqrq - 新增推送WCS筛选条件 startDate: '', endDate: '', page: 1, @@ -1389,8 +1440,174 @@ export default { fixed: false, columnWidth: 80, }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '555001Table1PushWmsFlag', + tableId: '555001Table1', + tableName: '领料申请工单子表', + columnProp: 'pushWmsFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '是否推送WCS', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: false, + columnWidth: 120, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '555001Table1TransportFlag', + tableId: '555001Table1', + tableName: '领料申请工单子表', + columnProp: 'transportFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '立库取出', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: false, + columnWidth: 80, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '555001Table1AreaDesc', + tableId: '555001Table1', + tableName: '领料申请工单子表', + columnProp: 'areaDesc', + headerAlign: 'center', + align: 'left', + columnLabel: '配送区域', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: false, + columnWidth: 100, + }, ], columnDetailList2:[], + // rqrq - 预留标签清单数据和列定义 + dataList7: [], + columnList6: [ + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6ItemNo', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'itemNo', + headerAlign: 'center', + align: 'right', + columnLabel: '订单序号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6BomItemNo', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'bomItemNo', + headerAlign: 'center', + align: 'right', + columnLabel: '订单物料行号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 110, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6SerialNo', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'serialNo', + headerAlign: 'center', + align: 'center', + columnLabel: '标签号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 150, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6TaskRef', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'taskRef', + headerAlign: 'center', + align: 'center', + columnLabel: '立库任务号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6TaskItem', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'taskItem', + headerAlign: 'center', + align: 'right', + columnLabel: '立库任务行号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 110, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6OutWcsFlag', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'outWcsFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '立库取出', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80, + }, + ], rules: { bu: [ { @@ -1502,6 +1719,7 @@ export default { // 获取数据列表 getDataList() { + this.searchData.site = this.$store.state.user.site // rqrq - 设置site this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex this.searchData.orderStatus = this.searchData.orderStatusList.join(',') @@ -1766,9 +1984,38 @@ export default { refreshCurrentTabTable() { if (this.activeTable === 'inboundDetail') { this.getInboundDetail() + } else if (this.activeTable === 'labelDetail') { + // rqrq - 查询预留标签清单 + this.searchMaterialListDetail() } }, + // rqrq - 查询预留标签清单 + searchMaterialListDetail() { + if (!this.currentRow || !this.currentRow.notifyNo) { + this.dataList7 = [] + return + } + const queryData = { + site: this.currentRow.site || this.$store.state.user.site, + notifyNo: this.currentRow.notifyNo + } + this.searchLoading = true + searchMaterialListDetail(queryData) + .then(({ data }) => { + this.searchLoading = false + if (data && data.code === 0) { + this.dataList7 = data.rows || [] + } else { + this.dataList7 = [] + } + }) + .catch(() => { + this.searchLoading = false + this.dataList7 = [] + }) + }, + // 查询物料缺陷跟踪 getInboundDetail() { let templateData = { diff --git a/src/views/modules/orderIssure/searchIssureNotify.vue b/src/views/modules/orderIssure/searchIssureNotify.vue index 693df86..c21fee3 100644 --- a/src/views/modules/orderIssure/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/searchIssureNotify.vue @@ -39,20 +39,13 @@ placeholder="选择日期"> - - - - - - - - - - - + + - - + + + + @@ -108,7 +101,7 @@ - 推送WCS @@ -132,7 +146,12 @@ :align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" :label="item.columnLabel"> @@ -172,6 +191,35 @@ + + + + + + + @@ -568,6 +616,8 @@ import { saveShipmentMaterialDetail, searchUnissueNotifyMaterialList } from '@/api/shipment/shipmentIssue.js' +// rqrq - 导入预留标签清单API +import { searchMaterialListDetail } from '@/api/orderIssure/soIssueNotify.js' import Chooselist from '@/views/modules/common/Chooselist_eam' import { getChooselist } from '@/api/chooselist/chooselist.js' import { @@ -597,6 +647,7 @@ export default { orderType: '', orderStatus: '', orderStatusList: [], + pushWcsFlag: '', // rqrq - 新增推送WCS筛选条件 startDate: '', endDate: '', page: 1, @@ -820,6 +871,25 @@ export default { fixed: '', columnWidth: 100, }, + // rqrq - 添加推送WCS字段 + { + userId: this.$store.state.user.name, + functionId: 610, + serialNumber: '610Table1PushWcsFlag', + tableId: '610Table1', + tableName: '收货入库任务表', + columnProp: 'pushWcsFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '推送WCS', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + }, /* { userId: this.$store.state.user.name, functionId: 610, @@ -1295,6 +1365,60 @@ export default { fixed: '', columnWidth: 100, }, + { + userId: this.$store.state.user.name, + functionId: 701001, + serialNumber: '701001Table2PushWmsFlag', + tableId: '701001Table2', + tableName: '查询派工单', + columnProp: 'pushWmsFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '是否推送WCS', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, + { + userId: this.$store.state.user.name, + functionId: 701001, + serialNumber: '701001Table2TransportFlag', + tableId: '701001Table2', + tableName: '查询派工单', + columnProp: 'transportFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '立库取出', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80, + }, + { + userId: this.$store.state.user.name, + functionId: 701001, + serialNumber: '701001Table2AreaDesc', + tableId: '701001Table2', + tableName: '查询派工单', + columnProp: 'areaDesc', + headerAlign: 'center', + align: 'left', + columnLabel: '配送区域', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + }, /* { userId: this.$store.state.user.name, functionId: 701001, @@ -1466,6 +1590,118 @@ export default { columnWidth: 170, }, ], + // rqrq - 预留标签清单数据和列定义 + dataList7: [], + columnList6: [ + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6ItemNo', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'itemNo', + headerAlign: 'center', + align: 'right', + columnLabel: '订单序号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6BomItemNo', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'bomItemNo', + headerAlign: 'center', + align: 'right', + columnLabel: '订单物料行号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 110, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6SerialNo', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'serialNo', + headerAlign: 'center', + align: 'center', + columnLabel: '标签号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 150, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6TaskRef', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'taskRef', + headerAlign: 'center', + align: 'center', + columnLabel: '立库任务号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6TaskItem', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'taskItem', + headerAlign: 'center', + align: 'right', + columnLabel: '立库任务行号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 110, + }, + { + userId: this.$store.state.user.name, + functionId: 444002, + serialNumber: '444002Table6OutWcsFlag', + tableId: '444002Table6', + tableName: '预留标签清单表', + columnProp: 'outWcsFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '立库取出', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80, + }, + ], rules: { bu: [ { @@ -1561,6 +1797,7 @@ export default { // 获取数据列表 getDataList() { + this.searchData.site = this.$store.state.user.site // rqrq - 设置site this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex this.searchData.orderStatus = this.searchData.orderStatusList.join(',') @@ -1830,7 +2067,36 @@ export default { refreshCurrentTabTable() { if (this.activeTable === 'inboundDetail') { this.getInboundDetail() + } else if (this.activeTable === 'labelDetail') { + // rqrq - 查询预留标签清单 + this.searchMaterialListDetail() + } + }, + + // rqrq - 查询预留标签清单 + searchMaterialListDetail() { + if (!this.currentRow || !this.currentRow.notifyNo) { + this.dataList7 = [] + return + } + const queryData = { + site: this.currentRow.site || this.$store.state.user.site, + notifyNo: this.currentRow.notifyNo } + this.searchLoading = true + searchMaterialListDetail(queryData) + .then(({ data }) => { + this.searchLoading = false + if (data && data.code === 0) { + this.dataList7 = data.rows || [] + } else { + this.dataList7 = [] + } + }) + .catch(() => { + this.searchLoading = false + this.dataList7 = [] + }) }, // 查询物料缺陷跟踪