|
@@ -76,6 +76,12 @@
|
|
|
<a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary"
|
|
<a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary"
|
|
|
icon="plus" @click="handleBatchAdd">批量新增
|
|
icon="plus" @click="handleBatchAdd">批量新增
|
|
|
</a-button>
|
|
</a-button>
|
|
|
|
|
+ <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary"
|
|
|
|
|
+ icon="upload" @click="handleBatchImport">批量导入
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))"
|
|
|
|
|
+ icon="download" @click="handleDownloadTemplate">下载导入模板
|
|
|
|
|
+ </a-button>
|
|
|
<!-- 隐藏批量调整标准按钮 -->
|
|
<!-- 隐藏批量调整标准按钮 -->
|
|
|
<!--
|
|
<!--
|
|
|
<a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))"
|
|
<a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))"
|
|
@@ -145,6 +151,7 @@
|
|
|
<detail-standard-check-job ref="detailSbCheckJobModal" @ok="handleOk" />
|
|
<detail-standard-check-job ref="detailSbCheckJobModal" @ok="handleOk" />
|
|
|
<base-form ref="baseModal" :check-type="checkType" @ok="handleOk" />
|
|
<base-form ref="baseModal" :check-type="checkType" @ok="handleOk" />
|
|
|
<BatchBaseForm ref="batchBaseForm" :check-type="checkType" @ok="handleOk" />
|
|
<BatchBaseForm ref="batchBaseForm" :check-type="checkType" @ok="handleOk" />
|
|
|
|
|
+ <BatchImportStandard ref="batchImportModal" @ok="handleOk" />
|
|
|
<detail ref="detailModal" :check-type="checkType" />
|
|
<detail ref="detailModal" :check-type="checkType" />
|
|
|
<import-form-update ref="importModal" @ok="handleOk" />
|
|
<import-form-update ref="importModal" @ok="handleOk" />
|
|
|
<BatchEditForm ref="batchEditForm" @ok="handleOk" />
|
|
<BatchEditForm ref="batchEditForm" @ok="handleOk" />
|
|
@@ -155,6 +162,7 @@
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
import BaseForm from './modules/BaseForm'
|
|
import BaseForm from './modules/BaseForm'
|
|
|
import BatchBaseForm from './modules/BatchBaseForm'
|
|
import BatchBaseForm from './modules/BatchBaseForm'
|
|
|
|
|
+import BatchImportStandard from './modules/BatchImportStandard'
|
|
|
import Detail from './modules/Detail'
|
|
import Detail from './modules/Detail'
|
|
|
import BatchEditForm from './modules/BatchEditForm'
|
|
import BatchEditForm from './modules/BatchEditForm'
|
|
|
import ImportFormUpdate from './modules/ImportFormUpdate'
|
|
import ImportFormUpdate from './modules/ImportFormUpdate'
|
|
@@ -164,6 +172,7 @@ import {
|
|
|
updateCheckStandardNo,
|
|
updateCheckStandardNo,
|
|
|
fetchCheckStandard,
|
|
fetchCheckStandard,
|
|
|
exportCheckStandard,
|
|
exportCheckStandard,
|
|
|
|
|
+ downloadCheckStandardImportTemplate,
|
|
|
} from '@/api/check/checkstandard'
|
|
} from '@/api/check/checkstandard'
|
|
|
import DetailStandardCheckJob from '@/views/check/checkjob/modules/DetailStandardCheckJob.vue'
|
|
import DetailStandardCheckJob from '@/views/check/checkjob/modules/DetailStandardCheckJob.vue'
|
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
@@ -179,6 +188,7 @@ export default {
|
|
|
DetailStandardCheckJob,
|
|
DetailStandardCheckJob,
|
|
|
BatchBaseForm,
|
|
BatchBaseForm,
|
|
|
BatchEditForm,
|
|
BatchEditForm,
|
|
|
|
|
+ BatchImportStandard,
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
/**
|
|
/**
|
|
@@ -442,6 +452,14 @@ export default {
|
|
|
const modal = this.$refs.batchBaseForm
|
|
const modal = this.$refs.batchBaseForm
|
|
|
modal.base()
|
|
modal.base()
|
|
|
},
|
|
},
|
|
|
|
|
+ handleBatchImport() {
|
|
|
|
|
+ this.$refs.batchImportModal.base()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleDownloadTemplate() {
|
|
|
|
|
+ downloadCheckStandardImportTemplate().then((file) => {
|
|
|
|
|
+ this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
handleCopy(record) {
|
|
handleCopy(record) {
|
|
|
fetchCheckStandard({ id: record.id }).then((res) => {
|
|
fetchCheckStandard({ id: record.id }).then((res) => {
|
|
|
const modal = this.$refs.baseModal
|
|
const modal = this.$refs.baseModal
|