| | |
| | | :toolbarMaxLength="4" |
| | | :paramArr="type" |
| | | ref="customerOrderTable" |
| | | :expandRowKeys="expandRowKeys" |
| | | > |
| | | <template #toolbar> |
| | | <el-dropdown |
| | |
| | | selectTime: null, |
| | | exportTime: null, |
| | | }, |
| | | expandRowKeys: [], |
| | | dataRule: { |
| | | exportTime: [ |
| | | { required: true, message: '导出日期不能为空', trigger: 'change' }, |
| | |
| | | created() { |
| | | // this.getManufactureAttrs() |
| | | this.getTitles() |
| | | if (this.permissions.plan_customerorder_add) { |
| | | this.table.toolbar.push({ |
| | | text: '新增销售订单', |
| | | type: 'primary', |
| | |
| | | disabled: false, |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | if (this.permissions.customerorder_from_otc) { |
| | | this.table.toolbar.push({ |
| | | text: '获取销售订单', |
| | |
| | | fun: this.downloadProductionScheduling, |
| | | }) |
| | | } |
| | | if(this.permissions.plan_relevance_order){ |
| | | this.table.toolbar.push({ |
| | | text: '关联订单', |
| | | disabled: false, |
| | |
| | | fun: this.interrelatedOrderFun, |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | if (this.permissions.customerorder_create_masterplan) { |
| | | this.table.toolbar.push({ |
| | | text: '主生产计划', |
| | |
| | | this.$refs.addSampleForm.init(row ? row.contractNo : null) |
| | | }) |
| | | } |
| | | this.expandRowKeys=[row.id] |
| | | }, |
| | | // 新增样品订单 |
| | | addSampleCustomerOrder() { |