qgb-process 0.1.93 → 0.1.97

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qgb-process",
3
- "version": "0.1.93",
3
+ "version": "0.1.97",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "",
@@ -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 auth = base.VUE_APP_AUTH
@@ -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 api = base.VUE_APP_API_APISTORE
7
7
  const apiMaterials = base.VUE_APP_APIMATERIALS
8
8
  const apiUser = base.VUE_APP_APIUSER
@@ -104,6 +104,24 @@ const apiTender = {
104
104
  request.post(`${url}/gv1/mechanicalLabor/win`, data),
105
105
  // 定标公司列表
106
106
  getWinningCompany: (data) =>
107
- request.get(`${url}/v1/NewBiddingRules/winningCompany`, data)
107
+ request.get(`${url}/v1/NewBiddingRules/winningCompany`, data),
108
+
109
+
110
+ // 招标类型
111
+ getTypeList: () => request.get(`${url}/ov1/mechanicalLabor/tenderTypeSelectCustom`),
112
+ // 招标类型 审批调用 NO为字符串
113
+ findTenderType: () => request.get(`${url}/ov1/mechanicalLabor/findTenderType`),
114
+ // 招标方式
115
+ getTenderMethod: () => request.get(`${url}/ov1/mechanicalLabor/getTenderBiddingMethod`),
116
+ // 报名方式
117
+ getVerticalWay: () => request.get(`${url}/ov1/mechanicalLabor/getVerticalBidWay`),
118
+ // 招标规则
119
+ getRuleSetUp: () => request.get(`${url}/ov1/mechanicalLabor/getRuleSetUp`),
120
+ // 招标状态
121
+ getTenderStatus: () => request.get(`${url}/gv1/mechanicalLabor/getTenderAddendumStatusShow`),
122
+ // 竞价类型 审批调用 NO为字符串
123
+ getBidTypeNo: () => request.get(`${url}/ov1/bid/getBidType`),
124
+ // 竞价规则
125
+ getBidRuleSetUp: () => request.get(`${url}/ov1/bid/getRuleSetUp`),
108
126
  }
109
127
  export default apiTender
