From ab8b5e9e1b4522a19a10e36d3a895dc1c77a80a3 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Fri, 28 Jul 2023 21:24:53 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=BB=E5=AD=97=E5=B7=A5=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/getData2.js | 64 +++++++++----------
src/pages/homeset/HomePage.vue | 2 +-
src/pages/modules/lettering/index.vue | 9 +--
.../lettering/lettering-machine-select.vue | 12 ++--
.../modules/lettering/lettering-process.vue | 9 +++
src/style/reset.css | 4 ++
6 files changed, 57 insertions(+), 43 deletions(-)
diff --git a/src/config/getData2.js b/src/config/getData2.js
index 46bc9de..ed9ca08 100644
--- a/src/config/getData2.js
+++ b/src/config/getData2.js
@@ -365,42 +365,42 @@ export const bcpInCallVehicle = () => post('api/pda/bcp/in/callVehicle', {})
* 刻字工序
*/
// 1.1刻字上料物料列表
-// export const bypda = (page, size) => post('api/bcp/bypda', {
-// page: page,
-// size: size,
-// stor_id: '15286279952695336962'
-// })
-export const bypda = (page, size) => {
- let res = {
- code: 200,
- content: [{struct_code: '1', canuse_qty: '200'}]
- }
- return res
-}
+export const bypda = (page, size) => post('api/bcp/bypda', {
+ page: page,
+ size: size,
+ stor_id: '15286279952695336962'
+})
+// export const bypda = (page, size) => {
+// let res = {
+// code: 200,
+// content: [{struct_code: '1', canuse_qty: '200'}]
+// }
+// return res
+// }
// 1.2刻字机选择
-// export const kzDeviceList = () => post('api/device/list', {
-// product_area: 'A1'
-// })
-export const kzDeviceList = () => {
- let res = {
- code: 200,
- content: [{workorder_code: '1', device_code: '1'}, {workorder_code: '11', device_code: '11'}]
- }
- return res
-}
+export const kzDeviceList = () => post('api/device/list', {
+ product_area: 'A1'
+})
+// export const kzDeviceList = () => {
+// let res = {
+// code: 200,
+// content: [{workorder_code: '1', device_code: '1'}, {workorder_code: '11', device_code: '11'}]
+// }
+// return res
+// }
// 1.3确认上料
export const kzSubmitkz = (arr) => post('api/pda/kz/submitkz', arr)
// 1.1任务列表
-// export const KzTasks = () => post('api/pda/kz/kzTasks', {
-// product_area: 'A1'
-// })
-export const KzTasks = () => {
- let res = {
- code: 200,
- content: [{task_id: '1', device_code: '1'}, {task_id: '11', device_code: '11'}]
- }
- return res
-}
+export const KzTasks = () => post('api/pda/kz/kzTasks', {
+ product_area: 'A1'
+})
+// export const KzTasks = () => {
+// let res = {
+// code: 200,
+// content: [{task_id: '1', device_code: '1'}, {task_id: '11', device_code: '11'}]
+// }
+// return res
+// }
// 1.2强制完成取消
export const operation = (id, method) => post('api/task/operation', {
task_id: id,
diff --git a/src/pages/homeset/HomePage.vue b/src/pages/homeset/HomePage.vue
index 2df7879..f789a85 100644
--- a/src/pages/homeset/HomePage.vue
+++ b/src/pages/homeset/HomePage.vue
@@ -57,7 +57,7 @@ export default {
toPage2 (e) {
let url = e.path
let name = url.substr(1)
- if (name === 'semifinishedinstore' || name === 'semifinishedoutstore' || name === 'semifinishedcheck' || name === 'finishedinstore' || name === 'manpour') {
+ if (name === 'semifinishedinstore' || name === 'semifinishedoutstore' || name === 'semifinishedcheck' || name === 'finishedinstore' || name === 'manpour' || name === 'letteringprocess') {
this.$store.dispatch('setKeepAlive', [name])
}
if (name === 'cleaningloading') {
diff --git a/src/pages/modules/lettering/index.vue b/src/pages/modules/lettering/index.vue
index 9322270..5748ad3 100644
--- a/src/pages/modules/lettering/index.vue
+++ b/src/pages/modules/lettering/index.vue
@@ -11,7 +11,7 @@