|
@@ -37,7 +37,7 @@
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">商品价格</view>
|
|
|
<input type="number" placeholder="请输入" v-model="item.price" />
|
|
|
- <view class="ops">元</view>
|
|
|
+ <view class="ops">{{ item.unit }}</view>
|
|
|
</view>
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">商品数量</view>
|
|
@@ -47,12 +47,12 @@
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">净重</view>
|
|
|
<input placeholder="请输入" v-model="item.netWeight" />
|
|
|
- <view class="ops">吨</view>
|
|
|
+ <view class="ops">{{ item.unit }}</view>
|
|
|
</view>
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">毛重</view>
|
|
|
<input placeholder="请输入" v-model="item.grossWeight" />
|
|
|
- <view class="ops">吨</view>
|
|
|
+ <view class="ops">{{ item.unit }}</view>
|
|
|
</view>
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">商品状态</view>
|
|
@@ -105,9 +105,11 @@ export default {
|
|
|
},
|
|
|
pickerGoods(e) {
|
|
|
this.item['goodsName'] = this.goodsList[e.detail.value].name;
|
|
|
+ this.item['unit'] = this.goodsList[e.detail.value].unit;
|
|
|
this.$forceUpdate();
|
|
|
if(this.flag == '新增商品') {
|
|
|
this.item.id = this.goodsList[e.detail.value].id;
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
pickerTradeArea(e) {
|