From 24753759f44ba837faa7118e4b305c2717de15cb Mon Sep 17 00:00:00 2001 From: hupeng Date: Tue, 31 Dec 2019 15:19:43 +0800 Subject: [PATCH] =?UTF-8?q?yshop1.6.4=E5=90=8E=E5=8F=B0=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E4=BB=B7=E6=A0=BC=E4=B8=8E?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=98=BE=E7=A4=BA=E6=98=8E=E7=BB=86,=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=A7=AF=E5=88=86=E8=AE=B0=E5=BD=95=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yxStoreOrder.js | 16 +++ src/views/shop/order/detail.vue | 49 +++++--- src/views/shop/order/edit.vue | 196 ++++++++++++++++++++++++++++++++ src/views/shop/order/index.vue | 134 +++++++++++++++++++++- src/views/shop/order/remark.vue | 193 +++++++++++++++++++++++++++++++ 5 files changed, 571 insertions(+), 17 deletions(-) create mode 100644 src/views/shop/order/edit.vue create mode 100644 src/views/shop/order/remark.vue diff --git a/src/api/yxStoreOrder.js b/src/api/yxStoreOrder.js index e012ef8..70e0116 100644 --- a/src/api/yxStoreOrder.js +++ b/src/api/yxStoreOrder.js @@ -31,6 +31,22 @@ export function refund(data) { }) } +export function editOrder(data) { + return request({ + url: 'api/yxStoreOrder/edit', + method: 'post', + data + }) +} + +export function remark(data) { + return request({ + url: 'api/yxStoreOrder/remark', + method: 'post', + data + }) +} + export function get() { return request({ url: 'api/yxExpress', diff --git a/src/views/shop/order/detail.vue b/src/views/shop/order/detail.vue index 97a5b2c..fe85ecc 100644 --- a/src/views/shop/order/detail.vue +++ b/src/views/shop/order/detail.vue @@ -3,12 +3,11 @@
收货信息 -
-
用户昵称:{{ form.nickname }}
-
收货人: {{ form.realName }}
-
联系电话: {{ form.userPhone }}
-
收货地址: {{ form.userAddress }}
+
用户昵称:{{ form.nickname }}
+
收货人: {{ form.realName }}
+
联系电话: {{ form.userPhone }}
+
收货地址: {{ form.userAddress }}
@@ -16,21 +15,34 @@
-
订单编号: {{ form.orderId }}
-
商品总数: {{ form.totalNum }}
-
支付邮费: {{ form.totalPostage }}
-
实际支付: {{ form.payPrice }}
-
支付方式: {{ form.payTypeName }}
+
订单编号: {{ form.orderId }}
+
商品总数: {{ form.totalNum }}
+
支付邮费: {{ form.totalPostage }}
+
实际支付: {{ form.payPrice }}
+
支付方式: {{ form.payTypeName }}
-
订单状态: {{ form.statusName }}
-
商品总价: {{ form.totalPrice }}
-
优惠券金额: {{ form.couponPrice }}
-
创建时间: {{ formatTime(form.addTime) }}
-
支付时间: {{ formatTime(form.payTime) }}
+
订单状态: {{ form.statusName }}
+
商品总价: {{ form.totalPrice }}
+
优惠券金额: {{ form.couponPrice }}
+
创建时间: {{ formatTime(form.addTime) }}
+
支付时间: {{ formatTime(form.payTime) }}
+ +
+ 物流信息 +
+
快递公司:{{ form.deliveryName }}
+
快递单号:{{ form.deliveryId }}
+
+ +
+ 备注信息 +
+
{{ form.remark }}
+
@@ -210,5 +222,12 @@ export default { diff --git a/src/views/shop/order/edit.vue b/src/views/shop/order/edit.vue new file mode 100644 index 0000000..b95882d --- /dev/null +++ b/src/views/shop/order/edit.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/src/views/shop/order/index.vue b/src/views/shop/order/index.vue index 80f9394..5303cf2 100644 --- a/src/views/shop/order/index.vue +++ b/src/views/shop/order/index.vue @@ -23,6 +23,8 @@ + + @@ -70,6 +72,11 @@ 操作 + + + 订单备注 + @@ -80,7 +87,12 @@ @click="refund(scope.row)"> 立刻退款 - + + + 修改订单 + + + + + + + + + + + + + + + + + +