This commit is contained in:
weipengfei 2023-12-13 16:13:45 +08:00
parent 55433c05ab
commit 4a3f59d2a8
4 changed files with 72 additions and 35 deletions

View File

@ -84,7 +84,7 @@
</view>
<view class='iconfont'
:class='(orderInfo.status == 3 ? "icon-webicon318":"icon-yuandianxiao") + " " +(orderInfo.status > 3 && orderInfo.status != 9 ? "t-color":"")'
:class='(orderInfo.status == 1 ? "icon-webicon318":"icon-yuandianxiao") + " " +(orderInfo.status > 1 && orderInfo.status != 9 ? "t-color":"")'
v-if="orderInfo.order_type == 0"></view>

View File

@ -58,7 +58,17 @@
<view><span class="iconfont">&#xe6bd;</span></view>
</view>
</view>
<view class="popup_group_item" @click="selectStoreClass">
<view class="popup_group_item_label">店铺分类</view>
<view class="popup_group_item_value">
<view class="popup_group_item_message">
<span v-if="setFormData.mer_cate_name"
class="popup_group_item_message_value">{{ setFormData.mer_cate_name }}</span>
<span v-else>请选择店铺分类</span>
</view>
<view><span class="iconfont">&#xe6bd;</span></view>
</view>
</view>
<view class="popup_group_item">
<view class="popup_group_item_label">商品单位</view>
<view class="popup_group_item_value"><input v-model="setFormData.unit_name" type="text"
@ -73,6 +83,11 @@
<platfrom @close="closePlatfrom" :classifiedData="platformClassificationData" @getPlatData="getPlatData">
</platfrom>
</uni-popup>
<!-- 选择店铺分类弹框 -->
<uni-popup ref="select_store" type="bottom">
<store-classification :classifiedData="merchantClassification" :mer_id="merId"
@handleGetSelectArea="handleGetSelectStore" @close="merchantClose"></store-classification>
</uni-popup>
@ -190,6 +205,7 @@
} from "@/libs/uniApi.js";
import avatar from "@/components/yq-avatar/yq-avatar.vue";
import platfrom from "./components/platform.vue";
import storeClassification from '../components/store_classification.vue';
import commodityComponent from "./components/commodity.vue";
import priceComponent from "./components/price.vue";
export default {
@ -197,7 +213,8 @@
avatar,
platfrom,
commodityComponent,
priceComponent
priceComponent,
storeClassification
},
data() {
return {
@ -431,6 +448,7 @@
}).catch(e=>{
console.log(e);
})
},
//
updateCode(e) {
@ -520,6 +538,7 @@
//
handleGetSelectStore(item) {
console.log(item);
this.setFormData.mer_cate_id = item.map(val => val.store_category_id);
this.setFormData.mer_cate_name = item.map(val => val.cate_name).join(',');
this.$refs.select_store.close();

View File

@ -67,7 +67,7 @@
<view v-if="orderList.length > 0">
<block v-if="orderStatus == 0">
<view class='item' v-for="(item,index) in orderList" :key="index">
<view @click='goOrderDetails(item.group_order_id)'>
<view @click='goOrderDetails(item.group_order_id, item)'>
<view class='title acea-row row-between-wrapper'>
<view class="acea-row row-middle left-wrapper">
{{item.group_order_sn}}
@ -155,7 +155,7 @@
<!-- 待发货 待收货 待评价 已完成 -->
<block v-else>
<view class='item' v-for="(item,index) in orderList" :key="index">
<view @click='goOrderDetails(item.order_id)'>
<view @click='goOrderDetails(item.order_id, item)'>
<view class='title acea-row row-between-wrapper'>
<view class="acea-row row-middle left-wrapper" @click.stop="goMall(item)">
<text class="iconfont icon-shangjiadingdan"></text>
@ -263,7 +263,7 @@
<!-- <view v-if="!item.receipt && item.status != -1" class='bnt cancelBnt'
@click.stop='applyInvoice(item.order_id)'>申请开票</view> -->
<block v-if="item.status == 0 || item.status == 9 || item.status == -1">
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'>查看详情</view>
<view class='bnt b-color' @click='goOrderDetails(item.order_id, item)'>查看详情</view>
</block>
<block v-if="item.status == 1">
<view class='bnt cancelBnt'
@ -461,7 +461,8 @@
invoice: false,
add: false,
},
len: 0
len: 0,
product_type: 98
};
},
computed: {
@ -490,6 +491,9 @@
this.isShowAuth = true
}
},
onLoad(options) {
if(options.product_type)this.product_type = options.product_type
},
onReady() {},
mounted: function() {
this.arrlist()
@ -498,7 +502,7 @@
arrlist() {
refundList({
product_type: 98,
product_type: this.product_type,
type: 0,
page: 1,
limit: 1500
@ -582,7 +586,7 @@
getOrderData: function() {
let that = this;
orderData({
product_type: 98
product_type: this.product_type
}).then(res => {
// console.log(res.data)
that.$set(that, 'orderData', res.data);
@ -648,7 +652,7 @@
/**
* 去订单详情
*/
goOrderDetails: function(order_id) {
goOrderDetails: function(order_id, item) {
let self = this
@ -662,13 +666,13 @@
console.log(self.orderStatus)
openOrderSubscribe().then(() => {
uni.hideLoading();
if (self.orderStatus == 0) {
if (self.orderStatus == 0||(item&&item.order_status==1)) {
uni.navigateTo({
url: '/pages/order_details/stay?order_id=' + order_id
url: `/pages/order_details/stay?order_id=${item.group_order_id}&product_type=${this.product_type}`
})
} else {
uni.navigateTo({
url: '/pages/order_details/index?order_id=' + order_id
url: `/pages/order_details/index?order_id=${order_id}`
})
}
}).catch(() => {
@ -676,13 +680,13 @@
})
// #endif
// #ifndef MP
if (self.orderStatus == 0) {
if (self.orderStatus == 0||(item&&item.order_status==1)) {
uni.navigateTo({
url: '/pages/order_details/stay?order_id=' + order_id
url: `/pages/order_details/stay?order_id=${item.group_order_id}&product_type=${this.product_type}`
})
} else {
uni.navigateTo({
url: '/pages/order_details/index?order_id=' + order_id
url: `/pages/order_details/index?order_id=${order_id}`
})
}
// #endif
@ -743,7 +747,7 @@
if (status == 5) {
uni.navigateTo({
url: '/pages/users/refund/list?type=98'
url: '/pages/users/refund/list?type='+this.product_type
})
} else {
if (status == this.orderStatus) return;
@ -770,7 +774,7 @@
groupOrderList({
page: that.page,
limit: that.limit,
product_type: 98
product_type: this.product_type
}).then(res => {
that.isReady = true;
let list = res.data.list || [];
@ -797,7 +801,7 @@
status: arr,
page: that.page,
limit: that.limit,
product_type: 98
product_type: this.product_type
}).then(res => {
let list = res.data.list || [];
let loadend = list.length < that.limit;

View File

@ -89,6 +89,7 @@
import {
postsettle,
} from '@/api/admin.js'
import { Toast } from '../../../libs/uniApi';
export default {
data() {
return {
@ -172,13 +173,20 @@
},
getOrderInfo() {
groupOrderDetail(this.order_id, this.product_type).then(res => {
this.couponData = res.data
this.couponData = res.data;
this.$nextTick(() => {
if (this.couponData.interest !== null) {
this.moerTime(this.couponData.interest.start_time)
}
})
})
}).catch(e=>{
Toast(e);
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 1000)
})
},
SubOrder() {
if (this.couponData.pay_type == 8) {
@ -197,8 +205,8 @@
title: '付款成功'
})
setTimeout(() => {
uni.navigateBack({
delta: 1
uni.navigateTo({
url:`/pages/order_pay_status/index?order_id=${this.order_id}&product_type=${this.product_type}`
})
}, 1000)
}else {
@ -231,14 +239,15 @@
provider: 'wxpay',
orderInfo: jsConfig,
success: (e) => {
uni.navigateBack({
delta: 1
})
setTimeout(() => {
uni.navigateTo({
url:`/pages/order_pay_status/index?order_id=${this.order_id}&msg=${res.message}&product_type=${this.product_type}`
})
}, 1000)
},
fail: (e) => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
let url = '/pages/order_pay_status/index?order_id=' + this.order_id +
'&msg=取消支付' + '&product_type=' + that.product_type;
return that.$util.Tips({
title: '取消支付',
@ -249,7 +258,7 @@
},
complete: () => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
let url = '/pages/order_pay_status/index?order_id=' + this.order_id +
'&msg=取消支付' + '&product_type=' + that.product_type;
return that.$util.Tips({
title: '取消支付',
@ -262,15 +271,20 @@
// #endif
}
// setTimeout(() => {
// uni.navigateBack({
// delta: 1
// })
// }, 1000)
else {
setTimeout(() => {
uni.navigateTo({
url:`/pages/order_pay_status/index?order_id=${this.order_id}&product_type=${this.product_type}`
})
}, 1000)
}
uni.showToast({
title: res.message
})
})
}).catch(e=>{
console.log(e);
Toast(e)
})
}
},