| | |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | |
| | | <el-dropdown |
| | | <!-- <el-dropdown |
| | | v-if="permissions.masterproductionschedule_doc_relate" |
| | | @command="documentHandle" |
| | | style="margin-left: 10px" |
| | |
| | | {{ item.label }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </el-dropdown> --> |
| | | <!--审核状态改变--> |
| | | <el-dropdown |
| | | v-if="permissions.masterproductionschedule_audit_change" |
| | |
| | | > |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <el-button |
| | | <!-- <el-button |
| | | v-if="permissions.masterproductionschedule_submit_oa" |
| | | @click="commitOa()" |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | :loading="loadingOa" |
| | | >提交OA |
| | | </el-button> |
| | | <el-button |
| | | </el-button> --> |
| | | <!-- <el-button |
| | | v-if="permissions.masterproductionschedule_sync_scm" |
| | | @click="syncScm()" |
| | | type="primary" |
| | |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | >SCM状态变更 |
| | | </el-button> |
| | | </el-button> --> |
| | | </template> |
| | | </ttable> |
| | | |
| | |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | /* { |
| | | minWidth: '140', |
| | | prop: 'inventoryReservedQuantity', |
| | | label: '库存预留数量', |
| | |
| | | isTrue: true, |
| | | isSearch: false, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | }, */ |
| | | /* { |
| | | minWidth: '140', |
| | | prop: 'outsourcingNumber', |
| | | label: '委外数量', |
| | |
| | | isTrue: true, |
| | | isSearch: false, |
| | | searchInfoType: 'text' |
| | | }, |
| | | }, */ |
| | | { |
| | | minWidth: '140', |
| | | prop: 'manufacturingQuantity', |
| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | }/* , |
| | | { |
| | | minWidth: '140', |
| | | prop: 'outerColor', |
| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | } |
| | | } */ |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '订单预留', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.customReserved |
| | | }, |
| | | { |
| | | text: '查看库存', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.stockHandle |
| | | }, |
| | | { |
| | | text: '来源', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.searchMasterPlanSourceHandle |
| | | }, |
| | | { |
| | | text: '订单', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.searchOrderHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: 240, |
| | | width: 140, |
| | | minWidth: 100 |
| | | } |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | this.getManufactureAttrs() |
| | | /* |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addMasterProductionSchedule, |
| | | disabled: false, |
| | | permitArr: [] |
| | | }, |
| | | { |
| | | text: '创建委外订单', |
| | | fun: this.createOutsourcingOrder |
| | | } */ |
| | | if (this.permissions.plan_masterproductionschedule_add) { |
| | | this.table.toolbar.push({ |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addMasterProductionSchedule, |
| | | disabled: false, |
| | | permitArr: [] |
| | | }) |
| | | let optionList = [] |
| | | if(this.permissions.masterproductionschedule_view_source){ |
| | | optionList.push({ |
| | | text: '来源', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.searchMasterPlanSourceHandle |
| | | }) |
| | | } |
| | | if (this.permissions.masterproductionschedule_create_outsourcing) { |
| | | this.table.toolbar.push({ |
| | | text: '创建委外订单', |
| | | fun: this.createOutsourcingOrder |
| | | }) |
| | | if(this.permissions.plan_masterproductionschedule_del){ |
| | | optionList.push({ |
| | | text: '作废', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteMainPlan |
| | | }) |
| | | } |
| | | if (this.permissions.masterproductionschedule_create_order_manual) { |
| | | this.orderTypeArr.push({ |
| | | label: '手动新增', |
| | | command: 'MANUAL', |
| | | disabled: false, |
| | | permitArr: ['02processed'] |
| | | }) |
| | | if(optionList.length>0){ |
| | | this.table.operator = optionList |
| | | } |
| | | if (this.permissions.masterproductionschedule_create_order_auto) { |
| | | this.orderTypeArr.push({ |
| | |
| | | }, |
| | | // 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.plan_masterproductionschedule_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限"); |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row ? row.id : row, row ? row.state : row) |
| | |
| | | return '' |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | this.$confirm('是否确认删除ID为' + row.id, '提示', { |
| | | deleteMainPlan(row) { |
| | | this.$confirm('是否确认作废ID为' + row.id, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | closeOnClickModal: false, |