|
@@ -136,7 +136,18 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
-
|
|
|
+ <a-col :md="6" :sm="24" :style="{ display: expand ? 'block' : 'none' }">
|
|
|
+ <a-form-item label="是否强检">
|
|
|
+ <a-select v-model="queryParam.checkType" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="(label,value) in checkTypeMap"
|
|
|
+ :key="value"
|
|
|
+ :label="label"
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
<a-row :gutter="8">
|
|
@@ -393,6 +404,7 @@ export default {
|
|
|
levelMap: {},
|
|
|
lineMap: {},
|
|
|
unitMap: {},
|
|
|
+ checkTypeMap: {},
|
|
|
areaList: {},
|
|
|
childMap: [],
|
|
|
companyList: {},
|
|
@@ -511,7 +523,15 @@ export default {
|
|
|
width: 120,
|
|
|
checked: true
|
|
|
},
|
|
|
-
|
|
|
+ {
|
|
|
+ title: '是否强检',
|
|
|
+ dataIndex: 'checkType',
|
|
|
+ width: 120,
|
|
|
+ checked: true,
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Object.getField(this.checkTypeMap, text)
|
|
|
+ }
|
|
|
+ },
|
|
|
/* {
|
|
|
title: '是否显示',
|
|
|
dataIndex: 'isShow',
|
|
@@ -596,14 +616,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}, */
|
|
|
- // {
|
|
|
- // title: '状态',
|
|
|
- // checked: true,
|
|
|
- // dataIndex: 'status',
|
|
|
- // fixed: 'right',
|
|
|
- // width: 100,
|
|
|
- // scopedSlots: { customRender: 'status' }
|
|
|
- // },
|
|
|
+ {
|
|
|
+ title: '状态',
|
|
|
+ checked: true,
|
|
|
+ dataIndex: 'status',
|
|
|
+ width: 100,
|
|
|
+ scopedSlots: { customRender: 'status' }
|
|
|
+ },
|
|
|
// {
|
|
|
// title: '检定状态',
|
|
|
// checked: true,
|
|
@@ -653,6 +672,18 @@ export default {
|
|
|
width: 200,
|
|
|
dataIndex: 'createdUserName'
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '处理人员',
|
|
|
+ checked: true,
|
|
|
+ width: 200,
|
|
|
+ dataIndex: 'updateUserName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '异常处理描述',
|
|
|
+ checked: true,
|
|
|
+ width: 200,
|
|
|
+ dataIndex: 'exceptionDescription'
|
|
|
+ },
|
|
|
{
|
|
|
title: '操作内容',
|
|
|
checked: true,
|
|
@@ -704,7 +735,7 @@ export default {
|
|
|
this.otherTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_MEASURE_OTHER_TYPE)
|
|
|
console.log(11)
|
|
|
console.log(this.otherTypeMap)
|
|
|
-
|
|
|
+ this.checkTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CHECK_TYPE)
|
|
|
this.depreciationTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_DEPRECIATIONTYPE)
|
|
|
this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_LEVEL)
|
|
|
this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_INFO_STATUS)
|
|
@@ -987,21 +1018,17 @@ export default {
|
|
|
this.$refs.importModalUpdate.base(null, 2)
|
|
|
},
|
|
|
rowClassName (record, index) {
|
|
|
- if (record.measureStatus === 1) return 'orange'
|
|
|
+ if (record.measureStatus === 1 && record.status !== 7) return 'orange'
|
|
|
console.log(record)
|
|
|
switch (record.status) {
|
|
|
case 1:
|
|
|
- console.log(12)
|
|
|
return 'green'
|
|
|
case 3:
|
|
|
case 4:
|
|
|
- console.log(112)
|
|
|
-
|
|
|
return 'red'
|
|
|
case 5:
|
|
|
case 6:
|
|
|
- console.log(122)
|
|
|
-
|
|
|
+ case 7:
|
|
|
return 'gray'
|
|
|
}
|
|
|
}
|