From 8c5bc2de323538b7c4951c41d994da4d2d9ddbc9 Mon Sep 17 00:00:00 2001 From: lcode <18046109718@163.com> Date: Thu, 17 Oct 2024 19:01:04 +0800 Subject: [PATCH] =?UTF-8?q?20241017=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processMaterialRequisition.js | 20 ++- .../api/productionManagement/processReport.js | 8 ++ .../materialsSelect.vue | 3 +- .../processMaterialRequisition/module.js | 3 +- .../processMaterialRequisition/savePage.vue | 54 ++++++-- .../processMaterialReturn/materialsSelect.vue | 3 +- .../processMaterialReturn/module.js | 4 +- .../processMaterialReturn/savePage.vue | 22 ++- .../materialsSelect.vue | 11 +- .../processMaterialWarehouse/module.js | 4 +- .../processMaterialWarehouse/savePage.vue | 13 +- .../salesManagement/salesShipment/index.vue | 4 +- .../salesShipment/materialsSelect.vue | 128 ++++++++++++++++++ .../salesManagement/salesShipment/module.js | 28 +++- .../salesShipment/savePage.vue | 112 ++++++++++----- .../currentInventoryProcut/module.js | 1 + 16 files changed, 340 insertions(+), 78 deletions(-) create mode 100644 manage/src/views/mini/salesManagement/salesShipment/materialsSelect.vue diff --git a/manage/src/api/productionManagement/processMaterialRequisition.js b/manage/src/api/productionManagement/processMaterialRequisition.js index da9ca35..0b8ece9 100644 --- a/manage/src/api/productionManagement/processMaterialRequisition.js +++ b/manage/src/api/productionManagement/processMaterialRequisition.js @@ -1,11 +1,19 @@ import config from "@/config"; import http from "@/utils/request"; -//工序报工 +// 生产领料 export default { list: { url: `${config.API_URL}/web/webProductionMaterialRequisition/list`, - name: "工序报工列表", + name: "生产领料列表", + method: "post", + http: async function(params={}){ + return await http.post(this.url, params); + } + }, + materialList: { + url: `${config.API_URL}/web/webProductionMaterialRequisition/material/list`, + name: "生产领料物料列表", method: "post", http: async function(params={}){ return await http.post(this.url, params); @@ -13,7 +21,7 @@ export default { }, detail: { url: `${config.API_URL}/web/webProductionMaterialRequisition/detail`, - name: "新增工序报工", + name: "新增生产领料", method: "post", http: async function(params={}){ return await http.post(this.url, params); @@ -21,7 +29,7 @@ export default { }, save: { url: `${config.API_URL}/web/webProductionMaterialRequisition/add`, - name: "新增工序报工", + name: "新增生产领料", method: "post", http: async function(params={}){ return await http.post(this.url, params); @@ -29,7 +37,7 @@ export default { }, edit: { url: `${config.API_URL}/web/webProductionMaterialRequisition/edit`, - name: "编辑工序报工", + name: "编辑生产领料", method: "post", http: async function(params={}){ return await http.post(this.url, params); @@ -37,7 +45,7 @@ export default { }, del: { url: `${config.API_URL}/web/webProductionMaterialRequisition/del`, - name: "删除工序报工", + name: "删除生产领料", method: "post", http: async function(params={}){ return await http.post(this.url, params); diff --git a/manage/src/api/productionManagement/processReport.js b/manage/src/api/productionManagement/processReport.js index 346c677..5de99a6 100644 --- a/manage/src/api/productionManagement/processReport.js +++ b/manage/src/api/productionManagement/processReport.js @@ -11,6 +11,14 @@ export default { return await http.post(this.url, params); } }, + completedList: { + url: `${config.API_URL}/web/webProcessReport/completed/list`, + name: "工序报工完成列表", + method: "post", + http: async function(params={}){ + return await http.post(this.url, params); + } + }, save: { url: `${config.API_URL}/web/webProcessReport/add`, name: "新增工序报工", diff --git a/manage/src/views/mini/productionManagement/processMaterialRequisition/materialsSelect.vue b/manage/src/views/mini/productionManagement/processMaterialRequisition/materialsSelect.vue index f5564c5..b79f757 100644 --- a/manage/src/views/mini/productionManagement/processMaterialRequisition/materialsSelect.vue +++ b/manage/src/views/mini/productionManagement/processMaterialRequisition/materialsSelect.vue @@ -88,7 +88,8 @@ export default { }, methods: { //显示 - open() { + open(params={}) { + this.params = Object.assign({}, this.params, params); // console.log(this.apiObj) this.visible = true; return this; diff --git a/manage/src/views/mini/productionManagement/processMaterialRequisition/module.js b/manage/src/views/mini/productionManagement/processMaterialRequisition/module.js index fd42553..98650fe 100644 --- a/manage/src/views/mini/productionManagement/processMaterialRequisition/module.js +++ b/manage/src/views/mini/productionManagement/processMaterialRequisition/module.js @@ -30,7 +30,7 @@ export default { column: [ { label: "", prop: "id", width: "200", hide: true }, { label: "领料编号", prop: "documentNumber", width: "200" }, - { label: "仓库", prop: "warehouse", width: "200" }, + { label: "仓库", prop: "warehouseName", width: "200" }, { label: "领用人", prop: "recipient", width: "200" }, { label: "领料部门", prop: "department", width: "200" }, { @@ -129,6 +129,7 @@ export default { { label: "实际重量", prop: "requisitionWeight", width: "200" }, { label: "物料编号", prop: "materialCode", width: "200" }, { label: "物料名称", prop: "materialName", width: "200" }, + { label: "仓库", prop: "warehouse", width: "200" }, { label: "型材型号", prop: "profileModel", width: "200" }, { label: "米重 (kg/m)", prop: "weight", width: "100" }, { label: "长度 (m)", prop: "defaultLength", width: "100" }, diff --git a/manage/src/views/mini/productionManagement/processMaterialRequisition/savePage.vue b/manage/src/views/mini/productionManagement/processMaterialRequisition/savePage.vue index 20b90c3..4e820da 100644 --- a/manage/src/views/mini/productionManagement/processMaterialRequisition/savePage.vue +++ b/manage/src/views/mini/productionManagement/processMaterialRequisition/savePage.vue @@ -61,8 +61,13 @@ @selection-change="selectionChange" > + + + - + - + diff --git a/manage/src/views/mini/salesManagement/salesShipment/materialsSelect.vue b/manage/src/views/mini/salesManagement/salesShipment/materialsSelect.vue new file mode 100644 index 0000000..de32fc2 --- /dev/null +++ b/manage/src/views/mini/salesManagement/salesShipment/materialsSelect.vue @@ -0,0 +1,128 @@ + + + + + diff --git a/manage/src/views/mini/salesManagement/salesShipment/module.js b/manage/src/views/mini/salesManagement/salesShipment/module.js index a4de98b..b02b359 100644 --- a/manage/src/views/mini/salesManagement/salesShipment/module.js +++ b/manage/src/views/mini/salesManagement/salesShipment/module.js @@ -76,7 +76,8 @@ export default { ] }, computed: { - returnQuantity: 1 + shipmentQuantity: 1, + actualWeight: 0 }, column: [ { label: "", prop: "id", width: "200", hide: true }, @@ -187,5 +188,30 @@ export default { { label: "含税单价", prop: "priceWithTax", width: "200" }, { label: "含税总金额", prop: "amountWithTax", width: "200" }, ] + }, + tableSelect: { + "title": "选产品", + "panelWidth": "1000px", + "api": "currentInventory.procutlist", + "params": { "status": 1 }, + "column": [ + { label: "销售订单编号", prop: "salesOrderCode", width: "200" }, + { label: "订单号", prop: "orderNo", width: "200" }, + { label: "物料编码", prop: "materialCode", width: "200" }, + { label: "物料名称", prop: "materialName", width: "200" }, + { label: "订单长度 (M)", prop: "orderLength", width: "200" }, + { label: "订单总数 (支)", prop: "orderTotalQuantity", width: "200" }, + { label: "表面方式 (颜色)", prop: "surfaceMethod", width: "200" }, + { label: "仓库", prop: "warehouse", width: "200" }, + { label: "出货数量", prop: "shipmentQuantity", width: "200" }, + { label: "规格型号 (MM)", prop: "specification", width: "200" }, + { label: "客方料号", prop: "customerMaterialCode", width: "200" }, + { label: "壁厚", prop: "thickness", width: "200" }, + { label: "理论重量 (KG)", prop: "theoreticalWeight", width: "200" }, + { label: "实际总重量(KG)", prop: "actualWeight", width: "200" }, + { label: "包装数量(扎数)", prop: "packingQuantity", width: "200" }, + { label: "未交货数量", prop: "undeliveredQuantity", width: "200" }, + { label: "包装方式", prop: "packagingMethod", width: "200" }, + ], } } diff --git a/manage/src/views/mini/salesManagement/salesShipment/savePage.vue b/manage/src/views/mini/salesManagement/salesShipment/savePage.vue index 98026c4..5ad9d1b 100644 --- a/manage/src/views/mini/salesManagement/salesShipment/savePage.vue +++ b/manage/src/views/mini/salesManagement/salesShipment/savePage.vue @@ -26,7 +26,13 @@ align-items: center; " > - 保存 + 保存 取消 @@ -43,7 +49,10 @@ -
+
添加 @@ -60,7 +69,11 @@ row-key="" @selection-change="selectionChange" > - + - + - - - + > --> + @@ -118,6 +153,8 @@