From 61c2e4dd81802fb9d5ae1a13a8421d1f0268c740 Mon Sep 17 00:00:00 2001 From: "LAPTOP-86ICAA31\\Administrator" <55056727@qq.com> Date: Thu, 16 Feb 2023 18:49:57 +0800 Subject: [PATCH] no message --- .env.test | 4 +- src/pages/order/detail.vue | 75 ++++++++------------- src/pages/order/orderCheck.vue | 4 +- src/pages/order/orderMoney.vue | 128 ++++++++++++++++++++++++++++++++++++ src/services/Merchants/Merchants.js | 1 - src/services/order/Order.js | 9 +++ src/utils/axios-interceptors.js | 4 +- 7 files changed, 172 insertions(+), 53 deletions(-) create mode 100644 src/pages/order/orderMoney.vue diff --git a/.env.test b/.env.test index 7a31ebd..cb1d101 100644 --- a/.env.test +++ b/.env.test @@ -1,8 +1,8 @@ NODE_ENV=production # api服务的baseUrls -VUE_APP_API_IDS=http://192.168.19.4:44330 -VUE_APP_API_BASE_URL_API=http://192.168.19.4:44332 +VUE_APP_API_IDS=/ids +VUE_APP_API_BASE_URL_API=/ VUE_APP_YFZX_CSZ=de89fee0-d722-9d95-9520-3a00f6ff7b35 diff --git a/src/pages/order/detail.vue b/src/pages/order/detail.vue index 1ae2375..602c876 100644 --- a/src/pages/order/detail.vue +++ b/src/pages/order/detail.vue @@ -3,14 +3,14 @@
- 调整订单金额 + 调整订单金额 审核订单 - - - - - - +
- - - - - - - - +
- - - - - 不加急 - 加急 - - - - - + diff --git a/src/pages/order/orderCheck.vue b/src/pages/order/orderCheck.vue index 1677700..678e7bf 100644 --- a/src/pages/order/orderCheck.vue +++ b/src/pages/order/orderCheck.vue @@ -8,7 +8,7 @@ 设置为外发 - + EQ 工艺 @@ -51,7 +51,7 @@ export default { data(){ return{ confirmSubmit:false,resFormTimes:'',isST24:false, - form:{orderId:'',sourceType:'',statue:'',type:'',contentType:null,content:''}, + form:{orderId:'',sourceType:'',statue:'',type:null,contentType:null,content:''}, layout:{labelCol:{span:5},wrapperCol:{span:18},}, isAltN:false,loadPage:false, rules:{ diff --git a/src/pages/order/orderMoney.vue b/src/pages/order/orderMoney.vue new file mode 100644 index 0000000..bdc52c8 --- /dev/null +++ b/src/pages/order/orderMoney.vue @@ -0,0 +1,128 @@ + + + + + \ No newline at end of file diff --git a/src/services/Merchants/Merchants.js b/src/services/Merchants/Merchants.js index 4b7b27c..2574ac0 100644 --- a/src/services/Merchants/Merchants.js +++ b/src/services/Merchants/Merchants.js @@ -46,7 +46,6 @@ export function MerchantsListSearch(params) { return requestApi('/api/admin/merchants/lookup/search', METHOD.GET, params) } - //商户充值 export function MerchantsRecharge(id,patams) { return new Promise((resolve, reject) => { diff --git a/src/services/order/Order.js b/src/services/order/Order.js index e47ff63..1cfa22d 100644 --- a/src/services/order/Order.js +++ b/src/services/order/Order.js @@ -19,6 +19,15 @@ export function OrderCheck(params) { return requestApi('/api/app/order/audit-order', METHOD.POST, params) } +// 订单价格 +export function OrderMoney(id) { + return requestApi(`/api/app/order/get-order-price-detail/${id}`, METHOD.GET, null) +} +// 修改订单价格 +export function OrderUpdateMoney(params) { + return requestApi(`/api/app/order/update-order-price`, METHOD.PUT, params) +} + /* 以下待删 */ //获取SMT订单详情 diff --git a/src/utils/axios-interceptors.js b/src/utils/axios-interceptors.js index e67fe5a..89309b9 100644 --- a/src/utils/axios-interceptors.js +++ b/src/utils/axios-interceptors.js @@ -117,7 +117,7 @@ const resCommon = { * @returns {*} */ onFulfilled(response, options) { - const { message } = options; + const {router, message } = options; // if (response?.success&&!response.success){ // console.log(response); // } @@ -125,7 +125,7 @@ const resCommon = { message.error('认证 token 已过期,请重新登录'); Cookie.remove(xsrfHeaderName); router.push('/loginjmp'); - return Promise.reject(error); + return Promise.reject(response.message); } if (response.code === 200 || response.code === 204) { if (!response.isSuccess) {