From 1e91668d0663b4d1f358290df4e3a451a5920d4c Mon Sep 17 00:00:00 2001
From: TengXF <302828528@qq.com>
Date: Wed, 8 May 2024 08:35:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20add=20=E8=A1=A5=E6=96=99=E7=94=B3?=
=?UTF-8?q?=E8=AF=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../addBasicItem/addBAsicItemApi.ts | 12 +
src/pages.json | 7 +
.../mes/workScheduling/addBasicItem/index.vue | 268 ++++++++++++++++++
.../mes/workScheduling/workScheduling.vue | 3 +-
4 files changed, 289 insertions(+), 1 deletion(-)
create mode 100644 src/api/mes/workScheduling/addBasicItem/addBAsicItemApi.ts
create mode 100644 src/pages/mes/workScheduling/addBasicItem/index.vue
diff --git a/src/api/mes/workScheduling/addBasicItem/addBAsicItemApi.ts b/src/api/mes/workScheduling/addBasicItem/addBAsicItemApi.ts
new file mode 100644
index 0000000..989c294
--- /dev/null
+++ b/src/api/mes/workScheduling/addBasicItem/addBAsicItemApi.ts
@@ -0,0 +1,12 @@
+import http from '../../../http'
+
+//查询物料信息列表
+export function getByOrder(params) {
+ return http.get('/mes/orderDayBom/getByOrder', {params})
+}
+
+//补料
+export function addBasicItem(data) {
+ return http.post('/mes/item-request-main/addBasicItem', data)
+}
+
diff --git a/src/pages.json b/src/pages.json
index f0466aa..1baa029 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -2051,6 +2051,13 @@
"navigationBarTitleText": "批量创建返工返修登记",
"enablePullDownRefresh": true
}
+ },
+ {
+ "path": "pages/mes/workScheduling/addBasicItem/index",
+ "style": {
+ "navigationBarTitleText": "补料申请",
+ "enablePullDownRefresh": true
+ }
}
diff --git a/src/pages/mes/workScheduling/addBasicItem/index.vue b/src/pages/mes/workScheduling/addBasicItem/index.vue
new file mode 100644
index 0000000..5828eb2
--- /dev/null
+++ b/src/pages/mes/workScheduling/addBasicItem/index.vue
@@ -0,0 +1,268 @@
+
+
+
+
+
+
+
+ {{item.repMaterialCode}}
+
+
+ {{`${$time.formatDate(item.createTime)}`}}
+
+
+
+
+ 产品编码:{{item.productCode}}
+
+
+ 工序编码:{{item.processCode}}
+
+
+ 物料规格:{{item.repMaterialModel}}
+
+
+ 物料数量:
+ {{item.repMaterialCounts * queryForm.planCount}}
+
+
+ 补料数量:
+
+
+
+
+
+ 删除物料
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/mes/workScheduling/workScheduling.vue b/src/pages/mes/workScheduling/workScheduling.vue
index 65a728d..ce8e8ef 100644
--- a/src/pages/mes/workScheduling/workScheduling.vue
+++ b/src/pages/mes/workScheduling/workScheduling.vue
@@ -306,7 +306,8 @@ function receiveBasicItem(item){
}
// 补料
function addBasicItem(item){
- console.log(item)
+ const objString = JSON.stringify(item);
+ proxy.$tab.navigateTo(`/pages/mes/workScheduling/addBasicItem/index?obj=${encodeURIComponent(objString)}`)
}