qgb-process 0.1.84 → 0.1.88

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 (104) hide show
  1. package/README.md +2 -0
  2. package/lib/qgb-process.common.js +127 -128
  3. package/lib/qgb-process.umd.js +127 -128
  4. package/lib/qgb-process.umd.min.js +37 -37
  5. package/package.json +1 -1
  6. package/src/App.vue +8 -3
  7. package/src/api/ApiExAndapp.js +2 -1
  8. package/src/api/Notice.js +4 -4
  9. package/src/api/apiAcceptance/apiAcceptance.js +2 -1
  10. package/src/api/apiAddress.js +2 -1
  11. package/src/api/apiArrears/apiArrears.js +3 -2
  12. package/src/api/apiArrears/apiProjectArrears.js +2 -1
  13. package/src/api/apiArrears/index.js +2 -1
  14. package/src/api/apiAssets.js +2 -1
  15. package/src/api/apiAudit/apiAudit.js +4 -3
  16. package/src/api/apiAuth.js +6 -5
  17. package/src/api/apiAuthentication.js +5 -4
  18. package/src/api/apiBankAccount/index.js +2 -1
  19. package/src/api/apiBudget/apiBudget.js +2 -1
  20. package/src/api/apiBudget/apiBudgets.js +3 -2
  21. package/src/api/apiCarRecord.js +2 -2
  22. package/src/api/apiChangeTel.js +6 -5
  23. package/src/api/apiCheckingIn.js +4 -6
  24. package/src/api/apiCollection/index.js +2 -1
  25. package/src/api/apiContract/index.js +2 -1
  26. package/src/api/apiContract/quill-config.js +2 -1
  27. package/src/api/apiCost/index.js +3 -2
  28. package/src/api/apiCreditManagement.js +2 -2
  29. package/src/api/apiCustomer/apiCustomer.js +2 -1
  30. package/src/api/apiEquipmentRental.js +2 -1
  31. package/src/api/apiFormBuilder/menu.js +2 -1
  32. package/src/api/apiFormBuilder/reissueRule.js +2 -1
  33. package/src/api/apiFund/index.js +2 -1
  34. package/src/api/apiHelp.js +2 -1
  35. package/src/api/apiHome.js +7 -6
  36. package/src/api/apiIminfo.js +4 -2
  37. package/src/api/apiInvoice.js +3 -4
  38. package/src/api/apiLease/apiLease.js +2 -1
  39. package/src/api/apiLogisticsTransportation/apiLogisticsTransportation.js +2 -1
  40. package/src/api/apiMachine/api.js +2 -3
  41. package/src/api/apiMachine/apiRentInfo.js +2 -1
  42. package/src/api/apiMachine/index.js +2 -1
  43. package/src/api/apiManagementStore/api.js +2 -3
  44. package/src/api/apiManagementStore/apiManagementStore.js +2 -1
  45. package/src/api/apiMaterCheckAndAccept/apiMechanicalSourcing.js +2 -1
  46. package/src/api/apiMaterCheckAndAccept/index.js +2 -1
  47. package/src/api/apiMaterials/api.js +2 -1
  48. package/src/api/apiMaterials/apiCommercialConcrete.js +2 -1
  49. package/src/api/apiMaterials/apiCommodity.js +2 -1
  50. package/src/api/apiMaterials/apiOfflineOrder.js +5 -5
  51. package/src/api/apiMaterials/quill-config.js +2 -1
  52. package/src/api/apiMonthPlan/apiMonthPlan.js +2 -1
  53. package/src/api/apiMyBidding.js +2 -1
  54. package/src/api/apiMyMember/apiComInfo.js +3 -2
  55. package/src/api/apiMyMember/apiInviteJoin.js +3 -2
  56. package/src/api/apiMyMember/apiMember.js +5 -4
  57. package/src/api/apiMyMember/apiMemberApply.js +3 -2
  58. package/src/api/apiMyMember/apiMemberChance.js +3 -2
  59. package/src/api/apiOffer.js +2 -1
  60. package/src/api/apiPact.js +2 -2
  61. package/src/api/apiPassword.js +2 -1
  62. package/src/api/apiPay/apiPay.js +2 -1
  63. package/src/api/apiPayment/apiPayment.js +2 -1
  64. package/src/api/apiPayment/apiProjectPayment.js +2 -1
  65. package/src/api/apiProject/apiBaseList.js +2 -1
  66. package/src/api/apiProject/apiGoodsOffer.js +3 -2
  67. package/src/api/apiProject/apiInventory.js +3 -2
  68. package/src/api/apiProject/apiOfferOrder.js +2 -1
  69. package/src/api/apiProject/apiOfferQuery.js +2 -1
  70. package/src/api/apiProject/apiPlan.js +5 -4
  71. package/src/api/apiProject/apiProject.js +2 -1
  72. package/src/api/apiProjectProcurement/apiProjectProcurement.js +8 -7
  73. package/src/api/apiPurchase/apiPurchase.js +9 -8
  74. package/src/api/apiPurchaseApply.js +2 -2
  75. package/src/api/apiPurchasePay.js +2 -2
  76. package/src/api/apiRecruit.js +2 -1
  77. package/src/api/apiRisk/index.js +2 -1
  78. package/src/api/apiRoleManagement.js +3 -2
  79. package/src/api/apiRules/apiRules.js +2 -1
  80. package/src/api/apiSchedule/apiSchedule.js +2 -1
  81. package/src/api/apiSealRecord.js +2 -2
  82. package/src/api/apiSign.js +2 -1
  83. package/src/api/apiSolution/apiSolution.js +2 -1
  84. package/src/api/apiSubcontract.js +2 -1
  85. package/src/api/apiSystem/index.js +7 -5
  86. package/src/api/apiTask.js +2 -2
  87. package/src/api/apiTeam/api.js +2 -3
  88. package/src/api/apiTender.js +2 -1
  89. package/src/api/apiUser.js +2 -1
  90. package/src/api/apiUserEnterprise/api.js +2 -1
  91. package/src/api/apiUserEnterprise/apiUserEn.js +3 -2
  92. package/src/api/apiVolunteerTeam.js +3 -2
  93. package/src/api/apiWorkarea.js +2 -1
  94. package/src/api/apiXzqh.js +2 -1
  95. package/src/api/common/api.js +2 -3
  96. package/src/api/evection.js +2 -2
  97. package/src/api/guide.js +3 -1
  98. package/src/api/sociaManageApi.js +2 -1
  99. package/src/formBuilder/apiBusiness.js +7 -5
  100. package/src/http/index.js +1 -1
  101. package/src/main.js +0 -10
  102. package/src/router/index.js +2 -0
  103. package/src/views/formBuilder/components/nodeConditionConfig.vue +0 -2
  104. package/src/views/formBuilder/process.vue +1 -1
