diff --git a/src/config/getData2.js b/src/config/getData2.js index e2840c0..92a8ca3 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -102,3 +102,20 @@ export const createTask = (sid, scode, spcode, nid, ncode, npcode) => post('api/ next_region_code: ncode, next_point_code: npcode }) + +/** + * 点位绑定解绑 + */ +// 1.1 查询缓存区点位状态 +export const pointQueryPoint = () => post('api/pda/point/queryPoint', {}) +// 1.2组盘查询 +export const pointQueryVehicle = (code, vcode) => post('api/pda/point/queryVehicle', { + point_code: code, + vehicle_code: vcode +}) +// 1.3点位绑定解绑 +export const pointBinding = (code, vcode, flag) => post('api/pda/point/binding', { + point_id: code, + vehicle_code: vcode, + flag: flag +}) diff --git a/src/config/http.js b/src/config/http.js index 200d9a6..cc9f7a9 100644 --- a/src/config/http.js +++ b/src/config/http.js @@ -14,11 +14,7 @@ axios.interceptors.request.use( } token && (config.headers.Authorization = token) if (config.method === 'post') { - if (!config.data.flag) { - config.data = config.data - } else { - config.data = config.data.formData - } + config.data = config.data } return config }, diff --git a/src/pages/login/Home.vue b/src/pages/login/Home.vue index 2d7146d..298fe04 100644 --- a/src/pages/login/Home.vue +++ b/src/pages/login/Home.vue @@ -21,6 +21,7 @@
  • 搬运任务
  • 入库确认
  • 出库确认
  • +
  • 点位绑定解绑
  • diff --git a/src/pages/task/PointBinding.vue b/src/pages/task/PointBinding.vue new file mode 100644 index 0000000..09fecfb --- /dev/null +++ b/src/pages/task/PointBinding.vue @@ -0,0 +1,200 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index b6becdc..14d6ead 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ const ZlManage = r => require.ensure([], () => r(require('../pages/task/ZlManage const HandTask = r => require.ensure([], () => r(require('../pages/task/HandTask')), 'HandTask') const OutstoreConfirm = r => require.ensure([], () => r(require('../pages/task/OutstoreConfirm')), 'OutstoreConfirm') const InstoreConfirm = r => require.ensure([], () => r(require('../pages/task/InstoreConfirm')), 'InstoreConfirm') +const PointBinding = r => require.ensure([], () => r(require('../pages/task/PointBinding')), 'PointBinding') Vue.use(Router) @@ -55,6 +56,10 @@ export default new Router({ { path: '/HandTask', // 搬运任务 component: HandTask + }, + { + path: '/PointBinding', // 点位绑定解绑 + component: PointBinding } ], scrollBehavior (to, from, savedPosition) {