update:
1. update pricelist
This commit is contained in:
@@ -122,13 +122,44 @@ export default {
|
|||||||
if (type === 1 || type === 3) {
|
if (type === 1 || type === 3) {
|
||||||
this.form.photoLimit = 1;
|
this.form.photoLimit = 1;
|
||||||
photoCol.disabled = true;
|
photoCol.disabled = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
photoCol.disabled = false;
|
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: {
|
computed: {
|
||||||
...mapGetters(['permission']),
|
...mapGetters(['permission']),
|
||||||
permissionList() {
|
permissionList() {
|
||||||
@@ -152,7 +183,7 @@ export default {
|
|||||||
ids.push(ele.id);
|
ids.push(ele.id);
|
||||||
});
|
});
|
||||||
return ids.join(',');
|
return ids.join(',');
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
rowSave(row, done, loading) {
|
rowSave(row, done, loading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user