From e5966c27a33781653b08ef265e50ed7d76298e54 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Wed, 15 Nov 2023 17:46:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B7=A5=E5=8D=95[?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 6 +- src/api/base/coreHotMaterial.js | 68 ++++ src/api/base/coreWorkOrder.js | 11 +- .../base/coreHotMaterial/add-or-updata.vue | 86 +++++ src/views/base/coreHotMaterial/index.vue | 178 +++++++++++ src/views/base/coreProduct/add-or-updata.vue | 67 ++-- src/views/base/coreProduct/index.vue | 2 +- src/views/base/coreWorkOrder/addWorkOrder.vue | 22 +- src/views/base/coreWorkOrder/allocation.vue | 298 ++++++++++++++++++ src/views/base/coreWorkOrder/index.vue | 55 +++- 10 files changed, 750 insertions(+), 43 deletions(-) create mode 100644 src/api/base/coreHotMaterial.js create mode 100644 src/views/base/coreHotMaterial/add-or-updata.vue create mode 100644 src/views/base/coreHotMaterial/index.vue create mode 100644 src/views/base/coreWorkOrder/allocation.vue diff --git a/.env.dev b/.env.dev index acb7b2ac..53f0527b 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-15 14:37:35 + # @LastEditTime: 2023-11-15 17:25:58 # @LastEditors: DY # @Description: ### @@ -13,13 +13,13 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://100.64.0.26:48082' -# VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.4.173:48080' # 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.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/coreHotMaterial.js b/src/api/base/coreHotMaterial.js new file mode 100644 index 00000000..3610dc78 --- /dev/null +++ b/src/api/base/coreHotMaterial.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-15 15:56:14 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建原料 +export function createHotMaterial(data) { + return request({ + url: '/base/core-hot-material/create', + method: 'post', + data: data + }) +} + +// 更新原料 +export function updateHotMaterial(data) { + return request({ + url: '/base/core-hot-material/update', + method: 'put', + data: data + }) +} + +// 删除原料 +export function deleteHotMaterial(id) { + return request({ + url: '/base/core-hot-material/delete?id=' + id, + method: 'delete' + }) +} + +// 获得原料 +export function getHotMaterial(id) { + return request({ + url: '/base/core-hot-material/get?id=' + id, + method: 'get' + }) +} + +// 获得原料code +export function getCode() { + return request({ + url: '/base/core-hot-material/getCode', + method: 'get' + }) +} + +// 获得原料分页 +export function getHotMaterialPage(query) { + return request({ + url: '/base/core-hot-material/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getHotMaterialList(query) { + return request({ + url: '/base/core-hot-material/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js index ce9cdf64..656d4a69 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-15 10:44:41 + * @LastEditTime: 2023-11-15 17:19:19 * @LastEditors: DY * @Description: */ @@ -144,3 +144,12 @@ export function statusChange(data) { data: data }) } + +// 创建分配产量 +export function createConCoreWOr(data) { + return request({ + url: '/base/core-order-con-work-order/create', + method: 'post', + data: data + }) +} diff --git a/src/views/base/coreHotMaterial/add-or-updata.vue b/src/views/base/coreHotMaterial/add-or-updata.vue new file mode 100644 index 00000000..975cd5a8 --- /dev/null +++ b/src/views/base/coreHotMaterial/add-or-updata.vue @@ -0,0 +1,86 @@ + + + + diff --git a/src/views/base/coreHotMaterial/index.vue b/src/views/base/coreHotMaterial/index.vue new file mode 100644 index 00000000..0e8a9ce6 --- /dev/null +++ b/src/views/base/coreHotMaterial/index.vue @@ -0,0 +1,178 @@ + + + diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue index 922ff0c2..2344438c 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-15 10:32:19 + * @LastEditTime: 2023-11-15 15:41:44 * @Description: --> diff --git a/src/views/base/coreWorkOrder/addWorkOrder.vue b/src/views/base/coreWorkOrder/addWorkOrder.vue index ce76ebc9..0b521e00 100644 --- a/src/views/base/coreWorkOrder/addWorkOrder.vue +++ b/src/views/base/coreWorkOrder/addWorkOrder.vue @@ -70,7 +70,7 @@ - + - + 产品基础 工艺扩展 @@ -192,8 +192,8 @@ export default { processFlowList: [], productLineList: [], workOrderTypeList: [ - {id: 1,name:'标准工单'}, - {id: 2, name:'特殊工单'} + {id: 1,name:'普通'}, + {id: 2, name:'特殊'} ], planStartTime: '', planFinishTime: '', @@ -205,6 +205,20 @@ export default { this.getDict() }, methods: { + // 工艺变更 + materialMethodChange(val) { + if (val === 2 && !this.dataForm.processFlowId) { + this.dataForm.materialMethod = 1 + this.$modal.msgError("请先选择关联工艺"); + } + }, + // 工艺变更 + processFlowIdChange(val) { + console.log(val) + if (!val) { + this.dataForm.materialMethod = 1 + } + }, init(id) { this.dataForm.id = id || ""; this.visible = true; diff --git a/src/views/base/coreWorkOrder/allocation.vue b/src/views/base/coreWorkOrder/allocation.vue new file mode 100644 index 00000000..f9e45b1a --- /dev/null +++ b/src/views/base/coreWorkOrder/allocation.vue @@ -0,0 +1,298 @@ + + + + + diff --git a/src/views/base/coreWorkOrder/index.vue b/src/views/base/coreWorkOrder/index.vue index 75ae3d9d..44c32b00 100644 --- a/src/views/base/coreWorkOrder/index.vue +++ b/src/views/base/coreWorkOrder/index.vue @@ -39,24 +39,25 @@ v-if="materialVisible" ref="material" @refreshDataList="closeDetail"> - - + +