Commit d0146c76 by Jaxon

Merge branch 'feature/strategy-center' into 'SAAS+V5.8.2'

Feature/strategy center

See merge request !687
2 parents 4c5fe9da 19837ada
......@@ -418,15 +418,16 @@ export function batchCreateStrategy(data = {}) {
*
* 查询策略 驻店员工/区域运营/飞行督导列表
*/
// export function getStrategyStaffList(data = {}) {
// data.method = "dj.api.strategy.staff.page";
// return request(data, RequestMethods.POST);
// }
export function getStrategyStaffList(data = {}) {
data.method = "dj.api.strategy.staff.page.distinct.phone";
data.method = "dj.api.strategy.staff.page";
return request(data, RequestMethods.POST);
}
// export function getStrategyStaffList(data = {}) {
// data.method = "dj.api.strategy.staff.page.distinct.phone";
// return request(data, RequestMethods.POST);
// }
/*
/**
* 策略中心-查询策略录音记录
......
......@@ -379,7 +379,7 @@ export default {
twoBrandIds: twoBrandIds || [],
regionalOperatorId: regionOps,
onlineOperatorId: onlineOps,
flightSupervision: supervisorOps,
flightSupervisionId: supervisorOps,
// periodType: this.timeRangeType.value,
cycleType: {
1: 2,
......
......@@ -132,15 +132,15 @@ export default {
methods: {
beforeSearchFn() {
return new Promise((resolve) => {
let { positionTypeList, merchantList, paramsInfo, delMerchantList } = this;
let { positionTypeList, merchantList, paramsInfo, delMerchantList, biz } = this;
let { staffName } = this.searchForm;
let merchantIdList = [];
if (merchantList.length)
merchantIdList = merchantList.map(item => item.merchantId);
else merchantIdList = paramsInfo.merchantIds;
else merchantIdList = paramsInfo?.merchantIds || [];
let params = {
positionTypeList,
sceneType: paramsInfo.bizs == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
sceneType: biz == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
staffName,
merchantIdList,
};
......
......@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-04-01 09:57:49
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-06-02 17:54:09
* @LastEditTime: 2026-06-04 19:16:23
* @FilePath: \dj-car-life-system\src\views\earlyWarningManager\strategyCentre\storeSignboard\components\StrategyList\contant.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -35,7 +35,7 @@ function STAFF_FORMAT(label) {
label,
format: (val) => {
let { staffList } = val;
return staffList.filter(item => !item.userPosition).map(item => item.userName).join("/") || "-";
return staffList.map(item => item.userName).join("/") || "-";
},
};
}
......@@ -89,12 +89,19 @@ const STRATEGY_8 = [
STAFF_FORMAT("需带教人员"),
];
const STRATEGY_9 = [
STAFF_FORMAT("问题人员"),
// STAFF_FORMAT("问题人员"),
{
label: "问题人员",
format: (val) => {
let { staffList } = val;
return staffList.filter(item => item.userPosition != 8 && item.userPosition != 9).map(item => item.userName).join("/") || "-";
},
},
{
label: "执行人员",
format: (val) => {
let { staffList } = val;
return staffList.filter(item => item.userPosition != 0).map(item => item.userName).join("/") || "-";
return staffList.filter(item => item.userPosition == 8 || item.userPosition == 9).map(item => item.userName).join("/") || "-";
},
},
];
......@@ -104,7 +111,7 @@ const STRATEGY_10_11_12 = [
label: "执行人员",
format: (val) => {
let { staffList } = val;
return staffList.filter(item => item.userPosition != 0).map(item => item.userName).join("/") || "-";
return staffList.filter(item => item.userPosition == 8 || item.userPosition == 9).map(item => item.userName).join("/") || "-";
},
},
];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!