Commit 35a8f00a by zhangxw

bug修复

1 parent 8190f955
......@@ -150,7 +150,7 @@
end-placeholder="结束月份"
popper-class="statement-of-history-performance-month-picker"
style="margin-right: 8px;width: 284px"
@blur="handleMonthRangeBlur"
@change="handleMonthRangeBlur"
:picker-options="rangePickerOptions">
</el-date-picker>
</div>
......@@ -211,7 +211,10 @@ export default {
},
{
label: '开单门店',
prop: 'merchantName'
prop: 'merchantName',
formatter: (row) => {
return `${row.merchantName}${row.merchantId}` || '-'
}
},
{
label: '订单数',
......@@ -311,8 +314,8 @@ export default {
this.salaryDetailsVisible = !this.salaryDetailsVisible
},
getParams() {
const startDate = this.monthRange[0]
const endDate = this.monthRange[1]
const startDate = this.monthRange?.[0] || ''
const endDate = this.monthRange?.[1] || ''
endDate && endDate.setMonth(endDate.getMonth() + 1)
let params = {
startDate: startDate ? Util.dateFormate(startDate, 'YYYY-MM-DD HH:mm:ss') : '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!