|
@@ -9,7 +9,7 @@
|
|
|
<view class="order_list" >
|
|
<view class="order_list" >
|
|
|
<block>
|
|
<block>
|
|
|
<block v-if="!$util.isEmpty(supplierList)">
|
|
<block v-if="!$util.isEmpty(supplierList)">
|
|
|
- <view class="list_item" v-for="(item, index) in supplierList" :key="index" @click="goToDetail(item)" >
|
|
|
|
|
|
|
+ <view class="list_item" v-for="(item, index) in supplierList" :key="index" @click="goToCg(item)" >
|
|
|
<view class="store_name">
|
|
<view class="store_name">
|
|
|
<image :src="item.avatar"></image>
|
|
<image :src="item.avatar"></image>
|
|
|
<view class="store_title">{{item.name}}</view>
|
|
<view class="store_title">{{item.name}}</view>
|
|
@@ -65,33 +65,22 @@ export default {
|
|
|
this.getGHSList(e)
|
|
this.getGHSList(e)
|
|
|
},
|
|
},
|
|
|
getGHSList (name) {
|
|
getGHSList (name) {
|
|
|
- return getList({
|
|
|
|
|
- pageSize: 100,
|
|
|
|
|
- name:name
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
|
+ return getList({ pageSize:300, name:name }).then(res => {
|
|
|
this.supplierList = res.data.list
|
|
this.supplierList = res.data.list
|
|
|
- }).catch(err => { console.log(err) })
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
goToDebtList(item) {
|
|
goToDebtList(item) {
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: `/pagesGys/details?id=${item.id}`,
|
|
|
|
|
- success: result => {},
|
|
|
|
|
- fail: () => {},
|
|
|
|
|
- complete: () => {}
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.pageTo({url: '/pagesGys/details?id='+item.id,type:2})
|
|
|
},
|
|
},
|
|
|
- // 采购记录详情
|
|
|
|
|
- goToDetail (item) {
|
|
|
|
|
- this.pageTo({ url: '/pagesPurchase/add?ghsId='+item.id+'&ghsName='+item.name})
|
|
|
|
|
|
|
+ goToCg (item) {
|
|
|
|
|
+ this.pageTo({url: '/pagesPurchase/add?ghsId='+item.id+'&ghsName='+item.name,type:2})
|
|
|
},
|
|
},
|
|
|
- // 添加供货商
|
|
|
|
|
add() {
|
|
add() {
|
|
|
- this.pageTo({ url: '/pagesPurchase/suppAdd' })
|
|
|
|
|
|
|
+ this.pageTo({url:'/pagesPurchase/suppAdd'})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
-
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.input-wrap_box {
|
|
.input-wrap_box {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|