|
|
@@ -24,20 +24,31 @@
|
|
|
class="list_item"
|
|
|
v-for="(item, index) in supplierList"
|
|
|
:key="index"
|
|
|
+ @click="enter(item)"
|
|
|
>
|
|
|
- <image :src="item.avatar"></image>
|
|
|
+ <!-- <image :src="item.avatar"></image> -->
|
|
|
<view class="store_name">
|
|
|
<view class="store_title">{{item.name}}</view>
|
|
|
<view class="accumulative">累计采购: {{item.expendAmount}}</view>
|
|
|
</view>
|
|
|
<view class="store_btn">
|
|
|
- <view class="btn_entrance" v-if="Number(item.debtAmount) <= 0" @click="settleAccounts(item)">
|
|
|
+ <view
|
|
|
+ class="btn_entrance"
|
|
|
+ v-if="Number(item.debtAmount) <= 0"
|
|
|
+ @click="settleAccounts(item)"
|
|
|
+ >
|
|
|
结账
|
|
|
</view>
|
|
|
- <view class="btn_entrance btn_forbid" v-else>
|
|
|
+ <view
|
|
|
+ class="btn_entrance btn_forbid"
|
|
|
+ v-else
|
|
|
+ >
|
|
|
结账
|
|
|
</view>
|
|
|
- <view class="btn_entrance" @click="enter(item)">
|
|
|
+ <view
|
|
|
+ class="btn_entrance"
|
|
|
+ @click="enter(item)"
|
|
|
+ >
|
|
|
进店
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -109,8 +120,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
enter (item) {
|
|
|
- const {id,ghsShopId,ghsSjId} = item
|
|
|
- uni.navigateTo({url: `/pagesPurchase/ghsProduct?shopId=${ghsShopId}&id=${id}`})
|
|
|
+ const { id, ghsShopId, ghsSjId } = item
|
|
|
+ uni.navigateTo({ url: `/pagesPurchase/ghsProduct?shopId=${ghsShopId}&id=${id}` })
|
|
|
},
|
|
|
getGHSList () {
|
|
|
ghsList().then(res => {
|