|
@@ -2,16 +2,6 @@
|
|
<div>
|
|
<div>
|
|
<a-card :bordered="false" v-show="visible">
|
|
<a-card :bordered="false" v-show="visible">
|
|
<a-row :gutter="8" >
|
|
<a-row :gutter="8" >
|
|
- <!-- <a-col :span="4">
|
|
|
|
- <a-tree
|
|
|
|
- @expand="onExpand"
|
|
|
|
- :expandedKeys="expandedKeys"
|
|
|
|
- :autoExpandParent="true"
|
|
|
|
- @select="onSelect"
|
|
|
|
- :selectedKeys="selectedKeys"
|
|
|
|
- :treeData="treeData"
|
|
|
|
- />
|
|
|
|
- </a-col>-->
|
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<div>
|
|
<div>
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
@@ -85,12 +75,12 @@
|
|
</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-range-picker v-model="dateRangeCheck" :style="{width: '256px'}" />
|
|
|
|
|
|
+ <a-range-picker v-model="dateRangeCheck" />
|
|
</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-range-picker v-model="dateRange" :style="{width: '256px'}" />
|
|
|
|
|
|
+ <a-range-picker v-model="dateRange"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -194,6 +184,7 @@
|
|
|
|
|
|
<s-table
|
|
<s-table
|
|
ref="table"
|
|
ref="table"
|
|
|
|
+ @expand="onExpand"
|
|
size="default"
|
|
size="default"
|
|
rowKey="id"
|
|
rowKey="id"
|
|
:widthSpace="true"
|
|
:widthSpace="true"
|
|
@@ -282,7 +273,7 @@ import BaseFormMeasure from './modules/BaseFormMeasure'
|
|
import BaseFormLocation from './modules/BaseFormLocation'
|
|
import BaseFormLocation from './modules/BaseFormLocation'
|
|
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, fetchSbInfos, exportSbInfo, batchLocationList } from '@/api/sb/info'
|
|
|
|
|
|
+import { getSbInfoPage, deleteSbInfos, querySbInfo, fetchSbInfo, fetchSbInfos, exportSbInfo, batchLocationList } from '@/api/sb/info'
|
|
import { queryDept } from '@/api/upms/dept'
|
|
import { queryDept } from '@/api/upms/dept'
|
|
import { generateSbCodeAll } from '@/api/upms/code'
|
|
import { generateSbCodeAll } from '@/api/upms/code'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
@@ -374,7 +365,7 @@ export default {
|
|
treeData: [],
|
|
treeData: [],
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '序号',
|
|
title: '序号',
|
|
dataIndex: 'index',
|
|
dataIndex: 'index',
|
|
width: 100,
|
|
width: 100,
|
|
@@ -382,7 +373,7 @@ export default {
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
|
|
return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
{
|
|
{
|
|
title: '设备编号',
|
|
title: '设备编号',
|
|
dataIndex: 'no',
|
|
dataIndex: 'no',
|
|
@@ -416,7 +407,7 @@ export default {
|
|
return record.typeName
|
|
return record.typeName
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '设备等级',
|
|
title: '设备等级',
|
|
checked: true,
|
|
checked: true,
|
|
dataIndex: 'level',
|
|
dataIndex: 'level',
|
|
@@ -424,14 +415,14 @@ export default {
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return this.BaseTool.Object.getField(this.levelMap, text)
|
|
return this.BaseTool.Object.getField(this.levelMap, text)
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
{
|
|
{
|
|
title: '规格型号',
|
|
title: '规格型号',
|
|
dataIndex: 'model',
|
|
dataIndex: 'model',
|
|
width: 150,
|
|
width: 150,
|
|
checked: true
|
|
checked: true
|
|
},
|
|
},
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '自定义类型',
|
|
title: '自定义类型',
|
|
checked: true,
|
|
checked: true,
|
|
dataIndex: 'useType',
|
|
dataIndex: 'useType',
|
|
@@ -439,14 +430,14 @@ export default {
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return this.BaseTool.Object.getField(this.useTypeMap, text)
|
|
return this.BaseTool.Object.getField(this.useTypeMap, text)
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
{
|
|
{
|
|
title: '设备位置',
|
|
title: '设备位置',
|
|
checked: true,
|
|
checked: true,
|
|
width: 200,
|
|
width: 200,
|
|
dataIndex: 'positionName'
|
|
dataIndex: 'positionName'
|
|
},
|
|
},
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '使用机台',
|
|
title: '使用机台',
|
|
checked: true,
|
|
checked: true,
|
|
width: 200,
|
|
width: 200,
|
|
@@ -457,7 +448,7 @@ export default {
|
|
dataIndex: 'producerId',
|
|
dataIndex: 'producerId',
|
|
width: 120,
|
|
width: 120,
|
|
checked: true
|
|
checked: true
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
/* {
|
|
/* {
|
|
title: '大小尺寸',
|
|
title: '大小尺寸',
|
|
dataIndex: 'zz',
|
|
dataIndex: 'zz',
|
|
@@ -491,7 +482,7 @@ export default {
|
|
return this.BaseTool.Object.getField(this.isChildMap, text)
|
|
return this.BaseTool.Object.getField(this.isChildMap, text)
|
|
}
|
|
}
|
|
}, */
|
|
}, */
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '资产编号',
|
|
title: '资产编号',
|
|
dataIndex: 'financingNo',
|
|
dataIndex: 'financingNo',
|
|
width: 120,
|
|
width: 120,
|
|
@@ -517,7 +508,7 @@ export default {
|
|
dataIndex: 'startDate',
|
|
dataIndex: 'startDate',
|
|
width: 120,
|
|
width: 120,
|
|
checked: true
|
|
checked: true
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
/* {
|
|
/* {
|
|
title: '检定日期',
|
|
title: '检定日期',
|
|
dataIndex: 'checkDate',
|
|
dataIndex: 'checkDate',
|
|
@@ -536,14 +527,15 @@ export default {
|
|
return text + '月'
|
|
return text + '月'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
{
|
|
{
|
|
title: '检定有效期',
|
|
title: '检定有效期',
|
|
dataIndex: 'nextCheckDate',
|
|
dataIndex: 'nextCheckDate',
|
|
|
|
+ fixed: 'right',
|
|
width: 150,
|
|
width: 150,
|
|
checked: true
|
|
checked: true
|
|
},
|
|
},
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '检定截止',
|
|
title: '检定截止',
|
|
dataIndex: 'restDay',
|
|
dataIndex: 'restDay',
|
|
width: 100,
|
|
width: 100,
|
|
@@ -560,6 +552,7 @@ export default {
|
|
title: '状态',
|
|
title: '状态',
|
|
checked: true,
|
|
checked: true,
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
|
|
+ fixed: 'right',
|
|
width: 100,
|
|
width: 100,
|
|
scopedSlots: { customRender: 'status' }
|
|
scopedSlots: { customRender: 'status' }
|
|
},
|
|
},
|
|
@@ -583,7 +576,6 @@ export default {
|
|
sortName: 'no'
|
|
sortName: 'no'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(parameter)
|
|
|
|
return getSbInfoPage(Object.assign(parameter, this.queryParam))
|
|
return getSbInfoPage(Object.assign(parameter, this.queryParam))
|
|
.then(res => {
|
|
.then(res => {
|
|
return res.data
|
|
return res.data
|
|
@@ -841,28 +833,13 @@ export default {
|
|
this.queryParam.typeId = selectedKeys.length > 0 ? selectedKeys[0] : ''
|
|
this.queryParam.typeId = selectedKeys.length > 0 ? selectedKeys[0] : ''
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
- onExpand (expandedKeys) {
|
|
|
|
- this.expandedKeys = expandedKeys
|
|
|
|
- this.autoExpandParent = false
|
|
|
|
- },
|
|
|
|
- handleRepairFilePreview (record) {
|
|
|
|
- console.log(record, 87878)
|
|
|
|
- this.$refs.previewModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_REPAIRFILE)
|
|
|
|
- },
|
|
|
|
- handleRepairFileDownload (record) {
|
|
|
|
- // this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_REPAIRFILE, getDownloadUrl(record.id))
|
|
|
|
- },
|
|
|
|
- handleUseFilePreview (record) {
|
|
|
|
- this.$refs.previewModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_USEFILE)
|
|
|
|
- },
|
|
|
|
- handleUseFileDownload (record) {
|
|
|
|
- // this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_USEFILE, getDownloadUrl(record.id))
|
|
|
|
- },
|
|
|
|
- handleCheckFilePreview (record) {
|
|
|
|
- this.$refs.previewModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_RECHECKFILE)
|
|
|
|
- },
|
|
|
|
- handleCheckFileDownload (record) {
|
|
|
|
- // this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_RECHECKFILE, getDownloadUrl(record.id))
|
|
|
|
|
|
+ onExpand (expanded, record) { // expanded判断展开or收缩操作,record当前行数据
|
|
|
|
+ console.log(expanded)
|
|
|
|
+ if (expanded) {
|
|
|
|
+ querySbInfo({ positionNo: record.positionNo }).then(res => {
|
|
|
|
+ record.children = res.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
doImport () {
|
|
doImport () {
|
|
this.$refs.importModal.base(null, null)
|
|
this.$refs.importModal.base(null, null)
|