|
@@ -6,15 +6,19 @@
|
|
|
<view class="goodsList">
|
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item)">
|
|
|
<view class="title">{{ item.enterpriseName }}
|
|
|
- <view class="state" v-if="item.enterpriseConfirm == 0">
|
|
|
+ <view class="state" v-if="item.peopleConfirmStatus == 0">
|
|
|
<text class="icon"></text>
|
|
|
- <text>商家未确认</text>
|
|
|
+ <text>未确认</text>
|
|
|
</view>
|
|
|
- <view class="state" v-if="item.enterpriseConfirm == 1">
|
|
|
+ <view class="state" v-if="item.peopleConfirmStatus == 1 && item.apply == 0">
|
|
|
<text class="icon" style="color: #13ce66"></text>
|
|
|
<text>已确认</text>
|
|
|
</view>
|
|
|
- <view class="state" v-if="item.enterpriseConfirm == 2">
|
|
|
+ <view class="state" v-if="item.resaleStatus == 1">
|
|
|
+ <text class="icon" style="color: #13ce66"></text>
|
|
|
+ <text>已转售</text>
|
|
|
+ </view>
|
|
|
+ <view class="state" v-if="item.finishStatus == 3">
|
|
|
<text class="icon" style="color: #f44336"></text>
|
|
|
<text>已取消</text>
|
|
|
</view>
|
|
@@ -31,16 +35,19 @@
|
|
|
</view>
|
|
|
<view class="clear"></view>
|
|
|
<view class="op">
|
|
|
- <view class="date">2022-12-12:12:12</view>
|
|
|
- <template v-if="item.enterpriseConfirm == 1">
|
|
|
- <view class="an" style="color: #f44336" v-if="user.userType == 1" @click.stop="confirmOrder(item.id)">边民确认</view>
|
|
|
+ <view class="date">{{ item.createTime }}</view>
|
|
|
+ <template v-if="item.peopleConfirmStatus == 0">
|
|
|
+ <view class="an" style="color: #f44336" @click.stop="confirmOrder(item.id)">边民确认</view>
|
|
|
+ </template>
|
|
|
+ <template v-if="item.peopleConfirmStatus == 1 && item.apply == 1 && item.resaleStatus == 0">
|
|
|
+ <view class="an" style="color: #f44336" @click.stop="resale(item)">订单转售</view>
|
|
|
</template>
|
|
|
- <template v-if="item.enterpriseConfirm == 0">
|
|
|
+ <!-- <template v-if="item.peopleConfirmStatus == 0">
|
|
|
<view class="an" style="color: #f44336" v-if="user.userType == 2" @click.stop="confirm(item.id)">取消订单</view>
|
|
|
</template>
|
|
|
- <template v-if="item.enterpriseConfirm == 3 || item.enterpriseConfirm == 2">
|
|
|
+ <template v-if="item.finishStatus == 3">
|
|
|
<view class="an" style="color: #f44336" v-if="user.userType == 2" @click.stop="del(item.id)">删除订单</view>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
|
|
@@ -56,29 +63,46 @@ export default {
|
|
|
tab: [
|
|
|
{
|
|
|
name: '全部',
|
|
|
- enterpriseConfirm: '',
|
|
|
- apply: ''
|
|
|
+ peopleConfirmStatus: '', //边民确认状态
|
|
|
+ apply: '', //订单申报状态
|
|
|
+ finishStatus: '', //订单完成状态
|
|
|
+ resaleStatus: '' //订单转售状态
|
|
|
},
|
|
|
{
|
|
|
name: '待确认',
|
|
|
- enterpriseConfirm: 0,
|
|
|
- apply: 0
|
|
|
- }, //enterpriseConfirm:商户确认(0=待确认,1=是,2=否)
|
|
|
+ peopleConfirmStatus: 0,
|
|
|
+ apply: 0,
|
|
|
+ finishStatus: 0,
|
|
|
+ resaleStatus: 0
|
|
|
+ },
|
|
|
{
|
|
|
name: '申报中',
|
|
|
- enterpriseConfirm: 1,
|
|
|
- apply: 0
|
|
|
+ peopleConfirmStatus: 1,
|
|
|
+ apply: 0,
|
|
|
+ finishStatus: 0,
|
|
|
+ resaleStatus: 0
|
|
|
},
|
|
|
{
|
|
|
name: '已完成',
|
|
|
- enterpriseConfirm: 2,
|
|
|
- apply: 1
|
|
|
- }, //apply:申报[0=待申报,1=申报通过,2=申报不通过]
|
|
|
+ peopleConfirmStatus: 1,
|
|
|
+ apply: 1,
|
|
|
+ finishStatus: 1,
|
|
|
+ resaleStatus: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '已转售',
|
|
|
+ peopleConfirmStatus: 1,
|
|
|
+ apply: 1,
|
|
|
+ finishStatus: 1,
|
|
|
+ resaleStatus: 1
|
|
|
+ }/* ,
|
|
|
{
|
|
|
name: '已取消',
|
|
|
- enterpriseConfirm: 3,
|
|
|
- apply: ''
|
|
|
- }
|
|
|
+ peopleConfirmStatus: '',
|
|
|
+ apply: '',
|
|
|
+ finishStatus: 3,
|
|
|
+ resaleStatus: ''
|
|
|
+ } */
|
|
|
],
|
|
|
param: {
|
|
|
pageNo: 1,
|
|
@@ -104,24 +128,29 @@ export default {
|
|
|
if (res.data.data) {
|
|
|
this.list.push(...res.data.data);
|
|
|
}
|
|
|
- this.list.map(item => {
|
|
|
+ /* this.list.map(item => {
|
|
|
if (item.cancelPeople == 1) {
|
|
|
item.enterpriseConfirm = 3;
|
|
|
}
|
|
|
- });
|
|
|
+ }); */
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
// 点击tab切换
|
|
|
click(e) {
|
|
|
console.log(e);
|
|
|
- this.param.orderStatus = e.enterpriseConfirm;
|
|
|
+ this.param.peopleConfirmStatus = e.appeopleConfirmStatusply;
|
|
|
this.param.apply = e.apply;
|
|
|
+ this.param.finishStatus = e.finishStatus;
|
|
|
+ this.param.resaleStatus = e.resaleStatus;
|
|
|
this.refresh();
|
|
|
},
|
|
|
detail(item) {
|
|
|
uni.navigateTo({url: '/pages/market/one/leader/detail?id=' + item.id});
|
|
|
},
|
|
|
+ resale(item) {
|
|
|
+ uni.navigateTo({url: '/pages/market/two/leader/resale?item=' + JSON.stringify(item)});
|
|
|
+ },
|
|
|
// 刷新数据
|
|
|
refresh() {
|
|
|
this.loadMore = true;
|