Commit b9999d41 by caoyanzhi

update: 好办bug

parent f865226b
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
} }
this.loadingBtn = true; this.loadingBtn = true;
let url = '/haoban-task-manage-web/market/clue/export/store-view-task-detail'; let url = '/haoban-task-manage-web/market/clue/export/store-view-task-detail';
const { finishOverStatus, taskType, pageNum, pageSize } = this.pageParams; const { finishOverStatus, taskType, pageNum, pageSize, date } = this.pageParams;
let para = { let para = {
enterpriseId: this.brandId, enterpriseId: this.brandId,
dataType: 1, dataType: 1,
...@@ -210,12 +210,16 @@ export default { ...@@ -210,12 +210,16 @@ export default {
taskType, taskType,
pageNum, pageNum,
pageSize, pageSize,
startTime: this.pageParams.date[0], // startTime: this.pageParams.date[0],
endTime: this.pageParams.date[1], // endTime: this.pageParams.date[1],
selectType: this.selectRadio, selectType: this.selectRadio,
selectIdList: this.selectRadio == 1 ? '' : this.multipleSelection.map(ele => ele.taskId).join(','), // 门店分组,数组 selectIdList: this.selectRadio == 1 ? '' : this.multipleSelection.map(ele => ele.taskId).join(','), // 门店分组,数组
storeId: this.$route.params.id storeId: this.$route.params.id
}; };
if (Array.isArray(date) && date.length === 2) {
para.startTime = `${date[0]} 00:00:00`;
para.endTime = `${date[1]} 23:59:59`;
}
let fileName = this.pageParams.date.length ? `群发任务-门店视图-任务详情_${para.startTime}${para.endTime}.xls` : `群发任务-门店视图-任务详情.xls`; let fileName = this.pageParams.date.length ? `群发任务-门店视图-任务详情_${para.startTime}${para.endTime}.xls` : `群发任务-门店视图-任务详情.xls`;
if (this.$route.query.hasOwnProperty('ecmPlanName')) { if (this.$route.query.hasOwnProperty('ecmPlanName')) {
para.ecmPlanName = this.$route.query.ecmPlanName; para.ecmPlanName = this.$route.query.ecmPlanName;
......
...@@ -179,8 +179,8 @@ export default { ...@@ -179,8 +179,8 @@ export default {
selectIdList: this.selectRadio == 1 ? '' : this.multipleSelection.map(ele => ele.ecmPlanId).join(',') selectIdList: this.selectRadio == 1 ? '' : this.multipleSelection.map(ele => ele.ecmPlanId).join(',')
}; };
if (Array.isArray(para.date)) { if (Array.isArray(para.date)) {
para.startTime = `${para.date[0]} 00:00:00`; para.startTime = para.date[0];
para.endTime = `${para.date[1]} 23:59:59`; para.endTime = para.date[1];
delete para.date; delete para.date;
} }
postExcel('/haoban-task-manage-web/market/clue/export/plan-view', para) postExcel('/haoban-task-manage-web/market/clue/export/plan-view', para)
...@@ -275,8 +275,8 @@ export default { ...@@ -275,8 +275,8 @@ export default {
qywxEnterpriseId: JSON.parse(sessionStorage.getItem('userInfos')).wxEnterpriseId qywxEnterpriseId: JSON.parse(sessionStorage.getItem('userInfos')).wxEnterpriseId
}; };
if (para.date) { if (para.date) {
para.startTime = `${para.date[0]} 00:00:00`; para.startTime = para.date[0];
para.endTime = `${para.date[1]} 23:59:59`; para.endTime = para.date[1];
delete para.date; delete para.date;
} }
getRequest('/haoban-task-manage-web/market/clue/web/plan-list', para) getRequest('/haoban-task-manage-web/market/clue/web/plan-list', para)
......
...@@ -385,10 +385,12 @@ export default { ...@@ -385,10 +385,12 @@ export default {
isCompleted: that.conditionObj.completed || '', // 完成 isCompleted: that.conditionObj.completed || '', // 完成
taskIds: that.selectRadio == 1 ? '' : that.multipleSelection.map(ele => ele.taskId).join(','), taskIds: that.selectRadio == 1 ? '' : that.multipleSelection.map(ele => ele.taskId).join(','),
dataType: type, dataType: type,
createTimeStart: this.conditionObj.date[0],
createTimeEnd: this.conditionObj.date[1],
title: this.conditionObj.title title: this.conditionObj.title
}; };
if (Array.isArray(this.conditionObj.date) && this.conditionObj.date.length == 2) {
para.createTimeStart = `${this.conditionObj.date[0]} 00:00:00`;
para.createTimeEnd = `${this.conditionObj.date[1]} 23:59:59`;
}
postExcel('/haoban-app-tel-task-three-web/task/export-store-view-clerk-list', para) postExcel('/haoban-app-tel-task-three-web/task/export-store-view-clerk-list', para)
.then(res => { .then(res => {
that.loadingBtn = false; that.loadingBtn = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment