customer.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. <script>
  2. import * as api from '@/api/customer'
  3. import { getList as getListTag } from '@/api/customer/tag'
  4. import AddTag from '@/components/AddTag'
  5. import SelectTag from '@/components/SelectTag'
  6. import DeleteTag from '@/components/DeleteTag'
  7. import { dictAddType, dictTrackState } from '@/utils/dictionary'
  8. import { getList } from '@/api/salesCenter/businessConver.js'
  9. export default {
  10. name: 'Customer',
  11. components: { AddTag, SelectTag, DeleteTag },
  12. props: {},
  13. data() {
  14. return {
  15. stageList: [],
  16. query: {
  17. pageNum: 1,
  18. pageSize: 10,
  19. name: '', // "客户名称",
  20. userIds: '', // "添加人id",
  21. tagIds: '', // "标签id,多个标签,id使用逗号隔开",
  22. beginTime: '', // "开始时间",
  23. endTime: '', // "结束时间"
  24. customerType: '', //客户类型 1:微信客户;2:企业客户
  25. trackState: '', //跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失
  26. addMethod: '', //添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配
  27. gender: '', //0-未知 1-男性 2-女性
  28. noTagCheck: false,
  29. delFlag:'',
  30. },
  31. queryTag: [], // 搜索框选择的标签
  32. queryUser: [], // 搜索框选择的添加人
  33. dateRange: [], // 添加日期
  34. loading: false,
  35. total: 0,
  36. lastSyncTime: '',
  37. noRepeatCustomerTotal: 0,
  38. // 添加标签表单
  39. form: {
  40. gourpName: '',
  41. weTags: [],
  42. },
  43. list: [
  44. {
  45. customerName:"321231"
  46. }
  47. ], // 客户列表
  48. staffList: [], // 所有员工列表
  49. dialogVisible: false, // 选择标签弹窗显隐
  50. dialogVisibleSelectUser: false, // 选择添加人弹窗显隐
  51. dialogVisibleAddTag: false, // 添加标签弹窗显隐
  52. dialogVisibleExtend: false, // 在职继承弹窗显隐
  53. extendStaff: '', // 在职继承选择的员工
  54. currentEidt: '', // 当前编辑项
  55. selectedTag: [], // 选择的标签
  56. tagDialogType: {
  57. title: '', // 选择标签弹窗标题
  58. type: '', // 弹窗类型
  59. },
  60. dictCustomerType: Object.freeze({ 1: '微信客户', 2: '企业客户' }),
  61. dictAddType,
  62. dictTrackState,
  63. multiObj: {
  64. state: 'add', // 'delete'
  65. title: '批量打标签',
  66. showDialog: false,
  67. },
  68. multipleSelection: [], // 多选数组
  69. mulSelectedTag: [],
  70. deleteData: [],
  71. deleteDialog: false,
  72. // 导出客户列表功能封装为变量
  73. }
  74. },
  75. watch: {},
  76. computed: {},
  77. created() {
  78. this.getStage()
  79. this.getList()
  80. this.getListTag()
  81. this.$store.dispatch(
  82. 'app/setBusininessDesc',
  83. `
  84. <div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
  85. `,
  86. )
  87. },
  88. mounted() {},
  89. methods: {
  90. setValue(data) {
  91. let str = ''
  92. this.stageList.forEach((dd) => {
  93. if (dd.stageVal == data) {
  94. str = dd.stageKey
  95. }
  96. })
  97. return str
  98. },
  99. unique(arr) {
  100. if (!Array.isArray(arr)) {
  101. console.log('type error!')
  102. return
  103. }
  104. let res = []
  105. for (let i = 0; i < arr.length; i++) {
  106. if (res.indexOf(arr[i]) === -1) {
  107. res.push(arr[i])
  108. }
  109. }
  110. return res
  111. },
  112. openDeleteDialog() {
  113. let str = ''
  114. this.multipleSelection.forEach((dd) => {
  115. if (dd.tagIds) {
  116. str = str + ',' + dd.tagIds
  117. }
  118. })
  119. this.deleteData = this.unique(str.split(','))
  120. this.deleteDialog = true
  121. },
  122. getDeleteData(data) {
  123. let arr = []
  124. this.multipleSelection.forEach((dd) => {
  125. let obj = {
  126. externalUserid: dd.externalUserid,
  127. addTag: data,
  128. userId: dd.firstUserId,
  129. }
  130. arr.push(obj)
  131. })
  132. this.loading = true
  133. api
  134. .multiMakeTag({ addOrRemove: false, weMakeCustomerTagList: arr })
  135. .then((res) => {
  136. this.getList(1)
  137. this.msgSuccess('批量删除标签成功')
  138. this.deleteData = []
  139. this.deleteDialog = false
  140. this.loading = false
  141. })
  142. .catch(() => {
  143. this.loading = false
  144. })
  145. },
  146. multiOperation(state) {
  147. this.multiObj.state = state
  148. if (state === 'add') {
  149. this.multiObj.title = '批量打标签'
  150. } else {
  151. this.multiObj.title = '批量删标签'
  152. }
  153. this.multiObj.showDialog = true
  154. },
  155. getMultiOperation(data) {
  156. let arr = []
  157. this.multipleSelection.forEach((dd) => {
  158. let obj = {
  159. externalUserid: dd.externalUserid,
  160. addTag: data,
  161. userId: dd.firstUserId,
  162. }
  163. arr.push(obj)
  164. })
  165. this.loading = true
  166. api
  167. .multiMakeTag({ addOrRemove: this.multiObj.state === 'add' ? true : false, weMakeCustomerTagList: arr })
  168. .then((res) => {
  169. this.getList(1)
  170. this.msgSuccess(this.multiObj.state === 'add' ? '批量设置标签成功' : '批量删除标签成功')
  171. this.multiObj.showDialog = false
  172. this.multipleSelection = []
  173. this.loading = false
  174. })
  175. .catch(() => {
  176. this.loading = false
  177. })
  178. },
  179. getStage() {
  180. getList().then((res) => {
  181. this.stageList = res.data
  182. })
  183. },
  184. getList(page) {
  185. // console.log(this.dateRange);
  186. if (this.dateRange) {
  187. this.query.beginTime = this.dateRange[0]
  188. this.query.endTime = this.dateRange[1]
  189. } else {
  190. this.query.beginTime = ''
  191. this.query.endTime = ''
  192. }
  193. page && (this.query.pageNum = page)
  194. this.query.tagIds = this.queryTag.map((d) => d.tagId) + ''
  195. this.query.userIds = this.queryUser.map((d) => d.userId) + ''
  196. this.loading = true
  197. api
  198. .getListNew(this.query)
  199. .then(({ rows, total, lastSyncTime, noRepeatCustomerTotal }) => {
  200. rows.forEach((element) => {
  201. if (element.tagIds && element.tagNames) {
  202. element.tagIds = element.tagIds.split(',')
  203. element.tagNames = element.tagNames.split(',')
  204. element.tags = []
  205. element.tagIds.forEach((unit, index) => {
  206. element.tags.push({
  207. tagId: unit,
  208. tagName: element.tagNames[index],
  209. })
  210. })
  211. }
  212. })
  213. // this.list = rows
  214. this.total = +total
  215. this.lastSyncTime = lastSyncTime
  216. this.noRepeatCustomerTotal = +noRepeatCustomerTotal
  217. this.loading = false
  218. this.multipleSelection = []
  219. })
  220. .catch(() => {
  221. this.loading = false
  222. })
  223. },
  224. getListTag(refresh) {
  225. getListTag().then(({ rows }) => {
  226. this.listTagOneArray = []
  227. rows.forEach((element) => {
  228. element.weTags.forEach((d) => {
  229. this.listTagOneArray.push(d)
  230. })
  231. })
  232. if (refresh) {
  233. this.$refs.selectTag.getList()
  234. this.form = {
  235. gourpName: '',
  236. weTags: [],
  237. }
  238. }
  239. })
  240. },
  241. showTagDialog() {
  242. this.query.noTagCheck = false
  243. this.selectedTag = this.queryTag
  244. this.tagDialogType = {
  245. title: '选择标签',
  246. type: 'query',
  247. }
  248. this.dialogVisible = true
  249. // this.$refs.selectTag.$forceUpdate()
  250. },
  251. makeTag(row) {
  252. this.currentEidt = row
  253. // if (!this.multipleSelection.length) {
  254. // this.msgInfo('请选择一位客户')
  255. // return
  256. // }
  257. // if (this.multipleSelection.length > 1) {
  258. // this.msgInfo('同时只能选择一位客户')
  259. // return
  260. // }
  261. this.selectedTag = []
  262. let hasErrorTag = []
  263. let repeat = []
  264. row.tags &&
  265. row.tags.forEach((unit) => {
  266. // 判断是否有重复标签
  267. let isRepeat = this.selectedTag.some((d) => {
  268. return d.tagId === unit.tagId
  269. })
  270. // 去重
  271. if (isRepeat) {
  272. repeat.push(unit.tagName)
  273. return
  274. }
  275. let filter = this.listTagOneArray.find((d) => {
  276. return d.tagId === unit.tagId
  277. })
  278. // 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
  279. if (!filter) {
  280. hasErrorTag.push(unit.tagName)
  281. return
  282. }
  283. this.selectedTag.push(filter)
  284. })
  285. // this.multipleSelection.forEach((element) => {
  286. // })
  287. if (hasErrorTag.length > 0) {
  288. this.$notify({
  289. // title: '标题名称',
  290. message: this.$createElement(
  291. 'i',
  292. { style: 'color: red' },
  293. '已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常',
  294. ),
  295. type: 'warning',
  296. customClass: 'mzindex',
  297. })
  298. // this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
  299. }
  300. this.tagDialogType = {
  301. title: '标签设置' + (repeat.length ? '(重复的标签已去重显示)' : ''),
  302. }
  303. this.dialogVisible = true
  304. // this.$refs.selectTag.$forceUpdate()
  305. },
  306. sync() {
  307. // const loading = this.$loading({
  308. // lock: true,
  309. // text: 'Loading',
  310. // spinner: 'el-icon-loading',
  311. // background: 'rgba(0, 0, 0, 0.7)',
  312. // })
  313. api
  314. .sync()
  315. .then(() => {
  316. // loading.close()
  317. this.getList(1)
  318. this.msgSuccess('后台开始同步数据,请稍后关注进度')
  319. })
  320. .catch((fail) => {
  321. // loading.close()
  322. console.log(fail)
  323. })
  324. },
  325. selectedUser(list) {
  326. this.queryUser = list
  327. },
  328. submitSelectTag(selected) {
  329. if (this.tagDialogType.type === 'query') {
  330. this.queryTag = selected
  331. this.dialogVisible = false
  332. } else {
  333. let data = {
  334. externalUserid: this.currentEidt.externalUserid,
  335. addTag: selected,
  336. userId: this.currentEidt.firstUserId,
  337. }
  338. // let apiType = {
  339. // add: 'makeLabel',
  340. // remove: 'removeLabel'
  341. // }
  342. this.loading = true
  343. api
  344. .makeLabel(data)
  345. .then(() => {
  346. this.msgSuccess('操作成功')
  347. this.dialogVisible = false
  348. this.getList()
  349. this.loading = false
  350. })
  351. .catch(() => {
  352. this.loading = false
  353. })
  354. }
  355. },
  356. resetForm(formName) {
  357. this.dateRange = []
  358. this.queryTag = []
  359. this.queryUser = []
  360. this.query.noTagCheck = false
  361. this.$refs['queryForm'].resetFields()
  362. this.getList(1)
  363. },
  364. // 多选框选中数据
  365. handleSelectionChange(selection) {
  366. this.multipleSelection = selection
  367. },
  368. // 用于多选变单选
  369. handleSelection(selection, row) {
  370. this.$nextTick(() => {
  371. this.$refs.table.clearSelection()
  372. this.$refs.table.toggleRowSelection(row)
  373. })
  374. },
  375. goRoute(row) {
  376. let { externalUserid, firstUserId: userId } = row
  377. this.$router.push({
  378. path: 'customerDetail',
  379. query: { externalUserid, userId },
  380. })
  381. },
  382. // 在职继承
  383. async transfer(row) {
  384. await this.$refs['SelectStaffForm'].validate()
  385. // if (!this.extendStaff) {
  386. // this.msgError('请选择员工')
  387. // return
  388. // }
  389. let data = {
  390. handoverUserId: this.currentEidt.firstUserId, //移交人
  391. takeoverUserId: this.extendStaff, //接受人
  392. externalUserid: this.currentEidt.externalUserid, //客户id,多个客户使用逗号隔开
  393. }
  394. api.jobExtends(data).then((res) => {
  395. this.msgSuccess('操作成功')
  396. this.dialogVisibleExtend = false
  397. this.getList()
  398. })
  399. },
  400. setData(data) {
  401. this.queryTag = []
  402. this.query.tagIds = ''
  403. },
  404. exportCustomerFn() {
  405. const queryParams = this.query
  406. this.$confirm('是否确认导出客户信息?', '警告', {
  407. confirmButtonText: '确定',
  408. cancelButtonText: '取消',
  409. type: 'warning'
  410. })
  411. .then(() => {
  412. this.loading = true
  413. return api.exportWeCustomerList(queryParams)
  414. })
  415. .then((res) => {
  416. this.loading = false
  417. const blob = new Blob([res], { type: 'application/vnd.ms-excel' })
  418. let dom = document.createElement('a')
  419. let url = window.URL.createObjectURL(blob)
  420. dom.href = url
  421. dom.download = '客户信息.xlsx'
  422. dom.style.display = 'none'
  423. document.body.appendChild(dom)
  424. dom.click()
  425. dom.parentNode.removeChild(dom)
  426. window.URL.revokeObjectURL(url)
  427. this.msgSuccess('导出成功')
  428. })
  429. .catch(() => {
  430. this.loading = false
  431. })
  432. }
  433. },
  434. }
  435. </script>
  436. <template>
  437. <div v-loading="loading">
  438. <el-form ref="queryForm" :inline="true" :model="query" label-width="70px" class="top-search">
  439. <el-form-item label="客户名称" prop="name">
  440. <el-input v-model="query.name" placeholder="请输入"></el-input>
  441. </el-form-item>
  442. <el-form-item label="客户类型" prop="customerType">
  443. <el-select :popper-append-to-body="false" v-model="query.customerType" placeholder="请选择">
  444. <el-option v-for="(item, index) in dictCustomerType" :key="index" :label="item" :value="index"></el-option>
  445. </el-select>
  446. </el-form-item>
  447. <el-form-item label="跟进员工" prop="customerType">
  448. <div class="tag-input" @click="dialogVisibleSelectUser = true">
  449. <span class="tag-place" v-if="!queryUser.length">请选择</span>
  450. <template v-else>
  451. <el-tag v-for="(unit, unique) in queryUser" :key="unique">{{ unit.name }}</el-tag>
  452. </template>
  453. </div>
  454. </el-form-item>
  455. <el-form-item label="商机阶段" prop="trackState">
  456. <el-select :popper-append-to-body="false" v-model="query.trackState" placeholder="请选择">
  457. <el-option
  458. v-for="(item, index) in stageList"
  459. :key="index"
  460. :label="item.stageKey"
  461. :value="item.stageVal"></el-option>
  462. </el-select>
  463. </el-form-item>
  464. <el-form-item label="添加方式" prop="addMethod">
  465. <el-select :popper-append-to-body="false" v-model="query.addMethod" placeholder="请选择">
  466. <el-option v-for="(item, index) in dictAddType" :key="index" :label="item" :value="index"></el-option>
  467. </el-select>
  468. </el-form-item>
  469. <el-form-item label="添加日期">
  470. <el-date-picker
  471. v-model="dateRange"
  472. value-format="yyyy-MM-dd"
  473. type="daterange"
  474. :picker-options="pickerOptions"
  475. range-separator="至"
  476. start-placeholder="开始日期"
  477. end-placeholder="结束日期"
  478. align="right"></el-date-picker>
  479. </el-form-item>
  480. <el-form-item label="客户标签" prop="customerType">
  481. <div class="tag-input" @click="showTagDialog">
  482. <span class="tag-place" v-if="!queryTag.length">请选择</span>
  483. <template v-else>
  484. <el-tag v-for="(unit, unique) in queryTag" :key="unique">{{ unit.name }}</el-tag>
  485. </template>
  486. </div>
  487. </el-form-item>
  488. <el-form-item label="客户状态" prop="delFlag">
  489. <el-select :popper-append-to-body="false" v-model="query.delFlag" placeholder="请选择">
  490. <el-option label="有效" value="0"></el-option>
  491. <el-option label="无效" value="1"></el-option>
  492. </el-select>
  493. </el-form-item>
  494. <el-form-item>
  495. <el-checkbox v-model="query.noTagCheck" @change="setData">无标签客户</el-checkbox>
  496. </el-form-item>
  497. <el-form-item label="">
  498. <!-- v-hasPermi="['customerManage:customer:query']" -->
  499. <el-button type="primary" @click="getList(1)">查询</el-button>
  500. <el-button @click="resetForm()">重置</el-button>
  501. <!-- v-hasPermi="['customerManage:customer:query']" -->
  502. <!-- <el-button
  503. v-hasPermi="['customerManage:customer:export']"
  504. type="info"
  505. @click="exportCustomer"
  506. >导出列表</el-button
  507. > -->
  508. </el-form-item>
  509. </el-form>
  510. <div class="g-card">
  511. <div class="g-card-title mid-action">
  512. <div>
  513. <span class="g-color">{{ noRepeatCustomerTotal }}</span>
  514. 位客户(去重)
  515. </div>
  516. <!-- 共
  517. <span class="g-color">{{ total }}</span> 位客户,实际客户
  518. <span class="g-color">{{ total }}</span> 位。 -->
  519. <div>
  520. <span class="desc">最近同步:{{ lastSyncTime }}</span>
  521. <ButtonSync :lastSyncTime="lastSyncTime" @click="sync">同步客户</ButtonSync>
  522. <!-- <el-button v-hasPermi="['customerManage:customer:checkRepeat']" type="primary">查看重复客户</el-button> -->
  523. <el-button class="ml10" type="primary" :disabled="!multipleSelection.length" @click="multiOperation('add')">
  524. 批量打标签
  525. </el-button>
  526. <el-button type="primary" :disabled="!multipleSelection.length" @click="openDeleteDialog()">
  527. 批量删标签
  528. </el-button>
  529. <el-button type="info" @click="exportCustomerFn">
  530. 导出列表
  531. </el-button>
  532. </div>
  533. </div>
  534. <el-table
  535. ref="table"
  536. :data="list"
  537. tooltip-effect="dark"
  538. highlight-current-row
  539. @selection-change="handleSelectionChange">
  540. <!-- -->
  541. <el-table-column type="selection" align="center" width="55"></el-table-column>
  542. <el-table-column label="客户" prop="customerName" header-align="center" align="" width="180">
  543. <template slot-scope="{ row }">
  544. <div class="cp flex aic" @click="goRoute(row)">
  545. <el-image class="avatar" :src="row.avatar" fit="fit"></el-image>
  546. <div class="ml10">
  547. <p class="blod">{{ row.customerName }}</p>
  548. <i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i>
  549. <span :style="{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }">
  550. {{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }}
  551. </span>
  552. </div>
  553. </div>
  554. </template>
  555. </el-table-column>
  556. <el-table-column prop="tagNames" label="客户标签" align="center" width="220">
  557. <div v-if="row.tagNames" slot-scope="{ row }">
  558. <TagEllipsis :list="row.tagNames"></TagEllipsis>
  559. </div>
  560. <span v-else>无标签</span>
  561. </el-table-column>
  562. <!-- <el-table-column prop="corpName" label="公司名称" align="center"></el-table-column> -->
  563. <el-table-column prop="userName" label="跟进员工" align="center">
  564. <!-- <template slot-scope="{ row }">{{
  565. row.weFlowerCustomerRels[0] ? row.weFlowerCustomerRels[0].userName : ''
  566. }}</template> -->
  567. </el-table-column>
  568. <el-table-column prop="trackState" label="商机阶段" align="center">
  569. <template slot-scope="{ row }">
  570. <!-- <el-tag v-if="row.trackState" :type="dictTrackState[~~row.trackState + ''].color">
  571. {{ dictTrackState[~~row.trackState + ''].name }}
  572. </el-tag> -->
  573. <el-tag v-if="row.trackState">
  574. {{ setValue(row.trackState) }}
  575. </el-tag>
  576. </template>
  577. </el-table-column>
  578. <el-table-column prop="addMethod" label="添加方式" align="center">
  579. <template slot-scope="{ row }">{{ dictAddType[row.addMethod + ''] }}</template>
  580. </el-table-column>
  581. <el-table-column prop="firstAddTime" label="添加时间" align="center">
  582. <!-- <template slot-scope="{ row }">{{
  583. row.weFlowerCustomerRels[0] ? row.weFlowerCustomerRels[0].createTime : ''
  584. }}</template> -->
  585. </el-table-column>
  586. <el-table-column prop="delFlagName" label="客户状态" align="center">
  587. </el-table-column>
  588. <el-table-column prop="delFlagStatus" label="关系说明" align="center">
  589. </el-table-column>
  590. <el-table-column label="操作" width="200" align="center">
  591. <template slot-scope="{ row }">
  592. <!-- v-hasPermi="['customerManage:customer:view']" -->
  593. <el-button @click="goRoute(row)" type="text">查看</el-button>
  594. <el-button type="text" @click="makeTag(row)">标签管理</el-button>
  595. <!-- v-hasPermi="['customerManage/customer:makeTag']" -->
  596. <el-button
  597. type="text"
  598. :disabled="row.isTransfer"
  599. @click="
  600. dialogVisibleExtend = true
  601. currentEidt = row
  602. ">
  603. 在职继承
  604. </el-button>
  605. </template>
  606. </el-table-column>
  607. </el-table>
  608. <pagination
  609. v-show="total > 0"
  610. :total="total"
  611. :page.sync="query.pageNum"
  612. :limit.sync="query.pageSize"
  613. @pagination="getList()" />
  614. </div>
  615. <!-- 选择标签弹窗 -->
  616. <SelectTag
  617. ref="selectTag"
  618. :visible.sync="dialogVisible"
  619. :title="tagDialogType.title"
  620. :defaultValues="selectedTag"
  621. @success="submitSelectTag">
  622. <!-- <el-button class="ml20" type="primary" @click="dialogVisibleAddTag = true"
  623. >添加标签</el-button
  624. > -->
  625. </SelectTag>
  626. <!-- 选择添加人弹窗 -->
  627. <SelectWeUser :visible.sync="dialogVisibleSelectUser" title="选择添加人" @success="selectedUser"></SelectWeUser>
  628. <!-- 添加标签弹窗 -->
  629. <AddTag :visible.sync="dialogVisibleAddTag" :form="form" @success="getListTag(true)" />
  630. <!-- 在职继承弹窗 -->
  631. <el-dialog title="选择员工" :visible.sync="dialogVisibleExtend" :close-on-click-modal="false">
  632. <SelectStaffForm ref="SelectStaffForm" :selected.sync="extendStaff"></SelectStaffForm>
  633. <div slot="footer">
  634. <el-button @click="dialogVisibleExtend = false">取 消</el-button>
  635. <el-button type="primary" @click="transfer">确 定</el-button>
  636. </div>
  637. </el-dialog>
  638. <SelectTag
  639. v-if="multiObj.showDialog"
  640. ref="multiTag"
  641. :selected="mulSelectedTag"
  642. :visible.sync="multiObj.showDialog"
  643. :title="multiObj.title"
  644. @success="getMultiOperation"></SelectTag>
  645. <DeleteTag
  646. v-if="deleteDialog"
  647. ref="deleteTag"
  648. :visible.sync="deleteDialog"
  649. :initList="deleteData"
  650. :selected="deleteData"
  651. @success="getDeleteData"></DeleteTag>
  652. </div>
  653. </template>
  654. <style lang="scss" scoped>
  655. .avatar {
  656. width: 56px;
  657. height: 56px;
  658. flex: none;
  659. border-radius: var(--border-radius-big);
  660. }
  661. .el-icon-s-custom {
  662. font-size: 16px;
  663. // margin-left: 4px;
  664. color: #999;
  665. &.man {
  666. color: #13a2e8;
  667. }
  668. &.woman {
  669. color: #f753b2;
  670. }
  671. }
  672. .bfc-d + .bfc-d .el-checkbox:first-child {
  673. margin-left: 10px;
  674. }
  675. </style>
  676. <style>
  677. .mzindex {
  678. z-index: 5000 !important;
  679. }
  680. </style>