From 76cdc34af132d5f6d69feaa17cee7963f9cf4b9d Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 15 Nov 2023 10:13:54 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../energy/base/energyPlcConnect/index.vue | 3 ++- .../groupClasses/components/groupClassAdd.vue | 17 +++-------------- .../orderManage/components/addWorkOrder.vue | 19 ++++++++++++++----- .../orderCompletionMonitoring/index.vue | 4 ++-- 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/src/views/energy/base/energyPlcConnect/index.vue b/src/views/energy/base/energyPlcConnect/index.vue index cfbe6dcf..7316665e 100644 --- a/src/views/energy/base/energyPlcConnect/index.vue +++ b/src/views/energy/base/energyPlcConnect/index.vue @@ -67,7 +67,8 @@ const tableProps = [ }, { prop: 'plcTableCode', - label: '关联表编码' + label: '关联表编码', + showOverflowtooltip: true }, { prop: 'cnName', diff --git a/src/views/group/base/groupClasses/components/groupClassAdd.vue b/src/views/group/base/groupClasses/components/groupClassAdd.vue index 52272a1e..cd2f0fe6 100644 --- a/src/views/group/base/groupClasses/components/groupClassAdd.vue +++ b/src/views/group/base/groupClasses/components/groupClassAdd.vue @@ -116,6 +116,7 @@ export default { getGroupClasses(id).then((res) => { if (res.code === 0) { this.form = res.data + this.form.disableTime = res.data.disableTime || '' } }) } else { @@ -145,22 +146,10 @@ export default { submitForm() { this.$refs['form'].validate((valid) => { if (valid) { - let obj = {} - if (this.form.disableTime) { - obj = this.form - } else { - obj.id = this.form.id - obj.name = this.form.name - obj.code = this.form.code - obj.enableTime = this.form.enableTime - obj.startTime = this.form.startTime - obj.endTime = this.form.endTime - obj.daySpan = this.form.daySpan - obj.remark = this.form.remark - } + this.form.disableTime = this.form.disableTime || '' if (this.isEdit) { //编辑 - updateGroupClasses({ ...obj }).then((res) => { + updateGroupClasses({ ...this.form }).then((res) => { if (res.code === 0) { this.$modal.msgSuccess("操作成功"); this.$emit('successSubmit') diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue index 69d9904c..9fa71500 100644 --- a/src/views/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/order/base/orderManage/components/addWorkOrder.vue @@ -203,6 +203,7 @@ export default { methods: { init(data, param) { this.form.orderId = data.id + this.form.orderName = data.name this.getList() if (param === 'add') { this.isBind = false @@ -253,12 +254,20 @@ export default { }) } else { // 新增工单 - this.form.planStartTime = this.planStartTime ? new Date(this.planStartTime).valueOf() : '' - this.form.planFinishTime = this.planFinishTime ? new Date(this.planFinishTime).valueOf() : '' - orderIssue({ ...this.form }).then(res => { + let _this = this + _this.form.planStartTime = _this.planStartTime ? new Date(_this.planStartTime).valueOf() : '' + _this.form.planFinishTime = _this.planFinishTime ? new Date(_this.planFinishTime).valueOf() : '' + orderIssue({ ..._this.form }).then(res => { if (res.code === 0) { - this.$modal.msgSuccess("操作成功") - this.$emit('addWorkOrderSubmit') + _this.$modal.msgSuccess("操作成功") + let name = this.form.orderName + _this.$emit('addWorkOrderSubmit') + // 询问是否添加预使用主原料 + _this.$modal.confirm('是否添加预使用主原料信息?').then(function() { + _this.$router.push({ + path: '/core/core-work-order?orderName='+encodeURI(name) + }) + }) } }) } diff --git a/src/views/order/monitoring/orderCompletionMonitoring/index.vue b/src/views/order/monitoring/orderCompletionMonitoring/index.vue index b4feb234..d1efb9f8 100644 --- a/src/views/order/monitoring/orderCompletionMonitoring/index.vue +++ b/src/views/order/monitoring/orderCompletionMonitoring/index.vue @@ -350,12 +350,12 @@ export default { switch (val.type) { case 'orderDetail': this.$router.push({ - path: '/base/coreWorkOrder/detail?orderId='+val.data.orderid + path: '/core/core-work-order-detail?woIdString='+val.data.woIdString }) break case 'qualityDetail': this.$router.push({ - path: '/quality/base/quality-inspection-data/detection-information/statistical-data?woIdString='+val.data.woIdString, + path: '/quality/base/quality-inspection-data/detection-information/statistical-data?woIdString='+val.data.woIdString }) break default: From a37fa65e8faa614d87faa3ee49c45bb488a6648e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 15 Nov 2023 14:02:16 +0800 Subject: [PATCH 2/5] bug --- .../orderManage/components/addWorkOrder.vue | 4 +-- .../base/orderManage/components/orderAdd.vue | 30 ++++++++++++----- src/views/order/base/orderManage/index.vue | 33 ++++++++++++++++--- 3 files changed, 53 insertions(+), 14 deletions(-) diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue index 9fa71500..dbf8d213 100644 --- a/src/views/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/order/base/orderManage/components/addWorkOrder.vue @@ -92,8 +92,8 @@ - 产品基础 - 工艺扩展 + 产品基础BOM + 工艺扩展BOM diff --git a/src/views/order/base/orderManage/components/orderAdd.vue b/src/views/order/base/orderManage/components/orderAdd.vue index daf4c18b..63cc03cd 100644 --- a/src/views/order/base/orderManage/components/orderAdd.vue +++ b/src/views/order/base/orderManage/components/orderAdd.vue @@ -24,7 +24,7 @@ {{ item.name }} {{ item.specifications }} @@ -41,7 +41,7 @@ - + - + - + - + - - 产品基础 - 工艺扩展 + + 产品基础BOM + 工艺扩展BOM @@ -240,6 +240,20 @@ export default { } } }, + // 工艺变更 + materialMethodChange(val) { + if (val === 2 && !this.form.processFlowId) { + this.form.materialMethod = 1 + this.$modal.msgError("请先选择关联工艺"); + } + }, + // 工艺变更 + processFlowIdChange(val) { + console.log(val) + if (!val) { + this.form.materialMethod = 1 + } + }, submitForm() { this.$refs['orderAddForm'].validate((valid) => { if (valid) { diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue index ec44b927..a30a4344 100644 --- a/src/views/order/base/orderManage/index.vue +++ b/src/views/order/base/orderManage/index.vue @@ -194,12 +194,22 @@ export default { type: 'add', btnName: '新增工单', showParam: { - type: '&', + type: '|', data: [ { type: 'equal', name: 'status', value: 1 + }, + { + type: 'equal', + name: 'status', + value: 2 + }, + { + type: 'equal', + name: 'status', + value: 3 } ] } @@ -210,12 +220,22 @@ export default { type: 'bind', btnName: '绑定工单', showParam: { - type: '&', + type: '|', data: [ { type: 'equal', name: 'status', value: 1 + }, + { + type: 'equal', + name: 'status', + value: 2 + }, + { + type: 'equal', + name: 'status', + value: 3 } ] } @@ -224,14 +244,19 @@ export default { this.$auth.hasPermi('base:order-manage:bindWorkOrder') ? { type: 'complete', - btnName: '完成工单', + btnName: '完成订单', showParam: { - type: '&', + type: '|', data: [ { type: 'equal', name: 'status', value: 2 + }, + { + type: 'equal', + name: 'status', + value: 3 } ] } From 0ae68aacef94d54d885c44b98f8a9f3b13a132e0 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 15 Nov 2023 14:22:45 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/base/orderManage/components/addWorkOrder.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue index dbf8d213..4e50fcf7 100644 --- a/src/views/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/order/base/orderManage/components/addWorkOrder.vue @@ -203,7 +203,6 @@ export default { methods: { init(data, param) { this.form.orderId = data.id - this.form.orderName = data.name this.getList() if (param === 'add') { this.isBind = false @@ -260,12 +259,12 @@ export default { orderIssue({ ..._this.form }).then(res => { if (res.code === 0) { _this.$modal.msgSuccess("操作成功") - let name = this.form.orderName + let name = this.form.name _this.$emit('addWorkOrderSubmit') // 询问是否添加预使用主原料 _this.$modal.confirm('是否添加预使用主原料信息?').then(function() { _this.$router.push({ - path: '/core/core-work-order?orderName='+encodeURI(name) + path: '/core/core-work-order?workOrderName='+encodeURI(name) }) }) } From 952490f0d4037757909977e4df59494d7ef71ca9 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Wed, 15 Nov 2023 14:30:28 +0800 Subject: [PATCH 4/5] =?UTF-8?q?24h,=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 6 +- src/api/base/coreWorkOrder.js | 12 ++- src/api/equipment/base/inspection/record.js | 2 +- src/api/equipment/base/inspection/settings.js | 6 +- src/views/base/coreProduct/add-or-updata.vue | 14 +++- src/views/base/coreProductionLine/index.vue | 34 ++++++--- src/views/base/coreWorkOrder/detail.vue | 69 +++++++++++++---- src/views/base/coreWorkOrder/index.vue | 37 +++++++--- .../core/analysis/yieldAnalysis/index.vue | 65 +++++++--------- src/views/core/monitoring/data24/index.vue | 74 +++++++++++++------ .../base/inspection/Record/addRecord.vue | 14 +++- .../base/inspection/Record/index.vue | 17 +++-- 12 files changed, 230 insertions(+), 120 deletions(-) diff --git a/.env.dev b/.env.dev index d331d5a0..3e5a19da 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-11-11 20:50:30 + # @LastEditTime: 2023-11-13 09:50:51 # @LastEditors: DY # @Description: ### @@ -18,8 +18,8 @@ VUE_APP_TITLE = MES系统 # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080' -VUE_APP_BASE_API = 'http://192.168.0.33:48082' -# VUE_APP_BASE_API = 'http://192.168.1.56:48080' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.4.159:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js index 8f250b23..ce9cdf64 100644 --- a/src/api/base/coreWorkOrder.js +++ b/src/api/base/coreWorkOrder.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-11-06 17:49:42 + * @LastEditTime: 2023-11-15 10:44:41 * @LastEditors: DY * @Description: */ @@ -67,6 +67,14 @@ export function getCoreWOList(query) { }) } +// 根据工单id获得所有列表 +export function getCoreWOListById(ids) { + return request({ + url: '/base/core-work-order/list?ids='+ ids , + method: 'get' + }) +} + // 创建工单预使用原料 export function createCoreWOMa(data) { return request({ @@ -135,4 +143,4 @@ export function statusChange(data) { method: 'post', data: data }) -} \ No newline at end of file +} diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js index 5c0e2cb2..7cf3941c 100644 --- a/src/api/equipment/base/inspection/record.js +++ b/src/api/equipment/base/inspection/record.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-08 15:56:52 - * @LastEditTime: 2023-11-11 19:52:54 + * @LastEditTime: 2023-11-13 09:15:17 * @LastEditors: DY * @Description: */ diff --git a/src/api/equipment/base/inspection/settings.js b/src/api/equipment/base/inspection/settings.js index 8d2ad8c9..4e1fd898 100644 --- a/src/api/equipment/base/inspection/settings.js +++ b/src/api/equipment/base/inspection/settings.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-08 15:56:52 - * @LastEditTime: 2023-11-10 09:04:50 + * @LastEditTime: 2023-11-13 08:52:12 * @LastEditors: DY * @Description: */ @@ -58,10 +58,10 @@ export function getCheckDetPage(query) { }) } -// 获得x巡检所有列表 +// 获得设备巡检所有列表 export function getcheckList(query) { return request({ - url: '/base/equipment-check/list', + url: '/base/equipment-check/listAll', method: 'get', params: query }) diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue index d95df6d0..922ff0c2 100644 --- a/src/views/base/coreProduct/add-or-updata.vue +++ b/src/views/base/coreProduct/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-04 17:57:18 + * @LastEditTime: 2023-11-15 10:32:19 * @Description: -->