{{$store.getters.userInfo !== '' ? JSON.parse($store.getters.userInfo).nickName : ''}}
-欢迎进入晟华手持系统!
+{{$store.getters.userInfo !== '' ? JSON.parse($store.getters.userInfo).UserName : ''}}
+欢迎进入讯博手持系统!
-
+
- 组盘 +
- 解盘 +
diff --git a/src/config/getData2.js b/src/config/getData2.js
index 3cd7ecf..ad21964 100644
--- a/src/config/getData2.js
+++ b/src/config/getData2.js
@@ -1,156 +1,84 @@
import {post} from '@config/http.js'
// 手持登录
-export const loginApi = (user, password) => post('api/pda/login', {
- username: user,
- password: password
+export const rfLogin = (user, password) => post('RF_Login', {
+ UserID: user,
+ UserPassWord: password
})
-// export const loginApi = (user, password) => {
-// let res = {
-// 'result': {
-// 'user': {
-// 'user': {
-// 'createBy': null,
-// 'updatedBy': 'System',
-// 'createTime': 1534986716000,
-// 'updateTime': 1683368236000,
-// 'id': '1',
-// 'roles': [
-// {
-// 'id': 1,
-// 'name': '超级管理员',
-// 'level': 1,
-// 'dataScope': '全部'
-// }
-// ],
-// 'dept': {
-// 'id': 18,
-// 'code': null,
-// 'name': '系统'
-// },
-// 'deptId': null,
-// 'username': 'admin',
-// 'nickName': '管理员',
-// 'email': '',
-// 'phone': '',
-// 'gender': '男',
-// 'avatarName': 'avatar-20200806032259161.png',
-// 'avatarPath': '/Users/jie/Documents/work/me/admin/eladmin/~/avatar/avatar-20200806032259161.png',
-// 'extId': null,
-// 'extuserId': null,
-// 'enabled': true,
-// 'pwdResetTime': 1588495111000
-// }
-// },
-// 'token': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOjEsInJuU3RyIjoiMWoyOXdreHUyVkQzcnlNb2lZaWFDaDNCYUM5TU5pOXQiLCJsb2dpbkluZm8iOnsiaWQiOjEsInVzZXJuYW1lIjoiYWRtaW4iLCJuaWNrTmFtZSI6IueuoeeQhuWRmCIsInVzZXIiOnsiaWQiOjEsInJvbGVz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IsIm1vbml0b3I6bGlzdCIsImdlbkNvZGU6bGlzdCIsImdlbkNvZGU6YWRkIiwiZ2VuQ29kZTpkZWwiLCJnZW5Db2RlOmVkaXQiLCI5OTkiLCJzdG9yYWdlOmxpc3QiLCJzdG9yYWdlOmFkZCIsInN0b3JhZ2U6ZWRpdCIsInN0b3JhZ2U6ZGVsIl19fQ.q7PzhQbg_3FY-4TkL4S6Iy_Qx05YBGz2BI5mSkRl2AU'
-// },
-// 'code': '1',
-// 'desc': '操作成功!'
-// }
+// export const rfLogin = (user, password) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '登录成功', 'UserName': '张三', 'UserPID': '1001'}
// return res
// }
-// 手持登陆查询菜单权限
-export const authority = (id) => post('api/pda/authority', {
- accountId: id
+/**
+ * 组盘
+ */
+// 读取托盘码
+export const rfReadTrayStatePackage = (id) => post('RF_ReadTrayState_Package', {
+ TrayID: id
})
-
-// 查询区域
-export const pdaRegion = (func) => post('api/pda/region', {
- func: func
-})
-// export const pdaRegion = (func) => {
-// let res = {
-// code: '1',
-// result: [{region_code: '1', region_name: 'aa'}, {region_code: '2', region_name: 'bb'}, {region_code: '3', region_name: 'cc'}]
-// }
+// export const rfReadTrayStatePackage = (id) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '读取成功'}
// return res
// }
-// 根据区域查询点位
-export const pdaPoint = (func, code) => post('api/pda/point', {
- func: func,
- region_code: code
+// 托盘库存信息
+export const rfReadTrayStoragePackage = (id) => post('RF_ReadTrayStorage_Package', {
+ TrayID: id
})
-// export const pdaPoint = (func, code) => {
-// let res = {
-// code: '1',
-// result: [{point_code: '1', point_name: 'aa'}, {point_code: '2', point_name: 'bb'}, {point_code: '3', point_name: 'cc'}]
-// }
-// return res
-// }
-// 查询设备
-export const pdaDevice = (func) => post('api/pda/device', {
- func: func
-})
-// export const pdaDevice = (func) => {
-// let res = {
-// code: '1',
-// result: [{device_code: '1', device_name: 'aa'}, {device_code: '2', device_name: 'bb'}, {device_code: '3', device_name: 'cc'}]
-// }
+// export const rfReadTrayStoragePackage = (id) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '读取成功!', 'StorageList': [{'BillID': '000001', 'MatCode': '物料编码001', 'MatName': '物料名称001', 'BatchNumber': '批次001', 'MatNum': '1'}, {'BillID': '000002', 'MatCode': '物料编码002', 'MatName': '物料名称002', 'BatchNumber': '批次002', 'MatNum': '1'}]}
// return res
// }
-// 查询载具类型
-export const pdavehicleType = (func) => post('api/pda/vehicleType', {
- func: func
+// 读取物料条码
+export const rfReadMatBarCodeStatePackage = (id, code) => post('RF_ReadMatBarCodeState_Package', {
+ TrayID: id,
+ MatBarCode: code
})
+// export const rfReadMatBarCodeStatePackage = (id, code) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '读取成功'}
+// return res
+// }
-// 不合格品上报
-export const pdaReport = (code, qty) => post('api/pda/report', {
- device_code: code,
- unqualified_qty: qty
+// 组盘
+export const rfTrayPackage = (id, code, size, uid) => post('RF_Tray_Package', {
+ TrayID: id,
+ MatBarCode: code,
+ MatSize: size,
+ UserPID: uid
})
+// export const rfTrayPackage = (id, code, size, uid) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '组盘成功'}
+// return res
+// }
-// 送料
-export const sendMaterial = (code, vcode, qty, weight, is) => post('api/pda/sendMaterial', {
- point_code: code,
- vehicle_code: vcode,
- qty: qty,
- weight: weight,
- is_full: is
+/**
+ *解盘
+ */
+// 读取托盘码
+export const rfReadTrayStateUnPackage = (id) => post('RF_ReadTrayState_UnPackage', {
+ TrayID: id
})
+// export const rfReadTrayStateUnPackage = (id) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '读取成功'}
+// return res
+// }
-// 叫料
-export const callMaterial = (code) => post('api/pda/callMaterial', {
- point_code: code
+// 托盘库存信息
+export const rfReadTrayStorageUnPackage = (id) => post('RF_ReadTrayStorage_UnPackage', {
+ TrayID: id
})
+// export const rfReadTrayStorageUnPackage = (id) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '读取成功!', 'StorageList': [{'BillID': '000001', 'MatCode': '物料编码001', 'MatName': '物料名称001', 'BatchNumber': '批次001', 'MatNum': '1'}, {'BillID': '000002', 'MatCode': '物料编码002', 'MatName': '物料名称002', 'BatchNumber': '批次002', 'MatNum': '1'}, {'BillID': '000003', 'MatCode': '物料编码002', 'MatName': '物料名称002', 'BatchNumber': '批次002', 'MatNum': '1'}]}
+// return res
+// }
-// 送空
-export const sendEmpty = (code, vcode) => post('api/pda/sendEmpty', {
- point_code: code,
- vehicle_code: vcode
-})
-
-// 叫空
-export const callEmpty = (code) => post('api/pda/callEmpty', {
- point_code: code
-})
-
-// 困料管理
-export const standStatus = (vcode, type) => post('api/pda/standStatus', {
- vehicle_code: vcode,
- type: type
-})
-
-// 入窑管理
-export const inKiln = (vcode, type) => post('api/pda/inKiln', {
- vehicle_code: vcode,
- type: type
-})
-
-// 载具绑定
-export const vehicleBind = (code, vtype, vcode) => post('api/pda/vehicleBind', {
- point_code: code,
- vehicle_type: vtype,
- vehicle_code: vcode
-})
-
-// 载具解绑
-export const vehicleUnbind = (code) => post('api/pda/vehicleUnbind', {
- point_code: code
-})
-
-// 呼叫次品料
-export const callDefective = (code) => post('api/pda/callDefective', {
- device_code: code
+// 解盘
+export const rfTrayUnPackage = (id, uid) => post('RF_Tray_UnPackage', {
+ TrayID: id,
+ UserPID: uid
})
+// export const rfTrayUnPackage = (id, uid) => {
+// let res = {'ErrNO': '1', 'ErrMsg': '组盘成功'}
+// return res
+// }
diff --git a/src/config/http.js b/src/config/http.js
index 200d9a6..40158d5 100644
--- a/src/config/http.js
+++ b/src/config/http.js
@@ -8,11 +8,11 @@ axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
axios.interceptors.request.use(
config => {
- let token = ''
- if (store.getters.userInfo !== '') {
- token = JSON.parse(store.getters.userInfo).token
- }
- token && (config.headers.Authorization = token)
+ // let token = ''
+ // if (store.getters.userInfo !== '') {
+ // token = JSON.parse(store.getters.userInfo).token
+ // }
+ // token && (config.headers.Authorization = token)
if (config.method === 'post') {
if (!config.data.flag) {
config.data = config.data
diff --git a/src/pages/login/Home.vue b/src/pages/login/Home.vue
index 4a62636..4db0bc5 100644
--- a/src/pages/login/Home.vue
+++ b/src/pages/login/Home.vue
@@ -4,38 +4,25 @@
{{$store.getters.userInfo !== '' ? JSON.parse($store.getters.userInfo).nickName : ''}} 欢迎进入晟华手持系统! {{$store.getters.userInfo !== '' ? JSON.parse($store.getters.userInfo).UserName : ''}} 欢迎进入讯博手持系统!
+
+