|
|
@@ -422,18 +422,21 @@
|
|
|
return this.$message.warning('请至少选择一条数据');
|
|
|
}
|
|
|
let list = this.currentIndex == -1 ? this.selection : [this.current];
|
|
|
-
|
|
|
list = list.map((item) => {
|
|
|
+ const itemList = item.goodsPriceList.filter(item => item.isDefault == 1)
|
|
|
+ const goodsPrice = itemList.length > 0 ? itemList[0] : item.goodsPriceList[0];
|
|
|
return {
|
|
|
...item.categoryInfo,
|
|
|
goodsId: item.id,
|
|
|
to: item.id,
|
|
|
- goodsPriceId: item.goodsPriceList[0]?.id,
|
|
|
+ goodsPriceId: goodsPrice?.id,
|
|
|
level: item.level,
|
|
|
- goodsPriceType: item.goodsPriceList[0]?.priceType,
|
|
|
- singlePrice: item.goodsPriceList[0]?.unitPrice,
|
|
|
- notaxSinglePrice: item.goodsPriceList[0]?.excludeTaxPrice,
|
|
|
- taxRate: item.goodsPriceList[0]?.taxRate
|
|
|
+ goodsPriceType: goodsPrice?.priceType,
|
|
|
+ singlePrice: goodsPrice?.unitPrice,
|
|
|
+ notaxSinglePrice: goodsPrice?.excludeTaxPrice,
|
|
|
+ taxRate: goodsPrice?.taxRate,
|
|
|
+ technologyRouteName: goodsPrice?.technologyRouteName,
|
|
|
+ technologyRouteId: goodsPrice?.technologyRouteId,
|
|
|
};
|
|
|
});
|
|
|
let codeList = list.map((item) => item.code);
|