| | |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: 140, |
| | | width: 100, |
| | | minWidth: 100 |
| | | } |
| | | }, |
| | |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.searchMasterPlanSourceHandle |
| | | }) |
| | | } |
| | | if(this.permissions.plan_masterproductionschedule_del){ |
| | | optionList.push({ |
| | | text: '作废', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteMainPlan |
| | | }) |
| | | } |
| | | if(optionList.length>0){ |
| | |
| | | } |
| | | } |
| | | return '' |
| | | }, |
| | | // 删除 |
| | | deleteMainPlan(row) { |
| | | this.$confirm('是否确认作废ID为' + row.id, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | closeOnClickModal: false, |
| | | type: 'warning' |
| | | }) |
| | | .then(function() { |
| | | return delObj(row.id) |
| | | }) |
| | | .then((data) => { |
| | | this.$message.success('删除成功') |
| | | this.getData() |
| | | }) |
| | | }, |
| | | // 查看生产计划来源 |
| | | searchMasterPlanSourceHandle(row) { |