contentManager.js 14.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
import request from "./request";

const path = "dj.api.";
const path2 = "dj.api.smartcarlife.";

// 内容管理列表查询条件可见门店列表
export function getMerchantList(data) {
	data.method = `dj.smartcarlife.api.shopMerchant.list`;
	return request(data);
}
// 内容管理列表查询
export function getContenttList(data) {
	data.method = `${path}material.record.page`;
	return request(data);
}
// 内容管理详情
export function getContentDetail(data) {
	data.method = `${path}material.record.detail`;
	return request(data);
}
// 批量启停用内容
export function batchOperaterContent(data) {
	data.method = `${path}material.record.batch.operate`;
	return request(data);
}
// 删除内容
export function delContent(data) {
	data.method = `${path}material.record.delete`;
	return request(data);
}
// 统计列表
export function getStatisticsList(data) {
	data.method = `dj.api.customer.dynamic.record.page`;
	return request(data);
}
// 导出统计列表
export function exportStatisticsList(data) {
	data.method = `dj.api.customer.dynamic.record.page.export`;
	return request(data);
}
// 新增内容
export function addContent(data) {
	data.method = `${path}material.record.add`;
	return request(data, "post");
}
// 编辑内容
export function updateContent(data) {
	data.method = `${path}material.record.update`;
	return request(data, "post");
}

// 获取会员权益/升级和积分商城 门店
export function getAllMerchantList(data) {
	data.method = `dj.api.merchant.page`;
	return request(data, "POST");
}

// 获取精品升级/次新车转化/售后众筹 门店
export function getMerchantListByScene(data) {
	data.method = `dj.api.scenemerchantref.listShop4sByRef.page`;
	return request(data);
}
// 获取精品升级/次新车转化/售后众筹 门店
export function getListShop4sByRef(data) {
	data.method = `dj.api.scenemerchantref.listShop4sByRef`;
	return request(data);
}
// 获取品牌列表
export function getBrandList(data) {
	data.method = `dj.api.smartcarlife.common.car.brand.page`;
	return request(data);
}

// 分页查询标签员工
export function getListLabelStaffPage(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.listLabelStaffPage`;
	return request(data);
}

// 员工群发-分页查询列表
export function contentManagerTaskPage(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.page`;
	return request(data, "POST");
}

// 员工群发-删除记录
export function deleteTaskById(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.deleteById`;
	return request(data, "POST");
}

// 员工群发-分页查询内容管理统计信息
export function getStatisticPage(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.statistic.page`;
	return request(data, "POST");
}

// 员工群发-添加/修改记录
export function insertOrUpdate(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.insertOrUpdate`;
	return request(data, "POST");
}

// 根据ID查询详细信息
export function contentManagerTaskById(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.getById`;
	return request(data, "POST");
}

// 获取接待场景
export function receptionSceneList(data) {
	data.method = "dj.api.material.reception.scene.list";
	return request(data, "POST");
}

// 获取客户标签树
export function getLabelList(data) {
	data.method = "dj.api.material.customer.label.list";
	return request(data, "POST");
}

// 单一商品
export function listAllInWithPage(data) {
	data.method = "dj.api.smartcarlife.upgradeGoods.listAllInWithPage";
	return request(data, "POST");
}

// 套餐商品
export function allInPage(data) {
	data.method = "dj.api.smartcarlife.merchantPackageGoodsInfo.allInPage";
	return request(data, "POST");
}

// 获取产品词条列表
export function productTextPage(data) {
	data.method = "dj.api.material.product.text.page";
	return request(data, "POST");
}

// 分页获取产品词条列表
export function productPage(data) {
	data.method = `dj.api.material.product.text.page`;
	return request(data, "POST");
}
// 获取产品词条详情
export function productDetail(data) {
	data.method = `dj.api.material.product.text.detail`;
	return request(data, "POST");
}
// 删除产品词条
export function productDelete(data) {
	data.method = `dj.api.material.product.text.delete`;
	return request(data, "POST");
}

// 保存产品词条
export function productSave(data) {
	data.method = `dj.api.material.product.text.save`;
	return request(data, "POST");
}
// 更新产品词条
export function productUpdate(data) {
	data.method = `dj.api.material.product.text.update`;
	return request(data, "POST");
}

// 查询接待素材商户配置
export function materialPage(data) {
	data.method = `dj.api.smartcarlife.recepiton.material.page`;
	return request(data, "post", [], "", "/rop-dj-car-boutique/router");
}

// 查询门店接待素材详情
export function materialDetail(data) {
	data.method = `dj.api.smartcarlife.recepiton.material.merchant.detail`;
	return request(data, "post", [], "", "/rop-dj-car-boutique/router");
}
// 获取车系列表
export function listBrandWithSeries(data) {
	data.method = `dj.api.smartcarlife.merchantbrandmodel.listBrandWithSeries`;
	return request(data, "post");
}

