qgb-process 0.1.86 → 0.1.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/qgb-process.common.js +13 -12
  2. package/lib/qgb-process.umd.js +13 -12
  3. package/lib/qgb-process.umd.min.js +28 -28
  4. package/package.json +1 -1
  5. package/src/api/ApiExAndapp.js +2 -1
  6. package/src/api/apiAcceptance/apiAcceptance.js +2 -1
  7. package/src/api/apiArrears/apiArrears.js +3 -2
  8. package/src/api/apiArrears/apiProjectArrears.js +2 -1
  9. package/src/api/apiArrears/index.js +2 -1
  10. package/src/api/apiAudit/apiAudit.js +4 -3
  11. package/src/api/apiAuth.js +6 -5
  12. package/src/api/apiAuthentication.js +5 -4
  13. package/src/api/apiBankAccount/index.js +2 -1
  14. package/src/api/apiBudget/apiBudget.js +2 -1
  15. package/src/api/apiBudget/apiBudgets.js +3 -2
  16. package/src/api/apiChangeTel.js +6 -5
  17. package/src/api/apiCollection/index.js +2 -1
  18. package/src/api/apiContract/index.js +2 -1
  19. package/src/api/apiContract/quill-config.js +2 -1
  20. package/src/api/apiCost/index.js +3 -2
  21. package/src/api/apiCreditManagement.js +2 -2
  22. package/src/api/apiCustomer/apiCustomer.js +2 -1
  23. package/src/api/apiEquipmentRental.js +2 -1
  24. package/src/api/apiFormBuilder/menu.js +2 -1
  25. package/src/api/apiFormBuilder/reissueRule.js +2 -1
  26. package/src/api/apiHelp.js +2 -1
  27. package/src/api/apiHome.js +7 -6
  28. package/src/api/apiIminfo.js +4 -2
  29. package/src/api/apiInvoice.js +3 -4
  30. package/src/api/apiLease/apiLease.js +2 -1
  31. package/src/api/apiLogisticsTransportation/apiLogisticsTransportation.js +2 -1
  32. package/src/api/apiManagementStore/api.js +2 -3
  33. package/src/api/apiManagementStore/apiManagementStore.js +2 -1
  34. package/src/api/apiMaterCheckAndAccept/apiMechanicalSourcing.js +2 -1
  35. package/src/api/apiMaterCheckAndAccept/index.js +2 -1
  36. package/src/api/apiMaterials/api.js +2 -1
  37. package/src/api/apiMaterials/apiCommercialConcrete.js +2 -1
  38. package/src/api/apiMaterials/apiCommodity.js +2 -1
  39. package/src/api/apiMaterials/apiOfflineOrder.js +5 -5
  40. package/src/api/apiMonthPlan/apiMonthPlan.js +2 -1
  41. package/src/api/apiMyBidding.js +2 -1
  42. package/src/api/apiMyMember/apiComInfo.js +3 -2
  43. package/src/api/apiMyMember/apiInviteJoin.js +3 -2
  44. package/src/api/apiMyMember/apiMember.js +5 -4
  45. package/src/api/apiMyMember/apiMemberApply.js +3 -2
  46. package/src/api/apiMyMember/apiMemberChance.js +3 -2
  47. package/src/api/apiOffer.js +2 -1
  48. package/src/api/apiPact.js +2 -2
  49. package/src/api/apiPassword.js +2 -1
  50. package/src/api/apiPay/apiPay.js +2 -1
  51. package/src/api/apiPayment/apiPayment.js +2 -1
  52. package/src/api/apiPayment/apiProjectPayment.js +2 -1
  53. package/src/api/apiProject/apiBaseList.js +2 -1
  54. package/src/api/apiProject/apiGoodsOffer.js +3 -2
  55. package/src/api/apiProject/apiInventory.js +3 -2
  56. package/src/api/apiProject/apiOfferOrder.js +2 -1
  57. package/src/api/apiProject/apiOfferQuery.js +2 -1
  58. package/src/api/apiProject/apiPlan.js +5 -4
  59. package/src/api/apiProject/apiProject.js +2 -1
  60. package/src/api/apiProjectProcurement/apiProjectProcurement.js +8 -7
  61. package/src/api/apiPurchase/apiPurchase.js +9 -8
  62. package/src/api/apiPurchaseApply.js +2 -2
  63. package/src/api/apiPurchasePay.js +2 -2
  64. package/src/api/apiRecruit.js +2 -1
  65. package/src/api/apiRisk/index.js +2 -1
  66. package/src/api/apiRoleManagement.js +3 -2
  67. package/src/api/apiRules/apiRules.js +2 -1
  68. package/src/api/apiSchedule/apiSchedule.js +2 -1
  69. package/src/api/apiSealRecord.js +2 -2
  70. package/src/api/apiSign.js +2 -1
  71. package/src/api/apiSolution/apiSolution.js +2 -1
  72. package/src/api/apiSubcontract.js +2 -1
  73. package/src/api/apiTask.js +2 -2
  74. package/src/api/apiTeam/api.js +2 -3
  75. package/src/api/apiTender.js +2 -1
  76. package/src/api/apiUser.js +2 -1
  77. package/src/api/apiUserEnterprise/api.js +2 -1
  78. package/src/api/apiUserEnterprise/apiUserEn.js +3 -2
  79. package/src/api/apiVolunteerTeam.js +3 -2
  80. package/src/api/apiWorkarea.js +2 -1
  81. package/src/api/apiXzqh.js +2 -1
  82. package/src/api/evection.js +2 -2
  83. package/src/api/guide.js +3 -1
  84. package/src/api/sociaManageApi.js +2 -1
  85. package/src/formBuilder/apiBusiness.js +7 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qgb-process",
