From f72c28d770ec3993ce61504b633836354a4957ff Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Thu, 2 Mar 2023 17:55:36 +0800 Subject: [PATCH 1/7] =?UTF-8?q?fix:=20:bug:=20=E5=85=B3=E9=97=AD=E7=89=A9?= =?UTF-8?q?=E6=B5=81=E5=85=AC=E5=8F=B8=E4=BC=A0=E9=80=92=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF,css=20/deep/=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/home/memberCenter/Distribution.vue | 2 +- seller/src/views/shop/ship/logistics.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buyer/src/pages/home/memberCenter/Distribution.vue b/buyer/src/pages/home/memberCenter/Distribution.vue index 60c6fa55..019b3b1c 100644 --- a/buyer/src/pages/home/memberCenter/Distribution.vue +++ b/buyer/src/pages/home/memberCenter/Distribution.vue @@ -527,7 +527,7 @@ export default { top: -200px; left: 200px; } -/depp/ .ivu-alert-message { +/deep/ .ivu-alert-message { p { margin: 4px 0; } diff --git a/seller/src/views/shop/ship/logistics.vue b/seller/src/views/shop/ship/logistics.vue index d11b99b6..3346edd6 100644 --- a/seller/src/views/shop/ship/logistics.vue +++ b/seller/src/views/shop/ship/logistics.vue @@ -329,7 +329,7 @@ export default { content: "您确认关闭此物流公司?", loading: true, onOk: () => { - API_Shop.logisticsUnChecked(v.selected).then((res) => { + API_Shop.logisticsUnChecked(v.logisticsId).then((res) => { this.$Modal.remove(); if (res.success) { this.$Message.success("物流公司关闭成功"); From f7a9bff2ba2b488adc89fd5f72fbd99b3508b2e1 Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Mon, 6 Mar 2023 18:00:11 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat:=20:sparkles:=20=E9=9B=86=E6=88=90?= =?UTF-8?q?=E9=A1=BA=E4=B8=B0=E5=B9=B3=E5=8F=B0=EF=BC=8C=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=EF=BC=8C=E6=9F=A5=E8=AF=A2=E7=89=A9=E6=B5=81=EF=BC=8C=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E9=9D=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/LOGISTICS_SETTING.vue | 44 +- seller/src/api/logistics.js | 10 + seller/src/api/order.js | 5 + seller/src/libs/axios.js | 32 + seller/src/views/order/order/orderDetail.vue | 761 ++++++++---------- 5 files changed, 437 insertions(+), 415 deletions(-) diff --git a/manager/src/views/sys/setting-manage/setting/LOGISTICS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/LOGISTICS_SETTING.vue index fda005fe..98a154a8 100644 --- a/manager/src/views/sys/setting-manage/setting/LOGISTICS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/LOGISTICS_SETTING.vue @@ -5,21 +5,40 @@ 快递鸟 快递100 + 顺丰 - + - + - + - + +
+ + + + + + + + + + + + + + + + +
@@ -36,12 +55,13 @@ export default { formValidate: { // 表单数据 type: "", kdniaoEbusinessID: "", - kdniaoAppKey: "" , - kuaidi100Customer: "" , - kuaidi100Key: "" ,}, + kdniaoAppKey: "", + kuaidi100Customer: "", + kuaidi100Key: "", + }, }; }, - props: ["res",'type'], + props: ["res", 'type'], created() { this.init(); }, @@ -49,7 +69,7 @@ export default { // 验证 submit(name) { let that = this; - if( handleSubmit(that, name )){ + if (handleSubmit(that, name)) { this.setupSetting() } }, @@ -83,15 +103,17 @@ export default { +} diff --git a/seller/src/api/logistics.js b/seller/src/api/logistics.js index a74a861a..c0d7da8b 100644 --- a/seller/src/api/logistics.js +++ b/seller/src/api/logistics.js @@ -4,6 +4,7 @@ import { postRequest, putRequest, deleteRequest, + getRequestHasHeader, importRequest, getRequestWithNoToken } from "@/libs/axios"; @@ -35,4 +36,13 @@ export const getCheckedOn = params =>{ return getRequest(`/other/logistics/getCheckedFaceSheet`,params); } +//获取物流设置 +export const getLogisticsSetting = () =>{ + return getRequest(`/other/logistics/setting`); +} + +export const getShunFengFaceSheet = (url,headers) =>{ + return getRequestHasHeader(`${url}`,null,headers); +} + diff --git a/seller/src/api/order.js b/seller/src/api/order.js index ff709b67..0b20ac0f 100644 --- a/seller/src/api/order.js +++ b/seller/src/api/order.js @@ -81,6 +81,11 @@ export const orderDelivery = (sn, params) => { return postRequest(`/order/order/${sn}/delivery`, params); }; +// 订单发货 +export const orderShunFengDelivery = (sn) => { + return postRequest(`/order/order/${sn}/shunfeng/delivery`); +}; + // 获取商家选中的物流公司 export const getLogisticsChecked = () => { return getRequest(`/other/logistics/getChecked`); diff --git a/seller/src/libs/axios.js b/seller/src/libs/axios.js index 7642288c..031a79db 100644 --- a/seller/src/libs/axios.js +++ b/seller/src/libs/axios.js @@ -188,6 +188,38 @@ export const getRequest = (url, params, resBlob) => { return service(data); }; +export const getRequestHasHeader = (url, params, headers) => { + let accessToken = getStore("accessToken"); + let data = { + method: "get", + url: `${url}`, + params: params, + transformRequest: headers + ? undefined + : [ + function(data) { + let ret = ""; + for (let it in data) { + ret += + encodeURIComponent(it) + + "=" + + encodeURIComponent(data[it]) + + "&"; + } + ret = ret.substring(0, ret.length - 1); + return ret; + } + ], + headers: { + "Content-Type": "application/x-www-form-urlencoded", + accessToken: accessToken, + ...headers + }, + responseType: "blob" + }; + return service(data); +}; + export const postRequest = (url, params, headers) => { let accessToken = getStore("accessToken"); return service({ diff --git a/seller/src/views/order/order/orderDetail.vue b/seller/src/views/order/order/orderDetail.vue index cef64414..ddc012bb 100644 --- a/seller/src/views/order/order/orderDetail.vue +++ b/seller/src/views/order/order/orderDetail.vue @@ -2,179 +2,154 @@