From 5b3ad3d96dcdbe7ef7a0e2abe2e05241261557ee Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Thu, 10 Sep 2020 00:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85->=E6=9C=AA=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yxStoreOrder.js | 8 +- src/views/shop/order/detail.vue | 942 +++++++++++++++++++++++-------- src/views/shop/order/detail1.vue | 270 +++++++++ src/views/shop/order/index.vue | 7 +- src/views/shop/order/indext.vue | 2 +- 5 files changed, 979 insertions(+), 250 deletions(-) create mode 100644 src/views/shop/order/detail1.vue diff --git a/src/api/yxStoreOrder.js b/src/api/yxStoreOrder.js index 67804fc..4e2a979 100644 --- a/src/api/yxStoreOrder.js +++ b/src/api/yxStoreOrder.js @@ -31,7 +31,6 @@ export function editT(data) { }) } - export function refund(data) { return request({ url: 'api/yxStoreOrder/refund', @@ -71,3 +70,10 @@ export function express(data) { }) } +export function getOrderDetail(id) { + return request({ + url: 'api/getStoreOrderDetail/' + id, + method: 'get' + }) +} + diff --git a/src/views/shop/order/detail.vue b/src/views/shop/order/detail.vue index aa39eec..26657a8 100644 --- a/src/views/shop/order/detail.vue +++ b/src/views/shop/order/detail.vue @@ -1,270 +1,720 @@ - - diff --git a/src/views/shop/order/detail1.vue b/src/views/shop/order/detail1.vue new file mode 100644 index 0000000..aa39eec --- /dev/null +++ b/src/views/shop/order/detail1.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/src/views/shop/order/index.vue b/src/views/shop/order/index.vue index 3bf4d7c..5725171 100644 --- a/src/views/shop/order/index.vue +++ b/src/views/shop/order/index.vue @@ -135,7 +135,7 @@ v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" size="mini" type="primary" - @click="detail(scope.row)" + @click="toDetailURL(scope.row.id)" > 订单详情 @@ -240,7 +240,7 @@ import initData from '@/mixins/crud' import { del } from '@/api/yxStoreOrder' import eForm from './form' - import eDetail from './detail' + import eDetail from './detail1' import eRefund from './refund' import editOrder from './edit' import eRemark from './remark' @@ -300,6 +300,9 @@ }) }, methods: { + toDetailURL(id){ + this.$router.push({ path: '/order/detail/'+id }) + }, formatTime, checkPermission, handleOrder(tab, event) { diff --git a/src/views/shop/order/indext.vue b/src/views/shop/order/indext.vue index abc312c..ea62a6b 100644 --- a/src/views/shop/order/indext.vue +++ b/src/views/shop/order/indext.vue @@ -184,7 +184,7 @@ import initData from '@/mixins/crud' import { del } from '@/api/yxStoreOrder' import { getAll } from '@/api/yxSystemStore' import eForm from './formC' -import eDetail from './detail' +import eDetail from './detail1' import eRefund from './refund' import editOrder from './edit' import eRemark from './remark'