Commit 9ff36b66 by chenwq

fix(DeliverList): 修正placeOrderTimeStr初始化和验证逻辑

将placeOrderTimeStr从数组改为空字符串,并更新相关验证条件
1 parent a85b23d1
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
putStatus: '', putStatus: '',
orderCode: this.$route.query.orderCode ? this.$route.query.orderCode : '', orderCode: this.$route.query.orderCode ? this.$route.query.orderCode : '',
merchantName: '', merchantName: '',
placeOrderTimeStr: [] placeOrderTimeStr: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
id: '', id: '',
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.placeOrderTimeStr.length) { if (this.searchForm.placeOrderTimeStr) {
params.deliveryDateStart = dayjs(this.searchForm.placeOrderTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:00' params.deliveryDateStart = dayjs(this.searchForm.placeOrderTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.deliveryDateEnd = dayjs(this.searchForm.placeOrderTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59' params.deliveryDateEnd = dayjs(this.searchForm.placeOrderTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
...@@ -447,7 +447,7 @@ export default { ...@@ -447,7 +447,7 @@ export default {
putStatus: '', putStatus: '',
orderCode: '', orderCode: '',
merchantName: '', merchantName: '',
placeOrderTimeStr: [] placeOrderTimeStr: ''
} }
this.handleSearch() this.handleSearch()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!