|
|
|
@ -137,8 +137,8 @@ |
|
|
|
<el-date-picker |
|
|
|
v-model="searchData.startDate2" |
|
|
|
type="datetime" |
|
|
|
value-format='yyyy-MM-dd HH:mm' |
|
|
|
format='yyyy-MM-dd HH:mm' |
|
|
|
value-format='yyyy-MM-dd HH:mm:ss' |
|
|
|
format='yyyy-MM-dd HH:mm:ss' |
|
|
|
placeholder="开始日期" |
|
|
|
style="width: 44%"> |
|
|
|
</el-date-picker> |
|
|
|
@ -146,8 +146,8 @@ |
|
|
|
<el-date-picker |
|
|
|
v-model="searchData.endDate2" |
|
|
|
type="datetime" |
|
|
|
value-format='yyyy-MM-dd HH:mm' |
|
|
|
format='yyyy-MM-dd HH:mm' |
|
|
|
value-format='yyyy-MM-dd HH:mm:ss' |
|
|
|
format='yyyy-MM-dd HH:mm:ss' |
|
|
|
placeholder="结束日期" |
|
|
|
style="width: 44%"> |
|
|
|
</el-date-picker> |
|
|
|
@ -278,11 +278,11 @@ |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="item.columnProp === 'inspectionResult' && scope.row.inspectionResult === '不合格' && scope.row.disposalMeasures === '拒收退回'"> |
|
|
|
<span v-if="!item.columnHidden" style="color: red"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="!item.columnHidden" style="color: red"> {{ formatMainListCellValue(scope.row, item) }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="!item.columnHidden"> {{ formatMainListCellValue(scope.row, item) }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -2151,6 +2151,19 @@ |
|
|
|
this.height = windowHeight - headerHeight - 65; |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
formatMainListCellValue (row, column) { |
|
|
|
if (!row || !column) { |
|
|
|
return '' |
|
|
|
} |
|
|
|
const value = row[column.columnProp] |
|
|
|
if ((column.columnProp === 'taskDate' || column.columnProp === 'task_date') && value) { |
|
|
|
const formattedValue = this.dayjs(value).format('YYYY-MM-DD HH:mm:ss') |
|
|
|
return formattedValue === 'Invalid Date' ? value : formattedValue |
|
|
|
} |
|
|
|
return value |
|
|
|
}, |
|
|
|
|
|
|
|
// 重置搜索条件 |
|
|
|
resetSearch() { |
|
|
|
this.searchData = { |
|
|
|
|