@@ -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), // 材料提交报价
@@ -2,7 +2,8 @@
2
2
  * 清单管理
3
3
  */
4
4
  import request from "@/http"
5
- const url = process.env.VUE_APP_APIRECRUITMENT
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const url = base.VUE_APP_APIRECRUITMENT
6
7
  const testUrl = "http://192.168.101.108:7777"
7
8
 
8
9
  /**
@@ -40,7 +41,7 @@ const apiMaterial = {
40
41
  request.post(`${url}/v1/api/material/batchDelete`, params),
41
42
  // 获取材料分类
42
43
  getType: params =>
43
- request.get(`${process.env.VUE_APP_APIMATERIALS}/api/itemCat/getListByAreaCode`, params),
44
+ request.get(`${base.VUE_APP_APIMATERIALS}/api/itemCat/getListByAreaCode`, params),
44
45
  // 材料采购-申请月度计划列表
45
46
  monthlyList: params =>
46
47
  request.post(`${url}/cv1/materialPurchase/monthlyList`, params), //
@@ -2,7 +2,8 @@
2
2
  * 我的项目
3
3
  */
4
4
  import request from "@/http";
5
- const url = process.env.VUE_APP_APIRECRUITMENT;
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const url = base.VUE_APP_APIRECRUITMENT;
6
7
  const testUrl = "http://192.168.101.108:7777";
