From f290d848a4d602694e8f391b2a300706fd0e9427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Wed, 25 Dec 2024 13:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E6=96=99=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 66 +------- pages/home/home.vue | 10 +- pages/login/setup.vue | 26 +--- pages/manage/area-lock.vue | 143 ----------------- pages/manage/call-mater.vue | 171 --------------------- pages/manage/empty-material-racks-back.vue | 84 ---------- pages/manage/empty-tray-back.vue | 98 ------------ pages/manage/fill-tray.vue | 97 ------------ pages/manage/mater-in-storage.vue | 152 ------------------ pages/manage/material-transfer.vue | 84 ---------- pages/manage/mix-task.vue | 104 +++++++++++++ pages/manage/modify-process.vue | 131 ---------------- pages/manage/route-lock.vue | 104 ------------- utils/getData1.js | 1 - utils/getData2.js | 79 +--------- utils/mork2.js | 62 +++++--- 16 files changed, 152 insertions(+), 1260 deletions(-) delete mode 100644 pages/manage/area-lock.vue delete mode 100644 pages/manage/call-mater.vue delete mode 100644 pages/manage/empty-material-racks-back.vue delete mode 100644 pages/manage/empty-tray-back.vue delete mode 100644 pages/manage/fill-tray.vue delete mode 100644 pages/manage/mater-in-storage.vue delete mode 100644 pages/manage/material-transfer.vue create mode 100644 pages/manage/mix-task.vue delete mode 100644 pages/manage/modify-process.vue delete mode 100644 pages/manage/route-lock.vue delete mode 100644 utils/getData1.js diff --git a/pages.json b/pages.json index 4a7c1a5..645c232 100644 --- a/pages.json +++ b/pages.json @@ -19,71 +19,7 @@ } } ,{ - "path" : "pages/manage/empty-tray-back", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/mater-in-storage", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/area-lock", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/fill-tray", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/empty-material-racks-back", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/material-transfer", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/modify-process", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/route-lock", - "style" : - { - "navigationStyle": "custom" - } - - } - ,{ - "path" : "pages/manage/call-mater", + "path" : "pages/manage/mix-task", "style" : { "navigationStyle": "custom" diff --git a/pages/home/home.vue b/pages/home/home.vue index 18a6724..2840eb4 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -32,15 +32,7 @@ return { userName: '', menuList: [ - {title: '物料入库', icon: 'RF03', path: '/pages/manage/mater-in-storage'}, - {title: '笼框补仓', icon: 'RF04', path: '/pages/manage/empty-tray-back'}, - // {title: '外协区空料架送回', icon: 'RF05', path: '/pages/manage/empty-material-racks-back'}, - // {title: '物料转运', icon: 'RF02', path: '/pages/manage/material-transfer'}, - {title: '区域锁定', icon: 'RF08', path: '/pages/manage/area-lock'}, - {title: '路线锁定', icon: 'RF06', path: '/pages/manage/route-lock'}, - {title: '呼叫空框', icon: 'RF01', path: '/pages/manage/fill-tray'}, - {title: '修改订单工序', icon: 'RF07', path: '/pages/manage/modify-process'}, - {title: '呼叫物料', icon: 'RF09', path: '/pages/manage/call-mater'} + {title: '配料任务', icon: 'RF07', path: '/pages/manage/mix-task'} ], show: false, secM: [] diff --git a/pages/login/setup.vue b/pages/login/setup.vue index d1f8abc..c4fcc7c 100644 --- a/pages/login/setup.vue +++ b/pages/login/setup.vue @@ -7,14 +7,6 @@ 服务器地址 - - ACS地址 - - - - 打印地址 - - - - - - - - - - - {{e.point_name}} - - - - - - - - - 全选 - - - - - - - - - - - diff --git a/pages/manage/call-mater.vue b/pages/manage/call-mater.vue deleted file mode 100644 index 4799835..0000000 --- a/pages/manage/call-mater.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - diff --git a/pages/manage/empty-material-racks-back.vue b/pages/manage/empty-material-racks-back.vue deleted file mode 100644 index 361d5d0..0000000 --- a/pages/manage/empty-material-racks-back.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - diff --git a/pages/manage/empty-tray-back.vue b/pages/manage/empty-tray-back.vue deleted file mode 100644 index 1ba14fb..0000000 --- a/pages/manage/empty-tray-back.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - diff --git a/pages/manage/fill-tray.vue b/pages/manage/fill-tray.vue deleted file mode 100644 index 159d8dd..0000000 --- a/pages/manage/fill-tray.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - diff --git a/pages/manage/mater-in-storage.vue b/pages/manage/mater-in-storage.vue deleted file mode 100644 index 83bb8dc..0000000 --- a/pages/manage/mater-in-storage.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - - - diff --git a/pages/manage/material-transfer.vue b/pages/manage/material-transfer.vue deleted file mode 100644 index d15b6b8..0000000 --- a/pages/manage/material-transfer.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - diff --git a/pages/manage/mix-task.vue b/pages/manage/mix-task.vue new file mode 100644 index 0000000..7e359c8 --- /dev/null +++ b/pages/manage/mix-task.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/pages/manage/modify-process.vue b/pages/manage/modify-process.vue deleted file mode 100644 index 2ef7164..0000000 --- a/pages/manage/modify-process.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - diff --git a/pages/manage/route-lock.vue b/pages/manage/route-lock.vue deleted file mode 100644 index d157405..0000000 --- a/pages/manage/route-lock.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - diff --git a/utils/getData1.js b/utils/getData1.js deleted file mode 100644 index b8e2f24..0000000 --- a/utils/getData1.js +++ /dev/null @@ -1 +0,0 @@ -import request from './request.js' diff --git a/utils/getData2.js b/utils/getData2.js index c4a5e4d..f0f29b8 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -20,78 +20,13 @@ export const handLogin = (user, password) => request({ password: password } }) -// 区域 -export const regionList = () => request({ - url:'api/fab/regionList', - method: 'GET' -}) -// 区域锁定 -export const handheldLock = (code, status, data) => request({ - url:'api/handheld/lock', - data: {region_code: code, status: status, pointCodes: data} -}) -// 外协区空料架送回 -export const handheldRack = (code, vcode) => request({ - url:'api/handheld/rack', - data: {device_code: code, vehicle_code: vcode} -}) -// 外协区空笼框送回 -export const handheldCageFrame = (type, code, list) => request({ - url:'api/handheld/cageFrame', - data: {type: type, device_code: code, vehicle_list: list} -}) -// 物料转运 -export const handheldTranshipment = (code, vcode) => request({ - url:'api/handheld/transhipment', - data: {device_code: code, vehicle_code: vcode} -}) -// 载具类型列表 -export const vehicleType = () => request({ - url:'api/fab/vehicleType', +// 配料作业查询 +export const queryWorks = () => request({ + url:'api/hand/queryWorks', data: {} }) -// 补空框 -export const handheldStorehouse = (code, type) => request({ - url:'api/handheld/storehouse', - data: {device_code: code, vehicle_type: type} -}) -// 工序下料 -// export const handheldGetRegionCode = (code) => request({ -// url:'api/handheld/getRegionCode', -// data: {orderCode: code} -// }) -export const handheldBlanking = (type, code, rcode, vcode, material) => request({ - url:'api/handheld/blanking', - data: {type: type, device_code: code, region_code: rcode, vehicle_code: vcode, material: material} -}) -// 修改订单工序 -export const fabOrders = (code) => request({ - url:'api/fab/orders', - data: {vehicle_code: code} -}) -export const updateOrder = (data) => request({ - url:'api/handheld/updateOrder', - data: data -}) -// 路线锁定 -export const updateRouteStatus = (type, status) => request({ - url:'api/handheld/updateRouteStatus', - data: {type: type, status: status} -}) -// 呼叫物料 -export const selectOrderByRegion = (code, code1) => request({ - url:'api/fab/selectOrderByRegion?regionCode=' + code + '&deviceCode=' + code1, - method: 'GET' -}) -export const fabMaterial = (code) => request({ - url:'api/fab/material', - data: {vehicle_code: code} -}) -export const callMater = (mater, code, vcode) => request({ - url:'api/fab/callMater', - data: {mater: mater, device_code: code, vehicle_code: vcode} -}) -export const selectPointByRegion = (code) => request({ - url:'api/handheld/selectPointByRegion?regionCode=' + code, - method: 'GET' +// 确认配料作业 +export const handConfirm = () => request({ + url:'api/hand/confirm', + data: {work_code: code} }) \ No newline at end of file diff --git a/utils/mork2.js b/utils/mork2.js index 174e8db..f4b1daf 100644 --- a/utils/mork2.js +++ b/utils/mork2.js @@ -7,36 +7,50 @@ export const handLogin = (user, password) => { } return res } -export const regionList = () => { - let res = { - content: [{value: '1', label: 'A0000001'}, {value: '2', label: 'A0000002'}, {value: '3', label: 'A0000003'}, {value: '4', label: 'A0000004'}, {value: '5', label: 'A0000005'}, {value: '6', label: 'A0000006'}] - } - return res -} - -export const fabOrders = (data) => { +export const queryWorks = () => { let res = [ - {order_code: '111'} + { + "seq_no": 1, + "work_code": "000032", + "mfg_order_name": "20240110-2514", + "material_code": "10305020", + "material_name": "菜籽油", + "qty": 415.0, + "resource_name": "1", + "require_num": 21, + "remain_num": 21, + "status": "执行中" + }, + { + "seq_no": 3, + "work_code": "000034", + "mfg_order_name": "20240110-2514", + "material_code": "10305092", + "material_name": "橄榄油", + "qty": 500.0, + "resource_name": "1", + "require_num": 25, + "remain_num": 25, + "status": "就绪" + }, + { + "seq_no": 4, + "work_code": "000035", + "mfg_order_name": "20240110-2514", + "material_code": "10305093", + "material_name": "花生油", + "qty": 370.0, + "resource_name": "1", + "require_num": 19, + "remain_num": 19, + "status": "就绪" + } ] return res } -export const updateRouteStatus = (data) => { +export const handConfirm = () => { let res = { message: 'ok' } return res -} -export const selectOrderByRegion = (code, code1) => { - let res = { - content: [{ vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }] - } - return res -} -export const fabMaterial = (code, code1) => { - let res = [{ vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }, { vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }, { vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }, { vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }] - return res -} -export const selectPointByRegion = (code) => { - let res = [{point_code: '1', point_name: 'Amada 80T冲床07-01-06-01'}, {point_code: '2', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '3', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '4', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '5', point_name: 'Amada 80T冲床07-01-06-01', point_status: '1'}, {point_code: '1', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '2', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '3', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '4', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '5', point_name: 'Amada 80T冲床07-01-06-01', point_status: '1'}] - return res } \ No newline at end of file