Commit 1d6bda84 by 姜雷

引入全部路由

parent 57f324f6
......@@ -6,7 +6,7 @@
"private": true,
"scripts": {
"dev": "vue-cli-service serve --port 8891",
"dev:local": "vue-cli-service serve ./src/dev-local/develop.js --port 8891",
"dev:local": "vue-cli-service serve ./src/dev-local/develop.js --port 8899",
"start": "npm run dev:local",
"lint": "eslint --ext .js,.vue src",
"build": "vue-cli-service build --modern",
......@@ -23,6 +23,8 @@
"analyz": "cross-env NODE_ENV=production npm_config_report=true npm run build"
},
"dependencies": {
"decimal.js": "^10.1.1",
"qr-code-with-logo": "^1.1.0",
"@antv/data-set": "^0.10.2",
"@antv/g2": "^3.5.1",
"@antv/g2-plugin-slider": "^2.1.1",
......
import fetch from './index';
export const fetchCampuses = entity =>
fetch({
url: '/dcxy/meter/dict/campuses',
...entity,
});
export const fetchServices = entity =>
fetch({
url: `/dcxy/meter/dict/${entity.data.campusId}/services`,
...entity,
});
export const fetchOperators = entity =>
fetch({
url: `/dcxy/meter/dict/${entity.data.campusId}/operators`,
...entity,
});
import fetch from './index';
const downloadUrl = manageShell.default.utils.downloadFiles;
export const fetchEquipmentList = entity =>
fetch({
url: '/dcxy/meter/device/querying',
...entity,
});
export const deleteEquipment = entity =>
fetch({
url: '/dcxy/meter/device/deleting',
method: 'POST',
...entity,
});
export const toggleEquipmentStatus = entity =>
fetch({
url: `/dcxy/meter/device/${entity.data.id}/${
entity.data.state ? 'online' : 'offline'
}`,
method: 'POST',
...entity,
});
export const addEquipment = entity =>
fetch({
url: '/dcxy/meter/device/adding',
method: 'POST',
...entity,
});
export const updateEquipment = entity =>
fetch({
url: '/dcxy/meter/device/modifying',
method: 'POST',
...entity,
});
export const exportEquipment = entity =>
fetch({
url: '/dcxy/meter/device/excel',
responseType: 'blob',
...entity,
}).then(res => {
let blob = new Blob([res.data], { type: res.headers });
let fileName = res.headers['content-disposition'].split('=')[1];
downloadUrl(blob, fileName);
});
const fetch = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_METER_DEVICE_SERVER_URL,
timeout: 10000,
});
export default fetch;
import fetch from './fetch';
//基础地址
const path = process.env.VUE_APP_SMAPRO_SERVER_URL;
//首充相关接口头
const pathSmaproPrepayConfig = '/dcxy/smaproPrepayConfig';
//列表分页
export const queryPage = req =>
fetch({
url: path + pathSmaproPrepayConfig + '/smaproPrepayConfig/page',
method: 'POST',
...req,
});
// 新增
export const addEntity = req =>
fetch({
url: path + pathSmaproPrepayConfig + '/smaproPrepayConfig',
method: 'POST',
...req,
});
// 修改
export const updateEntity = req =>
fetch({
url: path + pathSmaproPrepayConfig + '/smaproPrepayConfig',
method: 'PUT',
...req,
});
// 修改
export const lockEntity = req =>
fetch({
url: path + pathSmaproPrepayConfig + '/smaproPrepayConfig/lock',
method: 'PUT',
...req,
});
// 删除
export const deleteEntity = req =>
fetch({
url: path + pathSmaproPrepayConfig + '/smaproPrepayConfig',
method: 'DELETE',
...req,
});
// 获取详情
export const getDetail = req =>
fetch({
url: path + pathSmaproPrepayConfig + '/smaproPrepayConfig/detail',
method: 'GET',
...req,
});
import fetch from './fetch';
//基础地址
const path = process.env.VUE_APP_SMAPRO_SERVER_URL;
//首充相关接口头
const pathSmaproPrepayRefundOrder = '/dcxy/smaproRefundOrder';
//列表分页
export const queryPage = req =>
fetch({
url: path + pathSmaproPrepayRefundOrder + '/smaproRefundOrder',
method: 'POST',
...req,
});
import fetch from '../fetch';
export const fetchBeanInfoByUser = req =>
fetch({
url: '/dcxy/api/customer/beanAccount/oneCustomerQuery',
method: 'GET',
...req,
});
export const increaseBeanByUser = req =>
fetch({
url: '/dcxy/api/customer/beanAccount/giving',
method: 'POST',
...req,
});
export const decreaseBeanByUser = req =>
fetch({
url: '/dcxy/api/customer/beanAccount/cleaning',
method: 'POST',
...req,
});
export const fetchBeanInfoByArea = req =>
fetch({
url: '/dcxy/api/customer/beanAccount/batchQuery',
method: 'GET',
...req,
});
export const increaseBeanByArea = req =>
fetch({
url: '/dcxy/api/customer/beanAccount/batchGiving',
method: 'POST',
...req,
});
export const decreaseBeanByArea = req =>
fetch({
url: '/dcxy/api/customer/beanAccount/batchCleaning',
method: 'POST',
...req,
});
import fetch from '../fetch';
export const getRechargeInfo = req =>
fetch({
url: '/dcxy/api/customer/customerRecharge/rechargeInfo',
method: 'get',
...req,
});
export const forRecharge = req =>
fetch({
url: '/dcxy/api/customer/customerRecharge/forRecharge/'+req.customerId+'/'+req.actualAmount,
method: 'put',
// ...req,
});
import fetch from '../fetch';
export const getRefundInfo = req =>
fetch({
url: '/dcxy/api/customer/customerRefund/refundInfo',
method: 'get',
...req,
});
export const forRefund = req =>
fetch({
url: '/dcxy/api/customer/customerRefund/forRefund/'+req.customerId+'/'+req.actualAmount,
method: 'put',
// ...req,
});
import fetch from '../fetch';
export const fetchAdminArea = req =>
fetch({
url: '/admin/adminArea/list',
method: 'post',
...req,
});
export const setAdminArea = req =>
fetch({
url: '/admin/adminArea',
method: 'post',
...req,
});
export const fetchAreaUser = req =>
fetch({
url: '/admin/adminAreaA',
...req,
});
export const setAreaUser = req =>
fetch({
url: '/admin/adminAreaA',
method: 'post',
...req,
});
import fetch from '../fetch';
export const fetchAdminFunctionList = req =>
fetch({
url: '/adminFunction/adminFunction/list',
method: 'post',
...req,
});
export const fetchAdminFunctionEdit = req =>
fetch({
url: `/adminFunction/adminFunction/${req.data.id}`,
method: 'get',
...req,
});
export const setAdminFunction = req =>
fetch({
url: '/adminFunction/adminFunction',
method: 'post',
...req,
});
export const fetchAdminFunctionDetail = req =>
fetch({
url: `/adminFunction/adminFunction/menuButton/${req.data.id}`,
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchAppReportList = req =>
fetch({
url: '/appInterfaceUploadLog/adminFunction/list',
method: 'post',
...req,
});
import fetch from './index';
export const fetchAreaConfig = req =>
fetch({
url: '/smpro/areaConfigs',
...req,
});
export const addAreaConfig = req =>
fetch({
url: '/smpro/areaConfigs',
method: 'POST',
...req,
});
export const delAreaConfig = req =>
fetch({
url: `/smpro/areaConfigs/${req.data.id}`,
method: 'DELETE',
...req,
});
export const toggleAreaConfigState = req =>
fetch({
url: `/smpro/areaConfigs/${req.data.id}/${
req.data.isEnabled ? 'close' : 'open'
}`,
method: 'POST',
...req,
});
export const fetchDetailInfo = req =>
fetch({
url: `/smpro/areaConfigs/${req.params.id}`,
...req,
});
export const fetchServiceConfig = req =>
fetch({
url: `/smpro/areaConfigs/${req.params.id}/services`,
...req,
});
export const updateServiceConfig = req =>
fetch({
url: `/smpro/areaConfigs/${req.id}/services`,
method: 'POST',
...req,
});
const fetch = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_SMAPRO_SERVER_URL,
timeout: 10000,
});
export default fetch;
import fetch from '../fetch';
//基础地址
const path = process.env.VUE_APP_BASE_SERVER_URL;
const areaRechargePath = '/dcxy/areaRecharge';
//首充列表分页
export const query4Page = req =>
fetch({
url: path + areaRechargePath + '/areaRecharge/list',
method: 'POST',
...req,
});
/**开启关闭充值 */
export const update4Lock = req =>
fetch({
url: path + areaRechargePath + '/areaRecharge',
method: 'PUT',
...req,
});
/**保存配置 */
export const addEntity = req =>
fetch({
url: path + areaRechargePath + '/areaRecharge',
method: 'POST',
...req,
});
/**查询选中的配置 */
export const queryById = req =>
fetch({
url: path + areaRechargePath + `/areaRecharge/${req.params.areaId}/${req.params.operateId}`,
method: 'GET',
...req,
});
import fetch from '../fetch';
const AREA_SMS = '/dcxy/area/sms';
export const addRelations = req =>
fetch({
url: AREA_SMS + '/relation',
method: 'POST',
...req,
});
export const getRelations = req =>
fetch({
url: AREA_SMS + '/relation',
method: 'GET',
...req,
});
......@@ -77,3 +77,10 @@ export const fetchAdminList = req =>
method: 'get',
...req,
});
export const fetchProvincesList = req =>
fetch({
url: path + '/dcxy/api/base/place/level/place',
method: 'get',
...req,
});
import fetch from '../fetch';
export const getBaseArea = req =>
fetch({
url: '/dcxy/baseArea/queryList',
method: 'POST',
...req,
});
export const getEditArea = req =>
fetch({
url: '/dcxy/baseArea/updateArea',
method: 'PUT',
...req,
});
export const getAddBaseArea = req =>
fetch({
url: '/dcxy/baseArea/addArea',
method: 'POST',
...req,
});
export const getConfigArea = req =>
fetch({
url: '/dcxy/baseArea/queryService',
method: 'GET',
...req,
});
export const getAddOrUpdate = req =>
fetch({
url: '/dcxy/baseArea/addService',
method: 'POST',
...req,
});
export const getRemoveService = req =>
fetch({
url: '/dcxy/baseArea/deleteService',
method: 'GET',
...req,
});
export const getDetail = req =>
fetch({
url: '/dcxy/baseArea/areaInfo',
method: 'GET',
...req,
});
export const updateState = req =>
fetch({
url: '/dcxy/baseArea/updateConsult',
method: 'GET',
...req,
});
export const updateStore= req =>
fetch({
url: '/dcxy/baseArea/updateStore',
method: 'GET',
...req,
});
export const updateType= req =>
fetch({
url: '/dcxy/baseArea/updateType',
method: 'GET',
...req,
});
import fetch from '../fetch';
export const getAreaBusiness = req =>
fetch({
url: '/dcxy/areaBusiness/queryList',
method: 'POST',
...req,
});
export const getRemoveAreaBusiness = req =>
fetch({
url: '/dcxy/areaBusiness/deleteAreaBusiness',
method: 'GET',
...req,
});
export const getAddAreaBusiness = req =>
fetch({
url: '/dcxy/areaBusiness/addAreaBusiness',
method: 'POST',
...req,
});
export const updateState = req =>
fetch({
url: '/dcxy/areaBusiness/updateState',
method: 'GET',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
const OPER_PAY_PATH = '/dcxy/api/base/operateAreaPay';
const customer_path = process.env.VUE_APP_CUSTOMER_SERVER_URL;
export const getCustomerInfo = req =>
fetch({
url: customer_path +'/dcxy/customerInfo/customer/forpic',
method: 'get',
...req,
});
export const getOperPayConfig = req =>
fetch({
url: OPER_PAY_PATH + '/operate/payconf',
method: 'get',
...req,
});
export const updateOpConf = req =>
fetch({
url: OPER_PAY_PATH + '/change/payconf',
method: 'post',
...req,
});
export const abilityBeUsed = req =>
fetch({
url: OPER_PAY_PATH + '/ability/beused',
method: 'post',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
import operDetail from '../operDetail';
export const getBaseOperator = req =>
fetch({
url: '/dcxy/baseOperator/queryList',
method: 'POST',
...req,
});
export const updateState = req => {
console.log(req);
return fetch({
url: '/dcxy/baseOperator/updateState',
method: 'GET',
...req,
});
};
export const getAddOper = req =>
fetch({
url: '/dcxy/baseOperator/addOperator',
method: 'POST',
...req,
});
export const getEditOper = req =>
fetch({
url: '/dcxy/baseOperator/updateOperator',
method: 'POST',
...req,
});
export const getDetail = req =>
fetch({
url: '/dcxy/baseOperator/queryOpertor',
method: 'GET',
...req,
});
export const getOperCount = req =>
operDetail({
url: '/admin/admin',
method: 'GET',
...req,
});
import fetch from '../fetch';
const OPER_PAY_PATH = '/dcxy/api/base/operateAreaPay';
export const getOperPayInfo = req =>
fetch({
url: OPER_PAY_PATH + '/payConfig',
method: 'get',
...req,
});
export const checkExisting = req =>
fetch({
url: OPER_PAY_PATH + '/check/existing',
method: 'get',
...req,
});
export const checkBinding = req =>
fetch({
url: OPER_PAY_PATH + '/check/binding',
method: 'get',
...req,
});
//支付能力新增接口
export const addOperPayInfo = req =>
fetch({
url: OPER_PAY_PATH + '/operPay/relation',
method: 'post',
...req,
});
//支付能力修改接口
export const updateOperPayInfo = req =>
fetch({
url: OPER_PAY_PATH + '/operPay/change',
method: 'post',
...req,
});
export const deleteOperPayInfo = req =>
fetch({
url: OPER_PAY_PATH+'/service/pay/'+req.id +'/'+req.operateId+'/'+req.payType,
method: 'delete',
...req,
});
//支付能力关闭/开启接口
export const isCloseOperPay = req =>
fetch({
url: OPER_PAY_PATH+'/isclose/'+req.isClose+'/'+req.id+'/'+req.operateId+'/'+req.payType,
method: 'put',
...req,
});
//查询是否存在开启的
export const checkBeOn = req =>
fetch({
url: OPER_PAY_PATH + '/check/beOn',
method: 'get',
...req,
});
export const getOpenedPaytype = req =>
fetch({
url: OPER_PAY_PATH + '/opened/paytype',
method: 'get',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const getPageData = req =>
fetch({
url: '/recharge/contorl/page/data',
method: 'POST',
...req,
});
export const addData = req => {
console.log(req);
return fetch({
url: '/recharge/contorl/for/increase',
method: 'POST',
...req,
});
};
export const updateData = req =>
fetch({
url: '/recharge/contorl/for/change',
method: 'POST',
...req,
});
export const deleteData = req =>
fetch(
{
url: '/recharge/contorl/for/remove/'+req.id+'/'+req.updater,
method: 'DELETE',
...req,
});
export const getDetailData = req =>
fetch({
url: '/recharge/contorl/for/detail/'+req.controlId,
method: 'GET',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const fetchCreditMarginList = req =>
fetch({
url: '/dcxy/api/creditDeposits',
method: 'get',
...req,
});
export const addCreditMarginConf = req =>
fetch({
url: '/dcxy/api/creditDeposits',
method: 'post',
...req,
});
export const fetchCreditMarginConfEdit = req =>
fetch({
url: `/dcxy/api/creditDeposits/${req.data.id}/edit`,
method: 'get',
...req,
});
export const updateCreditMarginConf = req =>
fetch({
url: `/dcxy/api/creditDeposits/modify`,
method: 'post',
...req,
});
export const toggleCreditMarginConfState = req =>
fetch({
url: req.data.state
? `/dcxy/api/creditDeposits/${req.data.id}/open`
: `/dcxy/api/creditDeposits/${req.data.id}/close`,
method: 'post',
...req,
});
export const fetchCreditMarginConfDetail = req =>
fetch({
url: `/dcxy/api/creditDeposits/${req.data.id}/all`,
method: 'get',
...req,
});
export const deleteOperandcredit = req =>
fetch({
url: '/dcxy/api/creditDeposits/deleteOper',
method: 'get',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const fetchEquipmentList = req =>
fetch({
url: '/dcxy/api/deviceLoginConfs',
method: 'get',
...req,
});
export const addEquipmentConf = req =>
fetch({
url: '/dcxy/api/deviceLoginConfs',
method: 'post',
...req,
});
export const deleteEquipmentConf = req =>
fetch({
url: `/dcxy/api/deviceLoginConfs/${req.data.id}`,
method: 'delete',
...req,
});
export const toggleEquipmentConfState = req =>
fetch({
url: req.data.state
? `/dcxy/api/deviceLoginConfs/${req.data.id}/open`
: `/dcxy/api/deviceLoginConfs/${req.data.id}/close`,
method: 'post',
...req,
});
export const fetchEquipmentConfDetail = req =>
fetch({
url: `/dcxy/api/deviceLoginConfs/${req.data.id}`,
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchOperationalModeList = req =>
fetch({
url: '/dcxy/api/operationModeConfs',
method: 'get',
...req,
});
export const addOperationalMode = req =>
fetch({
url: '/dcxy/api/operationModeConfs',
method: 'post',
...req,
});
export const updateOperationalMode = req =>
fetch({
url: `/dcxy/api/operationModeConfs/${req.data.id}`,
method: 'post',
...req,
});
export const deleteOperationalMode = req =>
fetch({
url: `/dcxy/api/operationModeConfs/${req.data.id}`,
method: 'delete',
...req,
});
export const fetchOperationalModeEdit = req =>
fetch({
url: `/dcxy/api/operationModeConfs/${req.data.id}/edit`,
method: 'get',
...req,
});
export const fetchOperationalModeAll = req =>
fetch({
url: `/dcxy/api/operationModeConfs/${req.data.id}/all`,
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchActivityList = req =>
fetch({
url: '/dcxy/api/activeConf',
method: 'get',
...req,
});
export const addActivity = req =>
fetch({
url: '/dcxy/api/activeConf',
method: 'post',
...req,
});
export const fetchActivityDetail = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/edit`,
method: 'get',
...req,
});
export const fetchActivityDetailAll = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/all`,
method: 'get',
...req,
});
export const updateActivity = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}`,
method: 'post',
...req,
});
export const deleteActivity = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}`,
method: 'delete',
...req,
});
export const configActivityArea = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/areas`,
method: 'post',
...req,
});
export const configActivityPays = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/pays`,
method: 'post',
...req,
});
export const toggleActivityStatus = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/status/${req.data.status}`,
method: 'post',
...req,
});
export const fetchActivityArea = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/areas`,
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchPaywayList = req =>
fetch({
url: '/dcxy/api/paymentConf',
method: 'get',
...req,
});
export const addPayway = req =>
fetch({
url: '/dcxy/api/paymentConf',
method: 'post',
...req,
});
export const fetchPaywayDetail = req =>
fetch({
url: `/dcxy/api/paymentConf/${req.data.id}`,
method: 'get',
...req,
});
export const updatePaywayDetail = req =>
fetch({
url: `/dcxy/api/paymentConf/${req.data.id}`,
method: 'post',
...req,
});
export const deletePayway = req =>
fetch({
url: `/dcxy/api/paymentConf/${req.params.id}`,
method: 'delete',
...req,
});
export const fetchPayType = req =>
fetch({
url: 'dcxy/api/base/operateAreaPay/operateAndPay',
method: 'get',
...req,
});
//获取某运营商可以使用的支付能力
export const fetchUsingPayType = req =>
fetch({
url: 'dcxy/api/base/operateAreaPay/list/using/operpay',
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchEquipmentList = req =>
fetch({
url: '/dcxy/api/deviceLoginConfs',
method: 'get',
...req,
});
export const addEquipmentConf = req =>
fetch({
url: '/dcxy/api/deviceLoginConfs',
method: 'post',
...req,
});
export const deleteEquipmentConf = req =>
fetch({
url: `/dcxy/api/deviceLoginConfs/${req.data.id}`,
method: 'delete',
...req,
});
export const toggleEquipmentConfState = req =>
fetch({
url: req.data.state
? `/dcxy/api/deviceLoginConfs/${req.data.id}/open`
: `/dcxy/api/deviceLoginConfs/${req.data.id}/close`,
method: 'post',
...req,
});
export const fetchEquipmentConfDetail = req =>
fetch({
url: `/dcxy/api/deviceLoginConfs/${req.data.id}`,
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchActivityList = req =>
fetch({
url: '/dcxy/api/activeConf',
method: 'get',
...req,
});
export const addActivity = req =>
fetch({
url: '/dcxy/api/activeConf',
method: 'post',
...req,
});
export const fetchActivityDetail = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/edit`,
method: 'get',
...req,
});
export const fetchActivityDetailAll = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/all`,
method: 'get',
...req,
});
export const updateActivity = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}`,
method: 'post',
...req,
});
export const deleteActivity = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}`,
method: 'delete',
...req,
});
export const configActivityArea = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/areas`,
method: 'post',
...req,
});
export const configActivityPays = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/pays`,
method: 'post',
...req,
});
export const toggleActivityStatus = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/status/${req.data.status}`,
method: 'post',
...req,
});
export const fetchActivityArea = req =>
fetch({
url: `/dcxy/api/activeConf/${req.data.id}/areas`,
method: 'get',
...req,
});
import fetch from '../fetch';
export const fetchPaywayList = req =>
fetch({
url: '/dcxy/api/paymentConf',
method: 'get',
...req,
});
export const addPayway = req =>
fetch({
url: '/dcxy/api/paymentConf',
method: 'post',
...req,
});
export const fetchPaywayDetail = req =>
fetch({
url: `/dcxy/api/paymentConf/${req.data.id}`,
method: 'get',
...req,
});
export const updatePaywayDetail = req =>
fetch({
url: `/dcxy/api/paymentConf/${req.data.id}`,
method: 'post',
...req,
});
export const deletePayway = req =>
fetch({
url: `/dcxy/api/paymentConf/${req.params.id}`,
method: 'delete',
...req,
});
export const fetchPayType = req =>
fetch({
url: 'dcxy/api/base/operateAreaPay/operateAndPay',
method: 'get',
...req,
});
import fetch from './fetch';
export const getPageCustomer = req =>
fetch({
url: '/smpro/customer/page',
method: 'POST',
...req,
});
import fetch from '../fetch';
export const pageRecords = req =>
fetch({
url: '/dcxy/area/switch/page/records',
method: 'POST',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const getCustomerInfo = req =>
fetch({
url: '/dcxy/customerInfo/queryList',
method: 'POST',
...req,
});
export const fetchDetail = req =>
fetch({
url: '/dcxy/customerInfo/queryCustomer',
method: 'GET',
...req,
});
export const getaddCustomer = req =>
fetch({
url: '/dcxy/customerInfo/addCustomer',
method: 'POST',
...req,
});
export const updateState = req =>
fetch({
url: '/dcxy/customerInfo/updateState',
method: 'PUT',
...req,
});
export const updateBase = req =>
fetch({
url: '/dcxy/customerInfo/updateBase',
method: 'PUT',
...req,
});
export const fetchAccount = req =>
fetch({
url: '/dcxy/customerInfo/queryAccount',
method: 'GET',
...req,
});
export const fetchAccountLessThanZero = req =>
fetch({
url: '/dcxy/customerInfo/lessthan/zero',
method: 'GET',
...req,
});
//电话或者会员ID查询
export const fetchUserInfo = req =>
fetch({
url: '/dcxy/customerInfo/baseCustomer',
method: 'GET',
...req,
});
import fetch from '../fetch';
export const getSwitch = req =>
fetch({
url: '/dcxy/customerSwitch/querySwitch',
method: 'GET',
...req,
});
export const updateSwitch = req =>
fetch({
url: '/dcxy/customerSwitch/updateSwitch',
method: 'POST',
...req,
});
import fetch from '../fetch';
export const getPassword = req =>
fetch({
url: '/dcxy/password/queryList',
method: 'GET',
...req,
});
export const resetApp = req =>
fetch({
url: '/dcxy/password/restApp',
method: 'PUT',
...req,
});
export const restHardware = req =>
fetch({
url: '/dcxy/password/restHardware',
method: 'PUT',
...req,
});
export const queryRest = req =>
fetch({
url: '/dcxy/password/queryRest',
method: 'GET',
...req,
});
import fetch from './index';
export const fetchConnectDeviceList = entity =>
fetch({
url: '/deviceConnectionInfo/paging/vv/deviceConnectionInfo',
method: 'post',
data: entity,
});
import fetch from './index';
export const fetchFirmwareList = entity =>
fetch({
url: '/deviceVersion/paging/vv/deviceVersion',
method: 'post',
data: entity,
});
export const fetchDeviceTypeOptions = () =>
fetch({
url: '/deviceVersion/get/vv/deviceType',
});
export const addFirmware = entity =>
fetch({
url: '/deviceVersion/increase/vv/deviceVersion',
method: 'post',
data: entity,
});
export const toggleDisableState = entity =>
fetch({
url: '/deviceVersion/updated/vv/deviceVersion/isItDisable',
method: 'post',
data: entity,
});
export const deleteFirmware = entity =>
fetch({
url: '/deviceVersion/deleted/vv/deviceVersion',
params: entity,
});
export const updateFirmware = entity =>
fetch({
url: 'deviceVersion/updated/vv/deviceVersion',
method: 'post',
data: entity,
});
const fetch = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_DEVICE_SERVER_URL,
timeout: 10000,
});
export default fetch;
import fetch from './index';
export const fetchUpdateLogList = entity =>
fetch({
url: '/deviceVersionUpgrade/paging/vv/deviceVersionUpgrade',
method: 'post',
data: entity,
});
export const deleteUpdateLog = entity =>
fetch({
url: '/deviceVersionUpgrade/deleted/vv/deviceVersionUpgrade',
params: entity,
});
import fetch from './index';
export const fetchDeviceWarningList = entity =>
fetch({
url: '/device/warning/paging',
method: 'post',
...entity,
});
export const getIllegitmacy = entity =>
fetch({
url: '/device/warning/dict/illegalOperations',
params:entity,
});
export const getSelfService = entity =>
fetch({
url: '/device/warning/dict/deviceTypes',
params:entity,
});
export const getServiceType = entity =>
fetch({
url: '/device/warning/dict/deviceCategories',
params:entity,
});
\ No newline at end of file
import fetch from './index';
export const fetchAccountList = entity =>
fetch({
url: '/construction/constructionQuery4Page',
params: entity,
});
export const toggleAccountStatus = entity =>
fetch({
url: '/construction/constructionUpdateStatusBatch',
params: entity,
});
export const addAccount = entity =>
fetch({
url: '/construction/constructionInsert',
params: entity,
});
export const updateAccount = entity =>
fetch({
url: '/construction/constructionUpdate',
params: entity,
});
export const addTestAccount = entity =>
fetch({
url: '/construction/testConstructionInsert',
params: entity,
});
import waterBase from './waterBase';
export const fetchDeviceFreeList = entity =>
waterBase({
url: '/dcxy/waterDeviceFreeConfig/searchEquipment',
params:entity,
});
export const setDevice = entity =>
waterBase({
url: '/dcxy/waterDeviceFreeConfig/saveDevice',
method: 'POST',
...entity,
});
export const getDetail = entity =>
waterBase({
url: '/dcxy/waterDeviceFreeConfig/findRecord',
params:entity,
});
\ No newline at end of file
import fetch from './index';
const downloadUrl = manageShell.default.utils.downloadFiles;
export const fetchEquipmentList = entity =>
fetch({
url: '/equipment/query4Page',
params: entity,
});
export const addEquipment = entity =>
fetch({
url: '/equipment/equipmentInsert',
params: entity,
});
export const updateEquipment = entity =>
fetch({
url: '/equipment/equipmentUpdate',
params: entity,
});
export const deleteEquipment = entity =>
fetch({
url: '/equipment/equipmentDelete',
params: entity,
});
export const toggleEquipmentStatus = entity =>
fetch({
url: '/equipment/equipmentUpdateStatusBatch',
params: entity,
});
//导出小程序二维码
export const exportWeCharQrCode = entity =>
fetch({
url: '/exportCode4WeChar',
params: entity,
timeout: 30000,
});
//导出小程序二维码
export const exportCode4WeCharZip = entity =>
fetch({
url: '/exportCode4WeCharZip',
params: entity,
timeout: 30000,
// responseType:'blob',
}).then(res => {
return res;
// let blob = new Blob([res.data], { type: res.headers });
// let fileName = res.headers['content-disposition'].split('=')[1];
// downloadUrl(blob, fileName);
});
export const exportEquipment = entity =>
fetch({
url: '/equipment/equipmentExport',
params: entity,
responseType: 'blob',
}).then(res => {
let blob = new Blob([res.data], { type: res.headers });
let fileName = res.headers['content-disposition'].split('=')[1];
downloadUrl(blob, fileName);
});
export const getPositionsList = entity =>
fetch({
url: '/position/positionQuery4List',
params: entity,
});
export const getDeviceTypeList = () =>
fetch({
url: '/deviceType',
});
export const exportTemplate = () =>
fetch({
url: '/equipment/templateExport',
responseType: 'blob',
}).then(res => {
let blob = new Blob([res.data], { type: res.headers });
let fileName = res.headers['content-disposition'].split('=')[1];
downloadUrl(blob, fileName);
});
export const importTemplate = entity =>
fetch({
method: 'post',
url: '/equipment/equipmentImport',
data: entity,
headers: {
'Content-type': 'multipart/form-data',
},
});
const fetch = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_DISPENSER_SERVER_URL+ '/dcxy/construction/gx/manager/manager',
timeout: 10000,
});
export default fetch;
import fetch from './index';
export const fetchLocationList = entity =>
fetch({
url: '/address/addressQuery4Page',
params: entity,
});
export const addLocation = entity =>
fetch({
url: '/address/addressInsert',
params: entity,
});
export const updateLocation = entity =>
fetch({
url: '/address/addressUpdate',
params: entity,
});
export const deleteLocation = entity =>
fetch({
url: '/address/addressDelete',
params: entity,
});
export const importLocation = entity =>
fetch({
method: 'post',
url: '/address/addressImport',
data: entity,
headers: {
'Content-type': 'multipart/form-data',
},
timeout: 180000,
});
import fetch from './index';
export const fetchOrderList = entity =>
fetch({
url: '/consumer/consumerQuery4Page',
params: entity,
});
import fetch from './index';
export const fetchQrConfigList = entity =>
fetch({
url: '/userType/userTypeQuery4Page',
params: entity,
});
export const uodateQrConfig = entity =>
fetch({
url: '/userType/userType4Insert',
params: entity,
});
import fetch from './index';
export const fetchRateList = entity =>
fetch({
url: '/rate/rateQuery4Page',
params: entity,
});
export const fetchRateOptions = entity =>
fetch({
url: '/rate/rateQuery4List',
params: entity,
});
export const addRate = entity =>
fetch({
url: '/rate/rateInsert',
params: entity,
});
export const updateRate = entity =>
fetch({
url: '/rate/rateUpdate',
params: entity,
});
export const deleteRate = entity =>
fetch({
url: '/rate/rateDelete',
params: entity,
});
import fetch from './index';
export const fetchVersionList = entity =>
fetch({
url: '/consumer/deviceVersionQuery4Page',
params: entity,
});
export const addVersion = entity =>
fetch({
url: '/consumer/deviceVersionInsert',
method: 'post',
data: entity,
});
export const deleteVersion = entity =>
fetch({
url: '/consumer/deviceVersionDelete',
params: entity,
});
export const updateVersionState = entity =>
fetch({
url: '/consumer/deviceVersionUpdateStatusBatch',
params: entity,
});
const waterBase = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_DISPENSER_SERVER_URL,
timeout: 10000,
});
export default waterBase;
\ No newline at end of file
import fetch from './index';
export const getParameterMaps = entity =>
fetch({
url: '/device/dict/param',
...entity,
});
export const getEquipmentVersion = entity =>
fetch({
url: `/device/dict/hdversion/${entity.data.deviceType}/validity`,
...entity,
});
// export const getEquipmentVersion = entity =>
// fetch({
// url: '/device/dict/hdversion/validity',
// ...entity,
// });
export const getDeviceTypeAndVersionParams = entity =>
fetch({
url: `/device/dict/param/${entity.data.deviceType}/${
entity.data.versionId
}`,
...entity,
});
import fetch from './index';
export const fetchEquipmentParamsList = entity =>
fetch({
url: '/device/param/querying',
...entity,
});
export const updateEquipmentParams = entity =>
fetch({
url: '/device/param/modifying',
method: 'POST',
...entity,
});
export const fetchEquipmentParams = entity =>
fetch({
url: `/device/param/${entity.data.deviceCode}/list`,
...entity,
});
import fetch from './index';
export const fetchEquipmentParamsLogList = entity =>
fetch({
url: '/device/param/modrecord/querying',
...entity,
});
const fetch = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_DEVICE_SERVER_URL,
timeout: 10000,
});
export default fetch;
import fetch from './index';
export const fetchParamsConfigList = entity =>
fetch({
url: '/device/groupparam/querying',
...entity,
});
export const addParamsConfig = entity =>
fetch({
url: '/device/groupparam/adding',
method: 'POST',
...entity,
});
export const fetchParamsConfigDetail = entity =>
fetch({
url: `/device/groupparam/${entity.data.id}`,
...entity,
});
export const updateParamsConfig = entity =>
fetch({
url: '/device/groupparam/modifying',
method: 'POST',
...entity,
});
export const deleteParamsConfig = entity =>
fetch({
url: `/device/groupparam/${entity.data.id}/deleting`,
method: 'POST',
...entity,
});
import fetch from './index';
export const fetchParamsMapList = entity =>
fetch({
url: '/device/paramdefine/querying',
...entity,
});
export const addParamsMap = entity =>
fetch({
url: '/device/paramdefine/adding',
method: 'POST',
...entity,
});
export const updateParamsMap = entity =>
fetch({
url: '/device/paramdefine/modifying',
method: 'POST',
...entity,
});
export const deleteParamsMap = entity =>
fetch({
url: `/device/paramdefine/${entity.data.id}/deleting`,
method: 'POST',
...entity,
});
import fetch from '../fetch';
//列表
export const getFeedbackById = req =>
fetch({
url: `/feedback/get/feedback/${req.params.id}`,
method: 'GET',
data: req,
});
//列表
export const getFeedback = req =>
fetch({
url: '/feedback/get/feedback',
method: 'POST',
...req,
});
//保存
export const saveFeedback = req =>
fetch({
url: '/feedback/feedback',
method: 'PUT',
...req,
});
//记录
export const getFeedbackRecord = req =>
fetch({
url: `/feedback/get/feedbackRecord/${req.params.id}`,
method: 'GET',
...req,
});
......@@ -4,5 +4,9 @@ const fetch = createBaseFetch({
baseURL: process.env.VUE_APP_SYSTEM_SERVER_URL,
timeout: 10000,
});
export const customFetch = createBaseFetch({
baseURL: process.env.VUE_APP_CUSTOMER_SERVER_URL,
timeout: 10000,
});
export default fetch;
import fetch from './fetch';
export const getPageOrderMoney = req =>
fetch({
url: '/platform/toll/income/page/money',
method: 'POST',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
const APP_SECTION = '/app/section';
export const getRelations = req =>
fetch({
url: APP_SECTION + '/relation',
method: 'GET',
...req,
});
export const addRelations = req =>
fetch({
url: APP_SECTION + '/build/relation',
method: 'POST',
...req,
});
import fetch from './index';
export const fetchAccountList = entity =>
fetch({
url: '/construction/constructionQuery4Page',
params: entity,
});
export const toggleAccountStatus = entity =>
fetch({
url: '/construction/constructionUpdateStatusBatch',
params: entity,
});
export const addAccount = entity =>
fetch({
url: '/construction/constructionInsert',
params: entity,
});
export const updateAccount = entity =>
fetch({
url: '/construction/constructionUpdate',
params: entity,
});
export const addTestAccount = entity =>
fetch({
url: '/construction/testConstructionInsert',
params: entity,
});
import hairBase from './hairBase';
export const fetchDeviceFreeList = entity =>
hairBase({
url: '/dcxy/blowerDeviceFreeConfig/searchEquipment',
params:entity,
});
export const setDevice = entity =>
hairBase({
url: '/dcxy/blowerDeviceFreeConfig/saveDevice',
method: 'POST',
...entity,
});
export const getDetail = entity =>
hairBase({
url: '/dcxy/blowerDeviceFreeConfig/findRecord',
params:entity,
});
\ No newline at end of file
import fetch from './index';
const downloadUrl = manageShell.default.utils.downloadFiles;
export const fetchEquipmentList = entity =>
fetch({
url: '/equipment/query4Page',
params: entity,
});
export const addEquipment = entity =>
fetch({
url: '/equipment/equipmentInsert',
params: entity,
});
export const updateEquipment = entity =>
fetch({
url: '/equipment/equipmentUpdate',
params: entity,
});
export const deleteEquipment = entity =>
fetch({
url: '/equipment/equipmentDelete',
params: entity,
});
export const toggleEquipmentStatus = entity =>
fetch({
url: '/equipment/equipmentUpdateStatusBatch',
params: entity,
});
export const exportEquipment = entity =>
fetch({
url: '/equipment/equipmentExport',
params: entity,
responseType: 'blob',
}).then(res => {
let blob = new Blob([res.data], { type: res.headers });
let fileName = res.headers['content-disposition'].split('=')[1];
downloadUrl(blob, fileName);
});
export const getPositionsList = entity =>
fetch({
url: '/position/positionQuery4List',
params: entity,
});
//导出小程序二维码
export const exportWeCharQrCode = entity =>
fetch({
url: '/exportCode4WeChar',
params: entity,
timeout: 30000,
});
//导出小程序二维码
export const exportCode4WeCharZip = entity =>
fetch({
url: '/exportCode4WeCharZip',
params: entity,
timeout: 30000,
// responseType:'blob',
}).then(res => {
return res;
// let blob = new Blob([res.data], { type: res.headers });
// let fileName = res.headers['content-disposition'].split('=')[1];
// downloadUrl(blob, fileName);
});
export const exportTemplate = () =>
fetch({
url: '/equipment/templateExport',
responseType: 'blob',
}).then(res => {
let blob = new Blob([res.data], { type: res.headers });
let fileName = res.headers['content-disposition'].split('=')[1];
downloadUrl(blob, fileName);
});
export const importTemplate = entity =>
fetch({
method: 'post',
url: '/equipment/equipmentImport',
data: entity,
headers: {
'Content-type': 'multipart/form-data',
},
});
const hairBase = manageShell.default.createBaseFetch({
baseURL:
process.env.VUE_APP_BLOWER_SERVER_URL,
timeout: 10000,
});
export default hairBase;
\ No newline at end of file
const fetch = manageShell.default.createBaseFetch({
baseURL:
process.env.VUE_APP_BLOWER_SERVER_URL +
'/dcxy/construction/blower/manager/manager',
timeout: 10000,
});
export default fetch;
import fetch from './index';
export const fetchLocationList = entity =>
fetch({
url: '/address/addressQuery4Page',
params: entity,
});
export const addLocation = entity =>
fetch({
url: '/address/addressInsert',
params: entity,
});
export const updateLocation = entity =>
fetch({
url: '/address/addressUpdate',
params: entity,
});
export const deleteLocation = entity =>
fetch({
url: '/address/addressDelete',
params: entity,
});
export const importLocation = entity =>
fetch({
method: 'post',
url: '/address/addressImport',
data: entity,
headers: {
'Content-type': 'multipart/form-data',
},
timeout: 180000,
});
import fetch from './index';
export const fetchOrderList = entity =>
fetch({
url: '/consumer/consumerQuery4Page',
params: entity,
});
import fetch from './index';
export const fetchRateList = entity =>
fetch({
url: '/rate/rateQuery4Page',
params: entity,
});
export const fetchRateOptions = entity =>
fetch({
url: '/rate/rateQuery4List',
params: entity,
});
export const addRate = entity =>
fetch({
url: '/rate/rateInsert',
params: entity,
});
export const updateRate = entity =>
fetch({
url: '/rate/rateUpdate',
params: entity,
});
export const deleteRate = entity =>
fetch({
url: '/rate/rateDelete',
params: entity,
});
import fetch from './index';
export const fetchDisableTimeList = entity =>
fetch({
url: '/disableTimes',
params: entity,
});
export const addDisableTime = entity =>
fetch({
url: '/disableTimes',
method: 'POST',
...entity,
});
export const updateDisableTime = entity =>
fetch({
url: `/disableTimes/${entity.data.id}`,
method: 'POST',
...entity,
});
export const delDisableTime = entity =>
fetch({
url: `/disableTimes/${entity.data.id}`,
method: 'DELETE',
...entity,
});
export const fetchTimeList = entity =>
fetch({
url: '/disableTime/details',
...entity,
});
export const addTimeList = entity =>
fetch({
url: '/disableTime/details',
method: 'POST',
...entity,
});
export const fetchConfigDevice = entity =>
fetch({
url: '/disableTime/notBindingDevices',
...entity,
});
export const fetchBindedDevice = entity =>
fetch({
url: '/disableTime/devices',
...entity,
});
export const bindConfigDevice = entity =>
fetch({
url: '/disableTime/devices',
method: 'POST',
...entity,
});
export const authBindDevice = entity =>
fetch({
url: '/disableTime/devices/auth',
...entity,
});
import fetch from '../fetch';
export const fetchInterfaceList = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceApp/list',
method: 'post',
...req,
});
export const addInterface = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceApp',
method: 'post',
...req,
});
export const updateInterface = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceApp',
method: 'put',
...req,
});
export const toggleInterfaceState = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceApp/isDown',
method: 'post',
...req,
});
export const fetchDetailList = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceDetailApp/list',
method: 'post',
...req,
});
export const addDetailConfig = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceDetailApp',
method: 'post',
...req,
});
export const delDetailConfig = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceDetailApp',
method: 'delete',
...req,
});
export const toggleDetailConfigState = req =>
fetch({
url: '/modelInterfaceApp/modelInterfaceDetailApp',
method: 'put',
...req,
});
import fetch from '../fetch';
export const fetchInterfaceList = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceManager/list',
method: 'post',
...req,
});
export const addInterface = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceManager',
method: 'post',
...req,
});
export const updateInterface = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceManager',
method: 'put',
...req,
});
export const toggleInterfaceState = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceManager/isDown',
method: 'post',
...req,
});
export const fetchDetailList = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceDetailManage/list',
method: 'post',
...req,
});
export const addDetailConfig = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceDetailManage',
method: 'post',
...req,
});
export const delDetailConfig = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceDetailManage',
method: 'delete',
...req,
});
export const toggleDetailConfigState = req =>
fetch({
url: '/modelInterfaceManager/modelInterfaceDetailManage',
method: 'put',
...req,
});
......@@ -19,3 +19,58 @@ export const delCollect = req =>
url: path + '/adminChange/delteCollect',
...req,
});
export const fetchMenuTree = req =>
fetch({
url: path + '/menu/menu/list',
method: 'post',
...req,
});
export const addMenuNode = req =>
fetch({
url: path + '/menu/menu',
method: 'post',
...req,
});
export const fetchEditMenuDetail = req =>
fetch({
url: path + `/menu/menuButton/${req.data.id}`,
method: 'get',
...req,
});
export const updateMenuNode = req =>
fetch({
url: path + '/menu/menu',
method: 'put',
...req,
});
export const moveMenuNode = req =>
fetch({
url: path + `/menu/menu/${req.data.id}`,
method: 'put',
...req,
});
export const deleteMenuNode = req =>
fetch({
url: path + `/menu/menu/${req.data.id}`,
method: 'delete',
...req,
});
export const toggleMenuNodeState = req =>
fetch({
url: path + '/menu/menu/lock',
method: 'post',
...req,
});
export const fetchMenuNodeButton = req =>
fetch({
url: path + `/menu/menuButton/${req.data.id}`,
method: 'post',
...req,
});
export const fetchMenuUseState = req =>
fetch({
url: path + `/menu/menu/isUse/${req.data.id}`,
method: 'get',
...req,
});
import fetch from '../fetch';
const APP_OPEN_ADVERT = '/app/open/advert';
const COMMON = '/dcxy/common';
const ADVERT_CAMPUS = '/app/advertise/campus';
const ADVERT_OPERATE ='/advertise/operate';
export const pageAppOpenAdvertInfos = req =>
fetch({
url: APP_OPEN_ADVERT + '/page',
method: 'POST',
...req,
});
export const addAppOpenAdvertInfo = req =>
fetch({
url: APP_OPEN_ADVERT + '/gain',
method: 'POST',
...req,
});
export const updateAppOpenAdvertInfo = req =>
fetch({
url: APP_OPEN_ADVERT + '/modify',
method: 'POST',
...req,
});
export const getEditInfo = req =>
fetch({
url: APP_OPEN_ADVERT + '/edit/info',
method: 'GET',
...req,
});
export const updateState = req =>
fetch({
url: APP_OPEN_ADVERT + '/state',
method: 'PUT',
...req,
});
//-----------------------------------------
export const getUploadImgToken = req =>
fetch({
url: COMMON + '/qiniu/token',
method: 'GET',
...req,
});
export const getDelImgToken = req =>
fetch({
url: COMMON + '/del/pic',
method: 'GET',
...req,
});
//-----------------------------
export const addAdvertiseRelations = req =>
fetch({
url: ADVERT_CAMPUS + '/relation',
method: 'POST',
...req,
});
export const listSectionRelations = req =>
fetch({
url: ADVERT_CAMPUS + '/relations',
method: 'GET',
...req,
});
//-----------------------------------
export const getOperateRecords = req =>
fetch({
url: ADVERT_OPERATE + '/record',
method: 'GET',
...req,
});
//------------------------------------
\ No newline at end of file
const operDetail = manageShell.default.createBaseFetch({
baseURL: process.env.VUE_APP_SYSTEM_SERVER_URL,
timeout: 10000,
});
export default operDetail;
\ No newline at end of file
import fetch from '../fetch';
export const fetchOperLogList = req =>
fetch({
url: '/operLog/operLog/list',
method: 'post',
...req,
});
import fetch from './fetch';
export const getPageOrderMoney = req =>
fetch({
url: '/operate/order/page/money',
method: 'POST',
...req,
});
import fetch from '../fetch';
//基础地址
const path = process.env.VUE_APP_BASE_SERVER_URL;
//首充相关接口头
const pathFirstRecharge = '/dcxy/api/firstRechargeConf';
//充值配置相关接口头
const pathRecharge = '/dcxy/api/rechargeConf';
//注册赠送配置相关接口
const pathRegister = '/dcxy/api/registerGive';
//豆赠送活动相关接口
const pathActiveGiveBean = '/dcxy/api/activeGiveBean';
//查询为添加的区域
const pathOpMentBase = '/dcxy/opMentBase/opMentBase';
//首充列表分页
export const queryPage4FirstRecharge = req =>
fetch({
url: path + pathFirstRecharge + '/firstRechargeConf/list',
method: 'POST',
...req,
});
// 开启/关闭首充
export const updateLock4FirstRecharge = req =>
fetch({
url:
path +
pathFirstRecharge +
`/firstRechargeConf?id=${req.params.id}&${req.params.isEnable}`,
method: 'PUT',
...req,
});
// 保存首充配置
export const updateEntity4FirstRecharge = req =>
fetch({
url: path + pathFirstRecharge + `/firstRechargeConf/${req.data.id}`,
method: 'PUT',
...req,
});
// 查询操作记录
export const queryEntityById4FirstRecharge = req =>
fetch({
url: path + pathFirstRecharge + `/firstRechargeConf/${req.params.id}`,
method: 'GET',
...req,
});
// 查询拥有的服务
export const queryEntityByAreaOperId4FirstRecharge = req =>
fetch({
url: path + pathFirstRecharge + `/firstRechargeConf`,
method: 'GET',
...req,
});
// 充值配置相关接口
//充值配置列表分页
export const queryPage4Recharge = req =>
fetch({
url: path + pathRecharge + '/rechargeConf/list',
method: 'POST',
...req,
});
// 查询操作记录
export const queryEntityById4Recharge = req =>
fetch({
url: path + pathRecharge + `/rechargeConf/${req.params.id}`,
method: 'GET',
...req,
});
// 充值配置新增
export const updateEntity4Recharge = req =>
fetch({
url: path + pathRecharge + `/rechargeConf/`,
method: 'PUT',
...req,
});
// 充值配置删除
export const deleteEntity4Recharge = req =>
fetch({
url:
path +
pathRecharge +
`/rechargeConf/${req.params.id}/${req.params.rechargeConfId}`,
method: 'DELETE',
...req,
});
//注册赠送列表
export const queryPage4Register = req =>
fetch({
url: path + pathRegister + '/registerGive/list',
method: 'POST',
...req,
});
// 注册赠送查询操作记录
export const queryRecord4Register = req =>
fetch({
url: path + pathRegister + `/registerGive/${req.params.id}`,
method: 'GET',
...req,
});
// 注册赠送 开启/关闭赠送
export const updateLock4Register = req =>
fetch({
url: path + pathRegister + `/registerGive`,
method: 'PUT',
...req,
});
// 注册赠送 注册配置
export const addEntity4Register = req =>
fetch({
url: path + pathRegister + `/registerGive`,
method: 'POST',
...req,
});
//豆活动列表
export const queryPage4ActiveGiveBean = req =>
fetch({
url: path + pathActiveGiveBean + '/activeGiveBean/list',
method: 'POST',
...req,
});
//获取选中的会员类型
export const queryheckCustomerType = req =>
fetch({
url:
path +
pathActiveGiveBean +
`/activeGiveBean/${req.params.areaId}/${req.params.id}`,
method: 'GET',
...req,
});
//获取会员类型
export const queryCustomerType = req =>
fetch({
url: path + pathActiveGiveBean + `/activeGiveBean/${req.params.areaId}`,
method: 'GET',
...req,
});
//添加活动
export const addEntity4ActiveGiveBean = req =>
fetch({
url: path + pathActiveGiveBean + `/activeGiveBean`,
method: 'POST',
...req,
});
//修改活动
export const updateEntity4ActiveGiveBean = req =>
fetch({
url: path + pathActiveGiveBean + `/activeGiveBean`,
method: 'PUT',
...req,
});
//删除活动
export const deleteEntity4ActiveGiveBean = req =>
fetch({
url: path + pathActiveGiveBean + `/activeGiveBean/delete`,
method: 'DELETE',
...req,
});
//豆活动详情列表
export const queryPage4ActiveGiveBeanDetail = req =>
fetch({
url: path + pathActiveGiveBean + '/activeGiveBean/detail',
method: 'GET',
...req,
});
//查询未配置区域
export const queryAreaList = req =>
fetch({
url: path + pathOpMentBase,
method: 'GET',
...req,
});
//保存区域
export const addEntity = req =>
fetch({
url: path + pathFirstRecharge + '/firstRechargeConf',
method: 'POST',
...req,
});
import fetch from '../statistics';
//列表
export const getConsume = req =>
fetch({
url: '/consume/get/consume',
method: 'POST',
...req,
//请求超时时间
timeout: 20000,
});
//详情
export const getConsumeDetail = req =>
fetch({
url: `/consume/get/consume/${req.params.id}`,
method: 'GET',
...req,
});
import fetch from '../statistics';
export const fetchConsumeOrder = req =>
fetch({
url: '/dcxy/order/queryOrder',
method: 'POST',
...req,
});
export const getKindBean = req =>
fetch({
url: '/dcxy/order/kind/bean',
method: 'GET',
...req,
});
export const query4ThirdTradeInfo = req =>
fetch({
url: '/dcxy/order/consume/order',
method: 'GET',
...req,
});
import fetch from '../fetch';
export const getFailedOrder = req =>
fetch({
url: '/dcxy/api/customer/failOrder/page/fail',
method: 'POST',
...req,
});
import fetch from '../fetch';
//列表
export const getGiveBean = req =>
fetch({
url: '/giveBean/get/giveBean',
method: 'POST',
...req,
});
import fetch from '../statistics';
//列表
export const getPaymentConsume = req =>
fetch({
url: '/paymentConsume/get/paymentConsume',
method: 'POST',
...req,
});
import fetch from '../fetch';
// const path = 'http://localhost:8888/dcxy/api/customer/rechargeOrder';
// const fetch = createFetch({
// baseURL: path,
// timeout: 30000,
// });
// fetch.interceptors.request.use(
// config => {
// // store.dispatch('fetchStart');
// config.headers = {
// ...config.headers,
// reqSource: 'pc',
// token: 'Test321',
// key: 'test',
// };
// return config;
// },
// error => {
// console.log(error); // for debug
// Promise.reject(error);
// }
// );
// export function addClassify(entity) {
// return fetch({
// url: '/classify',
// method: 'POST',
// data: entity
// })
// };
// export function updateClassify(entity) {
// return fetch({
// url: '/classify',
// method: 'PUT',
// data: entity,
// })
// // };
// export function forRecharge(entity) {
// return fetch({
// url: '/classify',
// method: 'DELETE',
// params: entity,
// })
// };
// export function getPageAndTotalMoney(...entity) {
// console.log("3333333")
// return fetch({
// url: '/page/totalMoney',
// method: 'post',
// // params: entity,
// // data: entity
// data: { ...entity },
// })
// };
export const getPageAndTotalMoney = req =>
fetch({
url: '/dcxy/api/customer/rechargeOrder/page/totalMoney',
method: 'POST',
...req,
});
import fetch from '../fetch';
export const getPageRefund = req =>
fetch({
url: '/dcxy/api/customer/refundOrder/page/refund',
method: 'POST',
...req,
});
import fetch from '../fetch';
export const fetchOrderMergeRuleList = req =>
fetch({
url: '/dcxy/baseconfig/deviceOrderMergeRule/paging',
method: 'POST',
...req,
});
export const addOrderMergeRule = req =>
fetch({
url: '/dcxy/baseconfig/deviceOrderMergeRule/adding',
method: 'POST',
...req,
});
export const updateOrderMergeRule = req =>
fetch({
url: `/dcxy/baseconfig/deviceOrderMergeRule/${req.data.id}/modifying`,
method: 'POST',
...req,
});
export const delOrderMergeRule = req =>
fetch({
url: `/dcxy/baseconfig/deviceOrderMergeRule/${req.data.id}/deleting`,
method: 'POST',
...req,
});
export const fetchOrderMergeRule = req =>
fetch({
url: `/dcxy/baseconfig/deviceOrderMergeRule/${req.data.id}`,
...req,
});
import fetch from '../fetch';
// 版本配置API
const PVersion_PATH = '/dcxy/api/payment/version';
//支付管理API
const PAYMENT_PATH = '/dcxy/api/payment';
//配置操作记录API
const PRECORD_PATH = '/dcxy/api/base/po/record';
// 配置版本操作记录API
const PVRECORD_PATH = '/dcxy/api/base/pvo/record';
//运营支付API
const OAP_PATH = '/dcxy/api/base/operateAreaPay';
//支付管理API
export const getPagePayment = req =>
fetch({
url: PAYMENT_PATH + '/page/data',
method: 'post',
...req,
});
export const changePayment = req =>
fetch({
url: PAYMENT_PATH + '/change/payment',
method: 'get',
...req,
});
export const createPayment = req =>
fetch({
url: PAYMENT_PATH + '/create/payment',
method: 'get',
...req,
});
//开启/关闭类型接口
export const closeOrOpen = req =>
fetch({
url: PAYMENT_PATH + '/open/close/' + req.id + '/' + req.isEnable,
method: 'put',
// ...req,
})
// 版本配置API
export const getPaymentVersion = req =>
fetch({
url: PVersion_PATH + '/all/pversion',
method: 'get',
...req,
});
//修改接口
export const updatePaymentVersion = req =>
fetch({
url: PVersion_PATH + '/change/pversion',
method: 'post',
...req,
});
export const addPaymentVersion = req =>
fetch({
url: PVersion_PATH + '/creat/pversion',
method: 'post',
...req,
});
export const upAndDown = req =>
fetch({
url: PVersion_PATH + '/up/down/' + req.id + '/' + req.isEnable,
method: 'put',
// ...req,
});
export const deleteVersion = req =>
fetch({
url: PVersion_PATH + '/paymeny/version/' + req.id,
method: 'delete',
// ...req,
});
export const getPRecord = req =>
fetch({
url: PRECORD_PATH + '/kind/one',
method: 'get',
...req,
});
export const getPVRecord = req =>
fetch({
url: PVRECORD_PATH + '/kind/one',
method: 'get',
...req,
});
export const checkVBeUsed = req =>
fetch({
url: PAYMENT_PATH + '/check/beBind',
method: 'get',
...req,
});
//true存在
export const checkExist = req =>
fetch({
url: PVersion_PATH + '/check/exist/'+req.payType+'/'+req.versionName,
method: 'get',
// ...req,
});
export const checkPaymentExist = req =>
fetch({
url: PAYMENT_PATH + '/check/payment/exist',
method: 'get',
...req,
});
export const getAllPayment = req =>
fetch({
url: PAYMENT_PATH + '/all/opened/payment',
method: 'get',
...req,
});
export const getOpenedAbility = req =>
fetch({
url: PAYMENT_PATH + '/opened/ability',
method: 'get',
...req,
});
import fetch from '../fetch';
const path = process.env.VUE_APP_BASE_SERVER_URL;
const prepaidModelPath = '/dcxy/api/prepaidModel';
export const query4Page = req =>
fetch({
url: path + prepaidModelPath + '/prepaidModel/list',
method: 'POST',
...req,
});
/**新增 */
export const addEntity = req =>
fetch({
url: path + prepaidModelPath + '/prepaidModel',
method: 'POST',
...req,
});
/**修改 */
export const updateEntity = req =>
fetch({
url: path + prepaidModelPath + '/prepaidModel',
method: 'PUT',
...req,
});
/**删除 */
export const deleteEntity = req =>
fetch({
url: path + prepaidModelPath + '/prepaidModel',
method: 'DELETE',
...req,
});
/**详情 */
export const getEntityById = req =>
fetch({
url: path + prepaidModelPath + '/prepaidModel',
method: 'GET',
...req,
});
/**详情 */
export const queryServiceByAreaId = req =>
fetch({
url: path + '/dcxy/api/base/service/queryServiceByAreaId',
method: 'GET',
...req,
});
import fetch from './fetch';
export const getPageOrderMoney = req =>
fetch({
url: '/smpro/prepay/order/page/money',
method: 'POST',
...req,
});
export const getRefundInfo = req =>
fetch({
url: '/smpro/prepay/order/refund/info',
method: 'GET',
...req,
});
export const gotoRefund = req =>
fetch({
url: '/smpro/prepay/order/for/refund',
method: 'POST',
...req,
});
import fetch from '../fetch';
const downloadUrl = manageShell.default.utils.downloadFiles;
export const fetchEquList = req =>
fetch({
url: '/dcxy/purchasingEqu/queryList',
method: 'post',
...req,
});
export const getbatchNumber = req =>
fetch({
url: '/dcxy/purchasingOrder/findBatchNumber',
method: 'get',
params: req,
});
export const geBatchNumberDetail = req =>
fetch({
url: '/dcxy/purchasingOrder/findOne',
method: 'get',
params: req,
});
export const addPurchasingEqu = req =>
fetch({
url: '/dcxy/purchasingEqu/addPurchasing',
method: 'post',
...req,
});
export const updatePurchasingEqu = req =>
fetch({
url: '/dcxy/purchasingEqu/updatePurchasing',
method: 'post',
...req,
});
export const updateState = req =>
fetch({
url: '/dcxy/purchasingEqu/updateState',
method: 'get',
params: req,
});
export const fetchDetail = req =>
fetch({
url: '/dcxy/purchasingEqu/findRecord',
method: 'get',
params: req,
});
export const exportTemplate = () =>
fetch({
url: '/dcxy/purchasingEqu/templateExport',
responseType: 'blob',
}).then(res => {
let blob = new Blob([res.data], { type: res.headers });
let fileName = res.headers['content-disposition'].split('=')[1];
downloadUrl(blob, fileName);
});
export const importTemplate = entity =>
fetch({
method: 'post',
url: '/dcxy/purchasingEqu/equipmentImport',
data: entity,
headers: {
'Content-type': 'multipart/form-data',
},
});
\ No newline at end of file
import fetch from '../fetch';
export const fetchOrderList = req =>
fetch({
url: '/dcxy/purchasingOrder/queryList',
method: 'post',
...req,
});
export const addPurchasing = req =>
fetch({
url: '/dcxy/purchasingOrder/addPurchasing',
method: 'post',
...req,
});
export const updatePurchasing = req =>
fetch({
url: '/dcxy/purchasingOrder/updatePurchasing',
method: 'post',
...req,
});
export const updateTime = req =>
fetch({
url: '/dcxy/purchasingOrder/updateActualPaytime',
method: 'post',
...req,
});
export const fetchDetail = req =>
fetch({
url: '/dcxy/purchasingOrder/findRecord',
method: 'get',
params:req,
});
import fetch from '../fetch';
export const getAreaConsumeList = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryAreaConsumeList',
method: 'POST',
...req,
});
export const getAreaConsumeCount = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryAreaConsumeCount',
method: 'POST',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const getconsumeOperList = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryConsumeOperList',
method: 'POST',
...req,
});
export const getconsumeOperDetail = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryConsumeOperDetail',
method: 'POST',
...req,
});
export const getconsumeOperCollect = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryConsumeOperCollect',
method: 'POST',
...req,
});
import fetch from '../fetch';
const path = process.env.VUE_APP_STATISTICS_SERVER_URL;
//单个会员消费分页
export const query4IndiMembPage = req =>
fetch({
url: '/dcxy/orderAll/customer',
method: 'POST',
...req,
});
//单个区域消费汇总
export const query4IndiAreaPage = req =>
fetch({
url: '/dcxy/orderAll/area',
method: 'POST',
...req,
});
export const getKindBean = req =>
fetch({
url: '/dcxy/orderAll/kind/bean',
method: 'GET',
...req,
});
//新的获取豆子消费金额
export const getNewKindBean = req =>
fetch({
url: '/dcxy/orderAll/new/kind/bean',
method: 'GET',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const pageCustomerConsume = req =>
fetch({
url: '/dcxy/consumerReportInfo/page/customer/consume',
method: 'POST',
...req,
});
export const getCustomerConsumeDetail = req =>
fetch({
url: '/dcxy/consumerReportInfo/customer/consume/detail',
method: 'POST',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const getequipmentList = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryEquipmentList',
method: 'POST',
...req,
});
export const getequipmentCount = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryEquipmentCount',
method: 'POST',
...req,
});
export const getequipmentDetail = req =>
fetch({
url: '/dcxy/consumerReportInfo/queryEquipmentDetail',
method: 'POST',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
const path = process.env.VUE_APP_BASE_SERVER_URL;
//获取所有支付方式
export const fetchPaymentList = req =>
fetch({
url: path + '/dcxy/api/payment/all/payments',
method: 'get',
...req,
});
\ No newline at end of file
import fetch from '../fetch';
export const fetchRoleList = req =>
fetch({
url: '/role/role/list',
method: 'post',
...req,
});
export const addRole = req =>
fetch({
url: '/role/role',
method: 'post',
...req,
});
export const updateRole = req =>
fetch({
url: '/role/role',
method: 'put',
...req,
});
export const fetchBindUsers = req =>
fetch({
url: '/role/role/bindUser',
method: 'get',
...req,
});
export const roleBindUsers = req =>
fetch({
url: '/role/role/bindUser',
method: 'post',
...req,
});
export const toggleRoleState = req =>
fetch({
url: '/role/role/lock',
method: 'put',
...req,
});
export const fetchAuthRoute = req =>
fetch({
url: '/role/role/menuButton',
method: 'get',
...req,
});
export const bindAuthRoute = req =>
fetch({
url: '/role/role/bindMenuButton',
method: 'post',
...req,
});
export const fetchRoleDetail = req =>
fetch({
url: `/role/role/menuButton/${req.data.id}`,
method: 'get',
...req,
});
export const fetchAllOpenRole = req =>
fetch({
url: '/role/role/isOpen',
method: 'get',
...req,
});
import fetch from '../fetch';
const SERVICE_PATH = '/dcxy/api/base/service';
const RECORD_PATH = '/dcxy/api/base/record';
//自助服务分页查询接口
export const getPageService = req =>
fetch({
url: SERVICE_PATH + '/page/serviceData',
method: 'post',
...req,
});
//服务新增接口
export const addSelfService = req =>
fetch({
url: SERVICE_PATH + '/create/serviceData',
method: 'post',
...req,
});
//服务基本信息查询接口
export const getSelfService = req =>
fetch({
url: SERVICE_PATH + '/serviceData',
method: 'get',
...req,
});
//开启/关闭服务接口
export const closeOrOpen = req =>
fetch({
url: SERVICE_PATH + '/open/close/' + req.id + '/' + req.state,
method: 'put',
// ...req,
});
//服务基本信息修改接口
export const updateSelfService = req =>
fetch({
url: SERVICE_PATH + '/change/serviceData',
method: 'post',
...req,
});
//自助服务查询接口
export const getKindsService = req =>
fetch({
url: SERVICE_PATH + '/kinds/service',
method: 'get',
...req,
});
//获取服务记录各一条接口
export const getRecordService = req =>
fetch({
url: RECORD_PATH + '/kinds/one',
method: 'get',
...req,
});
export const getAllSelfService = req =>
fetch({
url: SERVICE_PATH + '/all/about/service',
method: 'get',
...req,
});
export const getThirdService = req =>
fetch({
url: SERVICE_PATH + '/third/service',
method: 'get',
...req,
});
export const checkExistService = req =>
fetch({
url: SERVICE_PATH + '/name/whether/exist',
method: 'get',
...req,
});
import fetch from './index';
export const fetchAccountList = entity =>
fetch({
url: '/construction/constructionQuery4Page',
params: entity,
});
export const toggleAccountStatus = entity =>
fetch({
url: '/construction/constructionUpdateStatusBatch',
params: entity,
});
export const addAccount = entity =>
fetch({
url: '/construction/constructionInsert',
params: entity,
});
export const updateAccount = entity =>
fetch({
url: '/construction/constructionUpdate',
params: entity,
});
export const addTestAccount = entity =>
fetch({
url: '/construction/testConstructionInsert',
params: entity,
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment