|
@@ -64,7 +64,7 @@
|
|
|
style="width: 180px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="下单人手机号" prop="userPhone" label-width="140px">
|
|
|
+ <el-form-item label="买家手机号" prop="userPhone" label-width="140px">
|
|
|
<el-input
|
|
|
v-model="queryParams.userPhone"
|
|
|
placeholder="请输入下单用户手机号"
|
|
@@ -106,29 +106,29 @@
|
|
|
<el-option label="已处理售后" :value="140"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item label="售后状态" prop="afterSaleStatus">
|
|
|
+ <el-form-item label="售后状态" prop="orderStatusKey">
|
|
|
<el-select
|
|
|
- v-model="queryParams.afterSaleStatus"
|
|
|
+ v-model="queryParams.orderStatusKey"
|
|
|
placeholder="请选择支付方式"
|
|
|
style="width: 180px"
|
|
|
>
|
|
|
- <el-option label="未申请" value="0"> </el-option>
|
|
|
- <el-option label="已申请" value="1"> </el-option>
|
|
|
- <el-option label="审核失败" value="2"> </el-option>
|
|
|
- <el-option label="审核成功(退款中)" value="3"> </el-option>
|
|
|
+ <el-option label="已完成" value="ALREADY"> </el-option>
|
|
|
+ <el-option label="已拒绝" value="ALREADY_REFUSE"> </el-option>
|
|
|
+ <el-option label="待审核" value="WAIT_AUDIT"> </el-option>
|
|
|
+ <!-- <el-option label="审核成功(退款中)" value="3"> </el-option>
|
|
|
<el-option label="退款成功" value="4"> </el-option>
|
|
|
- <el-option label="退款失败(联系客服解决)" value="5"> </el-option>
|
|
|
+ <el-option label="退款失败(联系客服解决)" value="5"> </el-option> -->
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="支付方式">
|
|
|
+ <el-form-item label="支付方式" prop="paymentType">
|
|
|
<el-select
|
|
|
v-model="queryParams.paymentType"
|
|
|
placeholder="请选择支付方式"
|
|
|
style="width: 180px"
|
|
|
>
|
|
|
- <el-option label="支付宝" value="ALIPAY"> </el-option>
|
|
|
- <el-option label="微信支付" value="WECHAT"> </el-option>
|
|
|
+ <el-option label="支付宝" value="alipay"> </el-option>
|
|
|
+ <el-option label="微信支付" value="wechat"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -177,7 +177,8 @@
|
|
|
<el-image :src="scope.row.skuPic" style="width: 60px; height: 60px"> </el-image>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="商品类型" align="center" prop="categoryName">
|
|
|
+
|
|
|
+ <el-table-column label="商品分类" align="center" prop="categoryName">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="单价/数量" align="center" prop="price">
|
|
|
<template slot-scope="scope">
|
|
@@ -189,6 +190,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="包装方式" align="center" prop="packageType">
|
|
|
</el-table-column>
|
|
|
+
|
|
|
<el-table-column label="规格名称" align="center" prop="specsName" />
|
|
|
<el-table-column label="规格值" align="center" prop="specsValue" />
|
|
|
<el-table-column label="实付金额(元)" align="center" prop="goodsAmount">
|
|
@@ -207,6 +209,7 @@
|
|
|
label="商品名称"
|
|
|
align="center"
|
|
|
prop="skuName"
|
|
|
+ width="150"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
</el-table-column>
|
|
@@ -249,6 +252,20 @@
|
|
|
}}
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
+ <el-table-column label="支付方式" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.paymentType == "alipay"
|
|
|
+ ? "支付宝支付"
|
|
|
+ : scope.row.paymentType == "wechat"
|
|
|
+ ? "微信支付"
|
|
|
+ : scope.row.paymentType == "card"
|
|
|
+ ? "银行卡支付"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<el-table-column label="配送方式" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{
|
|
@@ -304,7 +321,7 @@
|
|
|
<pagination
|
|
|
v-show="total > 0"
|
|
|
:total="total"
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
+ :page.sync="queryParams.pageNo"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
@pagination="getList"
|
|
|
/>
|
|
@@ -341,18 +358,24 @@
|
|
|
<el-descriptions-item label="申请原因">{{
|
|
|
detailInfo.dxAfterSaleVO ? detailInfo.dxAfterSaleVO.reason : ""
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="申请时间">{{
|
|
|
- detailInfo.dxAfterSaleVO ? detailInfo.dxAfterSaleVO.createTime : ""
|
|
|
- }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="申请时间">
|
|
|
+ {{
|
|
|
+ detailInfo.dxAfterSaleVO ? parseTime(detailInfo.dxAfterSaleVO.createTime) : ""
|
|
|
+ }}
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="问题描述">{{
|
|
|
detailInfo.dxAfterSaleVO ? detailInfo.dxAfterSaleVO.problemDesc : ""
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="实际退款金额(元)">{{
|
|
|
detailInfo.dxAfterSaleVO ? detailInfo.dxAfterSaleVO.actualRefundAmount : ""
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="退款时间">{{
|
|
|
- detailInfo.dxAfterSaleVO ? detailInfo.dxAfterSaleVO.refundAuditTime : ""
|
|
|
- }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="退款时间">
|
|
|
+ {{
|
|
|
+ detailInfo.dxAfterSaleVO
|
|
|
+ ? parseTime(detailInfo.dxAfterSaleVO.refundAuditTime)
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
|
|
|
<el-descriptions title="订单详情" column="3">
|
|
@@ -410,22 +433,22 @@
|
|
|
<el-descriptions-item label="支付方式">
|
|
|
{{
|
|
|
detailInfo
|
|
|
- ? detailInfo.paymentType == "ALIPAY"
|
|
|
+ ? detailInfo.paymentType == "alipay"
|
|
|
? "支付宝"
|
|
|
- : detailInfo.paymentType == "WECHAT"
|
|
|
+ : detailInfo.paymentType == "wechat"
|
|
|
? "微信支付"
|
|
|
- : detailInfo.paymentType == "CARD"
|
|
|
+ : detailInfo.paymentType == "card"
|
|
|
? "银行卡支付"
|
|
|
: ""
|
|
|
: ""
|
|
|
}}</el-descriptions-item
|
|
|
>
|
|
|
- <el-descriptions-item label="下单时间">{{
|
|
|
- detailInfo ? detailInfo.createTime : ""
|
|
|
- }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="下单时间">
|
|
|
+ {{ detailInfo ? parseTime(detailInfo.createTime) : "" }}
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="付款时间">
|
|
|
- {{ detailInfo ? detailInfo.paymentTime : "" }}</el-descriptions-item
|
|
|
- >
|
|
|
+ {{ detailInfo ? parseTime(detailInfo.paymentTime) : "" }}
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="担保服务费(元)">
|
|
|
{{ detailInfo ? detailInfo.serviceFee : "" }}
|
|
|
</el-descriptions-item>
|
|
@@ -534,8 +557,7 @@ import { statisticsAfterSaleOrder } from "@/api/manage/order";
|
|
|
import { printOrder, equipmentList } from "@/api/manage/equipment";
|
|
|
import Utils from "@/utils/derive";
|
|
|
export default {
|
|
|
- name: "Config",
|
|
|
- // dicts: ["sys_yes_no"],
|
|
|
+ name: "afterSaleOrder",
|
|
|
data() {
|
|
|
return {
|
|
|
spuList: [],
|
|
@@ -564,6 +586,12 @@ export default {
|
|
|
queryParams: {
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
|
+ spuName: "",
|
|
|
+ userOrderSn: "",
|
|
|
+ userPhone: "",
|
|
|
+ createTime: "",
|
|
|
+ orderStatusKey: "",
|
|
|
+ paymentType: "",
|
|
|
},
|
|
|
printForm: {
|
|
|
sn: "",
|
|
@@ -579,17 +607,13 @@ export default {
|
|
|
{ header: "规格名称", key: "specsName", width: 20 },
|
|
|
{ header: "规格值", key: "specsValue", width: 20 },
|
|
|
{ header: "实付金额(元)", key: "goodsAmount", width: 20 },
|
|
|
- { header: "运费", key: "freightFee", width: 20 },
|
|
|
- { header: "订单状态", key: "orderStatus", width: 20 },
|
|
|
{ header: "售后状态", key: "afterSaleStatus", width: 20 },
|
|
|
],
|
|
|
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
- rules: {
|
|
|
- configValue: [{ required: true, message: "参数键值不能为空", trigger: "blur" }],
|
|
|
- },
|
|
|
+ rules: {},
|
|
|
orderStatistics: {},
|
|
|
mergeObj: {}, // 用来记录需要合并行的下标
|
|
|
selectList: [],
|
|
@@ -613,42 +637,35 @@ export default {
|
|
|
},
|
|
|
printSubmitForm() {
|
|
|
this.printForm.id = this.selectList.toString();
|
|
|
- printOrder(this.printForm)
|
|
|
- .then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.equipmentOpen = false;
|
|
|
- this.$modal.msgSuccess("操作成功!");
|
|
|
- } else {
|
|
|
- this.equipmentOpen = false;
|
|
|
- this.$modal.msgError(res.msg);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
+ printOrder(this.printForm).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.equipmentOpen = false;
|
|
|
+ this.$modal.msgSuccess("操作成功!");
|
|
|
+ } else {
|
|
|
this.equipmentOpen = false;
|
|
|
- this.$modal.msgError(err);
|
|
|
- });
|
|
|
+ this.$modal.msgError(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
printOrderBtn() {
|
|
|
this.equipmentOpen = true;
|
|
|
},
|
|
|
getstatisticsAfterSaleOrder() {
|
|
|
- statisticsAfterSaleOrder()
|
|
|
- .then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.orderStatistics = res.data;
|
|
|
- console.log(this.orderStatistics);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- this.$modal.msgError(err);
|
|
|
- });
|
|
|
+ statisticsAfterSaleOrder().then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.orderStatistics = res.data;
|
|
|
+ console.log(this.orderStatistics);
|
|
|
+ } else {
|
|
|
+ this.$modal.msgError(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
/** 查询参数列表 */
|
|
|
getList() {
|
|
|
this.selectList = [];
|
|
|
this.loading = true;
|
|
|
- queryAfterSalePage(this.addDateRange(this.queryParams, this.dateRange))
|
|
|
- .then((response) => {
|
|
|
+ queryAfterSalePage(this.addDateRange(this.queryParams, this.dateRange)).then(
|
|
|
+ (response) => {
|
|
|
let list = response.data.records;
|
|
|
let totalList = [];
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
@@ -675,14 +692,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
this.spuList = totalList;
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
+ console.log("loading", this.loading);
|
|
|
+ }
|
|
|
+ );
|
|
|
},
|
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
if (
|
|
@@ -714,17 +729,14 @@ export default {
|
|
|
this.title = "商品详情";
|
|
|
this.open = true;
|
|
|
this.dialogLoding = true;
|
|
|
- afterSaleOrderInfo(record.id)
|
|
|
- .then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.detailInfo = res.data;
|
|
|
- this.dialogLoding = false;
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
+ afterSaleOrderInfo(record.id).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.detailInfo = res.data;
|
|
|
+ this.dialogLoding = false;
|
|
|
+ } else {
|
|
|
this.dialogLoding = false;
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
@@ -757,7 +769,7 @@ export default {
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
+ this.queryParams.pageNo = 1;
|
|
|
this.getList();
|
|
|
},
|
|
|
/** 重置按钮操作 */
|