n20-common-lib 2.16.18 → 2.16.20

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.16.18",
3
+ "version": "2.16.20",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -683,6 +683,12 @@ export default {
683
683
  noMsg: true
684
684
  })
685
685
  .then(({ data = {} }) => {
686
+ // 自定义按钮
687
+ if (data.customBtnName && data.customBtnName.length > 0) {
688
+ data.customBtnName.forEach((item) => {
689
+ this.btnsNames[item.key] = item.optionName
690
+ })
691
+ }
686
692
  let { taskDefKey, menuAuthority } = data
687
693
 
688
694
  this.taskDefKey = taskDefKey
@@ -8,14 +8,7 @@
8
8
  :close-on-click-modal="false"
9
9
  @close="closeSee"
10
10
  >
11
- <Table
12
- :data="tableData"
13
- :columns="checkColumns"
14
- :filters-map="filtersMap"
15
- height="400px"
16
- :show-setsize="true"
17
- :cell-default="true"
18
- >
11
+ <Table :data="tableData" :columns="checkColumns" height="400px" :show-setsize="true" :cell-default="true">
19
12
  <el-table-column slot="checkStatus" slot-scope="{ column }" v-bind="column">
20
13
  <template slot-scope="{ row }">
21
14
  <el-tag v-if="row.checkStatus === '0'" effect="dark" type="warning" size="mini">不通过</el-tag>
@@ -24,7 +17,13 @@
24
17
  </el-table-column>
25
18
  <el-table-column slot="remark" slot-scope="{ column }" v-bind="column">
26
19
  <template slot-scope="{ row }">
27
- <el-input v-model="row.remark" placeholder="请输入" size="normal" clearable :disabled="readonly" />
20
+ <el-input
21
+ v-model="row.remark"
22
+ placeholder="请输入"
23
+ size="normal"
24
+ clearable
25
+ :disabled="readonly || row.status === '1'"
26
+ />
28
27
  </template>
29
28
  </el-table-column>
30
29
  </Table>
@@ -544,27 +544,34 @@ export default {
544
544
  },
545
545
  // ai校验
546
546
  async AiCheck(row) {
547
- if (!this.AIOptions.bussType) {
548
- this.$message.error('请先配置bussType')
549
- return false
550
- }
551
- let { data, code } = await this.$axios.post(
552
- this.apiPrefix ? `${this.apiPrefix}/neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
553
- {
554
- ...this.AIOptions,
555
- beid: row.beid,
556
- bussType: this.AIOptions.bussType,
557
- extendPrompt: ''
558
- }
559
- )
560
- if (code === 200) {
561
- this.$emit('AiCheckFn', data, (result) => {
547
+ // isOptionAiCheck为true,业务组件自己调ai校验
548
+ if (this.AIOptions.isOptionAiCheck) {
549
+ this.$emit('AiCheckFn', row, (result) => {
562
550
  row.aiCheckStatus = result.aiCheckStatus
563
551
  this.tableKey++
564
- if (row.aiCheckStatus === 0) {
565
- this.$refs.aiCheckDialog.setView(result.list, row.beid)
566
- }
552
+ this.$refs.aiCheckDialog.setView(result.list, row.beid)
567
553
  })
554
+ } else {
555
+ if (!this.AIOptions.bussType) {
556
+ this.$message.error('请先配置bussType')
557
+ return false
558
+ }
559
+ let { data, code } = await this.$axios.post(
560
+ this.apiPrefix ? `${this.apiPrefix}/neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
561
+ {
562
+ ...this.AIOptions,
563
+ beid: row.beid,
564
+ bussType: this.AIOptions.bussType,
565
+ extendPrompt: ''
566
+ }
567
+ )
568
+ if (code === 200) {
569
+ this.$emit('AiCheckFn', data, (result) => {
570
+ row.aiCheckStatus = result.aiCheckStatus
571
+ this.tableKey++
572
+ this.$refs.aiCheckDialog.setView(result.list, row.beid)
573
+ })
574
+ }
568
575
  }
569
576
  },
570
577
  // ai识别