// 保存更新门店接待素材
export function recepitonUpdate(data) {
	data.method = `dj.api.smartcarlife.recepiton.material.merchant.saveOrUpdate`;
	return request(data, "post", [], "", "/rop-dj-car-boutique/router");
}
// 保存更新门店接待素材
export function findDictData(data) {
	data.method = `merchants.api.menu.findDictData`;
	return request(data, "post");
}

// 保存更新门店接待素材
export function deleteDictData(data) {
	data.method = `merchants.api.menu.deleteDictData`;
	return request(data, "post");
}
// 保存更新门店接待素材
export function updateDictData(data) {
	data.method = `merchants.api.menu.updateDictData`;
	return request(data, "post");
}
// 保存更新门店接待素材
export function saveDictData(data) {
	data.method = `merchants.api.menu.saveDictData`;
	return request(data, "post");
}
/** 客户标签列表 */
export function getCustomerLabelPage(data) {
	data.method = `dj.api.material.customer.label.page`;
	return request(data, "post");
}
/** 新增客户标签 */
export function addCustomerLabel(data) {
	data.method = `dj.api.material.customer.label.add`;
	return request(data, "post");
}

/** 修改客户标签 */
export function updateCustomerLabel(data) {
	data.method = `dj.api.material.customer.label.update`;
	return request(data, "post");
}
/** 分页查询客户档案信息(管理后台) */
export function getCustomerFilePage(data) {
	data.method = `dj.api.mindworkplate.customervisit.customerInfoListPage`;
	console.log(request(data, "post"));
	return request(data, "post");
}

/** 客户档案信息(管理后台)导出 */
export function exportCustomerFile(data) {
	data.method = `dj.api.mindworkplate.customervisit.customerInfoListExport`;
	return request(data, "post");
}

/** 客户档案统计信息(管理后台) */
export function getCustomerFileStatic(data) {
	data.method = `dj.api.mindworkplate.customervisit.customerInfoListStatic`;
	return request(data, "post");
}
/** 客户档案话术浏览记录 */
export function getCustomerVisitScriptsListPage(data) {
	data.method = `dj.api.mindworkplate.customervisit.CustomerVisitScriptsListPage`;
	return request(data, "post");
}

/** 客户档案标签 */
export function getCustomerInfoDetail(data) {
	data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail`;
	return request(data, "post");
}
export function listMerchantStaffPage(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.listMerchantStaffPage`;
	return request(data, "post");
}
export function listBrandStaffPage(data) {
	data.method = `dj.api.smartcarlife.contentManagerTask.listBrandStaffPage`;
	return request(data, "post");
}

/** 标签列表 */
export function findAllTags(data = {}) {
	data.method = `dj.api.material.scenemarket.findAllTags`;
	return request(data, "post");
}

/** 场景列表 */
export function findAllLevel(data = {}) {
	data.method = `dj.api.material.scenemarket.findAllLevel`;
	return request(data, "post");
}
/**  分页查询群发任务的优化话术 */
export function contentManagerTaskRecordPage(data = {}) {
	data.method = `dj.api.smartcarlife.contentManagerTask.record.page`;
	return request(data, "post");
}

/**  分页查询指定驻店员工 */
export function listBaseStaffPage(data = {}) {
	data.method = `dj.api.smartcarlife.contentManagerTask.listBaseStaffPage`;
	return request(data, "post");
}
/**  分页查询指定驻店员工 */
export function staffBaseInfoPageList(data = {}) {
	data.method = `dj.api.smartcarlife.staffBaseInfo.pageList`;
	return request(data, "post");
}
/** 获取关联品牌 */
export function getCarbrandTree(data = {}) {
	data.method = `merchants.api.merchantCommon.getCarbrandTree`;
	return request(data, "post");
}

/** 平板配置首页列表 */
export function getConfigList(data) {
	data.method = "dj.api.mindworkplate.pad.home.page.config.list";
	return request(data, "post");
}

/** 新增编辑平板配置 */
export function saveOrUpdate(data) {
	data.method = "dj.api.mindworkplate.pad.home.page.config.saveOrUpdate";
	return request(data, "post");
}

/** 根据品牌id列表获取门店列表 */
export function getCarBrandIds(data) {
	data.method = "dj.smartcarlife.api.merchant.list.by.car.brandIds";
	return request(data, "post");
}

/** 获取子品牌下车系列表 */
export function getSonCarBrandIds(data) {
	data.method = "dj.api.car.series.list.by.son.car.brandIds";
	return request(data, "post");
}

/** 删除平板首页配置 */
export function deleteConfig(data) {
	data.method = "dj.api.mindworkplate.pad.home.page.config.delete";
	return request(data, "post");
}

