n20-common-lib 3.0.11 → 3.0.12

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 (29) hide show
  1. package/package.json +1 -1
  2. package/src/assets/css/filter.scss +15 -14
  3. package/src/components/AIButton/index.vue +2 -1
  4. package/src/components/AdvancedFilter/formItemRender.vue +13 -0
  5. package/src/components/AdvancedFilter/index.vue +1 -0
  6. package/src/components/ApprovalButtons/index.vue +35 -12
  7. package/src/components/ApprovalButtons/indexApp.vue +5 -7
  8. package/src/components/ApprovalButtons/showAppOpi.vue +3 -3
  9. package/src/components/ApprovalCard/index.vue +5 -1
  10. package/src/components/ApprovalCard/indexApp.vue +2 -2
  11. package/src/components/ApprovalRecord/approvalImgPro/index.vue +1 -1
  12. package/src/components/ApprovalRecord/indexApp.vue +11 -35
  13. package/src/components/Diff/index.vue +3 -0
  14. package/src/components/ElectronicArchive/index.vue +1 -1
  15. package/src/components/Empty/img/empty.png +0 -0
  16. package/src/components/Empty/index.vue +2 -0
  17. package/src/components/FileUploadTable/FileUploadTableV3.vue +2 -2
  18. package/src/components/FileUploadTable/aiCheckDialog.vue +2 -1
  19. package/src/components/FileUploadTable/index.vue +4 -4
  20. package/src/components/HandlingAdvice/index.vue +4 -2
  21. package/src/components/Preview/index.vue +2 -1
  22. package/src/components/ProFilterView/advancedQuery.vue +28 -1
  23. package/src/components/ProFilterView/index.vue +59 -20
  24. package/src/components/SelectTree/index.vue +1 -0
  25. package/src/components/TablePro/index.vue +83 -20
  26. package/src/components/TableProOperateColumn/index.vue +1 -1
  27. package/src/components/WorkCard/index.vue +5 -4
  28. package/src/utils/axios.js +37 -0
  29. package/style/index.css +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "3.0.11",
3
+ "version": "3.0.12",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -24,20 +24,7 @@
24
24
  padding: 0 8px;
25
25
  margin-top: 8px;
26
26
  }
27
- .add {
28
- cursor: pointer;
29
- margin-top: 8px;
30
- img {
31
- margin-right: 12px;
32
- }
33
- padding: 8px;
34
- height: 20px;
35
- line-height: 20px;
36
- }
37
- .add:hover {
38
- border-radius: 2px;
39
- background: var(--fill-1, #f7f8fa);
40
- }
27
+
41
28
  .botton {
42
29
  padding: 8px;
43
30
  border-radius: 4px;
@@ -54,6 +41,20 @@
54
41
  margin-left: 0;
55
42
  }
56
43
  }
