|
@@ -6,22 +6,14 @@
|
|
<view class="goodsList">
|
|
<view class="goodsList">
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item)">
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item)">
|
|
<view class="title">{{ item.enterpriseName }}
|
|
<view class="title">{{ item.enterpriseName }}
|
|
- <view class="state" v-if="item.peopleConfirmStatus == 0">
|
|
|
|
|
|
+ <view class="state" v-if="item.peopleConfirmStatus == 0 || item.cooperEntrustStatus == 0 || item.applyConfirmStatus == 0">
|
|
<text class="icon"></text>
|
|
<text class="icon"></text>
|
|
<text>未确认</text>
|
|
<text>未确认</text>
|
|
</view>
|
|
</view>
|
|
- <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.resaleStatus == 1">
|
|
<view class="state" v-if="item.resaleStatus == 1">
|
|
<text class="icon" style="color: #13ce66"></text>
|
|
<text class="icon" style="color: #13ce66"></text>
|
|
<text>已转售</text>
|
|
<text>已转售</text>
|
|
</view>
|
|
</view>
|
|
- <view class="state" v-if="item.finishStatus == 3">
|
|
|
|
- <text class="icon" style="color: #f44336"></text>
|
|
|
|
- <text>已取消</text>
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<image src="../../../../static/news.jpg" mode="aspectFill" class="pic"></image>
|
|
<image src="../../../../static/news.jpg" mode="aspectFill" class="pic"></image>
|
|
@@ -36,21 +28,9 @@
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
<view class="op">
|
|
<view class="op">
|
|
<view class="date">{{ item.createTime }}</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.applyConfirmStatus == 0">
|
|
|
|
- <view class="an" style="color: #f44336" @click.stop="applyOrder(item.id)">进口申报确认</view>
|
|
|
|
- </template>
|
|
|
|
<template v-if="item.peopleConfirmStatus == 1 && item.applyConfirmStatus == 1 && item.apply == 1 && item.resaleStatus == 0">
|
|
<template v-if="item.peopleConfirmStatus == 1 && item.applyConfirmStatus == 1 && item.apply == 1 && item.resaleStatus == 0">
|
|
<view class="an" style="color: #f44336" @click.stop="resale(item)">订单转售</view>
|
|
<view class="an" style="color: #f44336" @click.stop="resale(item)">订单转售</view>
|
|
</template>
|
|
</template>
|
|
- <!-- <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.finishStatus == 3">
|
|
|
|
- <view class="an" style="color: #f44336" v-if="user.userType == 2" @click.stop="del(item.id)">删除订单</view>
|
|
|
|
- </template> -->
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
|
|
<view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
|
|
@@ -67,67 +47,39 @@ export default {
|
|
{
|
|
{
|
|
name: '全部',
|
|
name: '全部',
|
|
peopleConfirmStatus: '', //边民确认状态
|
|
peopleConfirmStatus: '', //边民确认状态
|
|
|
|
+ cooperEntrustStatus: '', //互助委托申报确认状态
|
|
applyConfirmStatus: '', //进口申报确认状态
|
|
applyConfirmStatus: '', //进口申报确认状态
|
|
- apply: '', //订单申报状态
|
|
|
|
finishStatus: '', //订单完成状态
|
|
finishStatus: '', //订单完成状态
|
|
resaleStatus: '' //订单转售状态
|
|
resaleStatus: '' //订单转售状态
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: '边民确认',
|
|
|
|
- peopleConfirmStatus: 0,
|
|
|
|
- applyConfirmStatus: 0,
|
|
|
|
- apply: 0,
|
|
|
|
- finishStatus: 0,
|
|
|
|
- resaleStatus: 0
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '申报确认',
|
|
|
|
- peopleConfirmStatus: 1,
|
|
|
|
- applyConfirmStatus: 0,
|
|
|
|
- apply: 0,
|
|
|
|
- finishStatus: 0,
|
|
|
|
- resaleStatus: 0
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '申报中',
|
|
|
|
- peopleConfirmStatus: 1,
|
|
|
|
- applyConfirmStatus: 1,
|
|
|
|
- apply: 0,
|
|
|
|
|
|
+ name: '进口中',
|
|
finishStatus: 0,
|
|
finishStatus: 0,
|
|
resaleStatus: 0
|
|
resaleStatus: 0
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '已完成',
|
|
name: '已完成',
|
|
peopleConfirmStatus: 1,
|
|
peopleConfirmStatus: 1,
|
|
|
|
+ cooperEntrustStatus: 1,
|
|
applyConfirmStatus: 1,
|
|
applyConfirmStatus: 1,
|
|
- apply: 1,
|
|
|
|
finishStatus: 1,
|
|
finishStatus: 1,
|
|
resaleStatus: 0
|
|
resaleStatus: 0
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '已转售',
|
|
name: '已转售',
|
|
peopleConfirmStatus: 1,
|
|
peopleConfirmStatus: 1,
|
|
|
|
+ cooperEntrustStatus: 1,
|
|
applyConfirmStatus: 1,
|
|
applyConfirmStatus: 1,
|
|
- apply: 1,
|
|
|
|
finishStatus: 1,
|
|
finishStatus: 1,
|
|
resaleStatus: 1
|
|
resaleStatus: 1
|
|
- }/* ,
|
|
|
|
- {
|
|
|
|
- name: '已取消',
|
|
|
|
- peopleConfirmStatus: '',
|
|
|
|
- apply: '',
|
|
|
|
- finishStatus: 3,
|
|
|
|
- resaleStatus: ''
|
|
|
|
- } */
|
|
|
|
|
|
+ }
|
|
],
|
|
],
|
|
param: {
|
|
param: {
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 10
|
|
pageSize: 10
|
|
},
|
|
},
|
|
- user:this.getUser(),
|
|
|
|
list: [],
|
|
list: [],
|
|
loadMore: true,
|
|
loadMore: true,
|
|
- confirmType: 1,//边民确认类型[1=刷脸,2=指纹]
|
|
|
|
id: '',
|
|
id: '',
|
|
flag: '',
|
|
flag: '',
|
|
};
|
|
};
|
|
@@ -138,7 +90,7 @@ export default {
|
|
if(this.flag == 1) {
|
|
if(this.flag == 1) {
|
|
this.http.request({
|
|
this.http.request({
|
|
url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
- data: { orderId: this.id , confirmType: this.confirmType},
|
|
|
|
|
|
+ data: { orderId: this.id },
|
|
success: resp => {
|
|
success: resp => {
|
|
uni.showToast({ title: '订单确认成功' });
|
|
uni.showToast({ title: '订单确认成功' });
|
|
this.refresh();
|
|
this.refresh();
|
|
@@ -167,11 +119,6 @@ export default {
|
|
if (res.data.data) {
|
|
if (res.data.data) {
|
|
this.list.push(...res.data.data);
|
|
this.list.push(...res.data.data);
|
|
}
|
|
}
|
|
- /* this.list.map(item => {
|
|
|
|
- if (item.cancelPeople == 1) {
|
|
|
|
- item.enterpriseConfirm = 3;
|
|
|
|
- }
|
|
|
|
- }); */
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -179,6 +126,7 @@ export default {
|
|
click(e) {
|
|
click(e) {
|
|
console.log(e);
|
|
console.log(e);
|
|
this.param.peopleConfirmStatus = e.peopleConfirmStatus;
|
|
this.param.peopleConfirmStatus = e.peopleConfirmStatus;
|
|
|
|
+ this.param.cooperEntrustStatus = e.cooperEntrustStatus;
|
|
this.param.applyConfirmStatus = e.applyConfirmStatus;
|
|
this.param.applyConfirmStatus = e.applyConfirmStatus;
|
|
this.param.apply = e.apply;
|
|
this.param.apply = e.apply;
|
|
this.param.finishStatus = e.finishStatus;
|
|
this.param.finishStatus = e.finishStatus;
|
|
@@ -197,56 +145,6 @@ export default {
|
|
this.param.pageNo = 1;
|
|
this.param.pageNo = 1;
|
|
this.list = [];
|
|
this.list = [];
|
|
this.getData();
|
|
this.getData();
|
|
- },
|
|
|
|
- //边民确认订单
|
|
|
|
- confirmOrder(id) {
|
|
|
|
- this.id = id;
|
|
|
|
- this.flag = 1;
|
|
|
|
- uni.navigateTo({url: '/pages/authentication/face'});
|
|
|
|
- },
|
|
|
|
- //边民进口申报确认
|
|
|
|
- applyOrder(id) {
|
|
|
|
- this.id = id;
|
|
|
|
- this.flag = 2;
|
|
|
|
- uni.navigateTo({url: '/pages/authentication/face'});
|
|
|
|
- },
|
|
|
|
- // 取消订单
|
|
|
|
- confirm(id) {
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '是否确认取消订单?',
|
|
|
|
- success: res => {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- this.http.request({
|
|
|
|
- url: '/level-one-server/app/TbOrder/cancelOrder',
|
|
|
|
- data: { orderId: id },
|
|
|
|
- success: resp => {
|
|
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
- this.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 删除订单
|
|
|
|
- del(id) {
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '确认删除该订单?',
|
|
|
|
- success: res => {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- this.http.request({
|
|
|
|
- url: '/level-one-server/app/TbOrder/delete',
|
|
|
|
- data: { id: id },
|
|
|
|
- success: resp => {
|
|
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
- this.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//下拉刷新
|
|
//下拉刷新
|