|
@@ -54,6 +54,10 @@
|
|
|
icon="download"
|
|
|
@click="doExport">导出
|
|
|
</a-button>
|
|
|
+ <a-button style="margin-left:8px;" type="primary" @click="doUpdateNo">
|
|
|
+ <a-icon type="upload"/>
|
|
|
+ 初始化编码
|
|
|
+ </a-button>
|
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && ($auth('check-spot-standards-del')||$auth('check-polling-standards-del'))">
|
|
|
<a-menu slot="overlay">
|
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
@@ -116,6 +120,7 @@ import ImportFormAdd from './modules/ImportFormAdd'
|
|
|
import {
|
|
|
getCheckStandardPage,
|
|
|
deleteCheckStandards,
|
|
|
+ updateCheckStandardNo,
|
|
|
fetchCheckStandard,
|
|
|
exportCheckStandard
|
|
|
} from '@/api/check/checkstandard'
|
|
@@ -168,8 +173,8 @@ export default {
|
|
|
width: '150px'
|
|
|
},
|
|
|
{
|
|
|
- title: '设备新号',
|
|
|
- dataIndex: 'sbNo',
|
|
|
+ title: '标准编码',
|
|
|
+ dataIndex: 'no',
|
|
|
checked: true,
|
|
|
width: '150px'
|
|
|
},
|
|
@@ -332,6 +337,13 @@ export default {
|
|
|
this.$refs.table.clearSelected()
|
|
|
})
|
|
|
},
|
|
|
+ doUpdateNo (record) {
|
|
|
+ updateCheckStandardNo().then(res => {
|
|
|
+ this.$message.info('编码生成成功')
|
|
|
+ this.handleOk()
|
|
|
+ this.$refs.table.clearSelected()
|
|
|
+ })
|
|
|
+ },
|
|
|
handleEdit (record) {
|
|
|
const modal = this.$refs.baseModal
|
|
|
modal.base(record)
|