update:
1. update pricelist
This commit is contained in:
@@ -122,12 +122,43 @@ export default {
|
||||
if (type === 1 || type === 3) {
|
||||
this.form.photoLimit = 1;
|
||||
photoCol.disabled = true;
|
||||
|
||||
} else {
|
||||
photoCol.disabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'formSub.backPrint'() {
|
||||
const backPrint = this.formSub.backPrint;
|
||||
const backPrintPriceCol = this.optionSub.column.find(col => col.prop === 'backPrintPrice');
|
||||
if (backPrintPriceCol) {
|
||||
backPrintPriceCol.disabled = backPrint !== 1;
|
||||
}
|
||||
},
|
||||
'formSub.stand'() {
|
||||
const stand = this.formSub.stand;
|
||||
const standPriceCol = this.optionSub.column.find(col => col.prop === 'standPrice');
|
||||
if (standPriceCol) {
|
||||
standPriceCol.disabled = stand !== 1;
|
||||
}
|
||||
},
|
||||
'formSub.sizeUpgrade'() {
|
||||
const sizeUpgrade = this.formSub.sizeUpgrade;
|
||||
const sizeUpgradePriceCol = this.optionSub.column.find(col => col.prop === 'sizeUpgradePrice');
|
||||
const sizeUpgradeToCol = this.optionSub.column.find(col => col.prop === 'sizeUpgradeTo');
|
||||
if (sizeUpgradePriceCol) {
|
||||
sizeUpgradePriceCol.disabled = sizeUpgrade!==1;
|
||||
sizeUpgradeToCol.disabled = sizeUpgrade!==1;
|
||||
}
|
||||
},
|
||||
'formSub.materialUpgrade'() {
|
||||
const materialUpgrade = this.formSub.materialUpgrade;
|
||||
const materialUpgradePriceCol = this.optionSub.column.find(col => col.prop === 'materialUpgradePrice');
|
||||
const materialUpgradeToCol = this.optionSub.column.find(col => col.prop === 'materialUpgradeTo');
|
||||
if (materialUpgradePriceCol) {
|
||||
materialUpgradePriceCol.disabled = materialUpgrade!==1;
|
||||
materialUpgradeToCol.disabled = materialUpgrade!==1;
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['permission']),
|
||||
@@ -152,7 +183,7 @@ export default {
|
||||
ids.push(ele.id);
|
||||
});
|
||||
return ids.join(',');
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
rowSave(row, done, loading) {
|
||||
|
||||
Reference in New Issue
Block a user