From 6ede4db38359e477773289ce1e0a145740717f27 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Thu, 16 Nov 2023 14:22:51 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=88=86=E9=94=80?=
=?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/order.js | 4 +-
src/api/promoter.js | 2 -
src/libs/constants.js | 30 +
src/views/order/orderDetails.vue | 6 +-
src/views/promoter/order/index.vue | 1342 +++++++++++++++++++++++++---
5 files changed, 1231 insertions(+), 153 deletions(-)
create mode 100644 src/libs/constants.js
diff --git a/src/api/order.js b/src/api/order.js
index 1374736..56a2658 100644
--- a/src/api/order.js
+++ b/src/api/order.js
@@ -11,8 +11,8 @@ export function orderListApi(data) {
/**
* @description 订单 -- 表头
*/
-export function chartApi() {
- return request.get('store/order/chart')
+export function chartApi(data) {
+ return request.get('store/order/chart', data)
}
/**
* @description 订单 -- 卡片
diff --git a/src/api/promoter.js b/src/api/promoter.js
index 1975ed2..f0b8247 100644
--- a/src/api/promoter.js
+++ b/src/api/promoter.js
@@ -10,5 +10,3 @@ export function setPromoterConfig(data) {
return request.get('promoter/set_config',data)
}
-
-
diff --git a/src/libs/constants.js b/src/libs/constants.js
new file mode 100644
index 0000000..62b8b4c
--- /dev/null
+++ b/src/libs/constants.js
@@ -0,0 +1,30 @@
+
+export const switchStatus = [
+ { label: '开启', value: 1 },
+ { label: '关闭', value: 0 }
+]
+
+export const fromList = {
+ title: '选择时间',
+ custom: true,
+ fromTxt: [
+ { text: '全部', val: '' },
+ { text: '今天', val: 'today' },
+ { text: '昨天', val: 'yesterday' },
+ { text: '最近7天', val: 'lately7' },
+ { text: '最近30天', val: 'lately30' },
+ { text: '本月', val: 'month' },
+ { text: '本年', val: 'year' }
+ ]
+}
+
+export const statusList = {
+ title: '状态',
+ custom: true,
+ fromTxt: [
+ { text: '全部', val: '' },
+ { text: '待审核', val: '0' },
+ { text: '审核已通过', val: '1' },
+ { text: '审核未通过', val: '2' }
+ ]
+}
diff --git a/src/views/order/orderDetails.vue b/src/views/order/orderDetails.vue
index d18a92f..7113107 100644
--- a/src/views/order/orderDetails.vue
+++ b/src/views/order/orderDetails.vue
@@ -17,7 +17,7 @@
订单编号:{{ orderDetailList.order_sn }}
-
+
- 分销订单
+
+
+
+
+
+
+ 全部 {{ '(' +orderChartType.all?orderChartType.all:0 + ')' }}
+ 待付款 {{ '(' +orderChartType.unpaid?orderChartType.unpaid:0+ ')' }}
+ 待发货 {{ '(' +orderChartType.unshipped?orderChartType.unshipped:0+ ')' }}
+ 待收货 {{ '(' +orderChartType.untake?orderChartType.untake:0+ ')' }}
+ 待评价 {{ '(' +orderChartType.unevaluate?orderChartType.unevaluate:0+ ')' }}
+ 交易完成 {{ '(' +orderChartType.complete?orderChartType.complete:0+ ')' }}
+ 已退款 {{ '(' +orderChartType.refund?orderChartType.refund:0+ ')' }}
+ 已删除 {{ '(' +orderChartType.del?orderChartType.del:0+ ')' }}
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 列表导出
+
+
+ 导出订单
+ 导出发货单
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ props.row.total_price | filterEmpty }}
+
+
+ {{ props.row.create_time }}
+
+
+ {{ props.row.mark | filterEmpty }}
+
+
+ {{ props.row.remark | filterEmpty }}
+
+
+
+
+
+
+
+
+ 选中本页
+ 选中全部
+
+
+
+
+
+ changeOne(v,scope.row)" />
+
+
+
+
+
+ 用户已删除
+
+
+
+
+ {{scope.row.user&&scope.row.user.nickname +'/'+ scope.row.uid}}
+
+
+
+
+
+
+
+
+
+
{{ val.cart_info.product.store_name + ' | ' }}{{ val.cart_info.productAttr.sku }}
+
+ {{ '¥'+ val.cart_info.productPresellAttr.presell_price + ' x '+ val.product_num }}
+ {{ '¥'+ val.cart_info.productAssistAttr.assist_price + ' x '+ val.product_num }}
+ {{ '¥'+ val.cart_info.productAttr.price + ' x '+ val.product_num }}
+ (-{{ val.product_num - val.refund_num }})
+
+
+
+
+
+
+ {{ scope.row.pay_price }}
+ 尾款:{{ scope.row.finalOrder.pay_price }}
+
+
+
+
+ {{ scope.row.pay_type | orderPayType }}
+ --
+
+
+
+
+ {{ scope.row.paid === 0 ? "未支付" : "已支付" }}
+
+
+
+
+
+ 待付款
+
+ {{ scope.row.status | orderStatusFilter }}
+ {{ scope.row.status | takeOrderStatusFilter }}
+
+
+ 已删除
+
+
+
+
+
+ {{ scope.row.spread && scope.row.spread.nickname || '无' }}
+
+
+
+
+ {{ scope.row.TopSpread && scope.row.TopSpread.nickname || '无' }}
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formValidate.coupon_price }}
+
+
+ {{ formValidate.pay_price }}
+
+
+
+
+
+
+
+
+ {{ original.delivery_name }}
+
+
+ {{ original.delivery_id }}
+
+
+
+ 手动发货
+ {{orderType == 1 ? '虚拟发货' : '无需物流'}}
+ 电子面单打印
+ 自己配送
+ 同城配送
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 预览
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!
+
+
+
+
+
+
+
+
+
+
+
{{scope.row.cart_info.product.store_name}}
+
+
+
+
+
+ {{scope.row.cart_info.productAttr.sku}}
+
+
+
+
+ {{scope.row.cart_info.productAttr.price}}
+
+
+
+
+ {{scope.row.stock_num}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+