Browse Source

提交

storemanagementweb
gwbvipvip 11 months ago
parent
commit
ef67e669ac
5 changed files with 27 additions and 19 deletions
  1. +3
    -3
      config/proxy.js
  2. +8
    -0
      src/global_data.js
  3. +4
    -3
      src/pages/order/orderflow/service.js
  4. +6
    -5
      src/pages/order/thirdAuthorize/service.js
  5. +6
    -8
      src/pages/order/thirdOrder/service.js

+ 3
- 3
config/proxy.js View File

@@ -9,7 +9,7 @@
export default {
dev: {
'/saasbase/': {
target: 'http://localhost:5006/',
target: 'http://localhost:5001/',
changeOrigin: true,
secure: false, //关闭证书验证
pathRewrite: {
@@ -17,7 +17,7 @@
},
},
'/storemanagement/': {
target: 'http://localhost:5298/',
target: 'http://localhost:5002/',
changeOrigin: true,
secure: false, //关闭证书验证
pathRewrite: {
@@ -25,7 +25,7 @@
},
},
'/storemanagementorder/': {
target: 'http://localhost:5248/',
target: 'http://localhost:5003/',
changeOrigin: true,
secure: false, //关闭证书验证
pathRewrite: {


+ 8
- 0
src/global_data.js View File

@@ -8,3 +8,11 @@ export function getApiUrl() {
export function getDataBaseUrl() {
return '/saasbase';
}

export function getStoremanagement() {
return '/storemanagement';
}

export function getStoremanagementorder() {
return '/storemanagementorder';
}

+ 4
- 3
src/pages/order/orderflow/service.js View File

@@ -2,11 +2,12 @@

/* eslint-disable */
import { request } from 'umi';
import { getStoremanagement,getStoremanagementorder } from '@/global_data';

export default {
/** 获取订单流水信息*/
orderList(data) {
return request(`/storemanagementorder/api/Order/PostDetail`, {
return request(getStoremanagementorder()+`/api/Order/PostDetail`, {
method: 'Post',
data: data,
// params: { ...params },
@@ -18,13 +19,13 @@ export default {
* 查询店铺信息(设备信息)
*/
srdList(data) {
return request('/storemanagement/api/shop/alllist', {
return request(getStoremanagement()+'/api/shop/alllist', {
method: 'GET'
});
},

GetFlowExport(data) {
return request(`/storemanagementorder/api/Order/GetFlowExport`, {
return request(getStoremanagementorder()+`/api/Order/GetFlowExport`, {
method: 'Post',
data: data


+ 6
- 5
src/pages/order/thirdAuthorize/service.js View File

@@ -2,35 +2,36 @@

/* eslint-disable */
import { request } from 'umi';
import { getStoremanagement,getStoremanagementorder } from '@/global_data';

export default {

page(data) {
data.isreport = true;
return request(`/storemanagementorder/api/ThirdAuthorize/Page`, {
return request(getStoremanagementorder()+`/api/ThirdAuthorize/Page`, {
method: 'Post',
data: data,
});
},
GetAllStore() {
return request('/storemanagement/api/shop/alllist', {
return request(getStoremanagement()+'/api/shop/alllist', {
method: 'GET'
});
},
Create(data) {
return request('/storemanagementorder/api/ThirdAuthorize/Create', {
return request(getStoremanagementorder()+'/api/ThirdAuthorize/Create', {
method: 'Post',
data: data,
});
},
Update(data) {
return request('/storemanagementorder/api/ThirdAuthorize/Update', {
return request(getStoremanagementorder()+'/api/ThirdAuthorize/Update', {
method: 'Post',
data: data,
});
},
Del(data) {
return request('/storemanagementorder/api/ThirdAuthorize/Del?id='+data, {
return request(getStoremanagementorder()+'/api/ThirdAuthorize/Del?id='+data, {
method: 'Post',
});
},


+ 6
- 8
src/pages/order/thirdOrder/service.js View File

@@ -2,31 +2,29 @@

/* eslint-disable */
import { request } from 'umi';
import { getStoremanagement,getStoremanagementorder } from '@/global_data';

export default {

page(data) {
data.isreport = true;
return request(`/storemanagementorder/api/Order/ThirdOrderPage`, {
return request(getStoremanagementorder()+`/api/Order/ThirdOrderPage`, {
method: 'Post',
data: data,
});
},

getThirdOrderInfo(data) {
return request(`/storemanagementorder/api/Order/GetThirdOrderInfo?thirdOrderId=`+data, {
return request(getStoremanagementorder()+`/api/Order/GetThirdOrderInfo?thirdOrderId=`+data, {
method: 'get',
});
},





/** 获取订单流水信息*/
orderList(data) {
data.isreport = true;
return request(`/storemanagementorder/api/Order/PostDetail`, {
return request(getStoremanagementorder()+`/api/Order/PostDetail`, {
method: 'Post',
data: data,
// params: { ...params },
@@ -38,13 +36,13 @@ export default {
* 查询店铺信息(设备信息)
*/
srdList(data) {
return request('/storemanagement/api/shop/alllist', {
return request(getStoremanagement()+'/storemanagement/api/shop/alllist', {
method: 'GET'
});
},

GetFlowExport(data) {
return request(`/storemanagementorder/api/Order/GetFlowExport`, {
return request(getStoremanagementorder()+`/api/Order/GetFlowExport`, {
method: 'Post',
data: data


Loading…
Cancel
Save