绑定业务员 默认选择数据问题修复
This commit is contained in:
parent
66fe393f4b
commit
55e0ccf621
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<u-row justify="between">
|
||||
<u-row @click="handleChooseEmp">
|
||||
<u-row @click="handleChooseEmp" custom-style="flex:1;">
|
||||
<view class="">
|
||||
<u-avatar size="80" :src="modelInfo._bindTsmAvatar"></u-avatar>
|
||||
</view>
|
||||
|
||||
@ -175,7 +175,7 @@ export const initDefaultModel = async (info) => {
|
||||
info.sender = senderAddressDfltRes.rows[0]
|
||||
}
|
||||
if(bindDfltRes?.rows?.length > 0) {
|
||||
const bindItem = bindDfltRes.rows[0]
|
||||
const bindItem = bindDfltRes.rows.filter(t=> t.defaultFlag == 1)?.[0] || {}
|
||||
info._bindTsmName = bindItem.empName
|
||||
info._bindTsmCode = bindItem.empCode
|
||||
info._bindTsmAvatar = bindItem.avatar
|
||||
|
||||
Loading…
Reference in New Issue
Block a user