Commit e712f302 authored by 罗超's avatar 罗超

1

parent 2ac85cb5
......@@ -22,7 +22,18 @@
<view class="title" v-if="scrollTop > 50">订单详情</view>
</view>
<view class="status" :style="[headStyle]">
<view class="status-title">{{ orders.ReOrderStatusName }}</view>
<view class="status-title" v-if="orders.ReOrderStatus === 1"
>待审核</view
>
<view class="status-title" v-if="orders.ReOrderStatus === 2"
>待买家处理</view
>
<view class="status-title" v-if="orders.ReOrderStatus === 3"
>待卖家处理</view
>
<view class="status-title" v-if="orders.ReOrderStatus === 6"
>已完成</view
>
<view
class="sub-title"
v-if="
......@@ -34,7 +45,7 @@
>
</view>
</view>
<view class="block address">
<!-- <view class="block address">
<view class="icon">
<u-icon name="location-o" color="#111" size="40"></u-icon>
</view>
......@@ -50,9 +61,9 @@
}}{{ orders.OrderInfo.ShoppingAddress }}</view
>
</view>
</view>
</view> -->
<view class="block goods">
<view class="item" >
<view class="item">
<view style="display: flex">
<image
:src="orders.OrderInfo.CoverImagePath"
......@@ -67,7 +78,7 @@
<view class="good-attr">
<text>数量:{{ orders.OrderInfo.Number }}</text>
<text>
{{ orders.OrderInfo.SpecificationList.join(',') }}
{{ orders.OrderInfo.SpecificationList.join(",") }}
</text>
</view>
<view
......@@ -79,7 +90,8 @@
"
@click.native.stop="goUrl(orders.OrderInfo.FreeShippingUrl)"
v-if="
orders.OrderInfo.FreeShippingRemarks != null && orders.OrderInfo.FreeShippingRemarks != ''
orders.OrderInfo.FreeShippingRemarks != null &&
orders.OrderInfo.FreeShippingRemarks != ''
"
>
<view
......@@ -95,7 +107,9 @@
</Text>
</view>
</view>
<view class="good-price">{{ orders.OrderInfo.Final_Price }}</view>
<view class="good-price"
>{{ orders.OrderInfo.Final_Price }}</view
>
</view>
</view>
<template v-for="(e, ei) in expressInfo">
......@@ -162,126 +176,127 @@
<view class="content">{{ orders.Remark }}</view>
</view>
</view>
<view class="order-info-item">
<!-- <view class="order-info-item">
<view class="field">
<view class="label">支付方式:</view>
<view class="content">{{ orders.OrderInfo.PaymentWayName }}</view>
</view>
</view>
</view> -->
</view>
<view class="block">
<view class="order-info-item">
<view class="field">
<view class="label">实付金额</view>
<view class="content right">¥{{ orders.OrderInfo.Income }}</view>
<view class="content right">¥{{ orders.Income }}</view>
</view>
<view class="field">
<view class="label">申请退款</view>
<view class="content right">¥{{ orders.OrderInfo.Refund }}</view>
<view class="content right">¥{{ orders.Refund }}</view>
</view>
<view class="field">
<view class="label">实际退款</view>
<view class="content right">¥{{ orders.OrderInfo.RefundActual }}</view>
<view class="content right">¥{{ orders.RefundActual }}</view>
</view>
<view
style="width: 100%; height: 1px; background: #f5f5f5; margin: 5px 0"
></view>
</view>
</view>
<view style="padding: 12px" v-if="recommend.length > 0">
<goodlist :list="recommend"></goodlist>
</view>
<view class="btn-box">
<view class="item">
<u-button
shape="circle"
size="medium"
v-if="orders.OrderStatus === 1"
@click="Offpayment"
v-if="orders.ReOrderStatus === 1"
@click="agree"
:custom-style="themCustomStyle"
>线下付款</u-button
>同意</u-button
>
</view>
<view class="item">
<u-button
shape="circle"
size="medium"
v-if="orders.OrderStatus === 2"
@click="
jumpPage(`/pages/MallMange/sendGoods?OrderId=${orders.OrderId}`)
"
v-if="orders.ReOrderStatus === 1"
@click="disagree"
:custom-style="themCustomStyle"
>发货</u-button
>拒绝</u-button
>
</view>
<view class="item">
<u-button
shape="circle"
size="medium"
v-if="orders.OrderStatus === 2"
v-if="orders.ReOrderStatus === 3 && orders.Type == 2"
@click="
jumpPage(
`/pages/MallMange/sendGoods?OrderId=${orders.OrderId}&modify=true`
`/pages/MallMange/sendGoodsSaleAfter?ReOrderId=${data.ReOrderId}`
)
"
:custom-style="themCustomStyle"
>修改快递单号</u-button
>发货</u-button
>
</view>
<view class="item">
<u-button
shape="circle"
size="medium"
v-if="orders.OrderStatus === 2 || orders.OrderStatus === 1"
@click="OrderCancel"
v-if="orders.ReOrderStatus === 3 && orders.Type == 1"
@click="shouHuo"
:custom-style="themCustomStyle"
>强制取消</u-button
>收货</u-button
>
</view>
<view class="item">
<u-button
shape="circle"
size="medium"
v-if="orders.OrderStatus === 3"
@click="ConfirmReceipt"
v-if="orders.ReOrderStatus === 4 && orders.Type == 1"
@click="dkOpenDig"
:custom-style="themCustomStyle"
>确认收货</u-button
>打款</u-button
>
</view>
<view class="item">
<u-button
shape="circle"
size="medium"
v-if="orders.OrderStatus === 3"
@click="
jumpPage(
`/pages/MallMange/modifyAddress?OrderId=${orders.OrderId}`
)
"
:custom-style="themCustomStyle"
>修改地址</u-button
>
</view>
<!-- <view
class="item"
v-if="orders.OrderStatus == '3' && orders.PresentFXGrade != 1"
</view>
<!-- 待处理 -->
<u-modal
v-model="handleModal"
:show-cancel-button="true"
@confirm="regionsubmitForm"
contentSlot
title="选择退货地址"
>
<u-button
<view class="radioBox">
<u-radio-group v-model="SetOrderMsg.DeliveryId">
<u-radio
shape="circle"
size="medium"
:custom-style="customStyle"
@click="openAfterHandler"
>申请售后</u-button
v-for="(item, index) in regionlist"
:key="index"
:name="item.ID"
>
</view> -->
</view>
<after-sale
:list="orders.DetailList"
v-if="showAfter"
@close="closeAfterHandler"
></after-sale>
<view class="radioItem">
<view>{{ item.Name }}-{{ item.Mobile }}</view>
<view>{{ item.Address }}</view>
</view>
</u-radio>
</u-radio-group>
</view>
</u-modal>
<!-- 打款 -->
<u-modal
v-model="dkModal"
:show-cancel-button="true"
@confirm="SaleForRefunds"
contentSlot
title="确认已收到货"
>
<view class="dkBox">
退款金额¥
<input type="number" class="dkInput" v-model="dkMsg.Refund" />
元将直接返还给用户!
</view>
</u-modal>
<u-toast ref="uToast" />
</scroll-view>
</template>
......@@ -310,7 +325,6 @@ export default {
padding: "0 30rpx",
},
scrollTop: 0,
recommend: [],
prevPage: "",
themCustomStyle: {
marginLeft: "20px",
......@@ -319,6 +333,24 @@ export default {
},
expressInfo: [],
showAfter: false,
regionlist: [],
regiontotal: 1,
handleModal: false,
dkModal: false,
regionMsg: {
pageIndex: 1,
pageSize: 20,
Name: "",
},
SetOrderMsg: {
ReOrderId: 0,
Type: 0,
DeliveryId: "",
},
//打款
dkMsg: {
Refund: 0,
},
};
},
onLoad(option) {
......@@ -383,98 +415,98 @@ export default {
}
);
},
goExpressHandler(express, no, id) {
uni.navigateTo({
url:
"/pages/order/express?express=" +
express +
"&no=" +
no +
"&address=" +
this.orders?.OrderInfo?.DistrictAddress +
this.orders?.OrderInfo?.ShoppingAddress +
"&id=" +
id,
});
},
// 强制取消
OrderCancel() {
//售后订单审核-同意
agree() {
let that = this;
let text = "";
if (this.orders.OrderStatus == 1) {
text = "确认取消?";
} else if (this.orders.OrderStatus == 2) {
text = "确认取消?客人付款金额将原路退回。";
}
this.SetOrderMsg.Type = 1;
this.SetOrderMsg.ReOrderId = this.orders.ReOrderId;
uni.showModal({
title: "提示",
content: text,
content: "是否同意?",
success: function (res) {
if (res.confirm) {
that.requestAdmin(
"/api/order/SetOrderForcedToCancel",
{ OrderId: that.orders.OrderId },
that.handleModal = true;
that.getLogisticsDeliveryPage();
}
},
});
},
//退货地址列表
getLogisticsDeliveryPage() {
this.requestAdmin(
"/api/MallBase/GetLogisticsDeliveryPage",
this.regionMsg,
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
duration: 2000,
});
that.getData();
this.regionlist = res.data.pageData;
this.regiontotal = res.data.count;
}
}
);
}
},
regionsubmitForm() {
let that = this;
if (this.SetOrderMsg.DeliveryId == "") {
uni.showToast({
icon: "none",
title: "请选择退货地址",
});
return;
}
this.requestAdmin(
"/api/order/SetOrderAfterSaleAudit",
this.SetOrderMsg,
(res) => {
uni.showToast({
title: "操作成功",
});
that.getData();
},
//确认收货
ConfirmReceipt() {
let msg = {
OrderId: this.orders.OrderId,
Type: 5,
};
null
);
},
// 售后订单审核-拒绝
disagree() {
this.SetOrderMsg.ReOrderId = this.orders.ReOrderId;
this.SetOrderMsg.Type = 2;
this.SetOrderMsg.DeliveryId = "";
let that = this;
uni.showModal({
title: "提示",
content: "是否确认收货?",
content: "确认拒绝?",
success: function (res) {
if (res.confirm) {
that.requestAdmin("/api/order/SetOrderOperation", msg, (res) => {
if (res.resultCode == 1) {
that.requestAdmin(
"/api/order/SetOrderAfterSaleAudit",
that.SetOrderMsg,
(res) => {
uni.showToast({
title: "操作成功",
icon: "success",
duration: 2000,
});
that.getData();
}
});
},
null
);
}
},
});
},
//线下付款
Offpayment() {
// 卖家收货
shouHuo() {
let that = this;
uni.showModal({
title: "提示",
content: "确认转为线下付款,转后无法恢复!",
content: "确认收货?",
success: function (res) {
if (res.confirm) {
that.requestAdmin(
"/api/order/SetOrderOfflinePayment",
{ OrderId: that.orders.OrderId },
(_res) => {
if (_res.resultCode === 1) {
"/api/order/SetOrderReceivingForReturnsAndRefunds",
{ ReOrderId: that.orders.ReOrderId },
(res) => {
uni.showToast({
title: "操作成功",
icon: "success",
duration: 2000,
});
that.getData();
}
},
null
);
......@@ -482,11 +514,34 @@ export default {
},
});
},
// 打款
dkOpenDig() {
this.dkMsg = {
Refund: this.orders.Refund,
ReOrderId: this.orders.ReOrderId,
};
this.dkModal = true;
},
// 确认打款
SaleForRefunds() {
let that = this;
this.requestAdmin(
"/api/order/SetOrderAfterSaleForRefunds",
this.dkMsg,
(res) => {
uni.showToast({
title: "操作成功",
});
that.getData();
},
null
);
},
},
};
</script>
<style>
<style lang="scss">
.orderdetail {
overflow: hidden;
background: #f3f4f6;
......@@ -709,4 +764,27 @@ export default {
border: none;
outline: none;
}
.radioBox {
box-sizing: border-box;
padding: 30rpx;
.radioItem {
font-size: 24rpx;
color: #000;
margin-left: 20rpx;
}
}
.dkBox {
box-sizing: border-box;
padding: 30rpx;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
font-size: 26rpx;
.dkInput {
width: 100rpx;
background-color: #f7f7f7;
margin: 0 10rpx;
}
}
</style>
\ No newline at end of file
......@@ -53,7 +53,7 @@
<text>(含运费¥{{ data.FreightMoney.toFixed(2) }})</text>
</view>
<view class="btnBox">
<button class="btn" @click="modal = true">备注</button>
<button class="btn" @click="showRemark">备注</button>
<button class="btn" v-if="data.OrderStatus === 1" @click="Offpayment">
线下付款
</button>
......@@ -177,6 +177,9 @@ export default {
.toString();
return str;
},
showRemark(){
this.modal = true;
},
// 修改备注
setOrderInfo() {
this.modal = false;
......
......@@ -248,7 +248,7 @@ export default {
let that = this;
uni.showModal({
title: "提示",
content: "是否拒绝?",
content: "确认拒绝?",
success: function (res) {
if (res.confirm) {
that.requestAdmin(
......
......@@ -17,7 +17,7 @@
</view>
</view>
<view class="searchBox flex-between">
<view class="search flex-center">
<view class="search flex-center" @click="jumpSearch">
<u-icon name="search"></u-icon>
<view>搜索</view>
</view>
......@@ -271,21 +271,6 @@ export default {
day,
valueS: [9999, month - 1, day - 1],
valueE: [9999, month - 1, day - 1],
list: [
{
name: "全部",
},
{
name: "待收货",
},
{
name: "待付款",
},
{
name: "待评价",
count: 5,
},
],
currentTab: 0,
page_count: 1,
msg: {
......@@ -339,6 +324,11 @@ export default {
};
},
methods: {
jumpSearch(){
uni.navigateTo({
url: '/pages/MallMange/orderSearch'
});
},
goOrderSearch(){
uni.navigateTo({
url: '/pages/MallMange/orderSearch?orderType='+this.orderType
......
......@@ -219,9 +219,6 @@
</view>
</view>
</view>
<view style="padding: 12px" v-if="recommend.length > 0">
<goodlist :list="recommend"></goodlist>
</view>
<view class="btn-box">
<view class="item">
<u-button
......@@ -334,7 +331,6 @@ export default {
padding: "0 30rpx",
},
scrollTop: 0,
recommend: [],
prevPage: "",
themCustomStyle: {
marginLeft: "20px",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment