Commit 4d8ed45a by 前端

Merge branch 'bugfix_5.8.3.3' into 'master'

上线合并

See merge request !830
2 parents 31b97460 f2ae84ca
...@@ -137,7 +137,8 @@ export default { ...@@ -137,7 +137,8 @@ export default {
return { return {
0: "驻店人员", 0: "驻店人员",
6: "飞行督导", 6: "飞行督导",
9: "区域运营", 9: "2.1区域运营",
8: "1.1区域运营",
}[row.positionType]; }[row.positionType];
}, },
}, },
...@@ -150,14 +151,14 @@ export default { ...@@ -150,14 +151,14 @@ export default {
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
let { positionTypeList, merchantList, paramsInfo, delMerchantList, biz } = this; let { positionTypeListSale,positionTypeList, merchantList, paramsInfo, delMerchantList, biz } = this;
let { staffName } = this.searchForm; let { staffName } = this.searchForm;
let merchantIdList = []; let merchantIdList = [];
if (merchantList.length) if (merchantList.length)
merchantIdList = merchantList.map(item => item.merchantId); merchantIdList = merchantList.map(item => item.merchantId);
else merchantIdList = paramsInfo?.merchantIds || []; else merchantIdList = paramsInfo?.merchantIds || [];
let params = { let params = {
positionTypeList, positionTypeList: positionTypeListSale?positionTypeListSale(biz):positionTypeList,
sceneType: biz == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改)) sceneType: biz == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
staffName, staffName,
merchantIdList, merchantIdList,
......
...@@ -138,6 +138,9 @@ const STRATEGY_FORM_3 = [ ...@@ -138,6 +138,9 @@ const STRATEGY_FORM_3 = [
}, },
positionTypeList: [9], positionTypeList: [9],
tagNameKey: "staffName", tagNameKey: "staffName",
positionTypeListSale:(biz)=>{
return biz ==2? [8] : [9];
}
}, },
{ {
label: "驻店人员", label: "驻店人员",
......
...@@ -200,6 +200,7 @@ export default { ...@@ -200,6 +200,7 @@ export default {
provide() { provide() {
return { return {
GET_POSITION_TYPE_LIST: () => this.positionTypeList, GET_POSITION_TYPE_LIST: () => this.positionTypeList,
GET_POSITION_TYPE_LIST_SALE: () => this.positionTypeListSale,
GET_MERCHANT_LIST: () => this.merchantList, GET_MERCHANT_LIST: () => this.merchantList,
GET_BIZ: () => this.currentBiz, GET_BIZ: () => this.currentBiz,
DEL_PARAMS_MERCHANT_LIST: () => this.delMerchantList, DEL_PARAMS_MERCHANT_LIST: () => this.delMerchantList,
...@@ -256,6 +257,7 @@ export default { ...@@ -256,6 +257,7 @@ export default {
positionTypeList: [], positionTypeList: [],
loading: false, loading: false,
delMerchantList: false, delMerchantList: false,
positionTypeListSale:null
}; };
}, },
computed: { computed: {
...@@ -415,6 +417,7 @@ export default { ...@@ -415,6 +417,7 @@ export default {
let { componentName } = item; let { componentName } = item;
if (item.positionTypeList) if (item.positionTypeList)
this.positionTypeList = item.positionTypeList; this.positionTypeList = item.positionTypeList;
this.positionTypeListSale = item.positionTypeListSale;
this.delMerchantList = item.delMerchantList; this.delMerchantList = item.delMerchantList;
this[`${componentName}Visible`] = true; this[`${componentName}Visible`] = true;
}, },
......
...@@ -16,6 +16,7 @@ export default { ...@@ -16,6 +16,7 @@ export default {
"GET_MERCHANT_LIST", "GET_MERCHANT_LIST",
"GET_BIZ", "GET_BIZ",
"DEL_PARAMS_MERCHANT_LIST", "DEL_PARAMS_MERCHANT_LIST",
"GET_POSITION_TYPE_LIST_SALE",
], ],
computed: { computed: {
dialogShow: { dialogShow: {
...@@ -33,6 +34,9 @@ export default { ...@@ -33,6 +34,9 @@ export default {
positionTypeList() { positionTypeList() {
return this.GET_POSITION_TYPE_LIST && this.GET_POSITION_TYPE_LIST(); return this.GET_POSITION_TYPE_LIST && this.GET_POSITION_TYPE_LIST();
}, },
positionTypeListSale() {
return this.GET_POSITION_TYPE_LIST_SALE && this.GET_POSITION_TYPE_LIST_SALE();
},
paramsInfo() { paramsInfo() {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO(); return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO();
}, },
......
...@@ -164,7 +164,8 @@ export default { ...@@ -164,7 +164,8 @@ export default {
return { return {
0: "驻店人员", 0: "驻店人员",
6: "飞行督导", 6: "飞行督导",
9: "区域运营", 9: "2.1区域运营",
8: "1.1区域运营",
}[item.userPosition]; }[item.userPosition];
}, },
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!