From 94907d847f83a44a45cd805ef91951e6ef8de4b6 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Fri, 1 Jul 2022 16:21:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData1.js | 44 ++++++ src/pages/xinrui/equipment/RunLogFill.vue | 103 ++++++++++--- src/pages/xinrui/equipment/ScanInStore.vue | 75 +++++----- src/pages/xinrui/equipment/ScanOutStore.vue | 141 ++++++++++++++++++ .../xinrui/equipment/SparePartInstore.vue | 54 ++++--- .../xinrui/equipment/SparePartOutstore.vue | 87 +++++------ src/pages/xinrui/equipment/UseReturn.vue | 98 ++++++------ src/router/index.js | 5 + 8 files changed, 435 insertions(+), 172 deletions(-) create mode 100644 src/pages/xinrui/equipment/ScanOutStore.vue diff --git a/src/config/getData1.js b/src/config/getData1.js index e503305..c097379 100644 --- a/src/config/getData1.js +++ b/src/config/getData1.js @@ -287,3 +287,47 @@ export const taskoperate = (op, pcode, scode) => post('api/pda/task/operate', { point_code: pcode, storagevehicle_code: scode }) + +/** 备件出入库 */ +// 1.1出入库单查询 +export const queryIODtl = (flag) => post('api/pda/sb/queryIODtl', { + io_flag: flag +}) + +// 1.2备品备件扫描 +export const queryIODis = (sid, iid) => post('api/pda/sb/queryIODis', { + sparepart_only_id: sid, + iostorinvdtl_id: iid +}) + +// 1.3确认 +export const confirmDis = (ioflag, form, rows) => post('api/pda/sb/confirmDis', { + io_flag: ioflag, + form: form, + rows: rows +}) + +// 1.4领用还回查询 +export const queryReturnDis = (sid) => post('api/pda/sb/queryReturnDis', { + sparepart_only_id: sid +}) + +// 1.5确认入库 +export const confirmReturn = (rows) => post('api/pda/sb/confirmReturn', { + rows: rows +}) + +// 1.6运行记录查询 +export const queryRunRecord = (code) => post('api/pda/sb/queryRunRecord', { + device_code: code +}) + +// 1.7计算 +export const calculate = (form) => post('api/pda/sb/calculate', { + form: form +}) + +// 1.8保存 +export const save = (form) => post('api/pda/sb/save', { + form: form +}) diff --git a/src/pages/xinrui/equipment/RunLogFill.vue b/src/pages/xinrui/equipment/RunLogFill.vue index 0460f24..2841e84 100644 --- a/src/pages/xinrui/equipment/RunLogFill.vue +++ b/src/pages/xinrui/equipment/RunLogFill.vue @@ -11,62 +11,62 @@
日期
- +
-
工作时间
+
工作时间(分)
- +
-
准备时间
+
准备时间(分)
- +
-
故障时间
+
故障时间(分)
- +
-
工装调整时间
+
工装调整时间(分)
- +
生产总量
- +
不合格量
- +
-
综合效率
+
综合效率(%)
- +
- +
+ diff --git a/src/pages/xinrui/equipment/ScanInStore.vue b/src/pages/xinrui/equipment/ScanInStore.vue index ed8854b..3b6c899 100644 --- a/src/pages/xinrui/equipment/ScanInStore.vue +++ b/src/pages/xinrui/equipment/ScanInStore.vue @@ -21,13 +21,13 @@
-
采购数量
+
待入数
-
入库数量
+
已入数
@@ -40,19 +40,21 @@ 备件唯一编码 备件名称 数量 + 单位 - - {{e.maint_item_name}} - {{e.item_level}} - {{e.contents}} + + {{e.sparepart_only_id}} + {{e.material_name}} + {{e.real_qty}} + {{e.qty_unit_name}}
- - + +
@@ -60,7 +62,7 @@ diff --git a/src/pages/xinrui/equipment/SparePartInstore.vue b/src/pages/xinrui/equipment/SparePartInstore.vue index 436e152..591031d 100644 --- a/src/pages/xinrui/equipment/SparePartInstore.vue +++ b/src/pages/xinrui/equipment/SparePartInstore.vue @@ -8,61 +8,79 @@ 入库单号 - - {{e.device_code}} + + {{e.bill_code}}
- + + - + - - + - - + + + +
备件名称物料编码物料名称 数量入库数量已入数 单位
{{e.workorder_code}}
{{e.material_code}}{{e.pcsn}}{{e.pcsn}}{{e.material_name}}{{e.plan_qty}}{{e.finish_qty}}{{e.qty_unit_name}}
- +