优化
This commit is contained in:
@@ -48,7 +48,16 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="维修单日期">
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
@@ -105,9 +114,9 @@
|
||||
<el-table-column fixed="left" prop="device_name" label="设备名称" min-width="150"/>
|
||||
<el-table-column fixed="left" prop="extend_code" label="设备自编码" min-width="100" />
|
||||
<el-table-column fixed="left" prop="use_name" label="使用班组" min-width="130"/>
|
||||
<el-table-column fixed="left" prop="fault_level" label="故障等级" :formatter="formatLevelName" min-width="70"/>
|
||||
<el-table-column fixed="left" prop="invstatus" label="单据状态" :formatter="formatStatusName" min-width="70"/>
|
||||
<el-table-column fixed="left" prop="plan_start_date" label="计划维修日期" width="95" />
|
||||
<el-table-column fixed="left" prop="fault_level" label="故障等级" :formatter="formatLevelName" min-width="80"/>
|
||||
<el-table-column fixed="left" prop="invstatus" label="单据状态" :formatter="formatStatusName" min-width="80"/>
|
||||
<el-table-column fixed="left" prop="plan_start_date" label="计划维修日期" width="110" />
|
||||
<el-table-column fixed="left" prop="input_optname" label="创建人" min-width="90"/>
|
||||
<el-table-column fixed="left" prop="input_time" label="创建时间" min-width="140" />
|
||||
<el-table-column prop="bx_name" label="报修人" min-width="90"/>
|
||||
@@ -287,6 +296,19 @@ export default {
|
||||
return '维修计划'
|
||||
}
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
downdtl() {
|
||||
if (this.currentRow !== null) {
|
||||
crud.downloadLoading = true
|
||||
|
||||
Reference in New Issue
Block a user