44
+ .ProFilterView-add {
45
+ cursor: pointer;
46
+ margin-top: 8px;
47
+ img {
48
+ margin-right: 12px;
49
+ }
50
+ padding: 8px;
51
+ height: 20px;
52
+ line-height: 20px;
53
+ }
54
+ .ProFilterView-add:hover {
55
+ border-radius: 2px;
56
+ background: var(--fill-1, #f7f8fa);
57
+ }
57
58
  .proFilterView-list-item {
58
59
  width: 100%;
59
60
  display: flex;
@@ -25,6 +25,7 @@
25
25
  <script>
26
26
  import Dialog from '../Dialog/index.vue'
27
27
  import clUpload from '../Upload/index.vue'
28
+ import axios from '../../utils/axios.js'
28
29
  let dayjs = undefined
29
30
  import('../../index.js').then((res) => {
30
31
  dayjs = res.dayjs
@@ -81,7 +82,7 @@ export default {
81
82
  this.$message.error('请先配置bussType')
82
83
  return false
83
84
  }
84
- const { data, code } = await this.$axios.post(
85
+ const { data, code } = await axios.post(
85
86
  this.apiPrefix ? `${this.apiPrefix}neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
86
87
  {
87
88
  beid: beid,
@@ -55,6 +55,9 @@ export default {
55
55
  handleEnter() {
56
56
  this.$emit('enter')
57
57
  },
58
+ handleChange(value) {
59
+ this.$emit('change', { field: this.item.value, value })
60
+ },
58
61
  handleVisibleChange(value) {
59
62
  if (!value) {
60
63
  this.handleFilter()
@@ -381,6 +384,7 @@ export default {
381
384
  value: form[item.value],
382
385
  callback: (value) => {
383
386
  this.$set(form, item.value, value)
387
+ this.handleChange(value)
384
388
  }
385
389
  },
386
390
  on: {
@@ -461,6 +465,7 @@ export default {
461
465
  value: form[item.value],
462
466
  callback: (value) => {
463
467
  this.$set(form, item.value, value)
468
+ this.handleChange(value)
464
469
  }
465
470
  },
466
471
  on: {
@@ -494,6 +499,7 @@ export default {
494
499
  on: {
495
500
  input: (value) => {
496
501
  this.$set(form, item.value, value)
502
+ this.handleChange(value)
497
503
  },
498
504
  clear: this.handleClear,
499
505
  blur: this.handleBlur,
@@ -529,9 +535,11 @@ export default {
529
535
  on: {
530
536
  'update:start-value': (value) => {
531
537
  this.$set(form, item.startValue, value)
538
+ this.handleChange(value)
532
539
  },
533
540
  'update:end-value': (value) => {
534
541
  this.$set(form, item.endValue, value)
542
+ this.handleChange(value)
535
543
  },
536
544
  clear: this.handleClear,
537
545
  blur: this.handleBlur,
@@ -579,6 +587,7 @@ export default {
579
587
  on: {
580
588
  input: (value) => {
581
589
  this.$set(form, item.value, value)
590
+ this.handleChange(value)
582
591
  },
583
592
  change: this.handleFilter,
584
593
  clear: this.handleClear
@@ -612,9 +621,11 @@ export default {
612
621
  on: {
613
622
  'update:start-date': (val) => {
614
623
  this.$set(form, item.startDate, val)
624
+ this.handleChange(val)
615
625
  },
616
626
  'update:end-date': (val) => {
617
627
  this.$set(form, item.endDate, val)
628
+ this.handleChange(val)
618
629
  },
619
630
  clear: this.handleClear,
620
631
  change: () => {
@@ -643,6 +654,7 @@ export default {
643
654
  value: form[item.value],
644
655
  callback: (value) => {
645
656
  this.$set(form, item.value, value)
657
+ this.handleChange(value)
646
658
  }
647
659
  },
648
660
  on: {
@@ -677,6 +689,7 @@ export default {
677
689
  value: form[item.value],
678
690
  callback: (value) => {
679
691
  this.$set(form, item.value, value)
692
+ this.handleChange(value)
680
693
  }
681
694
  },
682
695
  on: {
@@ -20,6 +20,7 @@
20
20
  @clean="$emit('clean')"
21
21
  @enter="$emit('enter')"
22
22
  @filter="$emit('filter', model)"
23
+ @change="$emit('change', $event)"
23
24
  />
24
25
  </div>
25
26
  <i
@@ -96,7 +96,7 @@
96
96
  clearable
97
97
  @focus="setAddtaskV = true"
98
98
  />
99
- <el-select v-model="addTaskTag" class="m-l-ss" clearable>
99
+ <el-select v-if="remarkOpt && remarkOpt.length > 0" v-model="addTaskTag" class="m-l-ss" clearable>
100
100
  <el-option v-for="item in remarkOpt" :key="item.code" :label="item.name" :value="item.code" />
101
101
  </el-select>
102
102
  </div>
@@ -566,7 +566,7 @@ export default {
566
566
  }
567
567
  this.beforeFn(this.beforeRatify, async () => {
568
568
  try {
569
- const res = await this.$axios.post(
569
+ const res = await axios.post(
570
570
  '/bems/activiti/admin/todo/showAdvancePop',
571
571
  {
572
572
  isAgentcy: this.$route.query.isAgentcy,
@@ -577,14 +577,37 @@ export default {
577
577
  noMsg: true
578
578
  }
579
579
  )
580
- // 加个判断是否加签且加签是否需要提示
581
- // 这里抛出提示
582
- // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
583
- if (res.code === 200 && res.data && (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)) {
584
- this.setSpr = true
585
- this.selectSprList = res.data
580
+ // addTaskTip 是否给出加签提示
581
+ if (res.code === 200 && res.data && res.data.addTaskTip) {
582
+ this.$confirm('请确定是否向后加签', $lc('提示'), {
583
+ confirmButtonText: $lc('确定'),
584
+ cancelButtonText: $lc('取消'),
585
+ type: 'warning'
586
+ }).then(() => {
587
+ // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
588
+ if (
589
+ res.code === 200 &&
590
+ res.data &&
591
+ (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)
592
+ ) {
593
+ this.setSpr = true
594
+ this.selectSprList = res.data
595
+ } else {
596
+ this.checkFlowFn()
597
+ }
598
+ })
586
599
  } else {
587
- this.checkFlowFn()
600
+ // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
601
+ if (
602
+ res.code === 200 &&
603
+ res.data &&
604
+ (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)
605
+ ) {
606
+ this.setSpr = true
607
+ this.selectSprList = res.data
608
+ } else {
609
+ this.checkFlowFn()
610
+ }
588
611
  }
589
612
  } catch (error) {
590
613
  console.log(error)
@@ -602,7 +625,7 @@ export default {
602
625
  },
603
626
  async getIsShowUploadWidget() {
604
627
  const { processInstanceId: procInstId, taskId } = this.$route.query
605
- let { code, data } = await this.$axios.get(
628
+ let { code, data } = await axios.get(
606
629
  `/bems/activiti/admin/todo/isShowUploadWidget/${procInstId}/${taskId}`,
607
630
  null,
608
631
  {
@@ -972,7 +995,7 @@ export default {
972
995
  }
973
996
  ]
974
997
  }
975
- const { code, data } = await this.$axios.post(`/bems/activiti/admin/todo/checkFlowNew`, params)
998
+ const { code, data } = await axios.post(`/bems/activiti/admin/todo/checkFlowNew`, params)
976
999
  if (code === 200) {
977
1000
  this.promptType = data.promptType
978
1001
  // 成功 失败 待确认 提交数据
@@ -1092,7 +1115,7 @@ export default {
1092
1115
  },
1093
1116
  // 获取数据字典加签备注
1094
1117
  async getMdmDataDoc() {
1095
- const { code, data } = await this.$axios.get(`/bems/1.0/mdmDataDoc`, {
1118
+ const { code, data } = await axios.get(`/bems/1.0/mdmDataDoc`, {
1096
1119
  typeCode: 'ADD_TASK_TAG'
1097
1120
  })
1098
1121
  if (code === 200) {
@@ -440,7 +440,7 @@ export default {
440
440
  data() {
441
441
  this.msgisSync = !!this.$listeners['update:message']
442
442
  return {
443
- attributes: undefined,
443
+ attributes: { appOrPc: '3' },
444
444
  isWyfk: false,
445
445
  nextEgwOutgoingNodeId: undefined,
446
446
  nextNodeApproveUnos: undefined,
@@ -535,7 +535,7 @@ export default {
535
535
  this.getShowApprovalTo()
536
536
  this.getHasQueryAppOpiAndUser()
537
537
  this.nextApproval && this.getTodoList()
538
- this.getConfiguration()
538
+ //this.getConfiguration()
539
539
  this.getIsShowUploadWidget()
540
540
  },
541
541
  methods: {
@@ -878,10 +878,11 @@ export default {
878
878
  onContinue() {
879
879
  if (this.isWyfk) {
880
880
  this.attributes = {
881
+ appOrPc: '3',
881
882
  ebsPaymentRiskWarning: '核实无误'
882
883
  }
883
884
  } else {
884
- this.attributes = undefined
885
+ this.attributes = { appOrPc: '3' }
885
886
  }
886
887
  this.verifyV = false
887
888
  this.approvalFn()
@@ -918,10 +919,7 @@ export default {
918
919
  typeCode,
919
920
  isAgentcy,
920
921
  isCheck,
921
- businessId: orderId,
922
- attributes: {
923
- appOrPc: '3'
924
- }
922
+ businessId: orderId
925
923
  }
926
924
  ]
927
925
  }
@@ -178,7 +178,7 @@ export default {
178
178
  // 查询是否显示审批意见
179
179
  getAction() {
180
180
  try {
181
- this.$axios.get('/bems/activiti/actAppOpi/isShowOpiUser', {}, { loading: false, noMsg: true }).then((res) => {
181
+ axios.get('/bems/activiti/actAppOpi/isShowOpiUser', {}, { loading: false, noMsg: true }).then((res) => {
182
182
  if (res.data === '1') {
183
183
  this.hasZdy = true
184
184
  } else {
@@ -194,7 +194,7 @@ export default {
194
194
  let list
195
195
  switch (type) {
196
196
  case '保存为常用语':
197
- this.$axios.post('/bems/activiti/actAppOpi/saveAppOpi', { message: this.message }).then((res) => {
197
+ axios.post('/bems/activiti/actAppOpi/saveAppOpi', { message: this.message }).then((res) => {
198
198
  if (res.code === 200) {
199
199
  this.$message.success('保存成功')
200
200
  }
@@ -212,7 +212,7 @@ export default {
212
212
  this.deleteList.forEach((d) => {
213
213
  d.appNoType && list.push(d)
214
214
  })
215
- this.$axios.post('/bems/activiti/actAppOpi/saveList', list).then((res) => {
215
+ axios.post('/bems/activiti/actAppOpi/saveList', list).then((res) => {
216
216
  if (res.code === 200) {
217
217
  this.$message.success('保存成功')
218
218
  this.setSpr = false
@@ -72,7 +72,10 @@
72
72
  <div
73
73
  v-if="item.result !== 0 && item.appOrPc !== null && item.appOrPc !== '' && item.appOrPc !== undefined"
74
74
  >
75
- {{ item.appOrPc === '1' ? 'PC端审批' : item.appOrPc === '2' ? '外部系统审批' : 'App端审批' | $lc }}
75
+ <span v-if="item.outTitle">{{ item.outTitle }}</span>
76
+ <span v-else>
77
+ {{ item.appOrPc === '1' ? 'PC端审批' : item.appOrPc === '2' ? '外部系统审批' : 'App端审批' | $lc }}
78
+ </span>
76
79
  </div>
77
80
  <div v-if="item.showConnect === '1'" class="m-l-s">
78
81
  <span class="pointer color-ccc f-s-s" @click="seeDetail(item)"
@@ -506,6 +509,7 @@ export default {
506
509
  memberName: item.memberName, // 审批人单位
507
510
  subProcInitId: item.subProcInitId, // 子流程id
508
511
  appOrPc: item.appOrPc, // 终端标识 1 PC 2 APP
512
+ outTitle: item.outTitle, // 外部审批标题
509
513
  showConnect: item.showConnect, // 是否显示查看详情
510
514
  _details: item,
511
515
  deptName: item.deptName, // 部门
@@ -249,7 +249,7 @@
249
249
  </div>
250
250
  </div> -->
251
251
  <!-- app暂时屏蔽 -->
252
- <!-- <div v-if="!item.subProcInitId && item.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
252
+ <div v-if="!item.subProcInitId && item.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
253
253
  <span v-if="item.result !== status.waiting">{{ '审批意见:' | $lc }}</span>
254
254
  <span style="line-height: 22px">{{ item.suggestion }} </span>
255
255
  </div>
@@ -266,7 +266,7 @@
266
266
  <div>{{ s.cfgRemark }}</div>
267
267
  </div>
268
268
  </div>
269
- </div> -->
269
+ </div>
270
270
  <!-- <div v-if="item.flowHisFileList" class="n20-description-c n20-description-bgc m-t p-a-s">
271
271
  <span>{{ '附件信息' | $lc }}:</span>
272
272
  <div class="flex-box">
@@ -49,7 +49,7 @@
49
49
  </tr>
50
50
  <tr v-for="(item, i) in assigneeEnd" :key="i">
51
51
  <td>{{ item.assignee }}</td>
52
- <td class="text-c">{{ item.optName }}</td>
52
+ <td class="text-c">{{ item.optName || item.optResult }}</td>
53
53
  <td>{{ item.suggestion }}</td>
54
54
  <td>{{ item.endTime }}</td>
55
55
  </tr>
@@ -1,43 +1,19 @@
1
1
  /* 审批记录 */
2
2
  <template>
3
3
  <div>
4
- <div class="flex-box flex-r m-b-s">
5
- <el-button type="text" size="mini" :disabled="false" @click="cardV = true">{{ '审批进度查看' | $lc }}</el-button>
6
- </div>
7
- <el-dialog
8
- v-drag
9
- :title="'审批记录' | $lc"
10
- :visible.sync="cardV"
11
- width="90%"
12
- class="p-a-0"
13
- append-to-body
14
- top="10vh"
15
- >
16
- <approvalCard
17
- :api-prefix="apiPrefix"
18
- class="p-a"
19
- :proc-inst-id="procInstIdC"
20
- style="height: 70vh; overflow: auto"
21
- />
22
- </el-dialog>
23
- <el-dialog
24
- v-drag
25
- :title="'查看流程' | $lc"
26
- :visible.sync="imgV"
27
- width="80%"
28
- class="p-a-0"
29
- append-to-body
30
- top="10vh"
31
- >
32
- <approvalImg class="text-c p-a" :proc-inst-id="procInstIdC" style="height: 70vh; overflow: auto" />
33
- </el-dialog>
4
+ <approvalCard
5
+ :api-prefix="apiPrefix"
6
+ class="p-a"
7
+ :proc-inst-id="procInstIdC"
8
+ style="height: 70vh; overflow: auto"
9
+ />
34
10
  </div>
35
11
  </template>
36
12
 
37
13
  <script>
38
- import approvalCard from '../ApprovalCard/indexApp.vue'
39
- import approvalImg from './approvalImg.vue'
40
- import getJsonc from '../../assets/getJsonc'
14
+ import approvalCard from 'n20-common-lib/src/components/ApprovalCard/indexApp.vue'
15
+ import approvalImg from 'n20-common-lib/src/components/ApprovalRecord/approvalImg.vue'
16
+ import getJsonc from 'n20-common-lib/src/assets/getJsonc'
41
17
  export default {
42
18
  name: 'ApprovalRecord',
43
19
  components: {
@@ -71,9 +47,9 @@ export default {
71
47
  }
72
48
  },
73
49
  mounted() {
74
- getJsonc('portal/server-config.jsonc').then(({ approvalMode }) => {
50
+ /* getJsonc('portal/server-config.jsonc').then(({ approvalMode }) => {
75
51
  this.approvalMode = approvalMode
76
- })
52
+ }) */
77
53
  }
78
54
  }
79
55
  </script>
@@ -3,6 +3,9 @@
3
3
  <el-tooltip v-if="tooltip" :content="value" placement="top">
4
4
  <span>{{ value }}</span>
5
5
  </el-tooltip>
6
+ <span v-else>
7
+ <span>{{ value }}</span>
8
+ </span>
6
9
  </div>
7
10
  <div v-else class="n20-descriptions">
8
11
  <div class="m-b-ss">
@@ -538,7 +538,7 @@ export default {
538
538
  },
539
539
  methods: {
540
540
  async getOfficeStatus() {
541
- const { data } = await this.$axios.get(
541
+ const { data } = await axios.get(
542
542
  this.requestPrefix
543
543
  ? `${this.requestPrefix}/neams/eamsBaseFile/getOfficeIsEnable`
544
544
  : `/neams/eamsBaseFile/getOfficeIsEnable`
@@ -8,6 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import icon_noData from './img/empty.png'
11
12
  import icon_empty from './img/empty.svg'
12
13
  import icon_abnormal from './img/abnormal.svg'
13
14
  import icon_relevant from './img/relevant.svg'
@@ -29,6 +30,7 @@ import icon_905 from './img/905.svg'
29
30
  import icon_906 from './img/906.svg'
30
31
  import icon_907 from './img/907.svg'
31
32
  const pics = {
33
+ icon_noData,
32
34
  icon_empty,
33
35
  icon_abnormal,
34
36
  icon_relevant,
@@ -544,7 +544,7 @@ export default {
544
544
  this.$message.error('请先配置bussType')
545
545
  return false
546
546
  }
547
- const { data, code } = await this.$axios.post(
547
+ const { data, code } = await axios.post(
548
548
  this.apiPrefix ? `${this.apiPrefix}neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
549
549
  {
550
550
  beid: row.beid,
@@ -594,7 +594,7 @@ export default {
594
594
  })
595
595
  },
596
596
  async getOfficeStatus() {
597
- const { data } = await this.$axios.get(
597
+ const { data } = await axios.get(
598
598
  this.apiPrefix
599
599
  ? `${this.apiPrefix}/neams/eamsBaseFile/getOfficeIsEnable`
600
600
  : `/neams/eamsBaseFile/getOfficeIsEnable`
@@ -37,6 +37,7 @@
37
37
  <script>
38
38
  import Dialog from '../Dialog/index.vue'
39
39
  import Table from '../Table/index.vue'
40
+ import axios from '../../utils/axios.js'
40
41
 
41
42
  export default {
42
43
  name: 'AiCheckDialog',
@@ -122,7 +123,7 @@ export default {
122
123
  item.status = '1'
123
124
  return item
124
125
  })
125
- const { code } = await this.$axios.post(
126
+ const { code } = await axios.post(
126
127
  this.apiPrefix ? `${this.apiPrefix}/neams/ai/saveAiBussResult` : `/neams/ai/saveAiBussResult`,
127
128
  list
128
129
  )
@@ -556,7 +556,7 @@ export default {
556
556
  },
557
557
  // ai校验结果
558
558
  async getAiCheckData(row) {
559
- const { data, code } = await this.$axios.get(
559
+ const { data, code } = await axios.get(
560
560
  this.apiPrefix ? `${this.apiPrefix}/neams/ai/getAiBussResult` : `/neams/ai/getAiBussResult`,
561
561
  {
562
562
  beid: row.beid,
@@ -581,7 +581,7 @@ export default {
581
581
  this.$message.error('请先配置bussType')
582
582
  return false
583
583
  }
584
- let { data, code } = await this.$axios.post(
584
+ let { data, code } = await axios.post(
585
585
  this.apiPrefix ? `${this.apiPrefix}/neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
586
586
  {
587
587
  ...this.AIOptions,
@@ -605,7 +605,7 @@ export default {
605
605
  this.$message.error('请先配置bussType')
606
606
  return false
607
607
  }
608
- const { data, code } = await this.$axios.post(
608
+ const { data, code } = await axios.post(
609
609
  this.apiPrefix ? `${this.apiPrefix}/neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
610
610
  {
611
611
  beid: row.beid,
@@ -655,7 +655,7 @@ export default {
655
655
  })
656
656
  },
657
657
  async getOfficeStatus() {
658
- const { data } = await this.$axios.get(
658
+ const { data } = await axios.get(
659
659
  this.apiPrefix
660
660
  ? `${this.apiPrefix}/neams/eamsBaseFile/getOfficeIsEnable`
661
661
  : `/neams/eamsBaseFile/getOfficeIsEnable`
@@ -59,6 +59,7 @@
59
59
  import { $lc } from '../../utils/i18n/index'
60
60
  import ShowOtherAttNew from '../ApprovalButtons/showOtherAttrNew.vue'
61
61
  import ExpandablePane from '../Expandable/main.vue'
62
+ import axios from '../../utils/axios.js'
62
63
  export default {
63
64
  name: 'HandlingAdvice',
64
65
  components: { ShowOtherAttNew, ExpandablePane },
@@ -106,7 +107,7 @@ export default {
106
107
  */
107
108
  async getHandlingAdvice(typeCode, procInstId) {
108
109
  try {
109
- const { code, data } = await this.$axios.post(
110
+ const { code, data } = await axios.post(
110
111
  `/bems/activiti/admin/todo/isFlowStartWithOptions`,
111
112
  { typeCode },
112
113
  {
@@ -138,7 +139,7 @@ export default {
138
139
  }
139
140
  // 回显操作
140
141
  if (procInstId) {
141
- const { data: data1 } = await this.$axios.get(
142
+ const { data: data1 } = await axios.get(
142
143
  `/bems/activiti/sample/getStartEventFlowHistory/${procInstId}`,
143
144
  {},
144
145
  {
@@ -155,6 +156,7 @@ export default {
155
156
  return {
156
157
  ...item,
157
158
  cfgVal: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : bcData.cfgVal,
159
+ cfgText: ['31'].includes(item.cfgType) ? bcData.cfgText && bcData.cfgText.split(',') : bcData.cfgText,
158
160
  selectList: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
159
161
  checkList: ['32'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
160
162
  cfgHasRemark: bcData.cfgHasRemark,
@@ -46,6 +46,7 @@
46
46
  <script>
47
47
  import importG from '../../utils/importGlobal.js'
48
48
  import Dialog from '../Dialog/index.vue'
49
+ import axios from '../../utils/axios.js'
49
50
  const ViewerImg = async function () {
50
51
  let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
51
52
  return component
@@ -167,7 +168,7 @@ export default {
167
168
  }
168
169
  },
169
170
  async getFileInfo(id) {
170
- const response = await this.$axios.post(
171
+ const response = await axios.post(
171
172
  this.apiPrefix ? this.apiPrefix + '/neams/eamsbaserecord/downloadFile' : '/neams/eamsbaserecord/downloadFile',
172
173
  { beid: id },
173
174
  { responseType: 'blob', loading: true }
@@ -59,7 +59,7 @@
59
59
  <el-select v-model="condition.operator" class="operator-select" placeholder="请选择操作符" size="small">
60
60
  <el-option
61
61
  v-for="opt in (dz[condition.advancedQueryType] && dz[condition.advancedQueryType].types) || []"
62
- :key="opt.value"
62
+ :key="opt.id"
63
63
  :label="opt.name"
64
64
  :value="opt.value"
65
65
  @click.native="updateOperatorOptions(opt, condition)"
@@ -146,6 +146,15 @@
146
146
  clearable
147
147
  @change="searchFn"
148
148
  />
149
+ <!-- slot类型 - 支持自定义插槽 -->
150
+ <slot
151
+ v-else-if="condition.valueType === 'slot'"
152
+ :name="condition.slotName"
153
+ :model="condition"
154
+ :value="condition.value"
155
+ :input="(val) => (condition.value = val)"
156
+ :disabled="[5, 6].includes(condition.operator)"
157
+ ></slot>
149
158
  </div>
150
159
  <!-- 添加按钮 -->
151
160
  <el-button
@@ -203,6 +212,10 @@ export default {
203
212
  filterList: {
204
213
  type: Array,
205
214
  default: () => []
215
+ },
216
+ filterId: {
217
+ type: String,
218
+ default: ''
206
219
  }
207
220
  },
208
221
  data() {
@@ -438,12 +451,26 @@ export default {
438
451
  }
439
452
  },
440
453
  methods: {
454
+ // 查询支持可配置高级查询的字段
455
+ getAdvancedQueryFields() {
456
+ let array = [
457
+ {
458
+ fileCode: '',
459
+ fileName: ''
460
+ }
461
+ ]
462
+ },
441
463
  // 修改字段
442
464
  updatefield(field, row) {
443
465
  this.$set(row, 'advancedQueryType', field.advancedQueryType)
444
466
  if (field.advancedQueryType === 4) {
445
467
  this.$set(row, 'options', field.options)
446
468
  }
469
+ // slot 类型特殊处理
470
+ if (field.type === 'slot') {
471
+ this.$set(row, 'valueType', 'slot')
472
+ this.$set(row, 'slotName', field.slotName)
473
+ }
447
474
  this.$set(row, 'operator', '')
448
475
  },
449
476
  // 获取所有条件组中conditions的总数