diff --git a/src/api/AfterSalesManagement.js b/src/api/AfterSalesManagement.js index 11a4b38..b2ae61f 100644 --- a/src/api/AfterSalesManagement.js +++ b/src/api/AfterSalesManagement.js @@ -1,2 +1,49 @@ import request from '@axioshooks' - +// 获取售后管理列表 +export function select_by_conditions(data) { + return request({ + url: 'xy_openapi/afterSale/select_by_conditions', + method: 'post', + data + }) +} +// 同意退款 +export function agree_refund(data) { + return request({ + url: `xy_openapi/afterSale/agree_refund/${data}`, + method: 'get', + data + }) +} +// 拒绝退款 +export function refuse_refund(data) { + return request({ + url: `xy_openapi/afterSale/refuse_refund/${data}`, + method: 'get', + data + }) +} +// 确认收货 +export function confirm_receipt(data) { + return request({ + url: `xy_openapi/afterSale/confirm_receipt/${data}`, + method: 'get', + data + }) +} +// 拒绝收货 +export function refuse_receipt(data) { + return request({ + url: `xy_openapi/afterSale/refuse_receipt/${data}`, + method: 'get', + data + }) +} +// 日志 +export function after_log(data) { + return request({ + url: `xy_openapi/afterSale/after_log/${data}`, + method: 'get', + data + }) +} \ No newline at end of file diff --git a/src/api/CommodityManagement.js b/src/api/CommodityManagement.js index a06d0cb..461245f 100644 --- a/src/api/CommodityManagement.js +++ b/src/api/CommodityManagement.js @@ -18,7 +18,7 @@ export function edit_product(data) { // 复制商品 export function get_commodity(data) { return request({ - url: `xy_openapi/commodity_info/get_commodity`, + url: `xy_openapi/commodity_info/get_commodity/${data}`, method: 'get', data }) @@ -46,4 +46,12 @@ export function delete_one(data) { method: 'delete', data }) +} +// 日志 +export function commodity_log(data) { + return request({ + url: `xy_openapi/commodity_info/commodity_log/${data}`, + method: 'get', + data + }) } \ No newline at end of file diff --git a/src/api/OrderManagement.js b/src/api/OrderManagement.js index 9cc5545..e0e2b6e 100644 --- a/src/api/OrderManagement.js +++ b/src/api/OrderManagement.js @@ -7,3 +7,61 @@ export function order_info(data) { data }) } +// 获取物流信息 +export function logistics_inquiry(data) { + return request({ + url: `xy_openapi/api/order_info/logistics_inquiry/${data}`, + method: 'get', + data + }) +} +// 订单发货信息查询 +export function get_order_shopped_info(data) { + return request({ + url: `xy_openapi/api/order_info/get_order_shopped_info/${data}`, + method: 'get', + data + }) +} + +// 订单下单 +export function sf_place_order(data) { + return request({ + url: `xy_openapi/api/logistics/sf_place_order`, + method: 'post', + data + }) +} +//发货 +export function order_shopped(data) { + return request({ + url: `xy_openapi/api/order_info/order_shopped`, + method: 'post', + data + }) +} +//打印面单 +export function express_printing(data) { + return request({ + url: `xy_openapi/api/logistics/express_printing`, + method: 'post', + data + }) +} +//取消订单 +export function cancel_order(data) { + return request({ + url: `xy_openapi/api/order_info/cancel_order/${data}`, + method: 'get', + data + }) +} +//机器日志 +export function order_log(data) { + return request({ + url: `xy_openapi/api/order_info/order_log/${data}`, + method: 'get', + data + }) +} + diff --git a/src/api/translateSet.js b/src/api/translateSet.js new file mode 100644 index 0000000..0656695 --- /dev/null +++ b/src/api/translateSet.js @@ -0,0 +1,42 @@ +import request from '@axioshooks' +// 获取地址列表 +export function userAddress(data) { + return request({ + url: 'xy_openapi/address/userAddress', + method: 'post', + data + }) +} +// 添加物流信息 +export function add(data) { + return request({ + url: 'xy_openapi/address/add', + method: 'post', + data + }) +} +// 获取寄件人集合 +export function senderList(data) { + return request({ + url: 'xy_openapi/sender/list', + method: 'get', + data + }) +} +// 添加寄件人 +export function senderAdd(data) { + return request({ + url: 'xy_openapi/sender/add', + method: 'post', + data + }) +} +// 删除寄件人 +export function senderDelete(data) { + return request({ + url: `xy_openapi/sender/delete/${data}`, + method: 'delete', + data + }) +} + diff --git a/src/components/LogsDialog.vue b/src/components/LogsDialog.vue new file mode 100644 index 0000000..1bed1f7 --- /dev/null +++ b/src/components/LogsDialog.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/src/components/OperateButton.vue b/src/components/OperateButton.vue index 343e2e7..64b78a5 100644 --- a/src/components/OperateButton.vue +++ b/src/components/OperateButton.vue @@ -1,6 +1,6 @@ + + + + \ No newline at end of file diff --git a/src/components/driverForm/index.vue b/src/components/driverForm/index.vue index 19f93c9..03658b1 100644 --- a/src/components/driverForm/index.vue +++ b/src/components/driverForm/index.vue @@ -1,748 +1,728 @@