contactList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. <template>
  2. <div class="app-container">
  3. <el-row :gutter="10" class="mb8" v-if="this.source == 'BoDetails' ? this.bo.winningState == 0 ? true : false : true">
  4. <el-col :span="1.5">
  5. <el-button
  6. type="primary"
  7. plain
  8. icon="el-icon-plus"
  9. size="mini"
  10. @click="handleAdd"
  11. v-if="this.boAuthority.boAuthority.contactAdd"
  12. >新增</el-button>
  13. </el-col>
  14. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  15. </el-row>
  16. <el-table v-loading="loading" :data="contactList" @selection-change="handleSelectionChange">
  17. <el-table-column type="selection" width="55" align="center" />
  18. <el-table-column label="编号" align="center" prop="code" />
  19. <el-table-column label="姓名" align="center" prop="name" />
  20. <el-table-column label="性别" align="center" prop="gander" >
  21. <template slot-scope="scope">
  22. <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.gander"/>
  23. </template>
  24. </el-table-column>
  25. <el-table-column label="联系电话" align="center" prop="telephone" />
  26. <el-table-column label="所属客户" align="center" prop="customerName" />
  27. <el-table-column label="部门名称" align="center" prop="departmentName" />
  28. <el-table-column label="职务" align="center" prop="position" >
  29. <template slot-scope="scope">
  30. <dict-tag :options="dict.type.mk_bo_position" :value="scope.row.position"/>
  31. </template>
  32. </el-table-column>
  33. <el-table-column label="决策力" align="center" prop="power" >
  34. <template slot-scope="scope">
  35. <dict-tag :options="dict.type.mk_bo_power" :value="scope.row.power"/>
  36. </template>
  37. </el-table-column>
  38. <el-table-column label="兴趣爱好" align="center" prop="hobby" />
  39. <el-table-column label="家庭地址" align="center" prop="address" />
  40. <el-table-column label="状态" align="center" prop="state" >
  41. <template slot-scope="scope">
  42. <dict-tag :options="dict.type.mk_bo_contact_state" :value="scope.row.state"/>
  43. </template>
  44. </el-table-column>
  45. <!-- v-if="this.source == 'BoDetails' ? this.bo.winningState == 0 ? true : false : true" -->
  46. <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" >
  47. <template slot-scope="scope">
  48. <el-button
  49. size="mini"
  50. type="text"
  51. icon="el-icon-edit"
  52. @click="handleUpdate(scope.row)"
  53. :disabled="!boAuthority.boAuthority.contactEdit"
  54. >修改</el-button>
  55. <el-button
  56. size="mini"
  57. type="text"
  58. icon="el-icon-view"
  59. @click="handleBrowse(scope.row)"
  60. :disabled="!boAuthority.boAuthority.contactView"
  61. >查看</el-button>
  62. <el-button
  63. size="mini"
  64. type="text"
  65. icon="el-icon-delete"
  66. @click="handleDelete(scope.row)"
  67. :disabled="!boAuthority.boAuthority.contactDel"
  68. >删除</el-button>
  69. </template>
  70. </el-table-column>
  71. </el-table>
  72. <pagination
  73. v-show="total>0"
  74. :total="total"
  75. :page.sync="queryParams.pageNum"
  76. :limit.sync="queryParams.pageSize"
  77. @pagination="getList"
  78. />
  79. <!-- 添加或修改联系人管理对话框 -->
  80. <el-dialog :title="title" :visible.sync="open" width="1100px" append-to-body>
  81. <el-form ref="form" :model="form" :rules="rules" label-width="80px" :disabled="this.operatingState == 'Browse'">
  82. <el-divider content-position="left">
  83. <dev style="width: 50px; height: 40px; font-size: 18px">基本信息</dev>
  84. </el-divider>
  85. <el-row>
  86. <el-col :span="8">
  87. <el-form-item label="商机id" prop="boId" v-if="source == 'Contact'">
  88. <el-input v-model="form.boId" placeholder="请输入商机id" />
  89. </el-form-item>
  90. </el-col>
  91. <el-col :span="8">
  92. <el-form-item label="编码" prop="code">
  93. <el-input v-model="form.code" placeholder="系统自动生成编码" :disabled = "true"/>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="8">
  97. <el-form-item label="姓名" prop="name">
  98. <el-input v-model="form.name" placeholder="请输入姓名" />
  99. </el-form-item>
  100. </el-col>
  101. <el-col :span="8">
  102. <el-form-item label="性别" prop="gander">
  103. <el-select v-model="form.gander" placeholder="请输入性别">
  104. <el-option
  105. v-for="dict in dict.type.sys_user_sex"
  106. :key="dict.value"
  107. :label="dict.label"
  108. :value="dict.value"
  109. ></el-option>
  110. </el-select>
  111. </el-form-item>
  112. </el-col>
  113. </el-row>
  114. <el-row>
  115. <el-col :span="8">
  116. <el-form-item label="所属客户" prop="customerName">
  117. <el-input v-model="form.customerName" placeholder="请输入所属客户" :disabled="this.source == 'BoDetails'">
  118. <el-button slot="append" icon="el-icon-more" @click="refereCustomer" :disabled="this.source == 'BoDetails'"></el-button>
  119. </el-input>
  120. </el-form-item>
  121. </el-col>
  122. <el-col :span="8">
  123. <el-form-item label="联系人分类" prop="contactClassification">
  124. <el-select v-model="form.contactClassification" placeholder="请输入联系人分类">
  125. <el-option
  126. v-for="dict in dict.type.mk_bo_contact_type"
  127. :key="dict.value"
  128. :label="dict.label"
  129. :value="dict.value"
  130. ></el-option>
  131. </el-select>
  132. </el-form-item>
  133. </el-col>
  134. <el-col :span="8">
  135. <el-form-item label="生日" prop="birthday">
  136. <el-date-picker clearable
  137. v-model="form.birthday"
  138. type="date"
  139. value-format="yyyy-MM-dd"
  140. placeholder="请选择生日">
  141. </el-date-picker>
  142. </el-form-item>
  143. </el-col>
  144. </el-row>
  145. <el-row>
  146. <el-col :span="8">
  147. <el-form-item label="籍贯" prop="birthplace">
  148. <el-input v-model="form.birthplace" placeholder="请输入籍贯" />
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="8">
  152. <el-form-item label="兴趣爱好" prop="hobby">
  153. <el-input v-model="form.hobby" placeholder="请输入业务爱好" />
  154. </el-form-item>
  155. </el-col>
  156. <el-col :span="8">
  157. <el-form-item label="状态" prop="state">
  158. <el-select v-model="form.state" placeholder="请输入状态">
  159. <el-option
  160. v-for="dict in dict.type.mk_bo_contact_state"
  161. :key="dict.value"
  162. :label="dict.label"
  163. :value="dict.value"
  164. ></el-option>
  165. </el-select>
  166. </el-form-item>
  167. </el-col>
  168. </el-row>
  169. <el-divider content-position="left">
  170. <dev style="width: 50px; height: 40px; font-size: 18px">工作信息</dev>
  171. </el-divider>
  172. <el-row>
  173. <el-col :span="8">
  174. <el-form-item label="上级联系人" prop="superiorContactName">
  175. <el-input v-model="form.superiorContactName" >
  176. <el-button slot="append" icon="el-icon-more" @click="refereContact"></el-button>
  177. </el-input>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :span="8">
  181. <el-form-item label="任职科室" prop="section">
  182. <el-select v-model="form.section" placeholder="请输入任职科室">
  183. <el-option
  184. v-for="dict in dict.type.mk_bo_section"
  185. :key="dict.value"
  186. :label="dict.label"
  187. :value="dict.value"
  188. ></el-option>
  189. </el-select>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :span="8">
  193. <el-form-item label="职务" prop="position">
  194. <el-select v-model="form.position" placeholder="请输入职务">
  195. <el-option
  196. v-for="dict in dict.type.mk_bo_position"
  197. :key="dict.value"
  198. :label="dict.label"
  199. :value="dict.value"
  200. ></el-option>
  201. </el-select>
  202. </el-form-item>
  203. </el-col>
  204. </el-row>
  205. <el-row>
  206. <el-col :span="8">
  207. <el-form-item label="职称" prop="jobTitle">
  208. <el-select v-model="form.jobTitle" placeholder="请输入职称">
  209. <el-option
  210. v-for="dict in dict.type.mk_bo_job_title"
  211. :key="dict.value"
  212. :label="dict.label"
  213. :value="dict.value"
  214. ></el-option>
  215. </el-select>
  216. </el-form-item>
  217. </el-col>
  218. <el-col :span="8">
  219. <el-form-item label="决策力" prop="power">
  220. <el-select v-model="form.power" placeholder="请输入决策力">
  221. <el-option
  222. v-for="dict in dict.type.mk_bo_power"
  223. :key="dict.value"
  224. :label="dict.label"
  225. :value="dict.value"
  226. ></el-option>
  227. </el-select>
  228. </el-form-item>
  229. </el-col>
  230. <el-col :span="8">
  231. <el-form-item label="支持度" prop="support">
  232. <el-select v-model="form.support" placeholder="请输入支持度">
  233. <el-option
  234. v-for="dict in dict.type.mk_bo_support"
  235. :key="dict.value"
  236. :label="dict.label"
  237. :value="dict.value"
  238. ></el-option>
  239. </el-select>
  240. </el-form-item>
  241. </el-col>
  242. </el-row>
  243. <el-row>
  244. <el-col :span="8">
  245. <el-form-item label="擅长领域" prop="fieldExpertise">
  246. <el-select v-model="form.fieldExpertise" placeholder="请输入擅长领域">
  247. <el-option
  248. v-for="dict in dict.type.mk_bo_field_expertise"
  249. :key="dict.value"
  250. :label="dict.label"
  251. :value="dict.value"
  252. ></el-option>
  253. </el-select>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :span="8">
  257. <el-form-item label="关键决策人" prop="decisionMaker">
  258. <el-select v-model="form.decisionMaker" placeholder="请输入关键决策人">
  259. <el-option
  260. v-for="dict in dict.type.sys_yes_no"
  261. :key="dict.value"
  262. :label="dict.label"
  263. :value="dict.value"
  264. ></el-option>
  265. </el-select>
  266. </el-form-item>
  267. </el-col>
  268. <el-col :span="8">
  269. </el-col>
  270. </el-row>
  271. <el-divider content-position="left">
  272. <dev style="width: 50px; height: 40px; font-size: 18px">联系信息</dev>
  273. </el-divider>
  274. <el-row>
  275. <el-col :span="8">
  276. <el-form-item label="联系电话" prop="telephone">
  277. <el-input v-model="form.telephone" placeholder="请输入联系电话" />
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="8">
  281. <el-form-item label="邮件" prop="mail">
  282. <el-input v-model="form.mail" placeholder="请输入邮件" />
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="8">
  286. <el-form-item label="家庭地址" prop="address">
  287. <el-input v-model="form.address" placeholder="请输入家庭地址" />
  288. </el-form-item>
  289. </el-col>
  290. </el-row>
  291. <el-row>
  292. <el-col :span="8">
  293. <el-form-item label="最佳拜访时间" prop="visitTime">
  294. <el-input v-model="form.visitTime" placeholder="请选择最佳拜访时间" />
  295. </el-form-item>
  296. </el-col>
  297. <el-col :span="8">
  298. <el-form-item label="最佳拜访地点" prop="visitPlace">
  299. <el-input v-model="form.visitPlace" placeholder="请输入最佳拜访地点" />
  300. </el-form-item>
  301. </el-col>
  302. <el-col :span="8">
  303. </el-col>
  304. </el-row>
  305. <el-tabs v-model="activeName" @tab-click="handleClick" v-if="this.operatingState != 'Insert'">
  306. <el-tab-pane label="学历信息" name="first">
  307. <EducationList :key="timer" :source="'ContactList'" :supForm="this.form" />
  308. </el-tab-pane>
  309. <el-tab-pane label="社会关系" name="second">
  310. <RelationshipList :key="timer" :source="'ContactList'" :supForm="this.form" />
  311. </el-tab-pane>
  312. </el-tabs>
  313. <div class="md-auditInfo">
  314. <el-divider content-position="left">
  315. <dev style="width: 50px; height: 40px; font-size: 18px">其它信息</dev>
  316. </el-divider>
  317. <el-form :inline="true" label-position="right" :model="form">
  318. <el-form-item label="创建人">
  319. <el-input v-model="form.createByName" size="small" readonly></el-input>
  320. </el-form-item>
  321. <el-form-item label="创建时间">
  322. <el-input v-model="form.createTime" size="small" readonly></el-input>
  323. </el-form-item>
  324. <el-form-item label="修改人">
  325. <el-input v-model="form.updateByName" size="small" readonly></el-input>
  326. </el-form-item>
  327. <el-form-item label="修改时间">
  328. <el-input v-model="form.updateTime" size="small" readonly></el-input>
  329. </el-form-item>
  330. </el-form>
  331. </div>
  332. </el-form>
  333. <div slot="footer" class="dialog-footer">
  334. <el-button type="primary" @click="submitForm" v-if="this.operatingState != 'Browse'" :disabled="submitButtonEditStatus">确 定</el-button>
  335. <el-button @click="cancel">取 消</el-button>
  336. </div>
  337. </el-dialog>
  338. <!-- 客户参照 -->
  339. <CustomerRef
  340. ref="customerSelect"
  341. @doSubmit="customerSelectionsToInput"
  342. :single="true"
  343. />
  344. <!-- 联系人参照 -->
  345. <ContactRef
  346. ref="contactSelect"
  347. @doSubmit="contactSelectionsToInput"
  348. :single="true"
  349. :outerQueryParams="this.bo"
  350. />
  351. </div>
  352. </template>
  353. <script>
  354. import { listContact, getContact, delContact, addContact, updateContact } from "@/api/business/spd/bo/contact";
  355. import CustomerRef from '@/views/business/spd/bo/refer/customer/index.vue';
  356. import EducationList from '../education/educationList.vue';
  357. import RelationshipList from '../relationship/relationshipList.vue';
  358. import ContactRef from '@/views/business/spd/bo/refer/contact/index.vue';
  359. export default {
  360. name: "contactList",
  361. props:["source","bo","boAuthority"],
  362. dicts: ['sys_user_sex','mk_bo_contact_state','mk_bo_section','mk_bo_position','mk_bo_job_title','mk_bo_power','mk_bo_support','mk_bo_field_expertise','sys_yes_no','mk_bo_contact_type'],
  363. components: {CustomerRef,ContactRef,EducationList,RelationshipList},
  364. data() {
  365. return {
  366. // 遮罩层
  367. loading: true,
  368. // 选中数组
  369. ids: [],
  370. // 非单个禁用
  371. single: true,
  372. // 非多个禁用
  373. multiple: true,
  374. // 显示搜索条件
  375. showSearch: true,
  376. // 总条数
  377. total: 0,
  378. // 联系人管理表格数据
  379. contactList: [],
  380. // 弹出层标题
  381. title: "",
  382. // 是否显示弹出层
  383. open: false,
  384. // 查询参数
  385. queryParams: {
  386. pageNum: 1,
  387. pageSize: 10,
  388. boId: null,
  389. name: null,
  390. code: null,
  391. customer: null,
  392. },
  393. // 表单参数
  394. form: {},
  395. // 表单校验
  396. rules: {
  397. name: [
  398. { required: true, message: "姓名不能为空", trigger: "blur" }
  399. ],
  400. gander: [
  401. { required: true, message: "性别不能为空", trigger: "blur" }
  402. ],
  403. customerName: [
  404. { required: true, message: "所属客户名称不能为空", trigger: "blur" }
  405. ],
  406. state: [
  407. { required: true, message: "状态不能为空", trigger: "blur" }
  408. ],
  409. section: [
  410. { required: true, message: "任职科室不能为空", trigger: "blur" }
  411. ],
  412. position: [
  413. { required: true, message: "职务不能为空", trigger: "blur" }
  414. ],
  415. jobTitle: [
  416. { required: true, message: "职称不能为空", trigger: "blur" }
  417. ],
  418. power: [
  419. { required: true, message: "决策力不能为空", trigger: "blur" }
  420. ],
  421. decisionMaker: [
  422. { required: true, message: "关键决策人不能为空", trigger: "blur" }
  423. ],
  424. telephone: [
  425. { required: true, message: "联系电话不能为空", trigger: "blur" },
  426. {
  427. validator: function(rule, value, callback) {
  428. if (/^1[34578]\d{9}$/.test(value) == false) {
  429. callback(new Error("手机号格式错误"));
  430. } else {
  431. callback();
  432. }
  433. },
  434. trigger: "blur"
  435. }
  436. ],
  437. },
  438. //重新加载子组件参数
  439. timer: '',
  440. //当前操作状态
  441. operatingState: '',
  442. //
  443. activeName: 'first',
  444. //确定按钮是否可点
  445. submitButtonEditStatus:false,
  446. };
  447. },
  448. created() {
  449. if(this.source == 'BoDetails'){
  450. this.queryParams.customer = this.bo.customer;
  451. let params = {"post":this.boAuthority.post};
  452. this.queryParams.params = params;
  453. }
  454. if(this.source == 'Contact'){
  455. this.queryParams = this.bo;
  456. }
  457. console.log('this.boAuthority',this.boAuthority);
  458. this.getList();
  459. },
  460. methods: {
  461. /** 查询联系人管理列表 */
  462. getList() {
  463. this.loading = true;
  464. listContact(this.queryParams).then(response => {
  465. this.contactList = response.rows;
  466. if(this.source == 'BoDetails'){
  467. console.log('this.contactList',this.contactList);
  468. for (var i = 0; i < this.contactList.length; i++) {
  469. this.contactList[i].telephone = this.contactList[i].telephone.substring(0,3) + '******' + this.contactList[i].telephone.substring(this.contactList[i].telephone.length - 4,this.contactList[i].telephone.length);
  470. this.contactList[i].customerName = this.contactList[i].customerName.substring(0,2) + '******' + this.contactList[i].customerName.substring(this.contactList[i].customerName.length - 2,this.contactList[i].customerName.length);
  471. const start = new Array(this.contactList[i].name.length).join('*');
  472. this.contactList[i].name = start + this.contactList[i].name.slice(-1);
  473. }
  474. }
  475. this.total = response.total;
  476. this.loading = false;
  477. });
  478. },
  479. // 取消按钮
  480. cancel() {
  481. this.open = false;
  482. this.reset();
  483. },
  484. // 表单重置
  485. reset() {
  486. this.form = {
  487. boId: null,
  488. delFlag: null,
  489. updateTime: null,
  490. updateBy: null,
  491. createDate: null,
  492. createBy: null,
  493. departmentName: null,
  494. departmentCode: null,
  495. area: null,
  496. organization: null,
  497. visitPlace: null,
  498. visitTime: null,
  499. address: null,
  500. mail: null,
  501. telephone: null,
  502. decisionMaker: null,
  503. fieldExpertise: null,
  504. support: null,
  505. power: null,
  506. jobTitle: null,
  507. position: null,
  508. section: null,
  509. superiorContact: null,
  510. superiorContactName: null,
  511. state: null,
  512. hobby: null,
  513. birthplace: null,
  514. birthday: null,
  515. contactClassification: null,
  516. customerName: null,
  517. customerCode: null,
  518. gander: null,
  519. name: null,
  520. code: null,
  521. id: null
  522. };
  523. this.resetForm("form");
  524. },
  525. /** 搜索按钮操作 */
  526. handleQuery() {
  527. this.queryParams.pageNum = 1;
  528. this.getList();
  529. },
  530. /** 重置按钮操作 */
  531. resetQuery() {
  532. this.resetForm("queryForm");
  533. this.handleQuery();
  534. },
  535. // 多选框选中数据
  536. handleSelectionChange(selection) {
  537. this.ids = selection.map(item => item.id)
  538. this.single = selection.length!==1
  539. this.multiple = !selection.length
  540. },
  541. /** 新增按钮操作 */
  542. handleAdd() {
  543. this.operatingState = "Insert";
  544. this.reset();
  545. if(this.source == 'BoDetails'){
  546. this.form.boId = this.bo.id;
  547. this.form.customer = this.bo.customer;
  548. this.form.customerName = this.bo.customerName;
  549. }
  550. this.form.state = '1';
  551. this.open = true;
  552. this.title = "添加联系人";
  553. },
  554. /** 修改按钮操作 */
  555. handleUpdate(row) {
  556. this.operatingState = "Update";
  557. this.reset();
  558. const id = row.id || this.ids
  559. getContact(id).then(response => {
  560. this.form = response.data;
  561. this.open = true;
  562. this.title = "修改联系人";
  563. this.timer = new Date().getTime();
  564. });
  565. },
  566. /** 查看按钮操作 */
  567. handleBrowse(row) {
  568. this.reset();
  569. const id = row.id || this.ids
  570. getContact(id).then(response => {
  571. this.form = response.data;
  572. this.open = true;
  573. this.operatingState = "Browse";
  574. this.title = "基础信息";
  575. });
  576. },
  577. /** 提交按钮 */
  578. submitForm() {
  579. this.submitButtonEditStatus = true;
  580. this.$refs["form"].validate(valid => {
  581. if (valid) {
  582. if (this.form.id != null) {
  583. updateContact(this.form).then(response => {
  584. this.$modal.msgSuccess("修改成功");
  585. this.open = false;
  586. this.getList();
  587. this.submitButtonEditStatus = false;
  588. });
  589. } else {
  590. addContact(this.form).then(response => {
  591. this.$modal.msgSuccess("新增成功");
  592. this.open = false;
  593. this.getList();
  594. this.submitButtonEditStatus = false;
  595. });
  596. }
  597. }else{
  598. this.submitButtonEditStatus = false;
  599. }
  600. });
  601. },
  602. /** 删除按钮操作 */
  603. handleDelete(row) {
  604. const ids = row.id || this.ids;
  605. this.$modal.confirm('是否确认删除联系人管理编号为"' + ids + '"的数据项?').then(function() {
  606. return delContact(ids);
  607. }).then(() => {
  608. this.getList();
  609. this.$modal.msgSuccess("删除成功");
  610. }).catch(() => {});
  611. },
  612. /** 导出按钮操作 */
  613. handleExport() {
  614. this.download('system/contact/export', {
  615. ...this.queryParams
  616. }, `contact_${new Date().getTime()}.xlsx`)
  617. },
  618. // 触发客户参照列表
  619. refereCustomer() {
  620. this.$refs.customerSelect.init()
  621. },
  622. //客户参照列表选择后
  623. customerSelectionsToInput (selections) {
  624. this.form.customer = selections[0].id;
  625. this.form.customerName = selections[0].name;
  626. },
  627. // 触发联系人参照列表
  628. refereContact() {
  629. this.$refs.contactSelect.init()
  630. },
  631. //联系人参照列表选择后
  632. contactSelectionsToInput (selections) {
  633. this.form.superiorContact = selections[0].id;
  634. this.form.superiorContactName = selections[0].name;
  635. },
  636. }
  637. };
  638. </script>