From c1fa1d3a64ba808517dbbb61fabfb42b1468d434 Mon Sep 17 00:00:00 2001 From: lcode <18046109718@163.com> Date: Sat, 12 Oct 2024 18:46:15 +0800 Subject: [PATCH] =?UTF-8?q?20241012=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionManagement/extrusionSchedule.js | 8 + manage/src/components/scForm/index.vue | 2 +- .../mini/procurement/purchaseOrders/module.js | 14 +- .../procurement/purchaseReceipt/savePage.vue | 2 +- .../mini/procurement/supplierInfo/module.js | 14 ++ .../extrusionProductionSchedule/index.vue | 237 ++++++++++-------- .../materialsSelect.vue | 139 ++++++++++ .../extrusionProductionSchedule/module.js | 88 ++++++- .../extrusionProductionSchedule/savePage.vue | 52 ++-- .../processMaterialWarehouse/module.js | 2 +- .../processMaterialWarehouse/savePage.vue | 2 +- .../processReport/module.js | 34 ++- .../productionPlan/module.js | 9 +- .../productionPlan/selectPage.vue | 21 +- .../salesManagement/customerInfo/module.js | 14 ++ .../mini/salesManagement/salesOrder/module.js | 19 +- .../salesManagement/salesOrder/savePage.vue | 20 +- .../warehousing/currentInventory/index.vue | 206 ++++++++------- .../currentInventoryProcut/index.vue | 205 ++++++++------- .../currentInventoryProcut/module.js | 2 +- 20 files changed, 744 insertions(+), 346 deletions(-) create mode 100644 manage/src/views/mini/productionManagement/extrusionProductionSchedule/materialsSelect.vue diff --git a/manage/src/api/productionManagement/extrusionSchedule.js b/manage/src/api/productionManagement/extrusionSchedule.js index 5ef2c38..f6d4598 100644 --- a/manage/src/api/productionManagement/extrusionSchedule.js +++ b/manage/src/api/productionManagement/extrusionSchedule.js @@ -19,6 +19,14 @@ export default { return await http.post(this.url, params); } }, + detail: { + url: `${config.API_URL}/web/webExtrusionSchedule/detail`, + name: "挤压排产详情", + method: "post", + http: async function(params={}){ + return await http.post(this.url, params); + } + }, save: { url: `${config.API_URL}/web/webExtrusionSchedule/add`, name: "新增挤压排产", diff --git a/manage/src/components/scForm/index.vue b/manage/src/components/scForm/index.vue index f3e1ee4..d2e7b7e 100644 --- a/manage/src/components/scForm/index.vue +++ b/manage/src/components/scForm/index.vue @@ -479,7 +479,7 @@ export default { //处理动态隐藏 hideHandle(item) { if (item.hideHandle) { - const exp = eval(item.hideHandle.replace(/\$/g, "this.form")); + const exp = eval(item.hideHandle.replace(/\$/g, "this.form").replace(/\@/g, "this")); return exp; } return false; diff --git a/manage/src/views/mini/procurement/purchaseOrders/module.js b/manage/src/views/mini/procurement/purchaseOrders/module.js index 8aa770a..2aa55b4 100644 --- a/manage/src/views/mini/procurement/purchaseOrders/module.js +++ b/manage/src/views/mini/procurement/purchaseOrders/module.js @@ -72,7 +72,19 @@ export default { size: 'small', optionHide: true, formItems: [ - { label: "单据编号", name: "documentNumber", value: "", component: "input", span: 6, options: { editdisable: true, maxlength: "256", placeholder: "请输入单据编号" }, rules: [{ required: true, message: "请输入单据编号", trigger: "blur" }] }, + { + label: "单据编号", name: "documentNumber", value: "", component: "input", span: 6, + options: { editdisable: true, maxlength: "256", placeholder: "请输入单据编号" }, + rules: [{ required: true, message: "请输入单据编号", trigger: "blur" }], + hideHandle: "$.isAuto && @.formMode=='add'" + }, + { + label: "自动生成单号", name: "isAuto", value: true, component: "switch", + span: 6, + options: { editdisable: true }, + rules: [{ required: false, message: "请选择", trigger: "blur" }], + hideHandle: "@.formMode=='edit'" + }, { label: "供应商", name: "supplier", value: "", component: "thirdselect", span: 6, options: { tb: "supplier_info", placeholder: "请输入物料/产品分类" }, diff --git a/manage/src/views/mini/procurement/purchaseReceipt/savePage.vue b/manage/src/views/mini/procurement/purchaseReceipt/savePage.vue index ef19a81..6c20434 100644 --- a/manage/src/views/mini/procurement/purchaseReceipt/savePage.vue +++ b/manage/src/views/mini/procurement/purchaseReceipt/savePage.vue @@ -225,7 +225,7 @@ export default { // "updateViewTagsTitle", // this.id ? `CURD编辑ID:${this.id}` : "CURD新增" // ); - this.loadDetail(); + // this.loadDetail(); }, methods: { open(mode="add") { diff --git a/manage/src/views/mini/procurement/supplierInfo/module.js b/manage/src/views/mini/procurement/supplierInfo/module.js index 5118f56..4ff09da 100644 --- a/manage/src/views/mini/procurement/supplierInfo/module.js +++ b/manage/src/views/mini/procurement/supplierInfo/module.js @@ -29,6 +29,7 @@ export default { options: [], column: [ { label: "", prop: "id", width: "200", hide: true }, + { label: "供应商编码", prop: "supplierCode", width: "200" }, { label: "供应商名称", prop: "supplierName", width: "200" }, { label: "结算币种", prop: "settlementCurrency", width: "200", type: 'dic', group: 'settlementCurrency' }, { label: "税", prop: "tax", width: "200", type: 'dic', group: 'tax' }, @@ -71,6 +72,19 @@ export default { panelWidth: "800", size: 'medium', formItems: [ + { + label: "供应商编码", name: "supplierCode", value: "", component: "input", span: 12, options: { editdisable: true, maxlength: "256", placeholder: "请输入供应商编码" }, + rules: [{ required: true, message: "请输入供应商编码", trigger: "blur" }], + hideHandle: "$.isAuto && @.formMode=='add'" + + }, + { + label: "自动编码", name: "isAuto", value: true, component: "switch", + span: 12, + options: { editdisable: true }, + rules: [{ required: false, message: "请选择", trigger: "blur" }], + hideHandle: "@.formMode=='edit'" + }, { label: "供应商名称", name: "supplierName", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入供应商名称" }, rules: [{ required: true, message: "请输入供应商名称", trigger: "blur" }] }, { label: "结算币种", name: "settlementCurrency", value: "", component: "dic", span: 24, options: { group: "settlementCurrency" }, rules: [{ required: true, message: "请输入结算币种", trigger: "blur" }] }, { label: "税", name: "tax", value: "", component: "dic", span: 24, options: { group: "tax" }, rules: [{ required: true, message: "请输入税", trigger: "blur" }] }, diff --git a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/index.vue b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/index.vue index 00beddb..9394265 100644 --- a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/index.vue +++ b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/index.vue @@ -2,46 +2,73 @@
- +
- - + - + diff --git a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/materialsSelect.vue b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/materialsSelect.vue new file mode 100644 index 0000000..6abb409 --- /dev/null +++ b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/materialsSelect.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/module.js b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/module.js index 816dbe9..57ab13f 100644 --- a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/module.js +++ b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/module.js @@ -8,8 +8,9 @@ export default { del: "del", add: "save", edit: "edit", + detail: "detail", importExcel: "importExcel", - upload:"upload", + upload: "upload", config: { formIdKey: "id", preId: "id", @@ -29,9 +30,9 @@ export default { column: [ { label: "", prop: "id", width: "200", hide: true }, { label: "排产单号", prop: "scheduleNumber", width: "200" }, - { label: "挤压排产日期", prop: "extrusionDate", width: "200"}, - { label: "挤压机台", prop: "extrusionMachine", width: "200" }, - { label: "挤压班组", prop: "extrusionTeam", width: "200" }, + { label: "挤压排产日期", prop: "extrusionDate", width: "200" }, + { label: "挤压机台", prop: "extrusionMachineName", width: "200" }, + { label: "挤压班组", prop: "extrusionTeamName", width: "200" }, { label: "备注", prop: "remarks", width: "200" }, ], formOption: { @@ -55,15 +56,35 @@ export default { size: 'small', optionHide: true, formItems: [ - { label: "排产单号", name: "scheduleNumber", value: "", component: "input", span: 6, options: { editdisable: true, maxlength: "256", placeholder: "请输入单据编号" }, rules: [{ required: true, message: "请输入单据编号", trigger: "blur" }] }, + { + label: "排产单号", name: "scheduleNumber", value: "", component: "input", span: 6, + options: { editdisable: true, maxlength: "256", placeholder: "请输入单据编号" }, + rules: [{ required: true, message: "请输入单据编号", trigger: "blur" }], + hideHandle: "$.isAuto && @.formMode=='add'" + }, + { + label: "自动生成单号", name: "isAuto", value: true, component: "switch", + span: 6, + options: { editdisable: true }, + rules: [{ required: false, message: "请选择", trigger: "blur" }], + hideHandle: "@.formMode=='edit'" + }, { label: "挤压排产日期", name: "extrusionDate", value: "", component: "date", span: 6, - options: { editdisable: true, valueFormat: "YYYY-MM-DD", placeholder: "请选择挤压排产日期" }, + options: { editdisable: true, valueFormat: "YYYY-MM-DD", placeholder: "请选择挤压排产日期" }, rules: [{ required: true, message: "请选择挤压排产日期", trigger: "change" }] }, - { label: "挤压机台", name: "extrusionMachine", value: "", component: "input", span: 6, options: { editdisable: true, maxlength: "256", placeholder: "请输入挤压机台" }, rules: [{ required: true, message: "请输入挤压机台", trigger: "blur" }] }, - { label: "挤压班组", name: "extrusionTeam", value: "", component: "input", span: 6, options: { editdisable: true, maxlength: "256", placeholder: "请输入挤压班组" }, rules: [{ required: true, message: "请输入挤压班组", trigger: "blur" }] }, - { label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { editdisable: true, maxlength: "500", placeholder: "请输入备注" } }, + { + label: "挤压机台", name: "extrusionMachine", value: "", component: "thirdselect", span: 6, + options: { tb: "production_machines" }, + rules: [{ required: true, message: "请输入挤压机台", trigger: "blur" }] + }, + { + label: "挤压班组", name: "extrusionTeam", value: "", component: "thirdselect", span: 6, + options: { tb: "user" }, + rules: [{ required: true, message: "请输入挤压班组", trigger: "blur" }] + }, + { label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { editdisable: true, maxlength: "500", placeholder: "请输入备注" } }, ] }, computed: { @@ -92,9 +113,50 @@ export default { { label: "排产理论重量", prop: "productionWeight", width: "200" }, ] }, + tableSelect: { + "title": "选计划排产订单", + "panelWidth": "1000px", + "api": "productionSchedule.list", + "params": { "status": 1 }, + "column": [ + { label: "", prop: "id", width: "200", hide: true }, + { label: "计划单号", prop: "documentNumber", width: "200" }, + { label: "销售单号", prop: "salesOrderCode", width: "200" }, + { "label": "客户名称", "prop": "customerName", "width": "200" }, + { + label: "销售日期", + prop: "salesDate", + width: "200", + }, + { "label": "销售员", "prop": "salespersonName", "width": "200" }, + { "label": "价格", "prop": "price", "width": "200" }, + { + label: "定价日期", + prop: "pricingDate", + width: "200", + }, + { + label: "交货日期", + prop: "deliveryDate", + width: "200", + }, + { "label": "税率", "prop": "taxRate", "width": "200" }, + { "label": "加工费", "prop": "processingFee", "width": "200" }, + { "label": "备注", "prop": "remarks", "width": "200" }, + { label: "物料编号", prop: "materialCode", width: "200" }, + { label: "型材型号", prop: "profileModel", width: "200" }, + { label: "物料名称", prop: "materialName", width: "200" }, + { label: "规格型号 (MM)", prop: "specification", width: "200" }, + { label: "壁厚", prop: "thickness", width: "200" }, + { label: "米重 (kg/m)", prop: "weight", width: "200" }, + { label: "支/扎", prop: "piecesBundle", width: "200" }, + { label: "物料/产品分类", prop: "materialCategoryName", width: "200" }, + { label: "包装方式", prop: "packagingMethod", width: "200" }, + ], + }, selectForm: { title: "选计划排产订单", - api: $API.salesOrder.list, + api: $API.productionSchedule.list, subTitle: "销售订单", search: { labelWidth: '100px', @@ -102,7 +164,8 @@ export default { size: 'small', optionHide: true, formItems: [ - { label: "单据编号", name: "documentNumber", value: "", component: "input", span: 6, options: { editdisable: false, maxlength: "256", placeholder: "请输入单据编号" }, rules: [{ required: false, message: "请输入单据编号", trigger: "blur" }] }, + { label: "计划单号", name: "documentNumber", value: "", component: "input", span: 6, options: { editdisable: false, maxlength: "256", placeholder: "请输入计划单号" }, rules: [{ required: false, message: "请输入计划单号", trigger: "blur" }] }, + { label: "销售单号", name: "salesOrderCode", value: "", component: "input", span: 6, options: { editdisable: false, maxlength: "256", placeholder: "请输入单据编号" }, rules: [{ required: false, message: "请输入单据编号", trigger: "blur" }] }, { label: "销售日期", name: "salesDate", value: "", component: "date", span: 6, options: { valueFormat: "YYYY-MM-DD", placeholder: "请选择采购日期" }, @@ -123,7 +186,8 @@ export default { }, column: [ { label: "", prop: "id", width: "200", hide: true }, - { label: "单据编号", prop: "documentNumber", width: "200" }, + { label: "计划单号", prop: "documentNumber", width: "200" }, + { label: "销售单号", prop: "salesOrderCode", width: "200" }, { "label": "客户名称", "prop": "customerName", "width": "200" }, { label: "销售日期", diff --git a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/savePage.vue b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/savePage.vue index 7a6927b..9e2fe54 100644 --- a/manage/src/views/mini/productionManagement/extrusionProductionSchedule/savePage.vue +++ b/manage/src/views/mini/productionManagement/extrusionProductionSchedule/savePage.vue @@ -26,7 +26,7 @@ align-items: center; " > - 保存 + 保存 取消 @@ -43,7 +43,7 @@ -
+
添加 @@ -60,7 +60,7 @@ row-key="" @selection-change="selectionChange" > - + @@ -98,12 +98,18 @@ - + > --> + @@ -111,6 +117,7 @@