Commit 1871c760 by 李伟康

fix: 升级版本至2.26.6并修复销售人员列表逻辑

- 更新manifest.json应用版本号至2.26.6
- 替换equity页面的销售人员列表获取API为getOrderScreenEmployeeList并添加sceneList参数
- 在FinishStep组件中添加销售人员列表计算属性并传递给子组件
1 parent 1c9d6a27
......@@ -89,6 +89,7 @@
<employee
ref="employeeBoxVisible"
@select="handleSelect($event, 'employeeBoxVisible')"
:list="employeeList"
/>
<uni-popup
ref="successRef"
......@@ -230,6 +231,10 @@ export default {
text = titleTips || '检测到“交车告知书”中未填写客户档案,请填写后再完成接待。'
if (sceneType == 1) text = '请确认“车型加装选购页”中的客户信息,并点击「完成接待」结束客户接待。'
return text
},
employeeList () {
let { sceneType } = this
return sceneType == 1 ? null : this.$store.state.user.employeeList
}
},
watch: {
......
......@@ -2,8 +2,8 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.26.5",
"versionCode" : 2265,
"versionName" : "2.26.6",
"versionCode" : 2266,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
......
......@@ -173,13 +173,20 @@ export default {
this.getSoure(brands.map(item => item.brandId), brands.map(item => item.id))
})
/**获取销售人员 */
uni.$api.commonApi.getEmployeeList({
merchantId: shopMerchantId
// uni.$api.commonApi.getEmployeeList({
// merchantId: shopMerchantId
// }).then(res => {
// if (this._sourceDisposed) return
// this.$store.dispatch('setEmployeeList', res || [])
// uni.$storage.set('employeeList', res || [])
// }).catch(() => {})
uni.$api.popupApi.getOrderScreenEmployeeList({
merchantId: shopMerchantId,
sceneList: [0]
}).then(res => {
if (this._sourceDisposed) return
this.$store.dispatch('setEmployeeList', res || [])
uni.$storage.set('employeeList', res || [])
}).catch(() => {})
})
},
async restoreSourceCache (online) {
const requestId = this._sourceRequestId = (this._sourceRequestId || 0) + 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!