n20-common-lib 2.20.21 → 2.20.23

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": "n20-common-lib",
3
- "version": "2.20.21",
3
+ "version": "2.20.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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,
@@ -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,
@@ -625,7 +625,7 @@ export default {
625
625
  },
626
626
  async getIsShowUploadWidget() {
627
627
  const { processInstanceId: procInstId, taskId } = this.$route.query
628
- let { code, data } = await this.$axios.get(
628
+ let { code, data } = await axios.get(
629
629
  `/bems/activiti/admin/todo/isShowUploadWidget/${procInstId}/${taskId}`,
630
630
  null,
631
631
  {
@@ -995,7 +995,7 @@ export default {
995
995
  }
996
996
  ]
997
997
  }
998
- 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)
999
999
  if (code === 200) {
1000
1000
  this.promptType = data.promptType
1001
1001
  // 成功 失败 待确认 提交数据
@@ -1115,7 +1115,7 @@ export default {
1115
1115
  },
1116
1116
  // 获取数据字典加签备注
1117
1117
  async getMdmDataDoc() {
1118
- const { code, data } = await this.$axios.get(`/bems/1.0/mdmDataDoc`, {
1118
+ const { code, data } = await axios.get(`/bems/1.0/mdmDataDoc`, {
1119
1119
  typeCode: 'ADD_TASK_TAG'
1120
1120
  })
1121
1121
  if (code === 200) {
@@ -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
@@ -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>
@@ -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`
@@ -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
  {
@@ -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 }