|
@@ -3,7 +3,7 @@
|
|
|
<bottom-popup class="popup-wrap" :show="showPopup" @close="hidePopup">
|
|
<bottom-popup class="popup-wrap" :show="showPopup" @close="hidePopup">
|
|
|
<div class="map-wrap">
|
|
<div class="map-wrap">
|
|
|
<div class="map-top-tit-wrap">
|
|
<div class="map-top-tit-wrap">
|
|
|
- <div class="map-top-tit">请选择客户</div>
|
|
|
|
|
|
|
+ <div class="map-top-tit">请选择供货商</div>
|
|
|
<app-close icon="iconguanbi" @close="hidePopup" />
|
|
<app-close icon="iconguanbi" @close="hidePopup" />
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 搜索 -->
|
|
<!-- 搜索 -->
|
|
@@ -37,14 +37,14 @@
|
|
|
<view class="item-avatar">
|
|
<view class="item-avatar">
|
|
|
<image :src="item.smallAvatar" alt="商品图" />
|
|
<image :src="item.smallAvatar" alt="商品图" />
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="item-name"> {{ item.name || "" }}</view>
|
|
|
|
|
|
|
+ <view class="item-name"> {{ item.name || "" }} <text v-if="newGhsId==item.id">新供货商</text></view>
|
|
|
<view class="item-level">{{ getCustomerLevelName(item) }}</view>
|
|
<view class="item-level">{{ getCustomerLevelName(item) }}</view>
|
|
|
<!-- <view class="item-tag">NEW</view> -->
|
|
<!-- <view class="item-tag">NEW</view> -->
|
|
|
</view>
|
|
</view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
-<!-- <view class="add-customer-bar" @click="gotoAddCustomer">-->
|
|
|
|
|
-<!-- 没有找到客户?新增-->
|
|
|
|
|
-<!-- </view>-->
|
|
|
|
|
|
|
+ <view class="add-customer-bar" @click="gotoAddCustomer">
|
|
|
|
|
+ 没有找到供货商?新增
|
|
|
|
|
+ </view>
|
|
|
</div>
|
|
</div>
|
|
|
</bottom-popup>
|
|
</bottom-popup>
|
|
|
</div>
|
|
</div>
|
|
@@ -75,6 +75,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
showPopup: false,
|
|
showPopup: false,
|
|
|
name: "",
|
|
name: "",
|
|
|
|
|
+ newGhsId: "",
|
|
|
customerListData: []
|
|
customerListData: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -107,9 +108,8 @@ export default {
|
|
|
initList() {
|
|
initList() {
|
|
|
return getList({ type: "0", name: this.name })
|
|
return getList({ type: "0", name: this.name })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- const {
|
|
|
|
|
- data: { list }
|
|
|
|
|
- } = res;
|
|
|
|
|
|
|
+ const {data: { list }} = res;
|
|
|
|
|
+ this.newGhsId = uni.getStorageSync("newGhs")?uni.getStorageSync("newGhs").id:'';
|
|
|
this.customerListData = list;
|
|
this.customerListData = list;
|
|
|
})
|
|
})
|
|
|
.catch(err => {});
|
|
.catch(err => {});
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
gotoAddCustomer() {
|
|
gotoAddCustomer() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: "/pagesClient/member/add",
|
|
|
|
|
|
|
+ url: "/pagesPurchase/suppAdd",
|
|
|
success: result => {
|
|
success: result => {
|
|
|
this.hidePopup();
|
|
this.hidePopup();
|
|
|
},
|
|
},
|
|
@@ -218,7 +218,13 @@ export default {
|
|
|
.item-name {
|
|
.item-name {
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
margin: 0 20upx;
|
|
margin: 0 20upx;
|
|
|
- width: 200upx;
|
|
|
|
|
|
|
+ /*width: 200upx;*/
|
|
|
|
|
+ text{
|
|
|
|
|
+ padding: 0 10rpx;
|
|
|
|
|
+ margin-left: 20rpx;
|
|
|
|
|
+ color: #3385ff;
|
|
|
|
|
+ border: 1px solid #3385ff;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.item-level {
|
|
.item-level {
|
|
|
margin: 0 20upx;
|
|
margin: 0 20upx;
|