From ed70473134a03e93f45f2cd5112d16800f2ccb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 8 Sep 2022 16:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A8=A1=E6=9D=BF=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E9=80=80=E6=AC=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/api/admin.js | 9 + .../admin/components/PriceChange/index.vue | 10 +- .../uni-app/pages/admin/orderDetail/index.vue | 1740 +++++++++-------- .../uni-app/pages/admin/orderList/index.vue | 1118 +++++------ 4 files changed, 1455 insertions(+), 1422 deletions(-) diff --git a/template/uni-app/api/admin.js b/template/uni-app/api/admin.js index e853b8094..bca87ec81 100644 --- a/template/uni-app/api/admin.js +++ b/template/uni-app/api/admin.js @@ -175,4 +175,13 @@ export function setAdminRefundRemark(data) { return request.post("admin/refund_order/remark", data, { login: true }); +} + +/** + * 订单同意退货 + */ +export function agreeExpress(data) { + return request.post("admin/order/agreeExpress", data, { + login: true + }); } \ No newline at end of file diff --git a/template/uni-app/pages/admin/components/PriceChange/index.vue b/template/uni-app/pages/admin/components/PriceChange/index.vue index 74be9ce85..2e9eac6f1 100644 --- a/template/uni-app/pages/admin/components/PriceChange/index.vue +++ b/template/uni-app/pages/admin/components/PriceChange/index.vue @@ -2,16 +2,10 @@ - {{ - status == 0 - ? orderInfo.refund_status === 1 - ? $t(`立即退款`) - : $t(`一键改价`) - : $t(`订单备注`) - }} + {{ status == 0 ? $t(`一键改价`) : status == 1 ? $t(`订单备注`) : $t(`立即退款`) }} - + - - - {{ title }} - - {{$t(`订单`)}}:{{ orderInfo.order_id }} - - {{ orderInfo._add_time }} - - - - - - - - - {{ orderInfo.nickname }} - - - - {{ orderInfo.real_name - }}{{ orderInfo.user_phone }} - - {{$t(`复制`)}} - - - {{$t(`复制`)}} - - - {{ orderInfo.user_address }} - - - - - - - - - - - - - {{ item.productInfo.store_name }} - - {{ item.productInfo.attrInfo.suk }} - - - - {{$t(`¥`)}}{{ item.productInfo.price }} - x{{ item.cart_num }} - {{$t(`¥`)}}{{ item.productInfo.ot_price }} - - - - - {{$t(`共`)}}{{ orderInfo.total_num }}{{$t(`件商品,应支付`)}} - {{$t(`¥`)}}{{ orderInfo.pay_price }} ( {{$t(`邮费`)}} {{$t(`¥`)}}{{ - orderInfo.pay_postage - }} - ) - - - - {{$t(`订单编号`)}}: - - {{ orderInfo.order_id - }} - - {{$t(`复制`)}} - - - {{$t(`复制`)}} - - - - - {{$t(`下单时间`)}}: - {{ orderInfo._add_time }} - - - {{$t(`支付状态`)}}: - - {{ orderInfo.paid == 1 ? $t(`已支付`) : $t(`未支付`) }} - - - - {{$t(`支付方式`)}}: - {{ payType }} - - - {{$t(`买家留言`)}}: - {{ orderInfo.mark }} - - - - - - {{item.title}}: - - - - - {{item.title}}: - {{item.value}} - - - - - {{$t(`支付金额`)}}: - {{$t(`¥`)}}{{ orderInfo.total_price }} - - - {{$t(`优惠券抵扣`)}}: - -{{$t(`¥`)}}{{ orderInfo.coupon_price }} - - - {{$t(`运费`)}}: - {{$t(`¥`)}}{{ orderInfo.pay_postage }} - - - {{$t(`实付款`)}}:{{$t(`¥`)}}{{ orderInfo.pay_price }} - - - - - - {{$t(`配送方式`)}}: - -{{$t(`快递`)}} - - {{$t(`送货`)}} - - - {{$t(`快递公司`)}}: - {{$t(`送货人`)}}: - {{ orderInfo.delivery_name }} - - - {{$t(`快递单号`)}}: - {{$t(`送货人电话`)}}: - - {{ orderInfo.delivery_id}} - - {{$t(`复制`)}} - - - {{$t(`复制`)}} - - - - - - - - - {{$t(`一键改价`)}} - - - {{$t(`立即退款`)}} - - {{$t(`订单备注`)}} - - {{$t(`确认付款`)}} - - {{$t(`去发货`)}} - - - - - - - diff --git a/template/uni-app/pages/admin/orderList/index.vue b/template/uni-app/pages/admin/orderList/index.vue index cf0f7a891..75531d7f7 100644 --- a/template/uni-app/pages/admin/orderList/index.vue +++ b/template/uni-app/pages/admin/orderList/index.vue @@ -1,558 +1,562 @@ - - - - -