From 160e3390fc7823bd62a9347f319fc849b4302ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=9E=9D=E5=88=9A?= Date: Thu, 24 Oct 2024 20:41:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(NVL):=20=E4=BB=93=E5=BA=93=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.销售出货平台添加查询事件 refs: #41258 --- src/api/mes/wms-nalinv/sale-out-platform.js | 77 +----- .../wms-nalinv/sale-out-platform/index.vue | 240 ++++-------------- 2 files changed, 55 insertions(+), 262 deletions(-) diff --git a/src/api/mes/wms-nalinv/sale-out-platform.js b/src/api/mes/wms-nalinv/sale-out-platform.js index a0064d5..1fe451f 100644 --- a/src/api/mes/wms-nalinv/sale-out-platform.js +++ b/src/api/mes/wms-nalinv/sale-out-platform.js @@ -1,82 +1,17 @@ -import request from '@/router/axios'; +import request from '@/router/axios' import {nlv_wms} from "@/api/prefix"; -export function selectSaleOutDetail(query) { +export function getSalesInvoiceDeliveryPage(query) { return request({ - url: nlv_wms('/picking/saleOut/selectSaleOutDetail'), + url: nlv_wms('/salesInvoiceDelivery/page'), method: 'get', params: query }) } -export function selectPickingSuggest(query) { +export function getOneObjByHandle(handle) { return request({ - url: nlv_wms('/picking/selectPickingSuggest'), - method: 'get', - params: query + url: nlv_wms(`/salesInvoiceDelivery/${handle}`), + method: 'get' }) } - -export function pickingPrint(obj) { - return request({ - url: nlv_wms('/picking/print'), - method: 'post', - data: obj - }) -} - -export function pickingPost(documentNo) { - return request({ - url: nlv_wms('/picking/post'), - method: 'post', - data: documentNo, - headers: { - 'Content-Type': 'application/json; charset=utf-8' - } - }) -} - -export function saleOutPost(obj) { - return request({ - url: nlv_wms('/picking/saleOut/post'), - method: 'post', - data: obj, - }) -} - -export function printTaskReport(obj) { - return request({ - url: nlv_wms('/picking/printTaskReport'), - method: 'post', - data: obj - }) -} - -export function pickingPostCancel(documentNo) { - return request({ - url: nlv_wms('/picking/cancel'), - method: 'post', - data: documentNo, - headers: { - 'Content-Type': 'application/json; charset=utf-8' - } - }) -} - -export function saleOutPostCancel(obj) { - return request({ - url: nlv_wms('/picking/saleOut/cancel'), - method: 'post', - data: obj, - }) -} - -export function pickingPrintA4(obj) { - return request({ - url: nlv_wms('/picking/print/a4'), - method: 'post', - data: obj - }) -} - - diff --git a/src/views/mes/wms-nalinv/sale-out-platform/index.vue b/src/views/mes/wms-nalinv/sale-out-platform/index.vue index 2ce2418..4935faf 100644 --- a/src/views/mes/wms-nalinv/sale-out-platform/index.vue +++ b/src/views/mes/wms-nalinv/sale-out-platform/index.vue @@ -9,14 +9,14 @@ - - + + - - + + @@ -30,9 +30,10 @@ - + 拣配开始 发货暂停 + 发货开始 出库过账 冲销 配货单打印 @@ -44,16 +45,17 @@ @current-change="mainRowChange" :cell-style="{ 'text-align': 'center' }" tooltip-effect="dark" border style="width: 100%"> - - - - - - - - - - + + + + + + + + + + +
- - - - - - - - - - - + + + + + + + + + + -
+
{ hideLoading(); - me.warehouseMaterialPfepList = res.data.data.records; + me.saleMainList = res.data.data.records; }) .catch(error => { hideLoading(); @@ -326,74 +232,33 @@ export default { searchCleanAction() { let me = this; me.searchFormObj = { - site: getStore({ name: 'tenantId' }), - item: '', - itemDesc: '', - ficoBit: '', - isUse: '' + site: getStore({name: 'tenantId'}), + kunnr: '', + deliveryNumber: '' }; - me.warehouseMaterialPfepList = []; - }, - - // 检索条件弹出框 - showDialog(key) { - - this.key = key - if (key === 'qcTask') { - this.qcTaskDialogVisible = true - } else if (key === 'supplierNo') { - this.supplierDialogVisible = true - } else if (key === 'item') { - this.itemDialogVisible = true - }else if (key === 'inspectScheme') { - this.inspectSchemeDialogVisible = true - }else if (key === 'inspector') { - this.inspectorDialogVisible = true - } - }, - // 检索条件选定事件 - dialogSelected(row) { - if (this.key === "qcTask") { - this.searchFormObj.qcTask = row.qcTask - } else if (this.key === "supplierNo") { - this.searchFormObj.supplierNo = row.supplierNo - } else if (this.key === "item") { - this.searchFormObj.item = row.item - } else if (this.key === "inspectScheme") { - this.searchFormObj.inspectScheme = row.inspectScheme - }else if (this.key === "inspector") { - this.searchFormObj.inspector = row.username - } + me.saleMainList = []; + me.saleDetailList = []; }, // 主行点击事件 mainRowChange(val) { let me = this; - me.stepShowList = []; - me.qcTaskItemList = []; - me.flowStep = ''; - me.selectedTaskRow = val; - /*if (val != null && !isBlank(val.inspectSchemeBo)) { + me.saleDetailList = []; + me.selectedMainRow = val; + if (val != null && !isBlank(val.handle)) { showLoading(); - selectFlowStepByScheme(val.inspectSchemeBo) + getOneObjByHandle(val.handle) .then(res => { hideLoading(); - me.stepShowList = res.data.data; + me.saleDetailList = res.data.data.salesInvoiceDeliveryItemList; }) .catch(error => { hideLoading(); this.$message.error(error); }); - }*/ + } }, - // 工步按钮点击事件 - showStepDetailItem() { - let me = this; - }, - - - windowPrintPdf(base64Str){ const pdfBlob = buildBlobByByte(base64Str); // downloadFile(blob,row.qcTask+'.xlsx'); pdfPrint @@ -421,13 +286,6 @@ export default { me.actionFormVisible = false; }, - // 物料选定事件 - itemDialogSelected(row) { - let me = this; - me.searchFormObj.itemBo = row.handle; - me.searchFormObj.item = row.item; - }, - handleSizeChange(val) { this.pageSize = val; },