From a7ff525aa7c64c18b4a6c33bd7eb671d4a64fa9e Mon Sep 17 00:00:00 2001 From: ludj Date: Wed, 24 Jul 2024 17:30:23 +0800 Subject: [PATCH] =?UTF-8?q?rev:=E5=A2=9E=E5=8A=A0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lms/nladmin-ui/src/router/routers.js | 8 + .../src/views/wms/produceScreen/index.vue | 235 ++++++++++++++++++ .../views/wms/produceScreen/produceScreen.js | 149 +++++++++++ 3 files changed, 392 insertions(+) create mode 100644 lms/nladmin-ui/src/views/wms/produceScreen/index.vue create mode 100644 lms/nladmin-ui/src/views/wms/produceScreen/produceScreen.js diff --git a/lms/nladmin-ui/src/router/routers.js b/lms/nladmin-ui/src/router/routers.js index 07be08d..14830c3 100644 --- a/lms/nladmin-ui/src/router/routers.js +++ b/lms/nladmin-ui/src/router/routers.js @@ -5,6 +5,14 @@ import Layout from '../layout/index' Vue.use(Router) export const constantRouterMap = [ + + { + path: '/produceScreen/:id', + component: (resolve) => require(['@/views/wms/produceScreen/index'], resolve), + hidden: true, + meta: { title: '加工看板' } + }, + { path: '/login', meta: { title: '登录', noCache: true }, diff --git a/lms/nladmin-ui/src/views/wms/produceScreen/index.vue b/lms/nladmin-ui/src/views/wms/produceScreen/index.vue new file mode 100644 index 0000000..06aab56 --- /dev/null +++ b/lms/nladmin-ui/src/views/wms/produceScreen/index.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/lms/nladmin-ui/src/views/wms/produceScreen/produceScreen.js b/lms/nladmin-ui/src/views/wms/produceScreen/produceScreen.js new file mode 100644 index 0000000..bd31d08 --- /dev/null +++ b/lms/nladmin-ui/src/views/wms/produceScreen/produceScreen.js @@ -0,0 +1,149 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/produceTask/add', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/produceTask/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/produceTask', + method: 'put', + data + }) +} + +export function getDevice() { + return request({ + url: 'api/produceTask/getDevice', + method: 'get' + }) +} + +export function getMaterial() { + return request({ + url: 'api/produceTask/getMaterial', + method: 'get' + }) +} + +export function getProduceStatus() { + return request({ + url: 'api/produceTask/getProduceStatus', + method: 'get' + }) +} + +export function importExcel(id) { + return request({ + url: 'api/produceTask/importExcel/' + id, + method: 'get' + }) +} + +export function queryTask(device_code) { + debugger + return request({ + url: 'api/produceTask/queryTask/' + device_code, + method: 'get' + }) +} + +export function querAllTask() { + return request({ + url: 'api/produceTask/querAllTask', + method: 'get' + }) +} + +export function callMaterial(data) { + return request({ + url: 'api/produceTask/callMaterial', + method: 'put', + data + }) +} + +export function finish(data) { + return request({ + url: 'api/produceTask/finish', + method: 'put', + data + }) +} + +export function materialBack(data) { + return request({ + url: 'api/produceTask/materialBack', + method: 'put', + data + }) +} +export function emptyVehicleBack(data) { + return request({ + url: 'api/produceTask/emptyVehicleBack', + method: 'post', + data + }) +} + +export function queryIdDevice(id) { + return request({ + url: 'api/produceTask/' + id, + method: 'get' + }) +} + +export function popSeek(code) { + return request({ + url: 'api/produceTask/popSeek/' + code, + method: 'get' + }) +} + +export function queryOne() { + return request({ + url: 'api/produceTask/queryOne', + method: 'get' + }) +} + +export function saveOrder(data) { + return request({ + url: 'api/produceTask/saveOrder', + method: 'put', + data: data + }) +} + +export function forceFinish(data) { + return request({ + url: 'api/produceTask/forceFinish', + method: 'post', + data: data + }) +} +export function queryIvtByPscn(data) { + return request({ + url: 'api/produceTask/queryIvtByPscn', + method: 'post', + data: data + }) +} + +export default { + add, edit, del, getDevice, getMaterial, + getProduceStatus, importExcel, queryTask, querAllTask, + callMaterial, finish, queryIdDevice, popSeek, queryOne, saveOrder, forceFinish, materialBack, queryIvtByPscn, emptyVehicleBack +}