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 }} + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + 列表导出 + + + 导出订单 + 导出发货单 + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + +
+ +
+
+ + + + + + + + + + + {{ formValidate.coupon_price }} + + + {{ formValidate.pay_price }} + + + + 确定 + + + + + + + {{ original.delivery_name }} + + + {{ original.delivery_id }} + + + + 手动发货 + {{orderType == 1 ? '虚拟发货' : '无需物流'}} + 电子面单打印 + 自己配送 + 同城配送 + + + + + + + + + + + + + + + + + + + + + + + + + + 预览 + + + + + + + + + + + + + + + + + + +

可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!

+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + 取 消 + 提交 + +
+ + + + + + + + + + + + + +