qgb-process 0.1.98 → 0.2.3

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 (101) hide show
  1. package/lib/qgb-process.common.js +166 -161
  2. package/lib/qgb-process.umd.js +166 -161
  3. package/lib/qgb-process.umd.min.js +19 -19
  4. package/package.json +2 -2
  5. package/src/api/ApiExAndapp.js +1 -1
  6. package/src/api/Notice.js +1 -1
  7. package/src/api/apiAcceptance/apiAcceptance.js +1 -1
  8. package/src/api/apiAddress.js +1 -1
  9. package/src/api/apiArrears/apiArrears.js +1 -1
  10. package/src/api/apiArrears/apiProjectArrears.js +1 -1
  11. package/src/api/apiArrears/index.js +1 -1
  12. package/src/api/apiAssets.js +1 -1
  13. package/src/api/apiAudit/apiAudit.js +1 -1
  14. package/src/api/apiAuth.js +7 -0
  15. package/src/api/apiBankAccount/index.js +1 -1
  16. package/src/api/apiBudget/apiBudget.js +1 -1
  17. package/src/api/apiBudget/apiBudgets.js +1 -1
  18. package/src/api/apiCarRecord.js +1 -1
  19. package/src/api/apiChangeTel.js +1 -1
  20. package/src/api/apiCheckingIn.js +1 -1
  21. package/src/api/apiCollection/index.js +1 -1
  22. package/src/api/apiContract/index.js +1 -1
  23. package/src/api/apiContract/quill-config.js +1 -1
  24. package/src/api/apiCost/index.js +1 -1
  25. package/src/api/apiCreditManagement.js +1 -1
  26. package/src/api/apiCustomer/apiCustomer.js +1 -1
  27. package/src/api/apiEquipmentRental.js +1 -1
  28. package/src/api/apiFormBuilder/menu.js +1 -1
  29. package/src/api/apiFormBuilder/reissueRule.js +1 -1
  30. package/src/api/apiFund/index.js +1 -1
  31. package/src/api/apiHelp.js +1 -1
  32. package/src/api/apiHome.js +1 -1
  33. package/src/api/apiIminfo.js +1 -1
  34. package/src/api/apiInvoice.js +1 -1
  35. package/src/api/apiLease/apiLease.js +1 -1
  36. package/src/api/apiLogisticsTransportation/apiLogisticsTransportation.js +1 -1
  37. package/src/api/apiMachine/api.js +1 -1
  38. package/src/api/apiMachine/apiRentInfo.js +1 -1
  39. package/src/api/apiMachine/index.js +1 -1
  40. package/src/api/apiManagementStore/api.js +1 -1
  41. package/src/api/apiManagementStore/apiManagementStore.js +1 -1
  42. package/src/api/apiMaterCheckAndAccept/apiMechanicalSourcing.js +1 -1
  43. package/src/api/apiMaterCheckAndAccept/index.js +1 -1
  44. package/src/api/apiMaterials/api.js +1 -1
  45. package/src/api/apiMaterials/apiCommercialConcrete.js +1 -1
  46. package/src/api/apiMaterials/apiCommodity.js +1 -1
  47. package/src/api/apiMaterials/apiOfflineOrder.js +1 -1
  48. package/src/api/apiMaterials/quill-config.js +1 -1
  49. package/src/api/apiMemberSelection.js +1 -1
  50. package/src/api/apiMonthPlan/apiMonthPlan.js +1 -1
  51. package/src/api/apiMyBidding.js +1 -1
  52. package/src/api/apiMyMember/apiComInfo.js +1 -1
  53. package/src/api/apiMyMember/apiInviteJoin.js +1 -1
  54. package/src/api/apiMyMember/apiMember.js +1 -1
  55. package/src/api/apiMyMember/apiMemberApply.js +1 -1
  56. package/src/api/apiMyMember/apiMemberChance.js +1 -1
  57. package/src/api/apiOffer.js +1 -1
  58. package/src/api/apiPact.js +1 -1
  59. package/src/api/apiPassword.js +1 -1
  60. package/src/api/apiPay/apiPay.js +1 -1
  61. package/src/api/apiPayment/apiPayment.js +1 -1
  62. package/src/api/apiPayment/apiProjectPayment.js +1 -1
  63. package/src/api/apiProcess.js +1 -1
  64. package/src/api/apiProject/apiBaseList.js +1 -1
  65. package/src/api/apiProject/apiGoodsOffer.js +1 -1
  66. package/src/api/apiProject/apiInventory.js +1 -1
  67. package/src/api/apiProject/apiOfferOrder.js +1 -1
  68. package/src/api/apiProject/apiOfferQuery.js +1 -1
  69. package/src/api/apiProject/apiPlan.js +1 -1
  70. package/src/api/apiProject/apiProject.js +1 -1
  71. package/src/api/apiProjectProcurement/apiProjectProcurement.js +1 -1
  72. package/src/api/apiPurchase/apiPurchase.js +1 -1
  73. package/src/api/apiPurchaseApply.js +1 -1
  74. package/src/api/apiPurchasePay.js +1 -1
  75. package/src/api/apiRecruit.js +1 -1
  76. package/src/api/apiRisk/index.js +1 -1
  77. package/src/api/apiRoleManagement.js +1 -1
  78. package/src/api/apiRules/apiRules.js +1 -1
  79. package/src/api/apiSchedule/apiSchedule.js +1 -1
  80. package/src/api/apiSealRecord.js +1 -1
  81. package/src/api/apiSign.js +1 -1
  82. package/src/api/apiSolution/apiSolution.js +1 -1
  83. package/src/api/apiSubcontract.js +1 -1
  84. package/src/api/apiSystem/index.js +1 -1
  85. package/src/api/apiTask.js +1 -1
  86. package/src/api/apiTeam/api.js +1 -1
  87. package/src/api/apiTender.js +1 -1
  88. package/src/api/apiUserEnterprise/api.js +1 -1
  89. package/src/api/apiUserEnterprise/apiUserEn.js +1 -1
  90. package/src/api/apiVolunteerTeam.js +1 -1
  91. package/src/api/apiWorkarea.js +1 -1
  92. package/src/api/apiXzqh.js +1 -1
  93. package/src/api/common/api.js +1 -1
  94. package/src/api/evection.js +1 -1
  95. package/src/api/guide.js +1 -1
  96. package/src/api/sociaManageApi.js +1 -1
  97. package/src/formBuilder/apiBusiness.js +1 -1
  98. package/src/views/formBuilder/components/conditionConfig.js +4 -1
  99. package/src/views/formBuilder/components/nodeConditionConfig.vue +5 -3
  100. package/src/views/formBuilder/process.vue +4 -1
  101. package/src/views/formBuilder/workflow/nodeWrap.vue +2 -1
