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 @@ + + + + + 车间加工看板 + + + + 界面刷新 + 生产叫料 + 生产完成 + 余料回库 + 空托回库 + + + + + + {{ getTime }} + + + {{ getDate }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 +}
{{ getDate }}