Commit 35a8f00a by zhangxw

bug修复

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