Commit 9ff36b66 by chenwq

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

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