|
@@ -19,7 +19,7 @@
|
|
|
<view class="forms">
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">互市区</view>
|
|
|
- <picker :range="tradeAreaList" @change="picker($event, 'tradeAreaName')" range-key="name">
|
|
|
+ <picker @click="selectArea()" :disabled="true">
|
|
|
<input placeholder="请选择" v-model="item.tradeAreaName" :disabled="true" />
|
|
|
<view class="icon more"></view>
|
|
|
</picker>
|
|
@@ -33,7 +33,7 @@
|
|
|
</view>
|
|
|
<view class="form_group">
|
|
|
<view class="lable">商品编号</view>
|
|
|
- <input placeholder="请输入" v-model="item.goodsNo" />
|
|
|
+ <input placeholder="请输入" v-model="item.goodsNo" :disabled="true"/>
|
|
|
</view>
|
|
|
<view class="form_group">
|
|
|
<view class="lable re">计价单位</view>
|
|
@@ -81,7 +81,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- this.getTradeAreaList();
|
|
|
+ //选择互市回显
|
|
|
+ uni.$on('area', res => {
|
|
|
+ this.item.tradeAreaName = res.name;
|
|
|
+ this.item.tradeAreaId = res.id;
|
|
|
+ this.$forceUpdate();
|
|
|
+ });
|
|
|
//选择地址回显
|
|
|
uni.$on('selectAddress', res => {
|
|
|
this.item.addressName = res.province + ' ' + res.city + ' ' + res.area + ' ' + res.street;
|
|
@@ -100,19 +105,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- // 获取贸易区域列表
|
|
|
- getTradeAreaList() {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbTradeArea/getList',
|
|
|
- success: res => {
|
|
|
- this.tradeAreaList = res.data.data;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
//选择地址
|
|
|
address() {
|
|
|
uni.navigateTo({ url: '/pages/market/two/purchaser/address/list?select=true' });
|
|
|
},
|
|
|
+ //选择互市区
|
|
|
+ selectArea() {
|
|
|
+ uni.navigateTo({ url: '/pages/market/one/merchant/goods/area' });
|
|
|
+ },
|
|
|
//选择商品
|
|
|
selectGoods() {
|
|
|
if (this.item.tradeAreaId) {
|