|
@@ -366,17 +366,17 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//获取详情
|
|
//获取详情
|
|
|
- async getDetail(id) {
|
|
|
|
|
- this.businessId = id;
|
|
|
|
|
|
|
+ async getDetail(row) {
|
|
|
|
|
+ this.businessId = row?.id;
|
|
|
|
|
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- const data = await getInfo(id);
|
|
|
|
|
|
|
+ const data = await getInfo(row?.id);
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
if (data) {
|
|
if (data) {
|
|
|
const tempdata = {
|
|
const tempdata = {
|
|
|
// ...data,
|
|
// ...data,
|
|
|
- totalPrice: data.amount,
|
|
|
|
|
- discountTotalPrice: data.discountAmount,
|
|
|
|
|
|
|
+ totalPrice: row.amount,
|
|
|
|
|
+ discountTotalPrice: row.discountAmount,
|
|
|
productList: data.originalList
|
|
productList: data.originalList
|
|
|
}
|
|
}
|
|
|
this.businessId = data.id;
|
|
this.businessId = data.id;
|
|
@@ -393,7 +393,7 @@
|
|
|
async open(type, row) {
|
|
async open(type, row) {
|
|
|
|
|
|
|
|
if (row && row?.id) {
|
|
if (row && row?.id) {
|
|
|
- await this.getDetail(row?.id);
|
|
|
|
|
|
|
+ await this.getDetail(row);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|