|
@@ -49,7 +49,10 @@
|
|
|
<view class="item-detail">
|
|
|
<view class="item-detail-info">
|
|
|
<view class="flex justify_between">
|
|
|
- <text class="item-detail-text flex_1">{{item.code}}</text>
|
|
|
+ <view>
|
|
|
+ <text class="item-detail-text flex_1">{{item.code}}</text>
|
|
|
+ <u-tag v-if="item.affiliation=='SUPER_CATALOGUE' && commonPartCodeList.includes(item.code)" size="mini" style="margin-left: 5px;" text="通用" mode="light" shape="circle" type="success"></u-tag>
|
|
|
+ </view>
|
|
|
<text class="item-detail-text" v-if="item.affiliation=='SHELF'">库存:{{item.currentInven?item.currentInven:0}} {{item.unit}}</text>
|
|
|
</view>
|
|
|
<view class="flex justify_between">
|
|
@@ -251,6 +254,8 @@
|
|
|
partList: [], // 配件列表
|
|
|
partListData: [], // 已选配件
|
|
|
vinPartList: [],
|
|
|
+ vinCode:[],
|
|
|
+ commonPartCodeList:[],
|
|
|
isIphoneXup: false,
|
|
|
saveLoading: false,
|
|
|
showPopup: false,
|
|
@@ -389,7 +394,9 @@
|
|
|
getCarCodeByVin(){
|
|
|
queryPartCodeByVin({vinNumber:this.vinNumber}).then(res => {
|
|
|
console.log(res,'this.vinCode')
|
|
|
- this.vinCode = res.data
|
|
|
+ const ret = res.data
|
|
|
+ this.commonPartCodeList = ret.commonPartCodeList || []
|
|
|
+ this.vinCode = this.commonPartCodeList.concat(ret.partCodeList||[])
|
|
|
this.getShelfProductType()
|
|
|
})
|
|
|
},
|