|
@@ -5,7 +5,7 @@
|
|
</view>
|
|
</view>
|
|
<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">广西京东自营店南宁分店</view>
|
|
|
|
|
|
+ <view class="title">{{ item.enterpriseName }}]</view>
|
|
<view class="state" v-if="item.enterpriseConfirm == 0">
|
|
<view class="state" v-if="item.enterpriseConfirm == 0">
|
|
<text class="icon"></text>
|
|
<text class="icon"></text>
|
|
<text>商家未确认</text>
|
|
<text>商家未确认</text>
|
|
@@ -14,7 +14,7 @@
|
|
<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.enterpriseConfirm == 3">
|
|
|
|
|
|
+ <view class="state" v-if="item.enterpriseConfirm == 2">
|
|
<text class="icon" style="color: #f44336"></text>
|
|
<text class="icon" style="color: #f44336"></text>
|
|
<text>已取消</text>
|
|
<text>已取消</text>
|
|
</view>
|
|
</view>
|
|
@@ -22,17 +22,16 @@
|
|
<view class="con">
|
|
<view class="con">
|
|
<view class="productName omit">{{ item.goodsNames }}</view>
|
|
<view class="productName omit">{{ item.goodsNames }}</view>
|
|
<view class="desc omit">
|
|
<view class="desc omit">
|
|
- <text>50吨</text>
|
|
|
|
|
|
+ <text>重量 {{ item.totalWeight }}</text>
|
|
<text>{{ item.tradeAreaName }}</text>
|
|
<text>{{ item.tradeAreaName }}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="price">¥ {{ item.price }}</view>
|
|
|
|
|
|
+ <view class="price">¥ {{ item.totalPrice }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
<view class="op">
|
|
<view class="op">
|
|
<view class="date">2022-12-12:12:12</view>
|
|
<view class="date">2022-12-12:12:12</view>
|
|
<template v-if="item.enterpriseConfirm == 0">
|
|
<template v-if="item.enterpriseConfirm == 0">
|
|
- <view class="an" style="color: #f44336" v-if="user.userType == 2" @click.stop="confirm(item.id, 2, item.enterpriseConfirm)">取消订单</view>
|
|
|
|
- <view class="an" style="color: #4581fb" v-if="user.userType == 3" @click.stop="confirm(item.id, 1)">确认订单</view>
|
|
|
|
|
|
+ <view class="an" style="color: #f44336" v-if="user.userType == 2" @click.stop="confirm(item.id)">取消订单</view>
|
|
</template>
|
|
</template>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -122,43 +121,23 @@ export default {
|
|
this.getData();
|
|
this.getData();
|
|
},
|
|
},
|
|
//通知商家
|
|
//通知商家
|
|
- confirm(id, type, enterpriseConfirm) {
|
|
|
|
- if (type == 1) {
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '是否确认接单?',
|
|
|
|
- success: res => {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- this.http.request({
|
|
|
|
- url: '/level-one-server/app/TbGoodsTransit/updateEnterpriseConfirm',
|
|
|
|
- data: { id: id, enterpriseConfirm: 1 },
|
|
|
|
- method: 'POST',
|
|
|
|
- success: resp => {
|
|
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
- this.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '是否确认取消订单?',
|
|
|
|
- success: res => {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- this.http.request({
|
|
|
|
- url: '/level-one-server/app/TbOrder/cancelOrder',
|
|
|
|
- data: { orderId: id, orderStatus: enterpriseConfirm },
|
|
|
|
- success: resp => {
|
|
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
- this.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ 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();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//下拉刷新
|
|
//下拉刷新
|