diff --git a/components/NumberInput.vue b/components/NumberInput.vue new file mode 100644 index 0000000..5a3e3f5 --- /dev/null +++ b/components/NumberInput.vue @@ -0,0 +1,34 @@ + + + diff --git a/pages.json b/pages.json index a980ffb..97755fb 100644 --- a/pages.json +++ b/pages.json @@ -25,7 +25,7 @@ } } ,{ - "path" : "pages/manage/ckqr", + "path" : "pages/manage/test", "style" : { "navigationStyle": "custom" @@ -33,7 +33,63 @@ } ,{ - "path" : "pages/manage/test", + "path" : "pages/manage/wlzp", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/ddzy", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/zprk", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/rgjl", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/sgyk", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/zygl", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/dwgx", + "style" : + { + "navigationStyle": "custom" + } + + } + ,{ + "path" : "pages/manage/common/cxwl", "style" : { "navigationStyle": "custom" diff --git a/pages/home/home.vue b/pages/home/home.vue index 267e2ba..d884dac 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -32,7 +32,13 @@ return { userName: '', menuList: [ - {title: '出库确认', icon: 'RF02', path: '/pages/manage/ckqr'} + {title: '物料组盘', icon: 'RF01', path: '/pages/manage/wlzp'}, + {title: '定点作业', icon: 'RF02', path: '/pages/manage/ddzy'}, + {title: '组盘入库', icon: 'RF03', path: '/pages/manage/zprk'}, + {title: '人工叫料', icon: 'RF04', path: '/pages/manage/rgjl'}, + {title: '手工移库', icon: 'RF05', path: '/pages/manage/sgyk'}, + {title: '作业管理', icon: 'RF06', path: '/pages/manage/zygl'}, + {title: '点位更新', icon: 'RF07', path: '/pages/manage/dwgx'} ], show: false, secM: [] diff --git a/pages/login/login.vue b/pages/login/login.vue index 6817745..4a99fa6 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -67,9 +67,6 @@ }) }, async toLogin() { - uni.redirectTo({ - url: '/pages/home/home' - }) this.disabled = true if (this.user === '') { uni.showToast({ diff --git a/pages/manage/ckqr.vue b/pages/manage/ckqr.vue deleted file mode 100644 index 58e89d8..0000000 --- a/pages/manage/ckqr.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - \ No newline at end of file diff --git a/pages/manage/common/cxwl.vue b/pages/manage/common/cxwl.vue new file mode 100644 index 0000000..102521f --- /dev/null +++ b/pages/manage/common/cxwl.vue @@ -0,0 +1,129 @@ + + + \ No newline at end of file diff --git a/pages/manage/ddzy.vue b/pages/manage/ddzy.vue new file mode 100644 index 0000000..9d547c5 --- /dev/null +++ b/pages/manage/ddzy.vue @@ -0,0 +1,150 @@ + + + + + diff --git a/pages/manage/dwgx.vue b/pages/manage/dwgx.vue new file mode 100644 index 0000000..8afccdf --- /dev/null +++ b/pages/manage/dwgx.vue @@ -0,0 +1,151 @@ + + + diff --git a/pages/manage/rgjl.vue b/pages/manage/rgjl.vue new file mode 100644 index 0000000..b6f56b3 --- /dev/null +++ b/pages/manage/rgjl.vue @@ -0,0 +1,213 @@ + + + diff --git a/pages/manage/sgyk.vue b/pages/manage/sgyk.vue new file mode 100644 index 0000000..f2495ac --- /dev/null +++ b/pages/manage/sgyk.vue @@ -0,0 +1,135 @@ + + + diff --git a/pages/manage/wlzp.vue b/pages/manage/wlzp.vue new file mode 100644 index 0000000..9991d11 --- /dev/null +++ b/pages/manage/wlzp.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/pages/manage/zprk.vue b/pages/manage/zprk.vue new file mode 100644 index 0000000..4141873 --- /dev/null +++ b/pages/manage/zprk.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/pages/manage/zygl.vue b/pages/manage/zygl.vue new file mode 100644 index 0000000..af95625 --- /dev/null +++ b/pages/manage/zygl.vue @@ -0,0 +1,147 @@ + + + diff --git a/static/image/menu/RF01.png b/static/image/menu/RF01.png index 7fb4f12..af989ff 100644 Binary files a/static/image/menu/RF01.png and b/static/image/menu/RF01.png differ diff --git a/static/image/menu/RF02.png b/static/image/menu/RF02.png index 30c871f..ab42ca3 100644 Binary files a/static/image/menu/RF02.png and b/static/image/menu/RF02.png differ diff --git a/static/image/menu/RF03.png b/static/image/menu/RF03.png index af989ff..18a06e7 100644 Binary files a/static/image/menu/RF03.png and b/static/image/menu/RF03.png differ diff --git a/static/image/menu/RF04.png b/static/image/menu/RF04.png index d648d05..b33885f 100644 Binary files a/static/image/menu/RF04.png and b/static/image/menu/RF04.png differ diff --git a/static/image/menu/RF05.png b/static/image/menu/RF05.png index ab42ca3..1bc47ed 100644 Binary files a/static/image/menu/RF05.png and b/static/image/menu/RF05.png differ diff --git a/static/image/menu/RF07.png b/static/image/menu/RF07.png index ee6ef08..e18e35a 100644 Binary files a/static/image/menu/RF07.png and b/static/image/menu/RF07.png differ diff --git a/static/image/menu/RF08.png b/static/image/menu/RF08.png deleted file mode 100644 index a65670b..0000000 Binary files a/static/image/menu/RF08.png and /dev/null differ diff --git a/static/image/menu/RF09.png b/static/image/menu/RF09.png deleted file mode 100644 index d2b969b..0000000 Binary files a/static/image/menu/RF09.png and /dev/null differ diff --git a/static/image/menu/RF10.png b/static/image/menu/RF10.png deleted file mode 100644 index df4e2f4..0000000 Binary files a/static/image/menu/RF10.png and /dev/null differ diff --git a/static/image/menu/RF11.png b/static/image/menu/RF11.png deleted file mode 100644 index 1bc47ed..0000000 Binary files a/static/image/menu/RF11.png and /dev/null differ diff --git a/utils/getData.js b/utils/getData.js index 116167f..dbfc5f7 100644 --- a/utils/getData.js +++ b/utils/getData.js @@ -21,12 +21,89 @@ export const handLogin = (user, password) => request({ } }) -export const mlTask = (code, vcode, weight, qty) => request({ - url:'api/pda/mlTask', - data: { - deviceCode: code, - vehicle_code: vcode, - weight: weight, - qty: qty - } +// 公共接口 +// 仓库列表/区域列表 +export const getSect = (scode, page, size) => request({ + url:'api/pda/iosIn/getSect', + data: {stor_code: scode, page: page, size: size} +}) +// 区域列表 +export const getRegion = (region, page, size) => request({ + url:'api/pda/iosIn/getRegion', + data: {region: region, page: page, size: size} +}) +// 获取物料列表 +export const getMaterialList = (search, page, size) => request({ + url:'api/pda/iosIn/getMaterialList', + data: {search: search, page: page, size: size} +}) + +// 物料组盘确认 +export const groupPlate = (mid, pcsn, qty, vcode, ecode, siteCode) => request({ + url:'api/pda/iosIn/groupPlate', + data: {material_id: mid, pcsn: pcsn, qty: qty, vehicle_code: vcode, ext_code: ecode, siteCode} +}) + +// 定点确认 +export const transferConfirm = (pointCode, scode, siteCode, rcode) => request({ + url:'api/pda/iosOut/transferConfirm', + data: {pointCode: pointCode, storagevehicle_code: scode, siteCode: siteCode, region_code: rcode} +}) + +// 组盘入库 +export const getVehicleMaterial = (search) => request({ + url:'api/pda/iosIn/getVehicleMaterial', + data: {search: search} +}) +export const confirmIn = (vcode, sitecode, sid) => request({ + url:'api/pda/iosIn/confirmIn', + data: {vehicle_code: vcode, site_code: sitecode, sect_id: sid} +}) + +// 人工叫料 +export const linegetMaterialDtl = (rcode, search) => request({ + url:'api/pda/iosOut/getMaterialDtl', + data: {region_code: rcode, search: search} +}) +export const callMaterialConfirm = (rcode, siteCode, obj) => request({ + url:'api/pda/iosOut/callMaterialConfirm', + data: {region_code: rcode, siteCode: siteCode, obj: obj} +}) + +// 手工移库 +export const movestorQuerydtl = (code, vcode) => request({ + url:'api/pda/movestor/querydtl', + data: {struct_code: code, vehicle_code: vcode} +}) +export const movestorMove = (code, vcode, mcode) => request({ + url:'api/pda/movestor/move', + data: {struct_code: code, vehicle_code: vcode, move_struct_code: mcode} +}) + +// 作业管理 +export const schTaskQueryTask = (code) => request({ + url:'/api/pda/schTask/queryTask', + data: {task_code: code} +}) +export const schTaskAgainTask = (code) => request({ + url:'api/pda/schTask/againTask', + data: {task_code: code} +}) +export const forceConfirm = (code) => request({ + url:'api/pda/schTask/forceConfirm', + data: {task_code: code} +}) + +// +export const schPointGetPoint = (code, vcode) => request({ + url:'/api/pda/schPoint/getPoint', + data: {struct_code: code, vehicle_code: vcode} +}) +export const schPointBinding = (code, vcode) => request({ + url:'api/pda/schPoint/binding', + data: {struct_code: code, vehicle_code: vcode} +}) +export const schPointDissect = (code, vcode) => request({ + url:'/api/pda/schPoint/dissect', + data: {struct_code: code, vehicle_code: vcode} }) \ No newline at end of file diff --git a/vuex/modules/data.js b/vuex/modules/data.js new file mode 100644 index 0000000..e2914f9 --- /dev/null +++ b/vuex/modules/data.js @@ -0,0 +1,31 @@ +import * as types from '../types' +const state = { + publicObj: '', + publicArr: '' +} +const getters = { + publicObj: state => state.publicObj, + publicArr: state => state.publicArr +} +const actions = { + setPublicObj ({commit}, res) { + commit(types.PUBLIC_OBJ, res) + }, + setPublicArr ({commit}, res) { + commit(types.PUBLIC_ARR, res) + } +} +const mutations = { + [types.PUBLIC_OBJ] (state, res) { + state.publicObj = res + }, + [types.PUBLIC_ARR] (state, res) { + state.publicArr = res + } +} +export default { + state, + getters, + actions, + mutations +} \ No newline at end of file diff --git a/vuex/store.js b/vuex/store.js index 095161f..f8cd813 100644 --- a/vuex/store.js +++ b/vuex/store.js @@ -2,11 +2,13 @@ import Vue from 'vue' import Vuex from 'vuex' import user from './modules/user' +import data from './modules/data' Vue.use(Vuex) export default new Vuex.Store({ modules: { - user + user, + data } }) diff --git a/vuex/types.js b/vuex/types.js index 4668940..e66f0dc 100644 --- a/vuex/types.js +++ b/vuex/types.js @@ -6,4 +6,9 @@ export const DEL_LOGIN_NAME = 'DEL_LOGIN_NAME' export const COM_CONFIG = 'COM_CONFIG' export const SAVE_USER_INFO = 'SAVE_USER_INFO' export const DEL_USER_INFO = 'DEL_USER_INFO' -export const SAVE_TOKEN = 'SAVE_TOKEN' \ No newline at end of file +export const SAVE_TOKEN = 'SAVE_TOKEN' +/** + * data + */ +export const PUBLIC_OBJ = 'PUBLIC_OBJ' +export const PUBLIC_ARR = 'PUBLIC_ARR' \ No newline at end of file