| | |
| | | this.bindWokshop1(row); |
| | | }, |
| | | disabled: (row) => { |
| | | return row.objectType != '原材料' |
| | | return row.objectType != '原辅料' && row.objectType != '包材' |
| | | } |
| | | }, |
| | | ] |
| | |
| | | this.bindWokshop(row); |
| | | }, |
| | | showHide: (row) => { |
| | | if (this.currentObj.objectType != '原材料') { |
| | | if (this.currentObj.objectType != '原辅料' && row.objectType != '包材') { |
| | | return false |
| | | } else { |
| | | return true |
| | |
| | | // 产品维护 |
| | | upProduct(row) { |
| | | this.currentObj = row; |
| | | if (this.currentObj.objectType == '原材料') { |
| | | if (this.currentObj.objectType == '原辅料') { |
| | | if (this.productColumn.length < 4) { |
| | | this.productColumn.splice(2, 0, { label: '车间名称', prop: 'workShopName' }) |
| | | } |