From 3c857c1889024a2c538b3e974c12a9d949a03bf3 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 1 Aug 2023 14:54:52 +0800 Subject: [PATCH 1/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-=E4=BF=AE=E6=94=B9/?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=95=8C=E9=9D=A2-=E8=BE=85=E5=8A=A9?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/equipment.js | 56 +++-- src/views/technology/process/content.vue | 42 +++- src/views/technology/process/index.vue | 7 - src/views/technology/process/single.vue | 301 +++++++++++++++++++++++ src/views/wms/equipment/index.vue | 14 +- 5 files changed, 375 insertions(+), 45 deletions(-) create mode 100644 src/views/technology/process/single.vue diff --git a/src/api/wms/equipment.js b/src/api/wms/equipment.js index 05aa2996..c46a7ff1 100644 --- a/src/api/wms/equipment.js +++ b/src/api/wms/equipment.js @@ -2,43 +2,51 @@ import request from '@/utils/request' // 查询设备管理列表 export function listEquipment(query) { - return request({ - url: '/wms/equipment/list', - method: 'get', - params: query - }); + return request({ + url: '/wms/equipment/list', + method: 'get', + params: query + }); } // 查询设备管理详细 export function getEquipment(equipmentId) { - return request({ - url: '/wms/equipment/' + equipmentId, - method: 'get' - }); + return request({ + url: '/wms/equipment/' + equipmentId, + method: 'get' + }); } // 新增设备管理 export function addEquipment(data) { - return request({ - url: '/wms/equipment', - method: 'post', - data: data - }); + return request({ + url: '/wms/equipment', + method: 'post', + data: data + }); } // 修改设备管理 export function updateEquipment(data) { - return request({ - url: '/wms/equipment', - method: 'put', - data: data - }); + return request({ + url: '/wms/equipment', + method: 'put', + data: data + }); } -// 删除设备管理 +// 删除设备管 export function delEquipment(equipmentId) { - return request({ - url: '/wms/equipment/' + equipmentId, - method: 'delete' - }); + return request({ + url: '/wms/equipment/' + equipmentId, + method: 'delete' + }); +} + +// 查询部门下拉树结构 +export function treeselect() { + return request({ + url: '/wms/equipment/tree', + method: 'get' + }) } diff --git a/src/views/technology/process/content.vue b/src/views/technology/process/content.vue index 2e784c82..837e7703 100644 --- a/src/views/technology/process/content.vue +++ b/src/views/technology/process/content.vue @@ -8,7 +8,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - + v-hasPermi="['mes:pro:processcontent:add']" >新增 @@ -19,7 +19,7 @@ size="mini" :disabled="single" @click="handleUpdate" - + v-hasPermi="['mes:pro:processcontent:edit']" >修改 @@ -30,7 +30,7 @@ size="mini" :disabled="multiple" @click="handleDelete" - + v-hasPermi="['mes:pro:processcontent:remove']" >删除 @@ -40,7 +40,7 @@ icon="el-icon-download" size="mini" @click="handleExport" - + v-hasPermi="['mes:pro:processcontent:export']" >导出 @@ -60,14 +60,14 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - + v-hasPermi="['mes:pro:processcontent:edit']" >修改 删除 @@ -100,7 +100,10 @@ - + + + + @@ -129,16 +132,15 @@ 取 消 - diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue index 17e96a41..5957b307 100644 --- a/src/views/wms/equipment/index.vue +++ b/src/views/wms/equipment/index.vue @@ -90,10 +90,8 @@ - - @@ -151,8 +149,15 @@ - - + + + + @@ -212,6 +217,7 @@ import EquipmentBoundMaterials from "./equipmentBoundMaterials"; export default { name: "Equipment", components: {EquipmentBoundMaterials}, + dicts: ['sys_normal_disable', 'equ_type'], data() { return { // 遮罩层 From f65af61a3e93390b23c4da9110bb44307238fea4 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 1 Aug 2023 17:44:07 +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/views/technology/process/content.vue | 33 ++- src/views/technology/process/index.vue | 45 +++- src/views/technology/process/singleBom.vue | 286 +++++++++++++++++++++ 3 files changed, 354 insertions(+), 10 deletions(-) create mode 100644 src/views/technology/process/singleBom.vue diff --git a/src/views/technology/process/content.vue b/src/views/technology/process/content.vue index 837e7703..d26dcdf7 100644 --- a/src/views/technology/process/content.vue +++ b/src/views/technology/process/content.vue @@ -48,7 +48,7 @@ - + @@ -103,12 +103,15 @@ - + - + + + + @@ -138,9 +141,10 @@ diff --git a/src/views/technology/process/singleBom.vue b/src/views/technology/process/singleBom.vue new file mode 100644 index 00000000..f14e51bd --- /dev/null +++ b/src/views/technology/process/singleBom.vue @@ -0,0 +1,286 @@ + + +