| | |
| | | }, |
| | | ], |
| | | }, |
| | | //销售退货单 |
| | | //销售退货单 |
| | | { |
| | | path: "/sell/StockBillMainList/KfICStockBillMainList", |
| | | component: Layout, |
| | |
| | | children: [ |
| | | { |
| | | path: "/sell/StockBillMainList/KfICStockBillMainList", |
| | | component: () =>import ("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainList.vue"), |
| | | component: () => import("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainList.vue"), |
| | | name: "KfICStockBillMainList", |
| | | meta: { title: "销售退货单", activeMenu: "sell/StockBillMainList" }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | //销售退货单编辑页面 |
| | |
| | | children: [ |
| | | { |
| | | path: "/sell/StockBillMainList/KfICStockBillMainListEdit", |
| | | component: () =>import ("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainListEdit.vue"), |
| | | component: () => import("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainListEdit.vue"), |
| | | name: "KfICStockBillMainListEdit", |
| | | meta: { title: "销售退货单编辑", activeMenu: "sell/StockBillMainList" }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | //用户列表 |
| | |
| | | children: [ |
| | | { |
| | | path: "/purchase/POStockInBill/POStockInBillList", |
| | | |
| | | |
| | | name: "POStockInBillList", |
| | | meta: { title: "采购入库单", activeMenu: "purchase/POStockInBill" }, |
| | | }, |
| | |
| | | meta: { |
| | | title: "采购入库单编辑", |
| | | activeMenu: "/purchase/POStockInBill", |
| | | }, |
| | | }, |
| | | |
| | | ], |
| | | }, |
| | | //生产资源 |
| | |
| | | hidden: true, // 在侧边栏不显示 |
| | | children: [ |
| | | { |
| | | |
| | | path: "XsSeOutStockBackBillEdit", |
| | | component: () => import("@/views/sell/XsSeOutStockBackBillEdit"), // 退货通知单 |
| | | name: "IFrameXsSeOutStockBackBillEdit", |
| | | meta: { title: "退货通知单", noCache: true, noLoading: true }, |
| | | }, |
| | | { |
| | | |
| | | |
| | | path: "XsSeOutStockBillEdit", |
| | | component: () => import("@/views/sell/XsSeOutStockBillEdit"), // 发货通知单 |
| | | name: "IframeXsSeOutStockBillEdit", |
| | |
| | | component: () => import('@/views/sell/xsSeOrderBill/xsSeOrderBillEdit'), // 销售订单 |
| | | name: 'IframeXsSeOrderBillEdit', |
| | | meta: { title: '销售订单', noCache: true, noLoading: true } |
| | | }, |
| | | { |
| | | path: 'ScICMOBillEdit', |
| | | component: () => import('@/views/ICMO/ScICMOBillEdit'), // 生产订单 |
| | | name: 'IframeScICMOBillEdit', |
| | | meta: { title: '生产订单', noCache: true, noLoading: true } |
| | | }, |
| | | { |
| | | path: 'CgPoOrderBillEdit', |
| | | component: () => import('@/views/purchase/cgPoOrderBill/cgPoOrderBillEdit'), // 采购订单 |
| | | name: 'IframeCgPoOrderBillEdit', |
| | | meta: { title: '采购订单', noCache: true, noLoading: true } |
| | | }, |
| | | { |
| | | path: 'CgPoInStockBillEdit', |
| | | component: () => import('@/views/purchase/cgPoInStockBill/cgPoInStockBillEdit'), // 收料通知单 |
| | | name: 'IframeCgPoInStockBillEdit', |
| | | meta: { title: '收料通知单', noCache: true, noLoading: true } |
| | | }, |
| | | { |
| | | path: 'GyWarehouse', |
| | |
| | | meta: { |
| | | title: "分布式调入单列表", |
| | | activeMenu: "/purchase/POStockInBill", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | meta: { |
| | | title: "分布式调出单列表", |
| | | activeMenu: "/purchase/POStockInBill", |
| | | }, |
| | | }, |
| | | |
| | | ], |
| | | }, |
| | | //器具领用出库单维护 |
| | |
| | | }, |
| | | mounted() { |
| | | this.queryParams.HOrgID = sessionStorage["Organization"]; |
| | | window.editGyClose = () => { |
| | | this.editGyClose(); // 组件内的方法绑定到windows |
| | | }; |
| | | }, |
| | | created() { |
| | | this.riqiChange(); |
| | | this.getList(); |
| | | }, |
| | | beforeDestory() { |
| | | delete window.editGyClose; |
| | | }, |
| | | methods: { |
| | | handleTabActive() { |
| | | window.editGyClose = () => { |
| | | this.editGyClose(); // 组件内的方法绑定到windows |
| | | }; |
| | | }, |
| | | handleTabInactive() { |
| | | // 组件销毁时清理全局方法,避免内存泄漏 |
| | | delete window.editGyClose; |
| | | }, |
| | | onDateScanOptionChangerHandler(e) { |
| | | this.queryParams.timeSpan = e; |
| | | if (e == -1) { |
| | |
| | | }, |
| | | //选中行高亮样式 |
| | | rowStyle({ row, rowIndex }) { |
| | | if (this.ids.includes(row.HItemID)) { |
| | | if (this.ids.includes(row.hmainid)) { |
| | | return { background: "#ecf5ff" }; |
| | | } |
| | | }, |
| | |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | // this.rowForm = {} |
| | | this.ids = selection.map((item) => item.HItemID); |
| | | this.ids = selection.map((item) => item.hmainid); |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | | if (!this.single) { |
| | |
| | | <el-option |
| | | v-for="(item, index) in HSourceBillTypeList" |
| | | :key="index" |
| | | :label="item" |
| | | :value="item" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | created() { |
| | | this.fetchData(); |
| | | this.getdata(); |
| | | this.getHSourceBillType(); |
| | | }, |
| | | beforeDestroy() { |
| | | if (window.parent) { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getHSourceBillType() { |
| | | axios |
| | | .get(`${this.baseURL}/Web/GetHSourceBillType`, { |
| | | params: { |
| | | HName: "发货通知单", |
| | | Num: 2, |
| | | }, |
| | | }) |
| | | .then((res) => { |
| | | let { data, count, Message } = res.data; |
| | | if (count == 1) { |
| | | // 获取成功 |
| | | this.HSourceBillTypeList = Array.from(data).map((e) => { |
| | | return { |
| | | label: e.HSourceBillTypeName, |
| | | value: e.HSourceBillType, |
| | | }; |
| | | }); |
| | | } else { |
| | | this.$modal.msgError(`获取源单类型失败: ${Message}`); |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | this.$modal.msgError(`获取源单类型失败: ${err}`); |
| | | }); |
| | | }, |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |