n20-common-lib 2.16.19 → 2.16.21
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
|
@@ -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
|
|
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>
|
|
@@ -126,14 +126,18 @@
|
|
|
126
126
|
<el-table-column v-if="AICheck" :label="'AI校验' | $lc" width="170" align="left">
|
|
127
127
|
<template slot-scope="{ row }">
|
|
128
128
|
<span
|
|
129
|
-
v-if="row.aiCheckStatus === 0"
|
|
129
|
+
v-if="row.aiCheckStatus === '0' || row.aiCheckStatus === 0"
|
|
130
130
|
class="m-r-s"
|
|
131
131
|
style="color: var(--color-danger); cursor: pointer"
|
|
132
132
|
@click="getAiCheckData(row)"
|
|
133
133
|
>
|
|
134
134
|
{{ '校验异常' | $lc }}</span
|
|
135
135
|
>
|
|
136
|
-
<span
|
|
136
|
+
<span
|
|
137
|
+
v-if="row.aiCheckStatus === '1' || row.aiCheckStatus === 1"
|
|
138
|
+
class="m-r-s"
|
|
139
|
+
style="color: var(--color-success)"
|
|
140
|
+
>
|
|
137
141
|
{{ '校验通过' | $lc }}</span
|
|
138
142
|
>
|
|
139
143
|
<el-button v-if="!readonly && row[keys.url]" type="text" size="small" @click="AiCheck(row)">{{
|
|
@@ -544,27 +548,34 @@ export default {
|
|
|
544
548
|
},
|
|
545
549
|
// ai校验
|
|
546
550
|
async AiCheck(row) {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
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) => {
|
|
551
|
+
// isOptionAiCheck为true,业务组件自己调ai校验
|
|
552
|
+
if (this.AIOptions.isOptionAiCheck) {
|
|
553
|
+
this.$emit('AiCheckFn', row, (result) => {
|
|
562
554
|
row.aiCheckStatus = result.aiCheckStatus
|
|
563
555
|
this.tableKey++
|
|
564
|
-
|
|
565
|
-
this.$refs.aiCheckDialog.setView(result.list, row.beid)
|
|
566
|
-
}
|
|
556
|
+
this.$refs.aiCheckDialog.setView(result.list, row.beid)
|
|
567
557
|
})
|
|
558
|
+
} else {
|
|
559
|
+
if (!this.AIOptions.bussType) {
|
|
560
|
+
this.$message.error('请先配置bussType')
|
|
561
|
+
return false
|
|
562
|
+
}
|
|
563
|
+
let { data, code } = await this.$axios.post(
|
|
564
|
+
this.apiPrefix ? `${this.apiPrefix}/neams/eamsbaserecord/aiAttaFile` : `/neams/eamsbaserecord/aiAttaFile`,
|
|
565
|
+
{
|
|
566
|
+
...this.AIOptions,
|
|
567
|
+
beid: row.beid,
|
|
568
|
+
bussType: this.AIOptions.bussType,
|
|
569
|
+
extendPrompt: ''
|
|
570
|
+
}
|
|
571
|
+
)
|
|
572
|
+
if (code === 200) {
|
|
573
|
+
this.$emit('AiCheckFn', data, (result) => {
|
|
574
|
+
row.aiCheckStatus = result.aiCheckStatus
|
|
575
|
+
this.tableKey++
|
|
576
|
+
this.$refs.aiCheckDialog.setView(result.list, row.beid)
|
|
577
|
+
})
|
|
578
|
+
}
|
|
568
579
|
}
|
|
569
580
|
},
|
|
570
581
|
// ai识别
|