Commit eb82a303 by 李伟康

commit 提交

1 parent ba54fc9d
...@@ -53,6 +53,17 @@ ...@@ -53,6 +53,17 @@
:displayValue="searchForm.qualityTestScore" :displayValue="searchForm.qualityTestScore"
></el-input-range> ></el-input-range>
</template> </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> </GLCombiForm>
<GLTable <GLTable
ref="recepDetail" ref="recepDetail"
...@@ -80,7 +91,7 @@ ...@@ -80,7 +91,7 @@
<template v-if="scope.scope.score || scope.scope.score === 0"> <template v-if="scope.scope.score || scope.scope.score === 0">
{{ scope.scope.score }} {{ scope.scope.score }}
</template> </template>
<template v-else>--</template> <template v-else>分析中</template>
</div> </div>
<div <div
slot="estimatedResult" slot="estimatedResult"
...@@ -124,9 +135,9 @@ export default { ...@@ -124,9 +135,9 @@ export default {
label: '接待时间', label: '接待时间',
type: 'datePicker', type: 'datePicker',
name: 'recepTime', name: 'recepTime',
// addHtml:'recepTime', addHtml: 'recepTime',
isClear: true, // isClear: true,
pickerOptions: 'afterRangePickerOptions' // pickerOptions: 'beforeRangePickerOptions'
}, },
{ {
label: '质检评分', label: '质检评分',
...@@ -229,6 +240,7 @@ export default { ...@@ -229,6 +240,7 @@ export default {
if (query) { if (query) {
this.queryData = query this.queryData = query
viewStorage = 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({ if (!viewStorage) return this.$router.push({
path: '/qualityManage/index' path: '/qualityManage/index'
...@@ -297,7 +309,7 @@ export default { ...@@ -297,7 +309,7 @@ export default {
} }
if (this.searchFormSearch.recepTime.length > 0) { if (this.searchFormSearch.recepTime.length > 0) {
this.searchFormSearch.startTime = Util.dateFormate(this.searchFormSearch.recepTime[0], 'YYYY-MM-DD HH:mm:ss') 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) { 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!