This commit is contained in:
磷叶 2025-02-21 13:52:00 +08:00
parent a841f6038d
commit c23ddf0f15

View File

@ -344,18 +344,30 @@ export default {
this.$refs.table.toggleRowExpansion(row);
},
handlePriceChange(row, val) {
row.priceSubName = val?.subName;
row.priceSpec = val?.spec;
row.pricePrice = val?.price;
row.priceUnit = val?.unit;
row.priceClassify = val?.classify;
row.priceQuantityNumerator = val?.quantityNumerator;
row.priceQuantityDenominator = val?.quantityDenominator;
row.priceCode = val?.code;
row.priceStatus = val?.status;
// val,
if (val == null) {
row.priceSubName = null;
row.priceSpec = null;
row.pricePrice = null;
row.priceUnit = null;
row.priceClassify = null;
row.priceQuantityNumerator = null;
row.priceQuantityDenominator = null;
row.priceCode = null;
row.priceStatus = null;
return;
}
// val
row.priceSubName = val.subName || null;
row.priceSpec = val.spec || null;
row.pricePrice = val.price || null;
row.priceUnit = val.unit || null;
row.priceClassify = val.classify || null;
row.priceQuantityNumerator = val.quantityNumerator || null;
row.priceQuantityDenominator = val.quantityDenominator || null;
row.priceCode = val.code || null;
row.priceStatus = val.status || null;
row.priceCategory = val.category;
row.priceSize = val.size;
row.priceName = val.name;
@ -490,6 +502,8 @@ export default {
// ,getList
if (Math.ceil(this.total / this.pageSize) === this.pageNum) {
this.getList();
} else {
this.total += (value * this.rows.length);
}
})
},
@ -590,6 +604,7 @@ export default {
upItem.sort = current.sort;
current.sort = temp;
this.reorder();
this.getList();
},
//
getNewSort() {