|
@@ -3,13 +3,15 @@
|
|
<scroll-view scroll-x="true" scroll-with-animation="true" class='list-type'>
|
|
<scroll-view scroll-x="true" scroll-with-animation="true" class='list-type'>
|
|
<view v-for='item in searchTypes' @click='changetype(item)' :class='mainBusinessType==item.name?"Semibold active":"Regular"' class="typeitem">{{item.name}}</view>
|
|
<view v-for='item in searchTypes' @click='changetype(item)' :class='mainBusinessType==item.name?"Semibold active":"Regular"' class="typeitem">{{item.name}}</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
- <view v-for='item in datalist' class="listitem">
|
|
|
|
|
|
+ <view v-for='item in datalist' @click='todetails(item)' class="listitem">
|
|
<view class="flex" v-if='mainBusinessType=="我的企业"'>
|
|
<view class="flex" v-if='mainBusinessType=="我的企业"'>
|
|
<image class='listitem-left' :src="item.attachmentAddress" mode=""></image>
|
|
<image class='listitem-left' :src="item.attachmentAddress" mode=""></image>
|
|
<view class="listitem-right">
|
|
<view class="listitem-right">
|
|
<view class="flex justify-between">
|
|
<view class="flex justify-between">
|
|
<view class="companyname Medium">{{item.compName}}</view>
|
|
<view class="companyname Medium">{{item.compName}}</view>
|
|
<view v-if='item.status=="待审核"' class='listitemStatus audit Regular'>审核中</view>
|
|
<view v-if='item.status=="待审核"' class='listitemStatus audit Regular'>审核中</view>
|
|
|
|
+ <view v-if='item.status=="已驳回"' class='listitemStatus notPass Regular'>未通过</view>
|
|
|
|
+ <view v-if='item.status=="已通过"' class='listitemStatus pass Regular'>已通过</view>
|
|
</view>
|
|
</view>
|
|
<view class='companylocation flex align-item-center Regular'>
|
|
<view class='companylocation flex align-item-center Regular'>
|
|
<image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
|
|
<image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
|
|
@@ -18,13 +20,13 @@
|
|
<view>
|
|
<view>
|
|
<view class="button Regular">隐藏</view>
|
|
<view class="button Regular">隐藏</view>
|
|
<view class="button Regular">编辑</view>
|
|
<view class="button Regular">编辑</view>
|
|
- <view class="button Regular">删除</view>
|
|
|
|
|
|
+ <view @click='del(item)' class="button Regular">删除</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-else>
|
|
<view v-else>
|
|
<view class="flex">
|
|
<view class="flex">
|
|
- <image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
|
|
|
|
|
|
+ <image class='listitem-left' :src="item.attachmentAddress" mode=""></image>
|
|
<view class="listitem-right">
|
|
<view class="listitem-right">
|
|
<view class="flex justify-between">
|
|
<view class="flex justify-between">
|
|
<view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
|
|
<view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
|
|
@@ -89,7 +91,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
- this.$api.doRequest('get','/settledCompanyInfo/myCollection',{commonId:this.userInfo.id,phone:this.userInfo.phone,pageSize:this.pageSize,
|
|
|
|
|
|
+ this.$api.doRequest('get','/settledCompanyInfo/myCollection',{phone:this.userInfo.phone,pageSize:this.pageSize,
|
|
currentPage: this.currentPage,pcFlag:2}).then(res => {
|
|
currentPage: this.currentPage,pcFlag:2}).then(res => {
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
this.datalist=res.data.data.records
|
|
this.datalist=res.data.data.records
|
|
@@ -97,14 +99,23 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ del(item){
|
|
|
|
+ this.$api.doRequest('post','/settledCompanyInfo/api/deleteSettledCompanyInfo',{id:item.id}).then(res => {
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ this.$api.msg('删除成功')
|
|
|
|
+ }else{
|
|
|
|
+ this.$api.msg('删除失败')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
friendcircle(){
|
|
friendcircle(){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'/pages/grain_pulse/friendcircle'
|
|
url:'/pages/grain_pulse/friendcircle'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- todetails(){
|
|
|
|
|
|
+ todetails(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url:'/pages/grain_pulse/details'
|
|
|
|
|
|
+ url: '/pages/grain_pulse/details?id=' + item.id
|
|
})
|
|
})
|
|
},
|
|
},
|
|
naviageToPage(item){
|
|
naviageToPage(item){
|