Commit eb82a303 by 李伟康

commit 提交

1 parent ba54fc9d
......@@ -53,6 +53,17 @@
:displayValue="searchForm.qualityTestScore"
></el-input-range>
</template>
<template slot="recepTime">
<el-time-picker
is-range
v-model="searchForm.recepTime"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
placeholder="选择时间范围"
>
</el-time-picker>
</template>
</GLCombiForm>
<GLTable
ref="recepDetail"
......@@ -80,7 +91,7 @@
<template v-if="scope.scope.score || scope.scope.score === 0">
{{ scope.scope.score }}
</template>
<template v-else>--</template>
<template v-else>分析中</template>
</div>
<div
slot="estimatedResult"
......@@ -124,9 +135,9 @@ export default {
label: '接待时间',
type: 'datePicker',
name: 'recepTime',
// addHtml:'recepTime',
isClear: true,
pickerOptions: 'afterRangePickerOptions'
addHtml: 'recepTime',
// isClear: true,
// pickerOptions: 'beforeRangePickerOptions'
},
{
label: '质检评分',
......@@ -229,6 +240,7 @@ export default {
if (query) {
this.queryData = query
viewStorage = query
if (!this.searchForm.recepTime.length) this.searchForm.recepTime = [new Date(`${query.searchdate} 00:00:00`), new Date(`${query.searchdate} 23:59:59`)]
}
if (!viewStorage) return this.$router.push({
path: '/qualityManage/index'
......@@ -297,7 +309,7 @@ export default {
}
if (this.searchFormSearch.recepTime.length > 0) {
this.searchFormSearch.startTime = Util.dateFormate(this.searchFormSearch.recepTime[0], 'YYYY-MM-DD HH:mm:ss')
this.searchFormSearch.endTime = Util.dateFormate(this.searchFormSearch.recepTime[1], 'YYYY-MM-DD') + ' 23:59:59'
this.searchFormSearch.endTime = Util.dateFormate(this.searchFormSearch.recepTime[1], 'YYYY-MM-DD HH:mm:ss')
}
if (this.searchFormSearch.estimatedResultId) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!