Commit ac00be8f by 吕明尚

订单查询增加支付时间范围查询

parent 70531426
...@@ -106,6 +106,18 @@ ...@@ -106,6 +106,18 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="支付时间">
<el-date-picker
v-model="payTime"
:default-time="['00:00:00', '23:59:59']"
end-placeholder="结束日期"
range-separator="至"
start-placeholder="开始日期"
type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="预约时间"> <el-form-item label="预约时间">
<el-date-picker <el-date-picker
v-model="preDate" v-model="preDate"
...@@ -762,6 +774,7 @@ export default { ...@@ -762,6 +774,7 @@ export default {
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
dateValue: null, dateValue: null,
payTime: null,
preDate: null, preDate: null,
// 查询参数 // 查询参数
queryParams: { queryParams: {
...@@ -782,6 +795,8 @@ export default { ...@@ -782,6 +795,8 @@ export default {
status: null, status: null,
startDate: null, startDate: null,
endDate: null, endDate: null,
startPayTime: null,
endPayTime: null,
preStartDate: null, preStartDate: null,
preEndDate: null, preEndDate: null,
orderNo: null, orderNo: null,
...@@ -883,6 +898,13 @@ export default { ...@@ -883,6 +898,13 @@ export default {
this.queryParams.preStartDate = null; this.queryParams.preStartDate = null;
this.queryParams.preEndDate = null; this.queryParams.preEndDate = null;
} }
if (this.payTime && this.payTime.length > 0) {
this.queryParams.startPayTime = this.payTime[0];
this.queryParams.endPayTime = this.payTime[1];
} else {
this.queryParams.startPayTime = null;
this.queryParams.endPayTime = null;
}
this.loading = true; this.loading = true;
listOrder(this.queryParams).then(response => { listOrder(this.queryParams).then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment