|
|
|
@ -89,7 +89,7 @@
|
|
|
|
|
:header-cell-class-name="cellClass" @current-change="handleSelectionChange">
|
|
|
|
|
<el-table-column label width="45">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.nameCode" v-model="radioCheck" :disabled="isDisabled(scope.row.nameCode)"><span></span></el-radio>
|
|
|
|
|
<el-radio :label="scope.row.productId" v-model="radioCheck" :disabled="isDisabled(scope.row.productId)"><span></span></el-radio>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
@ -799,7 +799,7 @@ export default {
|
|
|
|
|
type: Function,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
nameCodes: {
|
|
|
|
|
productIds: {
|
|
|
|
|
type: Array,
|
|
|
|
|
required: true,
|
|
|
|
|
}
|
|
|
|
@ -1147,10 +1147,10 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
if (this.nameCodes.includes(selection.nameCode)){
|
|
|
|
|
if (this.productIds.includes(selection.productId)){
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
this.radioCheck = selection.nameCode;
|
|
|
|
|
this.radioCheck = selection.productId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.curSelectDi = selection;
|
|
|
|
@ -1184,9 +1184,9 @@ export default {
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
isDisabled(nameCode){
|
|
|
|
|
if (this.nameCodes.length > 0){
|
|
|
|
|
return this.nameCodes.includes(nameCode);
|
|
|
|
|
isDisabled(productId){
|
|
|
|
|
if (this.productIds.length > 0){
|
|
|
|
|
return this.productIds.includes(productId);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleErpChange(val) {
|
|
|
|
|