From 1e44cee1f10cfaf73d7539356007fe049c945b4c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 8 Aug 2024 15:56:33 +0800 Subject: [PATCH] 1 --- src/api/delivery_service.ts | 26 +++++ src/api/store_order.ts | 5 + src/views/delivery_service/details.vue | 103 +++++++++++++++++ src/views/delivery_service/edit.vue | 139 ++++++++++++++++++++++ src/views/delivery_service/index.vue | 154 +++++++++++++++++++++++++ src/views/order/store_order/edit.vue | 67 +++++------ src/views/order/store_order/index.vue | 20 +++- 7 files changed, 474 insertions(+), 40 deletions(-) create mode 100644 src/api/delivery_service.ts create mode 100644 src/views/delivery_service/details.vue create mode 100644 src/views/delivery_service/edit.vue create mode 100644 src/views/delivery_service/index.vue diff --git a/src/api/delivery_service.ts b/src/api/delivery_service.ts new file mode 100644 index 00000000..1645b9a7 --- /dev/null +++ b/src/api/delivery_service.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 配送员表列表 +export function apiDeliveryServiceLists(params: any) { + return request.get({ url: '/delivery_service/deliveryservice/lists', params }) +} + +// 添加配送员表 +export function apiDeliveryServiceAdd(params: any) { + return request.post({ url: '/delivery_service/deliveryservice/add', params }) +} + +// 编辑配送员表 +export function apiDeliveryServiceEdit(params: any) { + return request.post({ url: '/delivery_service/deliveryservice/edit', params }) +} + +// 删除配送员表 +export function apiDeliveryServiceDelete(params: any) { + return request.post({ url: '/delivery_service/deliveryservice/delete', params }) +} + +// 配送员表详情 +export function apiDeliveryServiceDetail(params: any) { + return request.get({ url: '/delivery_service/deliveryservice/detail', params }) +} \ No newline at end of file diff --git a/src/api/store_order.ts b/src/api/store_order.ts index 2bb420ff..bf898212 100644 --- a/src/api/store_order.ts +++ b/src/api/store_order.ts @@ -52,3 +52,8 @@ export function apiStoreRefundOrderDetail(params: any) { export function apiStoreOrderRefund(params: any) { return request.get({ url: '/store_order/storeOrder/refund', params }) } + +// 设置配送员 +export function apiStoreOrderSetDelivery(params: any) { + return request.post({ url: '/store_order/storeorder/set_delivery', params }) +} diff --git a/src/views/delivery_service/details.vue b/src/views/delivery_service/details.vue new file mode 100644 index 00000000..6820aaa0 --- /dev/null +++ b/src/views/delivery_service/details.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/views/delivery_service/edit.vue b/src/views/delivery_service/edit.vue new file mode 100644 index 00000000..fbdab185 --- /dev/null +++ b/src/views/delivery_service/edit.vue @@ -0,0 +1,139 @@ + + + diff --git a/src/views/delivery_service/index.vue b/src/views/delivery_service/index.vue new file mode 100644 index 00000000..673c8ed1 --- /dev/null +++ b/src/views/delivery_service/index.vue @@ -0,0 +1,154 @@ + + + + diff --git a/src/views/order/store_order/edit.vue b/src/views/order/store_order/edit.vue index fa2c862a..7d3798cb 100644 --- a/src/views/order/store_order/edit.vue +++ b/src/views/order/store_order/edit.vue @@ -9,7 +9,20 @@ @close="handleClose" > - + + + + + @@ -18,9 +31,10 @@ diff --git a/src/views/order/store_order/index.vue b/src/views/order/store_order/index.vue index 0518c8d8..4b061846 100644 --- a/src/views/order/store_order/index.vue +++ b/src/views/order/store_order/index.vue @@ -156,6 +156,9 @@ 详情 + 设置配送人员 @@ -164,7 +167,13 @@ - + { showEdit.value = true await nextTick() editRef.value?.open('edit') - editRef.value?.setFormData(data) + // editRef.value?.setFormData(data) } // 详情 @@ -337,6 +346,11 @@ const handleDelete = async (id: number | any[]) => { await apiStoreOrderDelete({ id }) getLists() } - +const handleDelivery = async (data: any) => { + showEdit.value = true + await nextTick() + editRef.value?.open('edit') + editRef.value?.setFormData(data) +} getLists()