From 1bacd26f51d1bfd30da1a83943bb583083d9d9b5 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Fri, 26 Apr 2024 09:52:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dev/deviceInfoApi.js | 9 + src/utils/enum.js | 2 +- src/views/dev/DialogDeviceSelectAdd.vue | 361 ++++++++++++++++++++++++ src/views/dev/deviceChangeOrder.vue | 119 ++++---- src/views/dev/js/deviceChangeOrder.js | 32 ++- 5 files changed, 467 insertions(+), 56 deletions(-) create mode 100644 src/views/dev/DialogDeviceSelectAdd.vue diff --git a/src/api/dev/deviceInfoApi.js b/src/api/dev/deviceInfoApi.js index 7d6bdf2e..6556e06c 100644 --- a/src/api/dev/deviceInfoApi.js +++ b/src/api/dev/deviceInfoApi.js @@ -19,6 +19,15 @@ export function detailByUserPage(query) { } ) } +export function detailByDeptCodePage(query) { + return axios( + { + url: "/udi/device/info/detailByDeptCode/page", + method: "POST", + data: query + } + ) +} export function deviceAllPage(query) { return axios( diff --git a/src/utils/enum.js b/src/utils/enum.js index 93029e6c..073cd7a7 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -1,5 +1,5 @@ export const deviceChangeType = { - ADD: {key: "ADD", tagType: "primary", desc: "新增入库"}, + ADD: {key: "ADD", tagType: "primary", desc: "设备登记"}, CHANGE: {key: "CHANGE", tagType: "warning", desc: "变更归属"}, DESTROY: {key: "DESTROY", tagType: "danger", desc: "销毁/报废"}, } diff --git a/src/views/dev/DialogDeviceSelectAdd.vue b/src/views/dev/DialogDeviceSelectAdd.vue new file mode 100644 index 00000000..e6857185 --- /dev/null +++ b/src/views/dev/DialogDeviceSelectAdd.vue @@ -0,0 +1,361 @@ + + + + + diff --git a/src/views/dev/deviceChangeOrder.vue b/src/views/dev/deviceChangeOrder.vue index 83c56255..8d10f519 100644 --- a/src/views/dev/deviceChangeOrder.vue +++ b/src/views/dev/deviceChangeOrder.vue @@ -110,24 +110,24 @@ -
-
- {{ `变更详情 ${clickRow ? '——' + clickRow.name + '(' + clickRow.orderId + ')' : ''}` }} -
-
- 刷新 -
-
-
-
- - - - - -
-
+ + + + + + + + + + + + + + + + + + @@ -164,12 +164,13 @@
-
- - - - 当前部门:{{ locDeptName }} -
+ + + + + + +
@@ -189,8 +190,15 @@ - - + + + + + + + + + @@ -205,18 +213,18 @@ - - - - {{ item.label }} - - - + + + + + + + + + + + + @@ -225,17 +233,19 @@ style="margin-top: 10px;">
- 添加设备 - - + 产品录入 + 库存物资录入 + 添加设备 + + + + +
-
- {{ v[0] }} * {{ v[1] }}条 -
+ + + @@ -332,7 +342,7 @@ - + + +