| | |
| | | { label: '试验室', prop: 'sonLaboratory' }, |
| | | { label: '要求描述', prop: 'askTell' }, |
| | | { label: '要求值', prop: 'ask' }, |
| | | { label: '试验条件', prop: 'radiusList' }, |
| | | // { label: '试验条件', prop: 'radiusList' }, |
| | | { label: '计量单位', prop: 'unit' }, |
| | | { label: '工时(H)', prop: 'manHour' }, |
| | | { label: '预计时间(H)', prop: 'manDay' }, |
| | |
| | | clickFun: (row) => { |
| | | this.bindPartFirst(row); |
| | | }, |
| | | disabled: (row) => { |
| | | return row.product |
| | | } |
| | | }, |
| | | { |
| | | name: '车间绑定', |
| | |
| | | this.bindWokshop1(row); |
| | | }, |
| | | disabled: (row) => { |
| | | return row.objectType != '原辅料' && row.objectType != '包材' |
| | | return row.objectType != '原辅材' && row.objectType != '包材' |
| | | } |
| | | }, |
| | | ] |
| | |
| | | productColumn: [ |
| | | { label: '产品名称', prop: 'name' }, |
| | | { label: '产品名称EN', prop: 'nameEn' }, |
| | | { label: '车间名称', prop: 'workShopName' }, |
| | | // { label: '车间名称', prop: 'workShopName' }, |
| | | { |
| | | dataType: 'action', |
| | | label: '操作', |
| | |
| | | this.bindPartSecond(row); |
| | | }, |
| | | }, |
| | | { |
| | | name: '车间绑定', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.bindWokshop(row); |
| | | }, |
| | | showHide: (row) => { |
| | | if (this.currentObj.objectType != '原辅料' && row.objectType != '包材') { |
| | | return false |
| | | } else { |
| | | return true |
| | | } |
| | | } |
| | | }, |
| | | // { |
| | | // name: '车间绑定', |
| | | // type: 'text', |
| | | // clickFun: (row) => { |
| | | // this.bindWokshop(row); |
| | | // }, |
| | | // showHide: (row) => { |
| | | // if (this.currentObj.objectType != '原辅材' && row.objectType != '包材') { |
| | | // return false |
| | | // } else { |
| | | // return true |
| | | // } |
| | | // } |
| | | // }, |
| | | // { |
| | | // name: '厂家密度绑定', |
| | | // type: 'text', |
| | |
| | | // 产品维护 |
| | | upProduct(row) { |
| | | this.currentObj = row; |
| | | if (this.currentObj.objectType == '原辅料') { |
| | | if (this.productColumn.length < 4) { |
| | | this.productColumn.splice(2, 0, { label: '车间名称', prop: 'workShopName' }) |
| | | } |
| | | } else { |
| | | if (this.productColumn.length == 4) { |
| | | this.productColumn.splice(2, 1) |
| | | } |
| | | } |
| | | // if (this.currentObj.objectType == '原辅材') { |
| | | // if (this.productColumn.length < 4) { |
| | | // this.productColumn.splice(2, 0, { label: '车间名称', prop: 'workShopName' }) |
| | | // } |
| | | // } else { |
| | | // if (this.productColumn.length == 4) { |
| | | // this.productColumn.splice(2, 1) |
| | | // } |
| | | // } |
| | | this.diaProduct = true |
| | | this.objectId = row.id |
| | | this.productPage.current = 1 |