From 9be9335e55eb71d26790b8e80795464c9296be28 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Thu, 10 Aug 2023 15:53:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/workorder/index.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index d6d52d6..edd0e50 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -427,7 +427,7 @@ export default { attr4: null, prodType: null, factoryCode: null, - isEnd: null + endFlag: null }, // 表单参数 form: {}, @@ -589,7 +589,7 @@ export default { /** 查询生产工单列表 */ getList() { this.loading = true; - this.queryParams.isEnd = '1';//只查子单 + this.queryParams.endFlag = '1';//只查子单 if(this.queryParams.productDateArray!=null){ this.queryParams.productDateStart = moment(this.queryParams.productDateArray[0]).format('YYYY-MM-DD'); this.queryParams.productDateEnd = moment(this.queryParams.productDateArray[1]).format('YYYY-MM-DD'); @@ -639,7 +639,7 @@ export default { updateTime: null, prodType: null, factoryCode: null, - isEnd: null + endFlag: null }; this.resetForm("form"); }, @@ -673,6 +673,14 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { + // 除了未派发都不允许修改 + if (this.selectWork.status == "w1"){ + this.$message({ + message:'工单已派发!不可修改!', + type:'warning' + }) + return; + } // 校验是否可以修改 checkWorkOrder(this.selectWork.workorderId).then(response => { if (response.code == 500){ From 3a584014054dacfdbd35e7ef3f140b7ff21fbe68 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 15 Aug 2023 14:22:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B7=A5=E8=89=BA=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=B7=A5=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/technology/process.js | 26 ++++++++++++++++++++++ src/views/technology/process/index.vue | 22 +++++++++++++++--- src/views/technology/process/single.vue | 6 ++--- src/views/technology/process/singleBom.vue | 5 +---- 4 files changed, 49 insertions(+), 10 deletions(-) diff --git a/src/api/technology/process.js b/src/api/technology/process.js index 5aa0f77..f7a1bd5 100644 --- a/src/api/technology/process.js +++ b/src/api/technology/process.js @@ -51,3 +51,29 @@ export function delProcess(processId) { method: 'delete' }) } + +// 查询设备管理列表 +export function listEquipment(query) { + return request({ + url: '/technology/pro/process/selectEquipmentList', + method: 'get', + params: query + }); +} + +// 查询设备管理详细 +export function getEquipment(equipmentId) { + return request({ + url: '/technology/pro/process/e/' + equipmentId, + method: 'get' + }); +} + +// 查询BOM物料管理列表 +export function listBom(query) { + return request({ + url: '/technology/pro/process/bomList', + method: 'get', + params: query + }); +} diff --git a/src/views/technology/process/index.vue b/src/views/technology/process/index.vue index 1778f87..1cb135f 100644 --- a/src/views/technology/process/index.vue +++ b/src/views/technology/process/index.vue @@ -224,6 +224,23 @@ + + + + + + + + + + + + + + + + + @@ -334,8 +351,7 @@