|
@@ -32,7 +32,7 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
- <a-form-item label="关联状态">
|
|
|
|
|
|
+ <a-form-item label="管理状态">
|
|
<a-select v-model="queryParam.status" placeholder="请选择">
|
|
<a-select v-model="queryParam.status" placeholder="请选择">
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="(label,value) in statusMap"
|
|
v-for="(label,value) in statusMap"
|
|
@@ -63,6 +63,7 @@
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="upload" @click="doImport">新增导入</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="upload" @click="doImport">新增导入</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="upload" @click="doImportForUpdate">修改导入</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="upload" @click="doImportForUpdate">修改导入</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExport">导出</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExport">导出</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExportMeasure">检定导出</a-button>
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('sb-infos-del')">
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('sb-infos-del')">
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
@@ -130,7 +131,13 @@ import BaseForm from './modules/BaseForm'
|
|
import Detail from './modules/Detail'
|
|
import Detail from './modules/Detail'
|
|
import DownloadModal from '@/views/download/DownloadModal'
|
|
import DownloadModal from '@/views/download/DownloadModal'
|
|
import PreviewModal from '@/views/preview/PreviewModal'
|
|
import PreviewModal from '@/views/preview/PreviewModal'
|
|
-import { getSbInfoPage, deleteSbInfos, fetchSbInfo, exportSbInfoMeasure } from '@/api/sb/measure'
|
|
|
|
|
|
+import {
|
|
|
|
+ getSbInfoPage,
|
|
|
|
+ deleteSbInfos,
|
|
|
|
+ fetchSbInfo,
|
|
|
|
+ exportSbInfoMeasure,
|
|
|
|
+ exportSbInfoMeasureTwo
|
|
|
|
+} from '@/api/sb/measure'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
import ImportFormAdd from './modules/ImportFormAdd'
|
|
import ImportFormAdd from './modules/ImportFormAdd'
|
|
import ImportFormUpdate from './modules/ImportFormUpdate'
|
|
import ImportFormUpdate from './modules/ImportFormUpdate'
|
|
@@ -506,6 +513,20 @@ export default {
|
|
this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ doExportMeasure () {
|
|
|
|
+ if (this.dateRange != null) {
|
|
|
|
+ this.queryParam.nextCheckDateStart = this.dateRange[0]
|
|
|
|
+ this.queryParam.nextCheckDateEnd = this.dateRange[1]
|
|
|
|
+ this.queryParam.nextCheckDateStart = this.queryParam.nextCheckDateStart ? this.queryParam.nextCheckDateStart.format(this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) : null
|
|
|
|
+ this.queryParam.nextCheckDateEnd = this.queryParam.nextCheckDateEnd ? this.queryParam.nextCheckDateEnd.format(this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) : null
|
|
|
|
+ }
|
|
|
|
+ const parameter = {
|
|
|
|
+ ...this.queryParam
|
|
|
|
+ }
|
|
|
|
+ exportSbInfoMeasureTwo(parameter).then(file => {
|
|
|
|
+ this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
setTree (record = {}) {
|
|
setTree (record = {}) {
|
|
fetchSbTypeTree().then(res => {
|
|
fetchSbTypeTree().then(res => {
|
|
this.treeData = res.data
|
|
this.treeData = res.data
|