7
8
  const apiOfferOrder = {
8
9
  save: (data) => request.post(`${url}/v1/customized/lease/save`, data),
@@ -2,7 +2,8 @@
2
2
  * 我的项目
3
3
  */
4
4
  import request from "@/http";
5
- const url = process.env.VUE_APP_APIRECRUITMENT;
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const url = base.VUE_APP_APIRECRUITMENT;
6
7
  const testUrl = "http://192.168.101.108:7777";
7
8
  const apiOfferQuery = {
8
9
  // 报价查询-预算编制-新接口
@@ -1,9 +1,10 @@
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 testUrl = "http://192.168.3.10:7777"
4
- const authUrlType = process.env.VUE_APP_AUTHURLTYPE
5
- const Material = process.env.VUE_APP_APIMATERIALS
6
- const user = process.env.VUE_APP_APIUSER
5
+ const authUrlType = base.VUE_APP_AUTHURLTYPE
6
+ const Material = base.VUE_APP_APIMATERIALS
7
+ const user = base.VUE_APP_APIUSER
7
8
  const usertest = "http://192.168.3.10:9090"
8
9
  const apiPlan = {
9
10
  getPlans: (data) => request.post(url + "/project/plan/list", data),
@@ -2,7 +2,8 @@
2
2
  * 我的项目
3
3
  */
4
4
  import request from "@/http";
5
- const url = process.env.VUE_APP_APIRECRUITMENT;
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const url = base.VUE_APP_APIRECRUITMENT;
6
7
  const testUrl = "http://192.168.101.108:7777";
7
8
  const apiProject = {
8
9
  // 新接口
@@ -1,15 +1,16 @@
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 url = "http://localhost:8081"
4
5
  const apiProjectProcurement = {
5
- apply: (data) => request.post(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/apply`, data),
6
- list: (data) => request.post(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/list`, data),
7
- detail: (key) => request.get(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/getId/${key}`),
8
- delete: (key) => request.delete(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/delete/${key}`),
6
+ apply: (data) => request.post(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/apply`, data),
7
+ list: (data) => request.post(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/list`, data),
8
+ detail: (key) => request.get(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/getId/${key}`),
9
+ delete: (key) => request.delete(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/delete/${key}`),
9
10
  // 【项目】
10
- projectList: () => request.get(`${process.env.VUE_APP_APIRECRUITMENT}/ov1/project/active`),
11
+ projectList: () => request.get(`${base.VUE_APP_APIRECRUITMENT}/ov1/project/active`),
11
12
  // 分部分项
12
- getTree: (data) => request.get(`${process.env.VUE_APP_APIRECRUITMENT}/v1/membership/project/getTree/${data}`),
13
+ getTree: (data) => request.get(`${base.VUE_APP_APIRECRUITMENT}/v1/membership/project/getTree/${data}`),
13
14
  // 【采购计划】新增/编辑/暂存 采购计划
14
15
  addPurchase: (data) => request.post(`${url}/v1/api/project/purchase/plan/add`, data),
15
16
  // 【采购计划】分页查询计划列表
@@ -7,17 +7,18 @@
7
7
  * @FilePath: \src\api\apiPurchase\apiPurchase.js
8
8
  **/
9
9
  import request from "@/http"
10
- const url = process.env.VUE_APP_APIUSER
10
+ const base = JSON.parse(localStorage.getItem("env"))
11
+ const url = base.VUE_APP_APIUSER
11
12
 
12
13
  // const url = "http://localhost:8080"
13
14
  const apiPurchase = {
14
- apply: (data) => request.post(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/apply`, data),
15
- save: (data) => request.post(`${process.env.VUE_APP_APIRECRUITMENT}/cv1/materialPurchase/save`, data), // 采购保存——new
16
- list: (data) => request.post(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/list`, data),
17
- listNew: (data) => request.post(`${process.env.VUE_APP_APIRECRUITMENT}/cv1/materialPurchase/list`, data), // 材料采购列表-new
18
- detail: (key) => request.get(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/getId/${key}`),
19
- detailNew: (id) => request.get(`${process.env.VUE_APP_APIRECRUITMENT}/cv1/materialPurchase/detail`, id), // new detail
20
- delete: (key) => request.delete(`${process.env.VUE_APP_APIRECRUITMENT}/v1/purchase/delete/${key}`),
15
+ apply: (data) => request.post(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/apply`, data),
16
+ save: (data) => request.post(`${base.VUE_APP_APIRECRUITMENT}/cv1/materialPurchase/save`, data), // 采购保存——new
17
+ list: (data) => request.post(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/list`, data),
18
+ listNew: (data) => request.post(`${base.VUE_APP_APIRECRUITMENT}/cv1/materialPurchase/list`, data), // 材料采购列表-new
19
+ detail: (key) => request.get(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/getId/${key}`),
20
+ detailNew: (id) => request.get(`${base.VUE_APP_APIRECRUITMENT}/cv1/materialPurchase/detail`, id), // new detail
21
+ delete: (key) => request.delete(`${base.VUE_APP_APIRECRUITMENT}/v1/purchase/delete/${key}`),
21
22
  queryRecordList: (data) => request.post(`${url}/v1/api/purchase/pay/queryRecordList`, data),
22
23
  // 【采购计划】新增/编辑/暂存 采购计划
23
24
  addPurchase: (data) => request.post(`${url}/v1/api/purchase/plan/add`, data),
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
- // const url = 'http://localhost:8080'
3
- const url = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIUSER
4
4
  const apiPurchaseApply = {
5
5
  // 采购申请列表查询
6
6
  queryPurchaseList: (data) => request.post(url + "/v1/api/purchaseApply/findPage", data),
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
- // const url = 'http://localhost:8080'
3
- const url = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIUSER
4
4
  const apiPurchasePay = {
5
5
  PurchaseApplySelect: (data) => request.get(url + "/v1/api/purchaseApply/findPurchaseApplySelect/" + data), // 获取采购申请单下拉框
6
6
  findDetails: (data) => request.get(url + "/v1/api/purchaseApply/findDetails/" + data), // 详情
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_TALENTS
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_TALENTS
3
4
  const api = {
4
5
  // 新增职位
5
6
  add: (data) => request.post(`${url}/position/add`, data),
@@ -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 apiRisk = {
5
6
  getRiskList: (data) => request.post(`${zcUrl}/v1/riskmanage/list`, data), // 分控列表
6
7
  getCustomerDetail: (data) => request.get(`${zcUrl}/customer/detail`, data), // 客户详情
@@ -1,6 +1,7 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_API
3
- const authUrlType = process.env.VUE_APP_AUTHURLTYPE
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_API
4
+ const authUrlType = base.VUE_APP_AUTHURLTYPE
4
5
  const apiRoleManagement = {
5
6
  list: (data) => request.post(`${url}${authUrlType}/gv1/sysRole/search`, data), // 角色列表
6
7
  remove: (data) => request.deleteParams(`${url}${authUrlType}/gv1/sysRole/del`, 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 apiRules = {
5
6
  // save: (data) => request.post(`${url}/v1/rules/bidding/save`, data),
6
7
  // get: (id) => request.get(`${url}/v1/rules/bidding/getBid/${id}`),
@@ -1,6 +1,7 @@
1
1
  // 商品api
2
2
  import request from "@/http"
3
- const api = process.env.VUE_APP_APISCHEDULE
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const api = base.VUE_APP_APISCHEDULE
4
5
  const apiSchedule = {
5
6
  saveSchedule: (params) => request.post(`${api}/v1/app/v1/pc/schedule/saveSchedule`, params), // 新建日程
6
7
  queryScheduleTask: (params) => request.post(`${api}/v1/app/v1/pc/schedule/queryScheduleTask`, params), // 时间范围查询日程任务列表
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
- // let baseUrl = 'http://192.168.2.103:9190'
3
- const baseUrl = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const baseUrl =base.VUE_APP_APIUSER
4
4
  // let Url = process.env.VUE_APP_AUTHENTICATION
5
5
  // 获取申请人
6
6
  // export const getUserByParentId = async (params) => request.get(Url +'/v1/organization/getUserByParentId/'+params)
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const apiUrl = process.env.VUE_APP_MEMBERCENTER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const apiUrl =base.VUE_APP_MEMBERCENTER
3
4
 
4
5
  const getCode = (params) => request.get(apiUrl + "/api/user/getRegisterCode", params)
5
6
  const sign = (params) => request.post("/api/user/add", params)
@@ -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 apiSolution = {
5
6
  save: (table, data) => request.post(`${url}/v1/customized/${table}/save`, data),
6
7
  list: (table, data) => request.post(`${url}/v1/customized/${table}/list`, data)
@@ -7,7 +7,8 @@
7
7
  * @FilePath: \src\api\apiSubcontract.js
8
8
  **/
9
9
  import request from "@/http"
10
- const url = process.env.VUE_APP_APIRECRUITMENT
10
+ const base = JSON.parse(localStorage.getItem("env"))
11
+ const url = base.VUE_APP_APIRECRUITMENT
11
12
  const apiSubcontract = {
12
13
  subcontractAdd: (data) => request.post(`${url}/v1/subpackageDesign/save`, data),
13
14
  subcontractDetail: (data) => request.get(`${url}/v1/subpackageDesign/detail`, data),
@@ -1,9 +1,11 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_API
3
- const authUrlType = process.env.VUE_APP_EMTERPRISE
4
- const qiguan = process.env.VUE_APP_QIGUAN
5
- const auth = process.env.VUE_APP_AUTH
6
- const urls = "http://192.168.2.184:9190"
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_API
4
+ const authUrlType = base.VUE_APP_EMTERPRISE
5
+ const qiguan = base.VUE_APP_QIGUAN
6
+ const auth = base.VUE_APP_AUTH
7
+
8
+
7
9
  const apiSystem = {
8
10
  list: () => request.get(url + authUrlType + `/v1/organization/getOrganization`),
9
11
  companylist: () => request.get(url + authUrlType + `/v1/organization/getCompany`),
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
- // const url = 'http://localhost:8080'
3
- const url = process.env.VUE_APP_APISCHEDULE
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APISCHEDULE
4
4
  const task = {
5
5
  // 申报任务|下达任务
6
6
  reportTask: (data) => request.post(url + "/v1/app/v1/pc/task/reportTask", data),
@@ -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_TEAM
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const api = base.VUE_APP_TEAM
4
3
  export default api
@@ -2,7 +2,8 @@
2
2
  * 我的招标
3
3
  */
4
4
  import request from "@/http"
5
- const url = process.env.VUE_APP_APIRECRUITMENT
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const url = base.VUE_APP_APIRECRUITMENT
6
7
  const apiTender = {
7
8
  // 招标发布保存
8
9
  tenderSave: (data) =>
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const api = process.env.VUE_APP_MEMBERCENTER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const api = base.VUE_APP_MEMBERCENTER
3
4
  const apiUser = {
4
5
  getUserInfo: () => request.get(api + "/api/user/getCurrentUserInfo"),
5
6
  getCompanyInfo: () => request.get(api + "/api/auth/getCompanyInfo"), // 获取企业信息
@@ -1,2 +1,3 @@
1
- const api = process.env.VUE_APP_APIUSER
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const api = base.VUE_APP_APIUSER
2
3
  export default api
@@ -1,8 +1,9 @@
1
1
  import api from "./api"
2
2
  import http from "@/http/type.js"
3
- const api2 = process.env.VUE_APP_MEMBERCENTER
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const api2 = base.VUE_APP_MEMBERCENTER
4
5
  const apiSelfEnterprise = {
5
- fetchEnterpriseList: (params) => http.get(process.env.VUE_APP_MEMBERCENTER + "/userJoinCompanyAudit/myComList", params), // 我的企业列表
6
+ fetchEnterpriseList: (params) => http.get(base.VUE_APP_MEMBERCENTER + "/userJoinCompanyAudit/myComList", params), // 我的企业列表
6
7
  searchEnterprise: (params) => http.get(api2 + "/userJoinCompanyAudit/searchComList", params), // 搜索企业
7
8
  joinEnterprise: (params) => http.post(api2 + "/userJoinCompanyAudit/apply", params), // 加入企业
8
9
  fetchAuditList: (params) => http.get(api2 + "/userJoinCompanyAudit/auditList", params), // 审核列表
@@ -1,7 +1,8 @@
1
1
 
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_TEAM
4
- const urls = process.env.VUE_APP_APIRECRUITMENT
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_TEAM
5
+ const urls = base.VUE_APP_APIRECRUITMENT
5
6
  const apiVolunteerTeam = {
6
7
  list: (data) => request.get(`${url}/teamPrice/findByTeamNoList`, data),
7
8
  tablist: (data) => request.get(`${url}/api/index/getTeamCategory`, data),
@@ -2,7 +2,8 @@
2
2
  * 我的项目
3
3
  */
4
4
  import request from "@/http"
5
- const url = process.env.VUE_APP_APIRECRUITMENT
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const url = base.VUE_APP_APIRECRUITMENT
6
7
  // const url = 'http://yuyue.ngrok.gcw.net:90'
7
8
  const apiWorkarea = {
8
9
  // 新增工区
@@ -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 apiXzqh = {
5
6
  list: () => request.get(`${url}/v1/xzqh/list`)
6
7
  }
@@ -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_APIRECRUITMENT
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const api = base.VUE_APP_APIRECRUITMENT
4
3
  export default api
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
-
3
- const baseUrl = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const baseUrl = base.VUE_APP_APIUSER
4
4
  // let baseUrl = 'http://192.168.0.152:9190'
5
5
 
6
6
  const apiEvection = {
package/src/api/guide.js CHANGED
@@ -1,6 +1,8 @@
1
1
 
2
2
  import request from "@/http"
3
- const url = process.env.VUE_APP_APIUSER
3
+ const base = JSON.parse(localStorage.getItem("env"))
4
+ const url = base.VUE_APP_APIUSER
5
+
4
6
  const guide = {
5
7
  guide: (data) => request.post("/api/company/openManagement", data) // level 650000 {parentNo:'650000'}
6
8
  }
@@ -1,7 +1,8 @@
1
1
  import request from "@/http"
2
2
 
3
3
  // let contract = 'http://192.168.2.175:9090'
4
- const contract = process.env.VUE_APP_APIUSER
4
+ const base = JSON.parse(localStorage.getItem("env"))
5
+ const contract = base.VUE_APP_APIUSER
5
6
 
6
7
  const apiPact = {
7
8
  // 获取社保列表
@@ -7,11 +7,13 @@
7
7
  * @FilePath: \src\formBuilder\apiBusiness.js
8
8
  **/
9
9
  import request from "@/http"
10
- const goodsUrl = process.env.VUE_APP_APIMATERIALS
11
- const MachineryUrl = process.env.VUE_APP_APIMACHINERY
12
- const EquipmentUrl = process.env.VUE_APP_APIEQUIPMENT
13
- const teamUrl = process.env.VUE_APP_TEAM
14
- const biddingUrl = process.env.VUE_APP_APIRECRUITMENT
10
+ const base = JSON.parse(localStorage.getItem("env"))
11
+ const goodsUrl = base.VUE_APP_APIMATERIALS
12
+ const MachineryUrl = base.VUE_APP_APIMACHINERY
13
+ const EquipmentUrl = base.VUE_APP_APIEQUIPMENT
14
+ const teamUrl = base.VUE_APP_TEAM
15
+ const biddingUrl = base.VUE_APP_APIRECRUITMENT
16
+
15
17
  // 商品分类
16
18
  export const getGooodsType = async(data) => request.get(`${goodsUrl}/itemCat/getTreeNodeByProvinceId`, data);
17
19
  // 商品品牌
package/src/http/index.js CHANGED
@@ -24,7 +24,7 @@ const removePending = (config) => {
24
24
  }
25
25
 
26
26
  // axios 基础配置
27
- const base = JSON.parse(localStorage.getItem("env"))
27
+ const base = JSON.parse(localStorage.getItem("env")) || {}
28
28
  axios.defaults.timeout = 50000
29
29
  axios.defaults.baseURL = base.VUE_APP_APIUSER
30
30
 
package/src/main.js CHANGED
@@ -52,17 +52,7 @@ Vue.directive('focus', {
52
52
  }
53
53
  });
54
54
 
55
-
56
- // // 导入pdf
57
- // import htmlToPdf from '@/components/utils/pdf'
58
- // import SvgIcon from "@/components/SvgIcon"// svg组件
59
- // // register globally
60
- // Vue.component("svg-icon", SvgIcon)
61
- // const requireAll = requireContext => requireContext.keys().map(requireContext)
62
- // const req1 = require.context("./assets/formMenu", false, /\.svg$/)
63
- // const iconMap = requireAll(req1)
64
55
  let instance = null;
65
- // Vue.component("svg-icon", SvgIcon)
66
56
  Vue.use(shigongbang);
67
57
  Vue.use(AMap);
68
58
  AMap.initAMapApiLoader({
@@ -27,6 +27,8 @@ Router.prototype.push = function push(location) {
27
27
  return originalPush.call(this, location).catch((err) => err);
28
28
  };
29
29
 
30
+ localStorage.clear("env");
31
+ localStorage.set("env", JSON.stringify(process.env));
30
32
 
31
33
  async function getCompanyOrganization() {
32
34
  const res = await apiAuth.getUserCompany();
@@ -224,7 +224,6 @@ export default {
224
224
  deep: true,
225
225
  handler: function(newVal, oldVal) {
226
226
  const keys = Object.keys(newVal);
227
-
228
227
  if (keys.length > 0) {
229
228
  const arr = [];
230
229
  const conArr = [];
@@ -408,7 +407,6 @@ export default {
408
407
  };
409
408
 
410
409
  this.configList = config[this.applyType] ? await config[this.applyType](this) : [];
411
-
412
410
  if (this.queryInfo.type == "sealApproval" || this.queryInfo.name == "用章申请" || this.queryInfo.name == "用车申请" || this.queryInfo.type == "carApproval") {
413
411
  configDefault = {};
414
412
  } else {
@@ -365,7 +365,7 @@ export default {
365
365
  "automaticPass": this.workFlowDef.automaticPass ? 1 : 0, // 重复审批人问题
366
366
  "creator": this.userInfo.no, // 用户no this.$store.state.user.no
367
367
  "companyId": this.userInfo.companyNo, // 公司id this.$store.state.user.companyNo
368
- "type": this.queryInfo.type, // 流程类型 this.$route.query.type
368
+ "type": this.type, // 流程类型 this.$route.query.type 或者表单类型
369
369
  "processName": this.queryInfo.name, // 流程名称 ""this.$route.query.name
370
370
  "describe": this.queryInfo.name // 流程描述 this.$route.query.name
371
371
  }