| | |
| | | permissions: ["business:productOrder"], |
| | | children: [ |
| | | { |
| | | // 鎴愬搧涓嬪崟璇︽儏 |
| | | path: "add", |
| | | // 鏌ョ湅鎴愬搧涓嬪崟璇︽儏 |
| | | path: "addView", |
| | | component: () => |
| | | import("@/views/business/productOrder/components/add.vue"), |
| | | name: "Add", |
| | | meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/productOrder",keepAlive: true }, |
| | | import("@/views/business/productOrder/components/addView.vue"), |
| | | name: "AddView", |
| | | meta: { title: "鏌ョ湅鎴愬搧涓嬪崟", activeMenu: "/business/productOrder",keepAlive: true }, |
| | | }, |
| | | { |
| | | // 杩涜涓嬪崟-鎴愬搧涓嬪崟 |
| | | path: "addOrder", |
| | | component: () => |
| | | import("@/views/business/productOrder/components/addOrder.vue"), |
| | | name: "AddOrder", |
| | | meta: { title: "杩涜鎴愬搧涓嬪崟", activeMenu: "/business/productOrder",keepAlive: true }, |
| | | }, |
| | | ], |
| | | }, |
copy from src/views/business/productOrder/components/add.vue
copy to src/views/business/productOrder/components/addOrder.vue
文件从 src/views/business/productOrder/components/add.vue 复制 |
| | |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: 'Add', |
| | | name: 'AddOrder', |
| | | components: { |
| | | limsTable, |
| | | cableConfig, |
| | |
| | | this.getInfo() |
| | | }, |
| | | activated() { |
| | | this.$refs.addObj.resetFields() |
| | | this.addObj.createTime = '' |
| | | this.addObj.id = '' |
| | | this.addObj.updateTime = '' |
| | | this.sampleList = [] |
| | | this.productList = [] |
| | | this.active = this.$route.query.active |
| | | this.tabIndex = this.$route.query.tabIndex |
| | | this.currentId = this.$route.query.currentId |
文件名从 src/views/business/productOrder/components/add.vue 修改 |
| | |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: 'Add', |
| | | name: 'AddView', |
| | | components: { |
| | | limsTable, |
| | | cableConfig, |
| | |
| | | this.active = this.$route.query.active |
| | | this.tabIndex = this.$route.query.tabIndex |
| | | this.currentId = this.$route.query.currentId |
| | | this.getUserNowData() |
| | | this.getInfo() |
| | | }, |
| | | activated() { |
| | | this.$refs.addObj.resetFields() |
| | | this.addObj.createTime = '' |
| | | this.addObj.id = '' |
| | | this.addObj.updateTime = '' |
| | | this.sampleList = [] |
| | | this.productList = [] |
| | | this.active = this.$route.query.active |
| | | this.tabIndex = this.$route.query.tabIndex |
| | | this.currentId = this.$route.query.currentId |
| | |
| | | // 鐐瑰嚮鏍峰搧鍚嶇О |
| | | selectAllByOne(row) { |
| | | this.$router.push({ |
| | | path: "/productOrder/add", query: { |
| | | path: "/productOrder/addView", query: { |
| | | examine: 1, |
| | | active: 2, |
| | | currentId: row.id, |
| | |
| | | }, |
| | | // 涓嬪崟 |
| | | playOrder(num) { |
| | | this.$router.push({ path: "/productOrder/add", query: { examine: 0, active: num, tabIndex: this.tabIndex } }); |
| | | this.$router.push({ path: "/productOrder/addOrder", query: { examine: 0, active: num, tabIndex: this.tabIndex } }); |
| | | }, |
| | | // 瀹℃牳 |
| | | handleVerify(row) { |
| | | this.$router.push({ path: "/productOrder/add", query: { examine: 1, active: 3, currentId: row.id } }); |
| | | this.$router.push({ path: "/productOrder/addView", query: { examine: 1, active: 3, currentId: row.id } }); |
| | | }, |
| | | handleTab(i) { |
| | | this.tabIndex = i; |