| | |
| | | }, |
| | | // 生产订单 |
| | | { |
| | | path: "/icmo/scIcmoBill/scIcmoBillList", |
| | | path: "/icmo", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | //生产入库单列表 |
| | | { |
| | | path: "/purchase/ProductInBill/ProductInBillList", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | | meta: { |
| | | breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示 |
| | | activeMenu: "/purchase/ProductInBill", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "/purchase/ProductInBill/ProductInBillList", |
| | | component: () => import("@/views/ProductInBill/Kf_ProductInBillList.vue"), |
| | | name: "ProductInBillList", |
| | | meta: { title: "生产入库单列表", activeMenu: "/purchase/ProductInBill" }, |
| | | }, |
| | | ], |
| | | }, |
| | | //生产入库单 |
| | | { |
| | | path: "/purchase/ProductInBill/ProductInBillEdit", |
| | | path: "/icmo", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | | meta: { |
| | | breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示 |
| | | activeMenu: "/purchase/ProductInBill", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | activeMenu: "/icmo/productInBill", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "/purchase/ProductInBill/ProductInBillEdit", |
| | | path: "/icmo/productInBill/productInBillList", |
| | | component: () => import("@/views/ProductInBill/Kf_ProductInBillList.vue"), |
| | | name: "ProductInBillList", |
| | | meta: { title: "生产入库单列表", activeMenu: "icmo/productInBill" }, |
| | | }, |
| | | { |
| | | path: "/icmo/productInBill/productInBillEdit", |
| | | component: () => import("@/views/ProductInBill/Kf_ProductInBillEdit.vue"), |
| | | name: "ProductInBillEdit", |
| | | meta: { title: "生产入库单", activeMenu: "/purchase/ProductInBill" }, |
| | | meta: { title: "生产入库单", activeMenu: "icmo/productInBill" }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | }, |
| | | hidden: false, |
| | | name: "ProductInBill", |
| | | path: "ProductInBill", |
| | | path: "productInBill", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | |
| | | component: () => import("@/views/ProductInBill/Kf_ProductInBillList.vue"), |
| | | hidden: false, |
| | | name: "ProductInBillList", |
| | | path: "ProductInBillList", |
| | | path: "productInBillList", |
| | | }, |
| | | { |
| | | meta: { |
| | |
| | | component: () => import("@/views/ProductInBill/Kf_ProductInBillEdit.vue"), |
| | | hidden: false, |
| | | name: "ProductInBillEdit", |
| | | path: "ProductInBillEdit", |
| | | path: "productInBillEdit", |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | this.getdata() |
| | | }, |
| | | beforeDestroy() { |
| | | this.$destroy() |
| | | // this.$destroy() |
| | | }, |
| | | methods: { |
| | | //#region 表单数据初始化 |
| | |
| | | ) |
| | | } |
| | | |
| | | if (data.状态 != '创建' && this.copyType != 1) { |
| | | this.$modal.msgError("此条数据不是创建状态,不能修改"); |
| | | this.subDisabled = true |
| | | } |
| | | // if (data.状态 != '创建' && this.copyType != 1) { |
| | | // this.$modal.msgError("此条数据不是创建状态,不能修改"); |
| | | // this.subDisabled = true |
| | | // } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | |
| | |
| | | this.form.HManagerName = deptRow.负责人 |
| | | this.openData = false |
| | | } |
| | | else if (num == 2) { //收料仓库 |
| | | else if (num == 2) { |
| | | console.log(deptRow) //收料仓库 |
| | | this.editData[this.zbIndex].HWHID = deptRow.HItemID; |
| | | this.editData[this.zbIndex].收料仓库 = deptRow.仓库名称; |
| | | this.openData = false |
| | |
| | | if (valid) { |
| | | let fhck = false |
| | | this.editData.map((item, index) => { |
| | | if (!item.发货仓库) { |
| | | if (!item.收料仓库) { |
| | | fhck = true |
| | | this.$modal.msgError("第" + (index + 1) + "行:发货仓库未选择!"); |
| | | this.$modal.msgError("第" + (index + 1) + "行:收料仓库未选择!"); |
| | | } |
| | | }) |
| | | this.$nextTick(() => { |
| | |
| | | if (response.data.count == 1) { |
| | | this.subDisabled = true//设置保存按钮不可用 |
| | | this.$modal.msgSuccess(response.data.Message); |
| | | this.get_MAXNum_Task(1);//设置流水号增加 |
| | | // this.get_MAXNum_Task(1);//设置流水号增加 |
| | | if (response.data.Verify == "Y") //自动审核 |
| | | { |
| | | this.set_CheckBill(0, this.form); //审核 |
| | |
| | | HMoney: 0, |
| | | HTaxMoney: 0, |
| | | HWHID: 0, |
| | | 发货仓库: '', |
| | | 收料仓库: '', |
| | | HRemark: '', |
| | | HQty_Full: 0, |
| | | HQty_Empty: 0, |
| | |
| | | |
| | | //#region 获取最大单据号 |
| | | get_MAXNum_Task(Type) { |
| | | var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1202','${this.form.HDate}',0,0,0,'${Type}','${this.form.HDeptID}'`; |
| | | console.log(dayjs(this.form.HDate).format("YYYY-MM-DD")) |
| | | var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1202','${dayjs(this.form.HDate).format("YYYY-MM-DD")}',0,0,0,'${Type}','${this.form.HDeptID}'`; |
| | | axios({ |
| | | method: 'get', |
| | | url: this.baseURL + "/CommonModel/searchMethod", |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | this.queryParams.HOrgID = Number(sessionStorage["OrganizationID"]); |
| | | |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | this.queryParams.HOrgID = sessionStorage["OrganizationID"]; |
| | | }, |
| | | //#endregion |
| | | |