|
|
@@ -168,28 +168,15 @@
|
|
|
<el-form-item label="支付时间">
|
|
|
<el-date-picker
|
|
|
v-model="payTimeRange"
|
|
|
- type="datetimerange"
|
|
|
+ type="daterange"
|
|
|
size="small"
|
|
|
clearable
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
range-separator="至"
|
|
|
start-placeholder="开始时间"
|
|
|
end-placeholder="结束时间"
|
|
|
@change="handlePayTimeChange"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="完成时间">
|
|
|
- <el-date-picker
|
|
|
- v-model="finishTimeRange"
|
|
|
- type="datetimerange"
|
|
|
- size="small"
|
|
|
- clearable
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始时间"
|
|
|
- end-placeholder="结束时间"
|
|
|
- @change="handleFinishTimeChange"
|
|
|
- />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
@@ -321,8 +308,6 @@ export default {
|
|
|
|
|
|
// 支付时间范围选择器绑定的值
|
|
|
payTimeRange: [],
|
|
|
- // 完成时间范围选择器绑定的值
|
|
|
- finishTimeRange: [],
|
|
|
// 发货时间范围选择器绑定的值
|
|
|
deliverySendTimeRange: [],
|
|
|
|
|
|
@@ -346,8 +331,6 @@ export default {
|
|
|
// 移除单个时间字段,改为范围字段
|
|
|
payStartTime: null,
|
|
|
payEndTime: null,
|
|
|
- finishTimeStart: null,
|
|
|
- finishTimeEnd: null,
|
|
|
status: null,
|
|
|
companyUserName: null,
|
|
|
},
|
|
|
@@ -370,7 +353,8 @@ export default {
|
|
|
});
|
|
|
this.queryParams.liveId = this.$route.query.liveId
|
|
|
this.getList();
|
|
|
- this.getDicts("sys_live_order_status").then(response => {
|
|
|
+ // this.getDicts("sys_live_order_status").then(response => {
|
|
|
+ this.getDicts("sys_order_status").then(response => {
|
|
|
this.orderStatusOptions = response.data;
|
|
|
});
|
|
|
this.getDicts("sys_order_status").then(response => {
|
|
|
@@ -389,31 +373,22 @@ export default {
|
|
|
// 支付时间范围选择变化处理
|
|
|
handlePayTimeChange(value) {
|
|
|
if (value && value.length === 2) {
|
|
|
- this.queryParams.payStartTime = value[0] + ' 00:00:00';
|
|
|
- this.queryParams.payEndTime = value[1] + ' 23:59:59';
|
|
|
+ // 提取日期部分(yyyy-MM-dd),mapper会在SQL中拼接时间部分
|
|
|
+ this.queryParams.payStartTime = value[0].substring(0, 10);
|
|
|
+ this.queryParams.payEndTime = value[1].substring(0, 10);
|
|
|
} else {
|
|
|
this.queryParams.payStartTime = null;
|
|
|
this.queryParams.payEndTime = null;
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
- // 完成时间范围选择变化处理
|
|
|
- handleFinishTimeChange(value) {
|
|
|
- if (value && value.length === 2) {
|
|
|
- this.queryParams.finishTimeStart = value[0] + ' 00:00:00';
|
|
|
- this.queryParams.finishTimeEnd = value[1] + ' 23:59:59';
|
|
|
- } else {
|
|
|
- this.queryParams.finishTimeStart = null;
|
|
|
- this.queryParams.finishTimeEnd = null;
|
|
|
- }
|
|
|
- },
|
|
|
// 发货时间范围选择变化处理
|
|
|
handleDeliveryTimeChange(value) {
|
|
|
if (value && value.length === 2) {
|
|
|
- this.queryParams.deliverySendTimeStart = value[0] + ' 00:00:00';
|
|
|
- this.queryParams.deliverySendTimeEnd = value[1] + ' 23:59:59';
|
|
|
+ // 提取日期部分(yyyy-MM-dd),mapper会在SQL中拼接时间部分
|
|
|
+ this.queryParams.deliverySendTimeStart = value[0].substring(0, 10);
|
|
|
+ this.queryParams.deliverySendTimeEnd = value[1].substring(0, 10);
|
|
|
} else {
|
|
|
- this.queryParams.eliverySendTimeStart = null;
|
|
|
+ this.queryParams.deliverySendTimeStart = null;
|
|
|
this.queryParams.deliverySendTimeEnd = null;
|
|
|
}
|
|
|
},
|
|
|
@@ -444,7 +419,6 @@ export default {
|
|
|
this.liveOrderList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
- delete this.queryParams[this.searchType];
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -460,8 +434,12 @@ export default {
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
+ // 处理物流信息搜索
|
|
|
if(this.searchKey!=='' && this.searchType!==''){
|
|
|
- this.queryParams[this.searchType]=this.searchKey
|
|
|
+ this.queryParams[this.searchType] = this.searchKey;
|
|
|
+ } else if(this.searchType!=='') {
|
|
|
+ // 如果搜索框为空,清空对应的查询参数
|
|
|
+ this.queryParams[this.searchType] = null;
|
|
|
}
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
@@ -472,14 +450,14 @@ export default {
|
|
|
this.resetForm("queryForm");
|
|
|
// 同时清空范围选择器的值
|
|
|
this.payTimeRange = [];
|
|
|
- this.finishTimeRange = [];
|
|
|
+ this.deliverySendTimeRange = [];
|
|
|
this.searchKey= '';
|
|
|
this.queryParams[this.searchType]=null;
|
|
|
// 清空时间范围参数
|
|
|
this.queryParams.payStartTime = null;
|
|
|
this.queryParams.payEndTime = null;
|
|
|
- this.queryParams.finishTimeStart = null;
|
|
|
- this.queryParams.finishTimeEnd = null;
|
|
|
+ this.queryParams.deliverySendTimeStart = null;
|
|
|
+ this.queryParams.deliverySendTimeEnd = null;
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
|