3
- "version": "0.1.86",
3
+ "version": "0.1.87",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "",
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const baseUrl = process.env.VUE_APP_API + "/sgb-meta-design"
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const baseUrl = base.VUE_APP_API + "/sgb-meta-design"
3
4
  const ApiExAndapp = {
4
5
  postExAndapp1: () => request.get("/v2/api/audit/sponsorAuditListStatus"), // 获取发起审批状态
5
6
  postExAndapplog: (data) => request.post("/v2/api/audit/auditLogList", data), // 我的审批日志
@@ -8,7 +8,8 @@
8
8
  **/
9
9
 
10
10
  import request from "@/http"
11
- const url = process.env.VUE_APP_APIRECRUITMENT
11
+ const base = JSON.parse(localStorage.getItem("env"))
12
+ const url = base.VUE_APP_APIRECRUITMENT
12
13
  const apiLease = {
13
14
  // 材料验收
14
15
  list: (data) => request.post(`${url}/v1/accept/material/list`, data),
@@ -9,8 +9,9 @@
9
9
 
10
10
  /* 企业预算 */
11
11
  import request from "@/http"
12
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
13
- const apiUrl = process.env.VUE_APP_APIRECRUITMENT
12
+ const base = JSON.parse(localStorage.getItem("env"))
13
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
14
+ const apiUrl = base.VUE_APP_APIRECRUITMENT
14
15
 
15
16
  // const url = 'http://192.168.3.49:8000'
16
17
  const apiArrears = {
@@ -1,6 +1,7 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
4
5
 
5
6
  // const url = 'http://192.168.3.49:8000'
6
7
  const apiProjectArrears = {
@@ -1,6 +1,7 @@
1
1
  // 挂账
2
2
  import request from "@/http"
3
- const zcUrl = process.env.VUE_APP_APIRECRUITMENT // 招采
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
4
5
  const apiArrears = {
5
6
  // 进行中-项目列表
6
7
  getProjectList: () => request.get(`${zcUrl}/ov1/project/approveProject`), // 验收单列表
@@ -1,7 +1,8 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_AUDIT
3
- const baseUrl = process.env.VUE_APP_API + "/sgb-meta-design"
4
- const emterprise = process.env.VUE_APP_API + process.env.VUE_APP_EMTERPRISE
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_AUDIT
4
+ const baseUrl = base.VUE_APP_API + "/sgb-meta-design"
5
+ const emterprise = base.VUE_APP_API + base.VUE_APP_EMTERPRISE
5
6
 
6
7
  /* 制度规定 */
7
8
  // 新增审批流程
@@ -1,7 +1,8 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_API
3
- const authUrlType = process.env.VUE_APP_AUTHURLTYPE
4
- const auth = process.env.VUE_APP_AUTH
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_API
4
+ const authUrlType = base.VUE_APP_AUTHURLTYPE
5
+ const auth = base.VUE_APP_AUTH
5
6
 
6
7
  const apiAuth = {
7
8
  getAuthTree: rid => request.get(url + authUrlType + `/gv1/sysMicro/getMenu/${rid}/member`),
@@ -11,7 +12,7 @@ const apiAuth = {
11
12
  getSMSLoginCode: (data) => request.post(url + authUrlType + "/ov1/sms", data),
12
13
  companyCut: (no) => request.get(`${url}${authUrlType}/sv1/cut/${no}`),
13
14
  // 切换主企业
14
- updateDefaultCompany: (data) => request.post(url + process.env.VUE_APP_EMTERPRISE + "/v1/organization/updateDefaultCompany", data),
15
- getUserCompany: () => request.get(process.env.VUE_APP_MEMBERCENTER + `/api/user/getUserCompany`)
15
+ updateDefaultCompany: (data) => request.post(url + base.VUE_APP_EMTERPRISE + "/v1/organization/updateDefaultCompany", data),
16
+ getUserCompany: () => request.get(base.VUE_APP_MEMBERCENTER + `/api/user/getUserCompany`)
16
17
  }
17
18
  export default apiAuth
@@ -2,10 +2,11 @@
2
2
  // 认证管理
3
3
  //
4
4
  import request from "@/http"
5
- const api = process.env.VUE_APP_API_APISTORE
6
- const apiMaterials = process.env.VUE_APP_APIMATERIALS
7
- const apiUser = process.env.VUE_APP_APIUSER
8
- const apiUrl = process.env.VUE_APP_MEMBERCENTER
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const api = base.VUE_APP_API_APISTORE
7
+ const apiMaterials = base.VUE_APP_APIMATERIALS
8
+ const apiUser = base.VUE_APP_APIUSER
9
+ const apiUrl = base.VUE_APP_MEMBERCENTER
9
10
  const apiAuthentication = {
10
11
 
11
12
  business: () => request.get("/api/auth/business"), // 采购商主营业务一级分类
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIUSER
3
4
  const apiBankAccount = {
4
5
  getBankAccountList: (data) => request.get(`${url}/v1/api/bank/information/list`, data),
5
6
  getBankAccountDetail: (data) => request.get(`${url}/v1/api/bank/information/detail`, data),
@@ -1,6 +1,7 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_APIRECRUITMENT
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_APIRECRUITMENT
4
5
  const apiBusinessBudget = {
5
6
  /* 预算列表 */
6
7
  budgetSave: (data) => request.post(`${url}/ov1/company/budget/save`, data),
@@ -1,8 +1,9 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
4
5
  // const costurl = 'http://localhost:8081'
5
- const costurl = process.env.VUE_APP_API + process.env.VUE_APP_EMTERPRISE
6
+ const costurl = base.VUE_APP_API + base.VUE_APP_EMTERPRISE
6
7
  const apiBudgets = {
7
8
  // 【公司费用线条】
8
9
  queryPage: (data) => request.post(`${costurl}/v1/api/companyFee/plan/queryPage`, data), // 公司费用计划
@@ -2,11 +2,12 @@
2
2
  * 修改绑定手机
3
3
  */
4
4
  import request from "@/http"
5
+ const base = JSON.parse(localStorage.getItem("env"))
5
6
  const apiChangeTel = {
6
- verifyOldPwd: (params) => request.post(process.env.VUE_APP_MEMBERCENTER + "/api/user/verifyOldPwd", params),
7
- getNewTelCode: (params) => request.get(process.env.VUE_APP_MEMBERCENTER + "/api/user/getNewTelCode", params),
8
- bindPhone: (params) => request.post(process.env.VUE_APP_MEMBERCENTER + "/api/user/bindPhone", params),
9
- bindOldPhone: (params) => request.post(process.env.VUE_APP_MEMBERCENTER + "/api/user/verifyOldTelSmsCode", params), // 验证旧手机号
10
- sendOldPhone: () => request.post(process.env.VUE_APP_MEMBERCENTER + "/api/user/getModifyTelSmsCode")// 旧手机号发送验证码
7
+ verifyOldPwd: (params) => request.post(base.VUE_APP_MEMBERCENTER + "/api/user/verifyOldPwd", params),
8
+ getNewTelCode: (params) => request.get(base.VUE_APP_MEMBERCENTER + "/api/user/getNewTelCode", params),
9
+ bindPhone: (params) => request.post(base.VUE_APP_MEMBERCENTER + "/api/user/bindPhone", params),
10
+ bindOldPhone: (params) => request.post(base.VUE_APP_MEMBERCENTER + "/api/user/verifyOldTelSmsCode", params), // 验证旧手机号
11
+ sendOldPhone: () => request.post(base.VUE_APP_MEMBERCENTER + "/api/user/getModifyTelSmsCode")// 旧手机号发送验证码
11
12
  }
12
13
  export default apiChangeTel
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIUSER
3
4
  const apiCollection = {
4
5
  getCollectionList: (data) => request.post(`${url}/v1/api/makeCollection/list`, data),
5
6
  getCollectionDetail: (data) => request.get(`${url}/v1/api/makeCollection/detail`, data),
@@ -1,2 +1,3 @@
1
- const url = process.env.VUE_APP_APIMATERIALS
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const url = base.VUE_APP_APIMATERIALS
2
3
  export default url
@@ -2,8 +2,9 @@ import cookie from "@/storage/cookies"
2
2
  import { Message } from "element-ui"
3
3
  // let that = this
4
4
  /* 富文本编辑图片上传配置 */
5
+ const base = JSON.parse(localStorage.getItem("env"))
5
6
  const uploadConfig = {
6
- action: process.env.VUE_APP_APIMATERIALS,
7
+ action: base.VUE_APP_APIMATERIALS,
7
8
  methods: "POST", // 必填参数 图片上传方式
8
9
  token: cookie.cookieRead("token"), // 可选参数 如果需要token验证,假设你的token有存放在sessionStorage
9
10
  name: "file", // 必填参数 文件的参数名
@@ -1,8 +1,9 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
4
5
  // const url = 'http://192.168.3.49:8000'
5
- const costurl = process.env.VUE_APP_API + process.env.VUE_APP_EMTERPRISE
6
+ const costurl = base.VUE_APP_API + base.VUE_APP_EMTERPRISE
6
7
  // const costurl = 'http://localhost:8080'
7
8
  const apiCost = {
8
9
  /* 预算列表 */
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
-
3
- const contract = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const contract = base.VUE_APP_APIUSER
4
4
  // let contract = 'http://192.168.1.19:9090'
5
5
 
6
6
  const apiPact = {
@@ -1,6 +1,7 @@
1
1
  // 会员单位申请
2
2
  import request from "@/http"
3
- const zcUrl = process.env.VUE_APP_APIRECRUITMENT // 招采
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
4
5
  const apiCustomer = {
5
6
  getAllCustomerList: () => request.get(`${zcUrl}/customer/listAll`), // 客户列表-无分页
6
7
  getCustomerList: (data) => request.get(`${zcUrl}/customer/list`, data), // 客户列表
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const { VUE_APP_APIEQUIPMENT } = process.env
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const { VUE_APP_APIEQUIPMENT } = base
3
4
  const apiEquipmentRental = {
4
5
  // 列表
5
6
  equipmentRentalList: params =>
@@ -7,7 +7,8 @@
7
7
  * @FilePath: \src\api\apiFormBuilder\menu.js
8
8
  **/
9
9
  import request from "@/http"
10
- const baseUrl = process.env.VUE_APP_API + "/sgb-meta-design"
10
+ const base = JSON.parse(localStorage.getItem("env"))
11
+ const baseUrl = base.VUE_APP_API + "/sgb-meta-design"
11
12
  // const baseUrl = 'http://192.168.0.23:9096'
12
13
  import qs from "qs"
13
14
  // 获取自定菜单列表信息
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const baseUrl = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const baseUrl = base.VUE_APP_APIUSER
3
4
  // const baseUrl = 'http://localhost:8080'
4
5
 
5
6
  // 考勤管理列表
@@ -1,5 +1,6 @@
1
1
  import axios from "@/http"
2
- const api = process.env.VUE_APP_APIMATERIALS
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const api = base.VUE_APP_APIMATERIALS
3
4
  const url = api
4
5
  const apiHelp = {
5
6
  // 列表
@@ -1,15 +1,16 @@
1
1
  import request from "@/http"
2
- const apiMaterials = process.env.VUE_APP_APIMATERIALS
3
- const shopInfo = process.env.VUE_APP_API_APISTORE
4
- const apiUser = process.env.VUE_APP_APIUSER
5
- const VUE_APP_MENUURL = process.env.VUE_APP_MENUURL
6
- const RECRUITMENT = process.env.VUE_APP_APIRECRUITMENT
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const apiMaterials = base.VUE_APP_APIMATERIALS
4
+ const shopInfo = base.VUE_APP_API_APISTORE
5
+ const apiUser = base.VUE_APP_APIUSER
6
+ const VUE_APP_MENUURL = base.VUE_APP_MENUURL
7
+ const RECRUITMENT = base.VUE_APP_APIRECRUITMENT
7
8
 
8
9
  export const apiHome = {
9
10
  // /authentication/mobile?mobile=18699155392&smsCode=7825
10
11
  authenticationMobile: (data) => request.post(`/authentication/mobile?mobile=${data.mobile}&smsCode=${data.smsCode}`), // 获取验证码
11
12
  getSMSLoginCode: (data) => request.post(`/authentication/getSMSLoginCode`, data), // 获取验证码
12
- getArea: () => request.get(process.env.VUE_APP_APIMATERIALS + `/index/getCurrentProvince`), // 获取地区
13
+ getArea: () => request.get(base.VUE_APP_APIMATERIALS + `/index/getCurrentProvince`), // 获取地区
13
14
  getAreaById: (id) => request.get(apiMaterials + "/api/area/getAreaById/" + id),
14
15
  getShopInfo: () => request.get(shopInfo + "/companyInfo/checkStoreInfoIsComplete"),
15
16
  publishInfo: () => request.get(apiUser + "/api/user/publishInfo"), // 192.168.100.169:9090/api/user/publishInfo?userNo=no
@@ -1,7 +1,9 @@
1
1
  import request from "@/http"
2
2
  import qs from "qs"
3
- const url = process.env.VUE_APP_API
4
- const qiguan = process.env.VUE_APP_QIGUAN
3
+
4
+ const base = JSON.parse(localStorage.getItem("env"))
5
+ const url = base.VUE_APP_API
6
+ const qiguan = base.VUE_APP_QIGUAN
5
7
  // let baseUrl = 'http://localhost:8080'
6
8
  const baseUrl = url + qiguan;
7
9
 
@@ -1,8 +1,7 @@
1
1
  import request from "@/http"
2
-
3
- const contract = process.env.VUE_APP_APIUSER
4
- // let contract = 'http://192.168.1.19:9090'
5
- const url = process.env.VUE_APP_APIRECRUITMENT
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const contract = base.VUE_APP_APIUSER
4
+ const url = base.VUE_APP_APIRECRUITMENT
6
5
 
7
6
  const apiPact = {
8
7
  // 合同名称查询
@@ -1,6 +1,7 @@
1
1
 
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_APIRECRUITMENT
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_APIRECRUITMENT
4
5
  const apiLease = {
5
6
  apply: (data) => request.post(`${url}/v1/lease/apply`, data),
6
7
  list: (data) => request.post(`${url}/v1/lease/list`, data),
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_L0GISTICSTRANSPORTTATION
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_L0GISTICSTRANSPORTTATION
3
4
  console.log("司机认证api", url)
4
5
  /* 制度规定 */
5
6
  export const apiLogisticsTransportation = {
@@ -1,4 +1,3 @@
1
- // let api = 'http://192.168.100.244:9099/'
2
- // VUE_APP_APIUSER = http://192.168.100.244:9099
3
- const api = process.env.VUE_APP_API_APISTORE
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const api = base.VUE_APP_API_APISTORE
4
3
  export default api
@@ -1,6 +1,7 @@
1
1
  // 商品api
2
2
  import http from "@/http/type.js"
3
- const api = process.env.VUE_APP_API_APISTORE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const api = base.VUE_APP_API_APISTORE
4
5
  const apiManagementStore = {
5
6
  getManagementStore: (params) => http.get(api + "/api/companyManagementTeam", params), // 团队管理
6
7
 
@@ -1,6 +1,7 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
4
5
  // const url = 'http://192.168.3.49:8000'
5
6
  const apiMechanicalSourcing = {
6
7
  /* 预算列表 */
@@ -1,2 +1,3 @@
1
- const url = process.env.VUE_APP_APIUSER
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const url = base.VUE_APP_APIUSER
2
3
  export default url
@@ -1,2 +1,3 @@
1
- const api = process.env.VUE_APP_APIMATERIALS
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const api = base.VUE_APP_APIMATERIALS
2
3
  export default api
@@ -5,7 +5,8 @@ import {
5
5
  } from "element-ui"
6
6
  // import Toast from '@/library/toast/Index.js'
7
7
  // Toast({ msg: '申请成功' })
8
- const apiMaterials = process.env.VUE_APP_APIMATERIALS
8
+ const base = JSON.parse(localStorage.getItem("env"))
9
+ const apiMaterials = base.VUE_APP_APIMATERIALS
9
10
  // import apiCommodity from '@/api/apiMaterials/apiCommodity'
10
11
  const apiCommercialConcrete = {
11
12
 
@@ -3,7 +3,8 @@ import api from "./api"
3
3
 
4
4
  import Toast from "@/library/toast/Index.js"
5
5
  // Toast({ msg: '申请成功' })
6
- const apiMaterials = process.env.VUE_APP_APIMATERIALS
6
+ const base = JSON.parse(localStorage.getItem("env"))
7
+ const apiMaterials = base.VUE_APP_APIMATERIALS
7
8
  // import apiCommodity from '@/api/apiMaterials/apiCommodity'
8
9
  const apiCommodity = {
9
10
  fetchClassifications: () => request.get(apiMaterials + `/api/itemCat/getListByShield`), // 获取商品所有分类
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
2
  import api from "./api"
3
-
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
4
  const apiOfflineOrder = {
5
5
  addOfflineOrder: (params) => request.post(api + "/api/offlineOrder/addOfflineOrder", params), // 保存线下订单
6
6
  editOfflineOrder: (params) => request.post(api + "/api/offlineOrder/editOfflineOrder", params), // 更新线下订单
@@ -9,10 +9,10 @@ const apiOfflineOrder = {
9
9
  deleteOfflineOrder: (no) => request.delete(api + "/api/offlineOrder/deleteOfflineOrder?no=" + no), // 删除线下订单列表
10
10
 
11
11
  // 采购业务
12
- purchaseSave: (data) => request.post(`${process.env.VUE_APP_APIUSER}` + "/engineering/purchase/save", data), // 申请采购
13
- purchaseList: (data) => request.get(`${process.env.VUE_APP_APIUSER}` + "/engineering/purchase/list", data), // 申请采购列表
12
+ purchaseSave: (data) => request.post(`${base.VUE_APP_APIUSER}` + "/engineering/purchase/save", data), // 申请采购
13
+ purchaseList: (data) => request.get(`${base.VUE_APP_APIUSER}` + "/engineering/purchase/list", data), // 申请采购列表
14
14
 
15
- rentSave: (data) => request.post(`${process.env.VUE_APP_APIUSER}` + "/engineering/rent/save", data), // 申请租赁
16
- rentList: (data) => request.get(`${process.env.VUE_APP_APIUSER}` + "/engineering/rent/list", data) // 租赁列表
15
+ rentSave: (data) => request.post(`${base.VUE_APP_APIUSER}` + "/engineering/rent/save", data), // 申请租赁
16
+ rentList: (data) => request.get(`${base.VUE_APP_APIUSER}` + "/engineering/rent/list", data) // 租赁列表
17
17
  }
18
18
  export default apiOfflineOrder
@@ -7,7 +7,8 @@
7
7
  * @FilePath: \src\api\apiMonthPlan\apiMonthPlan.js
8
8
  **/
9
9
  import request from "@/http";
10
- const apiUrl = process.env.VUE_APP_APIRECRUITMENT;
10
+ const base = JSON.parse(localStorage.getItem("env"))
11
+ const apiUrl = base.VUE_APP_APIRECRUITMENT;
11
12
  const apiUrl2 = "http://172.29.96.151:7777";
12
13
  const apiMonthPlan = {
13
14
  getMonthlyPlanTwoMachine: (data) =>
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_APIRECRUITMENT
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIRECRUITMENT
3
4
  const apiMyBidding = {
4
5
  getMaterialList: (data) => request.post(`${url}/v1/myBidding/list`, data),
5
6
  getIndividualTenderRecord: (data) => request.post(`${url}/gv1/mechanicalLabor/getIndividualTenderRecord`, data)
@@ -1,7 +1,8 @@
1
1
  // 会员单位申请
2
2
  import request from "@/http"
3
- const centerUrl = process.env.VUE_APP_MEMBERCENTER // 个人中心
4
- const qgUrl = process.env.VUE_APP_APIUSER
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const centerUrl = base.VUE_APP_MEMBERCENTER // 个人中心
5
+ const qgUrl = base.VUE_APP_APIUSER
5
6
 
6
7
  const apiComInfo = {
7
8
  /* 个人中心接口 */
@@ -1,7 +1,8 @@
1
1
  // 会员单位申请
2
2
  import request from "@/http"
3
- const zcUrl = process.env.VUE_APP_APIRECRUITMENT // 招采
4
- const centerUrl = process.env.VUE_APP_MEMBERCENTER // 个人中心
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
5
+ const centerUrl = base.VUE_APP_MEMBERCENTER // 个人中心
5
6
  const apiInviteJoin = {
6
7
  /* 个人中心 */
7
8
  getServiceType: () => request.get(`${centerUrl}/v2/api/companyInfo/getServiceTypeList`), // 获取企业服务类型列表
@@ -1,9 +1,10 @@
1
1
  // 会员单位申请
2
2
  import request from "@/http"
3
- const zcUrl = process.env.VUE_APP_APIRECRUITMENT // 招采
4
- const clUrl = process.env.VUE_APP_APIMATERIALS // 材料
5
- const jxUrl = process.env.VUE_APP_APIMACHINERY // 机械
6
- const sbUrl = process.env.VUE_APP_APIEQUIPMENT // 设备
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
5
+ const clUrl = base.VUE_APP_APIMATERIALS // 材料
6
+ const jxUrl = base.VUE_APP_APIMACHINERY // 机械
7
+ const sbUrl = base.VUE_APP_APIEQUIPMENT // 设备
7
8
 
8
9
  const apiMember = {
9
10
  /* 材料 */
@@ -1,7 +1,8 @@
1
1
  // 会员单位申请
2
2
  import request from "@/http"
3
- const zcUrl = process.env.VUE_APP_APIRECRUITMENT // 招采
4
- const centerUrl = process.env.VUE_APP_MEMBERCENTER // 个人中心
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
5
+ const centerUrl = base.VUE_APP_MEMBERCENTER // 个人中心
5
6
  const apiMemberApply = {
6
7
  /* 个人中心接口 */
7
8
  getCompanyInfo: (params) => request.get(`${centerUrl}/api/userCompanyApply/findCompanyByNo`, params), // 获取单位信息
@@ -1,7 +1,8 @@
1
1
  // 会员商机
2
2
  import request from "@/http"
3
- const zcUrl = process.env.VUE_APP_APIRECRUITMENT // 招采
4
- const jcUrl = process.env.VUE_APP_FOCUSPURCHASES // 集采
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
5
+ const jcUrl = base.VUE_APP_FOCUSPURCHASES // 集采
5
6
  const apiMemberChance = {
6
7
  allMember: () => request.get(`${zcUrl}/ov1/member/league/all`), // 所有会员
7
8
  allLeague: () => request.get(`${zcUrl}/ov1/member/league/upper`), // 所有加盟商
@@ -8,7 +8,8 @@
8
8
  */
9
9
 
10
10
  import request from "@/http"
11
- const apiUrl = process.env.VUE_APP_APIRECRUITMENT
11
+ const base = JSON.parse(localStorage.getItem("env"))
12
+ const apiUrl = base.VUE_APP_APIRECRUITMENT
12
13
  const apiOffer = {
13
14
  getOfferList: (data) => request.post(apiUrl + "/v1/membership/offer/list", data), // 获取材料报价记录列表
14
15
  getOfferMachineList: (data) => request.post(apiUrl + "/gv1/project/offer/meOffer", data), // 获取机械设备报价记录列表
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
-
3
- const contract = process.env.VUE_APP_APIMATERIALS
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const contract = base.VUE_APP_APIMATERIALS
4
4
 
5
5
  const apiPact = {
6
6
  // 开户详情
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_MEMBERCENTER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_MEMBERCENTER
3
4
  const apiPassword = {
4
5
  changePassword: (params) => request.post(url + "/api/user/modifPwd", params) // 修改密码
5
6
  }
@@ -1,6 +1,7 @@
1
1
 
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_APIRECRUITMENT
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_APIRECRUITMENT
4
5
  const apiPay = {
5
6
  // 材料验收
6
7
  listMaterial: (data) => request.post(`${url}/v1/payment/material/list`, data),
@@ -1,6 +1,7 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
4
5
  // const url = 'http://192.168.3.49:8000'
5
6
  const apiPayment = {
6
7
  /* 预算列表 */
@@ -1,6 +1,7 @@
1
1
  /* 企业预算 */
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_API + process.env.VUE_APP_OPERATE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_API + base.VUE_APP_OPERATE
4
5
  // const url = 'http://192.168.3.49:8000'
5
6
  const apiProjectPayment = {
6
7
  /* 预算列表 */
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_APIRECRUITMENT
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIRECRUITMENT
3
4
 
4
5
  const apiCost = {
5
6
 
@@ -1,6 +1,7 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_APIEQUIPMENT // 设备
3
- const cur = process.env.VUE_APP_APIRECRUITMENT // 招采
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIEQUIPMENT // 设备
4
+ const cur = base.VUE_APP_APIRECRUITMENT // 招采
4
5
  const apiGoodsOffer = {
5
6
  getPriceUnit: () => request.get(`${url}/equipment/sysPriceUnit/getpriceUnitList`), // 获取机械单位
6
7
  offerSubmit: (data) => request.post(`${cur}/ov1/project/offer/batch`, data), // 材料提交报价