@@ -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 api = base.VUE_APP_MEMBERCENTER
4
4
  const apiUser = {
5
5
  getUserInfo: () => request.get(api + "/api/user/getCurrentUserInfo"),
@@ -488,7 +488,7 @@ textarea.ant-input {
488
488
 
489
489
  .fd-nav-content {
490
490
  z-index: 1;
491
- overflow-x: hidden;
491
+ overflow-x: scroll;
492
492
  overflow-y: auto;
493
493
  background-color: #f5f5f7;
494
494
  }
@@ -7,6 +7,7 @@ import { req } from "@/api/apiTeam/apiUtils";
7
7
  import { getSealList } from "@/api/apiSealRecord";
8
8
  import apiSystem from "@/api/apiSystem";
9
9
  import apiment from "@/api/apiRankManagement";
10
+ import apiTender from "@/api/apiTender";
10
11
  import { log } from "fullcalendar";
11
12
 
12
13
 
@@ -105,10 +106,10 @@ export const trip = async() => { // ok
105
106
  // 项目立项
106
107
  export const projectApproval = async() => {
107
108
  const projectAddApply = [
108
- { name: "申请单位", variable: "accountSubject", ele: "checkbox", data: [] },
109
- { name: "工程类型", variable: "type", ele: "checkbox", data: engineeringTypes },
109
+ { name: "申请单位", variable: "applyCompany", ele: "checkbox", data: [] },
110
+ { name: "工程类型", variable: "engineeringType", ele: "checkbox", data: engineeringTypes },
110
111
  // { name: "资金来源", variable: "fundSource", ele: "checkbox", data: capitalSourceList },
111
- { name: "项目造价", variable: "price", ele: "input" },
112
+ { name: "项目造价", variable: "projectPrice", ele: "input" },
112
113
  {
113
114
  name: "经营类型", variable: "businessType", ele: "checkbox", data: [
114
115
  { name: "合作管理", no: "合作管理" },
@@ -480,3 +481,105 @@ export const purchaseAccept = async() => {
480
481
  export const payable = async() => {
481
482
  return []
482
483
  }
484
+ // 招标发布
485
+ export const issueTender = async() => {
486
+ const issueTenderApply = [
487
+ { name: "招标类型", variable: "type", ele: "checkbox", data: [] },
488
+ { name: "招标方式", variable: "biddingMethod", ele: "checkbox", data: [] },
489
+ { name: "报名方式", variable: "verticalTypeValue", ele: "checkbox", data: [] },
490
+ { name: "招标规则", variable: "tenderingRuleType", ele: "checkbox", data: [] },
491
+ { name: "概算金额", variable: "money", ele: "input" }
492
+ ]
493
+ const res = await apiTender.findTenderType();
494
+ issueTenderApply[0].data = res.data.result;
495
+ const res1 = await apiTender.getTenderMethod()
496
+ issueTenderApply[1].data = res1.data.result;
497
+ const res2 = await apiTender.getVerticalWay()
498
+ issueTenderApply[2].data = res2.data.result;
499
+ const res3 = await apiTender.getRuleSetUp()
500
+ issueTenderApply[3].data = res3.data.result;
501
+ return issueTenderApply
502
+ }
503
+ // 招标定标
504
+ export const tenderBid = async() => {
505
+ const tenderBidApply = [
506
+ { name: "招标类型", variable: "type", ele: "checkbox", data: [] },
507
+ {
508
+ name: "中标单位是否为第一名", variable: "isFirst", ele: "radio", data: [{ value: "1", name: "是" }, { value: "0", name: "否" }]
509
+ },
510
+ { name: "中标总价", variable: "money", ele: "input" },
511
+ { name: "投标家数", variable: "bidNum", ele: "input" }
512
+ ]
513
+ const res = await apiTender.findTenderType();
514
+ tenderBidApply[0].data = res.data.result;
515
+ return tenderBidApply
516
+ }
517
+ // 招标废标
518
+ export const abandonedBid = async() => {
519
+ const abandonedBidApply = [
520
+ { name: "招标类型", variable: "type", ele: "checkbox", data: [] },
521
+ { name: "招标状态", variable: "state", ele: "checkbox", data: [] }
522
+ ]
523
+ const res = await apiTender.findTenderType();
524
+ abandonedBidApply[0].data = res.data.result;
525
+ const res1 = await apiTender.getTenderStatus();
526
+ abandonedBidApply[1].data = res1.data.result;
527
+ return abandonedBidApply
528
+ }
529
+ // 招标补遗
530
+ export const addendum = async() => {
531
+ const addendumApply = [
532
+ { name: "招标类型", variable: "tenderingType", ele: "checkbox", data: [] },
533
+ { name: "招标状态", variable: "tenderingState", ele: "checkbox" }
534
+ ]
535
+ const res = await apiTender.findTenderType();
536
+ addendumApply[0].data = res.data.result;
537
+ const res1 = await apiTender.getTenderStatus();
538
+ addendumApply[1].data = res1.data.result;
539
+ return addendumApply
540
+ }
541
+ // 竞价发布
542
+ export const issueBiding = async() => {
543
+ const issueBidingApply = [
544
+ { name: "竞价类型", variable: "type", ele: "checkbox", data: [] },
545
+ { name: "竞价规则", variable: "ruleSetUp", ele: "checkbox", data: [] },
546
+ { name: "概算金额", variable: "budgetPrice", ele: "input" }
547
+ ]
548
+ const res = await apiTender.getBidTypeNo();
549
+ issueBidingApply[0].data = res.data.result;
550
+ const res1 = await apiTender.getBidRuleSetUp();
551
+ issueBidingApply[1].data = res1.data.result;
552
+ return issueBidingApply
553
+ }
554
+ // 竞价定标
555
+ export const zcBidDetermine = async() => {
556
+ const zcBidDetermineApply = [
557
+ { name: "竞价类型", variable: "type", ele: "checkbox", data: [] },
558
+ {
559
+ name: "中标单位是否为第一名", variable: "isFirst", ele: "radio", data: [{ value: "1", name: "是" }, { value: "0", name: "否" }]
560
+ },
561
+ { name: "中标总价", variable: "money", ele: "input" },
562
+ { name: "竞价家数", variable: "bidNum", ele: "input" }
563
+ ]
564
+ const res = await apiTender.getBidTypeNo();
565
+ zcBidDetermineApply[0].data = res.data.result;
566
+ return zcBidDetermineApply
567
+ }
568
+ // 竞价废标
569
+ export const zcBidCancel = async() => {
570
+ const zcBidCancelApply = [
571
+ { name: "竞价类型", variable: "type", ele: "checkbox", data: [] }
572
+ ]
573
+ const res = await apiTender.getBidTypeNo();
574
+ zcBidCancelApply[0].data = res.data.result;
575
+ return zcBidCancelApply
576
+ }
577
+ // 竞价补遗
578
+ export const zcBidAddendum = async() => {
579
+ const zcBidAddendumApply = [
580
+ { name: "竞价类型", variable: "bidType", ele: "checkbox", data: [] }
581
+ ]
582
+ const res = await apiTender.getBidTypeNo();
583
+ zcBidAddendumApply[0].data = res.data.result;
584
+ return zcBidAddendumApply
585
+ }
@@ -29,7 +29,7 @@
29
29
  <div v-for="(item, index) in formConfig" :key="index">
30
30
  <template v-if="item.ele == 'checkbox'">
31
31
  <el-form-item :label="item.name + ': '">
32
- <el-checkbox-group v-if="item.variable == 'accountSubject'" v-model="form[item.variable].value" @change="(val) => handlerChange(val, item)">
32
+ <el-checkbox-group v-if="item.variable == 'applyCompany'" v-model="form[item.variable].value" @change="(val) => handlerChange(val, item)">
33
33
  <el-checkbox :label="items.id" v-for="(items, indexs) in item.data" :key="indexs">{{ items.name }}</el-checkbox>
34
34
  </el-checkbox-group>
35
35
  <el-checkbox-group v-else v-model="form[item.variable].value" @change="(val) => handlerChange(val, item)">
@@ -175,9 +175,9 @@ export default {
175
175
  type: String,
176
176
  default: ""
177
177
  },
178
- queryInfo:{
178
+ queryInfo: {
179
179
  type: Object,
180
- default:()=>{
180
+ default: () => {
181
181
  return {}
182
182
  }
183
183
  }
@@ -322,16 +322,16 @@ export default {
322
322
  const data = this.configList.filter(i => i.variable == name)[0].data;
323
323
  let descArr;
324
324
  if (data && Array.isArray(this.form[name].value)) {
325
- if(this.form[name].name == '申请单位'){
326
- descArr = [];
327
- this.form[name].value.forEach(item=>{
328
- data.forEach(j=>{
329
- if(item == j.id){
330
- descArr.push(j.name)
331
- }
332
- })
325
+ if (this.form[name].name == "申请单位") {
326
+ descArr = [];
327
+ this.form[name].value.forEach(item => {
328
+ data.forEach(j => {
329
+ if (item == j.id) {
330
+ descArr.push(j.name)
331
+ }
333
332
  })
334
- } else{
333
+ })
334
+ } else {
335
335
  descArr = this.form[name].value.map(item => data.filter(j => j.no == item)[0].name)
336
336
  }
337
337
  } else if (data && !Array.isArray(this.form[name].value)) {
@@ -421,6 +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
  if (this.queryInfo.type == "sealApproval" || this.queryInfo.name == "用章申请" || this.queryInfo.name == "用车申请" || this.queryInfo.type == "carApproval") {
425
426
  configDefault = {};
426
427
  } else {
@@ -519,7 +520,7 @@ export default {
519
520
  .conditionSelect /deep/ .el-dialog__header{
520
521
  padding: 15px 20px;
521
522
  border-bottom: 1px solid #eaeaea;
522
-
523
+
523
524
  }
524
525
 
525
526
  .conditionSelect /deep/ .el-dialog__header .el-dialog__title{
@@ -183,7 +183,8 @@ export default {
183
183
  // 条件配置
184
184
  this.bPriorityLevel = priorityLevel;
185
185
  this.conditionsConfig = JSON.parse(JSON.stringify(this.nodeConfig))
186
- this.conditionConfig = this.conditionsConfig.conditionNodes[priorityLevel - 1]
186
+ // this.conditionConfig = this.conditionsConfig.conditionNodes[priorityLevel - 1]
187
+ this.conditionConfig = item
187
188
  this.$refs.conditionForm.nodeConditionHandler() // 条件页面
188
189
  this.fillConditionForm(this.conditionConfig) // 填充条件弹出表单参数
189
190
  }
@@ -371,8 +372,8 @@ export default {
371
372
  // 判断修改类型,适应表单复现
372
373
  // todo: 暂时判断输入框与发起人类型
373
374
  if(!['input','sponsor'].includes(item.ele)){
374
- item.value = item.value.split(',')
375
- // item.value.map((items,key)=>item.value[key] = parseInt(items))
375
+ // 判断是否数组
376
+ item.value = !Array.isArray(item.value) ? item.value.split(',') : item.value
376
377
  }
377
378
 
378
379
  json[item.variable] = item;