|
@@ -7,19 +7,19 @@
|
|
|
<view class="stockSearch-tit flex">
|
|
|
<view class="u-line" :style="{backgroundColor: $config('primaryColor')}"></view>
|
|
|
<view class="u-name">
|
|
|
- {{item.productEntity?item.productEntity.name?item.productEntity.name:'--':'--'}}
|
|
|
+ {{item.productName||'--'}}
|
|
|
</view>
|
|
|
- <view class="u-last" v-if="item.productEntity">
|
|
|
- <copyText :text="item.productEntity.name" label="产品名称"></copyText>
|
|
|
+ <view class="u-last">
|
|
|
+ <copyText :text="item.productName" label="产品名称"></copyText>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="stockSearch-item-con flex align_center">
|
|
|
- <view class="pimgs" v-if="item.productEntity">
|
|
|
- <u-image :src="item.productEntity.productMsg?item.productEntity.productMsg:`../../static/${theme}/def_img@2x.png`" width="128" height="128" border-radius="10"></u-image>
|
|
|
+ <view class="pimgs">
|
|
|
+ <u-image :src="item.productMsg?item.productMsg:`../../static/${theme}/def_img@2x.png`" width="128" height="128" border-radius="10"></u-image>
|
|
|
</view>
|
|
|
- <view class="flex_1" v-if="item.productEntity">
|
|
|
- <view>产品编码:{{item.productEntity.code || '--'}} <copyText :text="item.productEntity.code" label="产品编码"></copyText></view>
|
|
|
- <view class="padding_3">原厂编码:{{item.productEntity.origCode && item.productEntity.origCode !== ' '? item.productEntity.origCode : '--'}}</view>
|
|
|
+ <view class="flex_1">
|
|
|
+ <view>产品编码:{{item.productCode || '--'}} <copyText :text="item.productCode" label="产品编码"></copyText></view>
|
|
|
+ <view class="padding_3">原厂编码:{{item.productOrigCode && item.productOrigCode !== ' '? item.productOrigCode : '--'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="stockSearch-item-footer flex align_center">
|
|
@@ -29,7 +29,7 @@
|
|
|
</view>
|
|
|
<view class="font_13">
|
|
|
可用库存数量
|
|
|
- <view>{{toThousands(item.currentStockQty||0)}}{{item.productEntity?item.productEntity.unit?item.productEntity.unit:'--':'--'}}</view>
|
|
|
+ <view>{{toThousands(item.currentStockQty||0)}}{{item.productUnit||''}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|