/** 接待首页素材详情 */
export function getMateralDetail(data) {
	data.method = "dj.api.smartcarlife.reception.home.page.material.detail";
	return request(data, "post");
}
/** 查询人员标签列表 */
export function findAllLabel(data) {
	data.method = `${path2}stafftagcourse.findAllLabel`;
	return request(data, "post");
}
/** 查询课程列表 */
export function findStaffTagCoursePage(data) {
	data.method = `${path2}stafftagcourse.findStaffTagCoursePage`;
	return request(data, "post");
}
/** 查询课程关联列表 */
export function findStaffTagCourseRelationPage(data) {
	data.method = `${path2}stafftagcourse.findStaffTagCourseRelationPage`;
	return request(data, "post");
}
/** 删除课程关联 */
export function deletecourserelation(data) {
	data.method = `${path2}stafftagcourse.deletecourserelation`;
	return request(data, "post");
}
/** 修改课程关联 */
export function updatecourserelation(data) {
	data.method = `${path2}stafftagcourse.updatecourserelation`;
	return request(data, "post");
}
/** 新增课程关联 */
export function savecourserelation(data) {
	data.method = `${path2}stafftagcourse.savecourserelation`;
	return request(data, "post");
}
/** 分页查询处罚名单 */
export function studyPage(data) {
	data.method = `${path2}study.punish.page`;
	return request(data, "post");
}
/** 导出处罚名单 */
export function studyExport(data) {
	data.method = `${path2}study.punish.list.export`;
	return request(data, "post");
}
/** 操作处罚名单 */
export function studyUpdate(data) {
	data.method = `${path2}study.punish.update`;
	return request(data, "post");
}
// dj.api.smartcarlife.contentManagerTask.study.course.page
// 分页、staffStudyId取列表id
// /** 处罚详情 */
// export function contentManagerTaskPage(data) {
//   data.method = `${path2}contentManagerTask.study.course.page `
//   return request(data, "post")
// }
/** 查询学习任务-学习情况 */
export function coursePage(data) {
	data.method = `${path2}contentManagerTask.study.course.page`;
	return request(data, "post");
}
/** 查询学习任务-阅读统计 */
export function studyStaffPage(data) {
	data.method = `${path2}contentManagerTask.study.staff.page`;
	return request(data, "post");
}
/** 查询学习任务-学习情况(导出) */
export function courseExport(data) {
	data.method = `${path2}contentManagerTask.study.course.list.export`;
	return request(data, "post");
}
/** 查询学习任务-阅读统计(导出) */
export function contentManagerTaskExport(data) {
	data.method = `${path2}contentManagerTask.study.staff.list.export`;
	return request(data, "post");
}

/** 查询学习任务-学习情况(统计) */
export function contentManagerTaskSummary(data) {
	data.method = `${path2}contentManagerTask.study.course.summary`;
	return request(data, "post");
}
/** 课程详情 */
export function stafftagcourseFind(data) {
	data.method = `${path2}stafftagcourse.findById`;
	return request(data, "post");
}
/** 处罚详情 */
export function contentManagerTaskCourseList(data) {
	data.method = `${path2}contentManagerTask.course.list`;
	return request(data, "post");
}
/** 员工人数详情 */
export function contentManagerTaskListStaffPage(data) {
	data.method = `${path2}contentManagerTask.listStaffPage`;
	return request(data, "post");
}
/** 省市树 */
export function mapDistricts(data) {
	data.method = `${path2}map.districts`;
	return request(data, "post");
}
// export function getCarbrandTree(data = {}) {
//   data.method = `merchants.api.merchantCommon.getCarbrandTree`
//   return request(data, "post")
// }
/** 轻改套餐推荐配置详情 */
export function packageRecommendDetail(data) {
	data.method = `${path2}receptionMaterialRecommendPackageConfig.getByMerchantId`;
	return request(data, "post");
}

/** 保存轻改套餐推荐配置数据 */
export function updatePackageRecommend(data) {
	data.method = `${path2}receptionMaterialRecommendPackageConfig.updateBatch`;
	return request(data, "post");
}
/** 活动列表 */
export function getActivityPage(data) {
	data.method = `dj.api.script.activity.page`;
	return request(data, "post");
}
/** 创建活动 */
export function addActivity(data) {
	data.method = `dj.api.script.activity.add`;
	return request(data, "post");
}
/** 编辑活动 */
export function editActivity(data) {
	data.method = `dj.api.script.activity.edit`;
	return request(data, "post");
}
/** 删除活动 */
export function delActivity(data) {
	data.method = `dj.api.script.activity.delete`;
	return request(data, "post");
}
/** 活动周期创建 */
export function addActivityCycle(data) {
	data.method = `dj.api.script.activity.evaluation.cycle.add`;
	return request(data, "post");
}
/** 活动周期查询 */
export function getActivityCyclePage(data) {
	data.method = `dj.api.script.activity.evaluation.cycle.list`;
	return request(data, "post");
}
/** 模板/异步导出 */
export function templatEexport(data) {
	data.method = `dj.api.script.activity.award.winner.import.template.export.async`;
	return request(data, "post");
}

/** 获奖名单导入 */
export function importWinner(data) {
	data.method = `dj.api.script.activity.award.winner.import.sync`;
	return request(data, "post", ["file"]);
}