diff --git a/src/api/production/stackCode.js b/src/api/production/stackCode.js new file mode 100644 index 0000000..bbe254b --- /dev/null +++ b/src/api/production/stackCode.js @@ -0,0 +1,9 @@ +import axios from "../../utils/axios"; + +export function getStackCodeList(params) { + return axios({ + url: "/udims/stack/code/filter", + method: "get", + params: params + }); +} diff --git a/src/api/production/stackOrder.js b/src/api/production/stackOrder.js new file mode 100644 index 0000000..583b2e4 --- /dev/null +++ b/src/api/production/stackOrder.js @@ -0,0 +1,33 @@ +import axios from "../../utils/axios"; + +export function getStackOrderList(params) { + return axios({ + url: "/udims/stack/order/filter", + method: "get", + params: params + }); +} + +export function updateStack(data) { + return axios({ + url: "/udims/stack/order/update", + method: "post", + data: data + }); +} + +export function deleteStackOrder(data) { + return axios({ + url: "/udims/stack/order/delete", + method: "post", + data: data + }); +} + +export function uploadStack(data) { + return axios({ + url: "/udims/stack/order/upload", + method: "post", + data: data + }); +} diff --git a/src/router/index.js b/src/router/index.js index 904c07e..2dc50db 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,6 +26,7 @@ import userAccountManage from "@/views/userManage/userAccountManage"; import stockOrderDelSearch from "../views/warehouse/stockOrderDelSearch"; import stockOrderSearch from "../views/warehouse/stockOrderSearch"; import stockOrderDelete from "../views/warehouse/stockOrderDelete"; +import ioNewScanOrder from "@/views/warehouse/ioNewScanOrder"; //往来单位字典 import UnitManage from "@/views/product/UnitManage"; @@ -58,6 +59,9 @@ import phoneRegisterManage from "@/views/userManage/phoneRegisterManage"; //建垛规则 import stackRules from "@/views/sys/stackRules"; +//生产管理 +import stackManage from "@/views/production/stackManage"; + const err401 = r => require.ensure([], () => r(require("../views/error/err401.vue")), "home"); @@ -344,7 +348,6 @@ export const asyncRouterMap = [ } ] }, - { path: "/inout", component: Home, @@ -356,6 +359,14 @@ export const asyncRouterMap = [ authRule: ["inout"] }, children: [ + { + path: "ioNewScanOrder", + component: ioNewScanOrder, + name: "新增扫码单据", + meta: { + authRule: ["inout/ioNewScanOrder"] + } + }, { path: "ioNew", component: ioNew, @@ -439,7 +450,28 @@ export const asyncRouterMap = [ } ] }, - + { + path: "/production", + redirect: "/production/productionManage", + component: Home, + icon: 'tongyong', + name: "生产管理", + hidden: false, + noDropdown: false, + meta: { + authRule: ["production"] + }, + children: [ + { + name: "建垛管理", + path: "stackManage", + component: stackManage, + meta: { + authRule: ["production/stackManage"] + } + } + ] + }, { path: "/sys", redirect: "/sys/sysConfig", diff --git a/src/views/production/stackCode.vue b/src/views/production/stackCode.vue new file mode 100644 index 0000000..3095d49 --- /dev/null +++ b/src/views/production/stackCode.vue @@ -0,0 +1,159 @@ + + + + + + diff --git a/src/views/production/stackManage.vue b/src/views/production/stackManage.vue new file mode 100644 index 0000000..0ebb28d --- /dev/null +++ b/src/views/production/stackManage.vue @@ -0,0 +1,173 @@ + + + + + diff --git a/src/views/warehouse/addOrder.vue b/src/views/warehouse/addOrder.vue index a673ff0..78e4dc0 100644 --- a/src/views/warehouse/addOrder.vue +++ b/src/views/warehouse/addOrder.vue @@ -572,6 +572,7 @@ export default { getBusType() { let query = { enabled: true, + customerId: this.$store.getters.customerId }; getBusTypeByUser(query) .then((response) => { @@ -690,7 +691,6 @@ export default { } else { this.corpOrderIdDisabled = false; if (JSON.stringify(this.$route.query) === '{}') { - // this.formData.corpOrderId = new Date().getTime() + (Math.ceil(Math.random() * 10 + 10) + ''); let date = new Date(); this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); } else { @@ -701,9 +701,6 @@ export default { this.query = Object.assign(this.query, query); this.query.limit = parseInt(this.query.limit); this.query.corpOrderId = query.id; - - // 加载表格数据 - // this.getCodeList(); } } }, diff --git a/src/views/warehouse/ioNewScanOrder.vue b/src/views/warehouse/ioNewScanOrder.vue new file mode 100644 index 0000000..9717361 --- /dev/null +++ b/src/views/warehouse/ioNewScanOrder.vue @@ -0,0 +1,289 @@ + + + + +