@@ -7,7 +7,7 @@
7
7
  * @FilePath: \src\api\apiPurchase\apiPurchase.js
8
8
  **/
9
9
  import request from "@/http"
10
- const base = JSON.parse(localStorage.getItem("env"))
10
+ const base = JSON.parse(localStorage.getItem("env")) || {}
11
11
  const url = base.VUE_APP_APIUSER
12
12
 
13
13
  // const url = "http://localhost:8080"
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const url = base.VUE_APP_APIUSER
4
4
  const apiPurchaseApply = {
5
5
  // 采购申请列表查询
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const url = base.VUE_APP_APIUSER
4
4
  const apiPurchasePay = {
5
5
  PurchaseApplySelect: (data) => request.get(url + "/v1/api/purchaseApply/findPurchaseApplySelect/" + data), // 获取采购申请单下拉框
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const url = base.VUE_APP_TALENTS
4
4
  const api = {
5
5
  // 新增职位
@@ -1,6 +1,6 @@
1
1
  // 会员单位申请
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const zcUrl = base.VUE_APP_APIRECRUITMENT // 招采
5
5
  const apiRisk = {
6
6
  getRiskList: (data) => request.post(`${zcUrl}/v1/riskmanage/list`, data), // 分控列表
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const url = base.VUE_APP_API
4
4
  const authUrlType = base.VUE_APP_AUTHURLTYPE
5
5
  const apiRoleManagement = {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const url = base.VUE_APP_APIRECRUITMENT
5
5
  const apiRules = {
6
6
  // save: (data) => request.post(`${url}/v1/rules/bidding/save`, data),
@@ -1,6 +1,6 @@
1
1
  // 商品api
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const api = base.VUE_APP_APISCHEDULE
5
5
  const apiSchedule = {
6
6
  saveSchedule: (params) => request.post(`${api}/v1/app/v1/pc/schedule/saveSchedule`, params), // 新建日程
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const baseUrl =base.VUE_APP_APIUSER
4
4
  // let Url = process.env.VUE_APP_AUTHENTICATION
5
5
  // 获取申请人
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const apiUrl =base.VUE_APP_MEMBERCENTER
4
4
 
5
5
  const getCode = (params) => request.get(apiUrl + "/api/user/getRegisterCode", params)
@@ -1,6 +1,6 @@
1
1
 
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const url = base.VUE_APP_APIRECRUITMENT
5
5
  const apiSolution = {
6
6
  save: (table, data) => request.post(`${url}/v1/customized/${table}/save`, data),
@@ -7,7 +7,7 @@
7
7
  * @FilePath: \src\api\apiSubcontract.js
8
8
  **/
9
9
  import request from "@/http"
10
- const base = JSON.parse(localStorage.getItem("env"))
10
+ const base = JSON.parse(localStorage.getItem("env")) || {}
11
11
  const url = base.VUE_APP_APIRECRUITMENT
12
12
  const apiSubcontract = {
13
13
  subcontractAdd: (data) => request.post(`${url}/v1/subpackageDesign/save`, data),
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const url = base.VUE_APP_API
4
4
  const authUrlType = base.VUE_APP_EMTERPRISE
5
5
  const qiguan = base.VUE_APP_QIGUAN
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const url = base.VUE_APP_APISCHEDULE
4
4
  const task = {
5
5
  // 申报任务|下达任务
@@ -1,3 +1,3 @@
1
- const base = JSON.parse(localStorage.getItem("env"))
1
+ const base = JSON.parse(localStorage.getItem("env")) || {}
2
2
  const api = base.VUE_APP_TEAM
3
3
  export default api
@@ -2,7 +2,7 @@
2
2
  * 我的招标
3
3
  */
4
4
  import request from "@/http"
5
- const base = JSON.parse(localStorage.getItem("env"))
5
+ const base = JSON.parse(localStorage.getItem("env")) || {}
6
6
  const url = base.VUE_APP_APIRECRUITMENT
7
7
  const apiTender = {
8
8
  // 招标发布保存
@@ -1,3 +1,3 @@
1
- const base = JSON.parse(localStorage.getItem("env"))
1
+ const base = JSON.parse(localStorage.getItem("env")) || {}
2
2
  const api = base.VUE_APP_APIUSER
3
3
  export default api
@@ -1,6 +1,6 @@
1
1
  import api from "./api"
2
2
  import http from "@/http/type.js"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const api2 = base.VUE_APP_MEMBERCENTER
5
5
  const apiSelfEnterprise = {
6
6
  fetchEnterpriseList: (params) => http.get(base.VUE_APP_MEMBERCENTER + "/userJoinCompanyAudit/myComList", params), // 我的企业列表
@@ -1,6 +1,6 @@
1
1
 
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const url = base.VUE_APP_TEAM
5
5
  const urls = base.VUE_APP_APIRECRUITMENT
6
6
  const apiVolunteerTeam = {
@@ -2,7 +2,7 @@
2
2
  * 我的项目
3
3
  */
4
4
  import request from "@/http"
5
- const base = JSON.parse(localStorage.getItem("env"))
5
+ const base = JSON.parse(localStorage.getItem("env")) || {}
6
6
  const url = base.VUE_APP_APIRECRUITMENT
7
7
  // const url = 'http://yuyue.ngrok.gcw.net:90'
8
8
  const apiWorkarea = {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const url = base.VUE_APP_APIRECRUITMENT
5
5
  const apiXzqh = {
6
6
  list: () => request.get(`${url}/v1/xzqh/list`)
@@ -1,3 +1,3 @@
1
- const base = JSON.parse(localStorage.getItem("env"))
1
+ const base = JSON.parse(localStorage.getItem("env")) || {}
2
2
  const api = base.VUE_APP_APIRECRUITMENT
3
3
  export default api
@@ -1,5 +1,5 @@
1
1
  import request from "@/http"
2
- const base = JSON.parse(localStorage.getItem("env"))
2
+ const base = JSON.parse(localStorage.getItem("env")) || {}
3
3
  const baseUrl = base.VUE_APP_APIUSER
4
4
  // let baseUrl = 'http://192.168.0.152:9190'
5
5
 
package/src/api/guide.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  import request from "@/http"
3
- const base = JSON.parse(localStorage.getItem("env"))
3
+ const base = JSON.parse(localStorage.getItem("env")) || {}
4
4
  const url = base.VUE_APP_APIUSER
5
5
 
6
6
  const guide = {
@@ -1,7 +1,7 @@
1
1
  import request from "@/http"
2
2
 
3
3
  // let contract = 'http://192.168.2.175:9090'
4
- const base = JSON.parse(localStorage.getItem("env"))
4
+ const base = JSON.parse(localStorage.getItem("env")) || {}
5
5
  const contract = base.VUE_APP_APIUSER
6
6
 
7
7
  const apiPact = {
@@ -7,7 +7,7 @@
7
7
  * @FilePath: \src\formBuilder\apiBusiness.js
8
8
  **/
9
9
  import request from "@/http"
10
- const base = JSON.parse(localStorage.getItem("env"))
10
+ const base = JSON.parse(localStorage.getItem("env")) || {}
11
11
  const goodsUrl = base.VUE_APP_APIMATERIALS
12
12
  const MachineryUrl = base.VUE_APP_APIMACHINERY
13
13
  const EquipmentUrl = base.VUE_APP_APIEQUIPMENT
@@ -12,6 +12,9 @@ import { log } from "fullcalendar";
12
12
 
13
13
 
14
14
 
15
+ // 获取缓存中的用户数据
16
+ const userInfo = JSON.parse(localStorage.getItem("userInfo")) || {}
17
+
15
18
  // 请假申请
16
19
  export const leave = async() => {
17
20
  const leaveApply = [
@@ -19,7 +22,7 @@ export const leave = async() => {
19
22
  { name: "时长(天)", variable: "duration", ele: "input" }
20
23
  ]
21
24
  // const res = await api.leaveType(store.state.user.no);
22
- const res = await api.getVacationList({ member: store.state.user.no });
25
+ const res = await api.getVacationList({ member: userInfo.no });
23
26
  if (res.data.code == "200") {
24
27
  // if (res.data.data.length === 0) {
25
28
  // this.$message.warning(
@@ -178,7 +178,7 @@ export default {
178
178
  queryInfo: {
179
179
  type: Object,
180
180
  default: () => {
181
- return {}
181
+ return JSON.parse(localStorage.getItem("queryInfo"))
182
182
  }
183
183
  }
184
184
  },
@@ -421,7 +421,7 @@ export default {
421
421
  };
422
422
 
423
423
  this.configList = config[this.applyType] ? await config[this.applyType](this) : [];
424
- console.log(this.queryInfo, "----999")
424
+
425
425
  if (this.queryInfo.type == "sealApproval" || this.queryInfo.name == "用章申请" || this.queryInfo.name == "用车申请" || this.queryInfo.type == "carApproval") {
426
426
  configDefault = {};
427
427
  } else {
@@ -507,7 +507,9 @@ export default {
507
507
  /deep/ .el-form-item{
508
508
  margin-bottom: 10px;
509
509
  }
510
-
510
+ /deep/ .is-error{
511
+ margin-bottom: 20px;
512
+ }
511
513
  /deep/ .el-form-item__label{
512
514
  text-align: left;
513
515
  }
@@ -124,7 +124,7 @@ export default {
124
124
  default:()=>{
125
125
  return {
126
126
  "companyNo":"202008267425615", // 公司no
127
- "no":"", // 用户no
127
+ "no":"2121212121", // 用户no
128
128
  }
129
129
  }
130
130
  },
@@ -162,6 +162,9 @@ export default {
162
162
  created() {
163
163
  // 获取审批流程数据
164
164
  this.getProcessSet()
165
+ // 存储用户信息
166
+ localStorage.setItem("userInfo",JSON.stringify(this.userInfo))
167
+ localStorage.setItem("queryInfo",JSON.stringify(this.queryInfo))
165
168
  // 设置类型
166
169
  this.type = this.path == "/index" ? "customForm_" + this.formBuilder.formDesId : this.queryInfo.type;
167
170
  },
@@ -424,7 +424,8 @@ export default {
424
424
  conditionStr(item, index) {
425
425
  var { conditionList, nodeUserList } = item;
426
426
  if (conditionList.length == 0) {
427
- return (index == this.nodeConfig.conditionNodes.length - 1) && this.nodeConfig.conditionNodes[0].conditionList.length != 0 ? '其他条件进入此流程' : '请设置条件'
427
+ // 设置了条件判断: (index == this.nodeConfig.conditionNodes.length - 1) && this.nodeConfig.conditionNodes[0].conditionList.length != 0
428
+ return '请设置条件'
428
429
  } else if(item.desc){
429
430
  return item.desc.join(";")
430
431
  }