Commit 21551c55 by wangzhihui

```

feat(purchaseOrder): 商品规格显示逻辑优化及字段映射调整

- 修改商品详情组件中多规格标识注释
- 单规格商品显示时优先展示采购商品名称或第三方名称
- 订单详情对话框中供应商名称字段从type改为thirdPartyName
- 订单详情对话框中产品别名字段从type改为purchaseGoodsName
- 退货订单对话框中供应商名称字段从type改为thirdPartyName
- 退货订单对话框中产品别名字段从type改为purchaseGoodsName
- 购物车组件中供应商名称字段从type改为thirdPartyName并调整宽度
- 购物车组件中产品别名字段从goodsName改为purchaseGoodsName
- 购物车组件中添加商品选中状态调试日志
- 购物车组件中商品列表
1 parent 560f0a8c
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="productCode" v-if="goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0">产品编码:{{ goodsInfo.upgradeGoodsList[selectIndex].type }}</div> <div class="productCode" v-if="goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0">产品编码:{{ goodsInfo.upgradeGoodsList[selectIndex].type }}</div>
<!--选择商品规格 v-if="!isSkuArguments"--> <!--选择商品规格多规格 v-if="!isSkuArguments"-->
<div class="content fix-header fix-bottom" v-if="goodsInfo.specificationType == 2"> <div class="content fix-header fix-bottom" v-if="goodsInfo.specificationType == 2">
<div class="mask"> <div class="mask">
<div class="mask-content"> <div class="mask-content">
...@@ -36,11 +36,12 @@ ...@@ -36,11 +36,12 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 单规格 -->
<div class="skuCon" v-if="goodsInfo.specificationType == 1"> <div class="skuCon" v-if="goodsInfo.specificationType == 1">
<div class="label">规格:</div> <div class="label">规格:</div>
<div class="itemCon"> <div class="itemCon">
<div class="skuItem one-line-ellipsis pointer" :class="{ active: index === selectIndex }" v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" @click="singleClick(item, index)"> <div class="skuItem one-line-ellipsis pointer" :class="{ active: index === selectIndex }" v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" @click="singleClick(item, index)">
{{ item.upgradeGoodsName }} {{ item.purchaseGoodsName || item.thirdPartyName || item.upgradeGoodsName }}
</div> </div>
</div> </div>
</div> </div>
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
}, },
{ {
label: '供应商名称', label: '供应商名称',
prop: 'type', prop: 'thirdPartyName',
width: 110 width: 110
}, },
{ {
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
}, },
{ {
label: '产品别名', label: '产品别名',
prop: 'type', prop: 'purchaseGoodsName',
width: 100 width: 100
}, },
{ {
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
}, },
{ {
label: '供应商名称', label: '供应商名称',
prop: 'type', prop: 'thirdPartyName',
width: 110 width: 110
}, },
{ {
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
}, },
{ {
label: '产品别名', label: '产品别名',
prop: 'type', prop: 'purchaseGoodsName',
width: 100 width: 100
}, },
{ {
......
...@@ -196,8 +196,8 @@ export default { ...@@ -196,8 +196,8 @@ export default {
}, },
{ {
label: '供应商名称', label: '供应商名称',
prop: 'type', prop: 'thirdPartyName',
width: 100 width: 120
}, },
{ {
label: '规格', label: '规格',
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
}, },
{ {
label: '产品别名', label: '产品别名',
prop: 'goodsName', prop: 'purchaseGoodsName',
width: 100, width: 100,
line: 1 line: 1
}, },
...@@ -369,6 +369,7 @@ export default { ...@@ -369,6 +369,7 @@ export default {
} }
// 判断 是否有选中的商品 // 判断 是否有选中的商品
const selectList = this.goodsSelectStatus.reduce((list, item) => { const selectList = this.goodsSelectStatus.reduce((list, item) => {
console.log(item, 8888)
if (item.selectedFlag === 'Y') { if (item.selectedFlag === 'Y') {
list.push({ list.push({
// upgradeGoodsId: item.upgradeGoodsId, // upgradeGoodsId: item.upgradeGoodsId,
...@@ -377,7 +378,10 @@ export default { ...@@ -377,7 +378,10 @@ export default {
type: item.upgradeGoods.type, type: item.upgradeGoods.type,
goodsNumber: item.goodsNumber, goodsNumber: item.goodsNumber,
remark: '' remark: '',
purchaseGoodsName: item.upgradeGoods.purchaseGoodsName,
thirdPartyName: item.upgradeGoods.thirdPartyName,
upgradeGoodsName: item.upgradeGoods.upgradeGoodsName
}) })
} }
return list return list
...@@ -476,7 +480,7 @@ export default { ...@@ -476,7 +480,7 @@ export default {
upgradeGoods: cur.upgradeGoods, upgradeGoods: cur.upgradeGoods,
goodsInfo: cur.goodsInfo, goodsInfo: cur.goodsInfo,
purchaseGoodsInfo: cur.purchaseGoodsInfo, purchaseGoodsInfo: cur.purchaseGoodsInfo,
upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName, upgradeGoodsName: cur.upgradeGoods.specificationType == 1 ? cur.upgradeGoods.purchaseGoodsName || cur.upgradeGoods.thirdPartyName || cur.upgradeGoods.upgradeGoodsName : cur.upgradeGoods.upgradeGoodsName,
specificationType: cur.upgradeGoods.specificationType, specificationType: cur.upgradeGoods.specificationType,
formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '', formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '',
upgradeGoodsId: cur.upgradeGoodsId, upgradeGoodsId: cur.upgradeGoodsId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!