|
@@ -14,8 +14,8 @@
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
<el-table v-loading="loading" :data="contactList">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="编号" align="center" prop="code" />
|
|
|
+ <el-table-column label="序号" type="index" width="50" align="center" fixed/>
|
|
|
+ <el-table-column width="300" label="编号" align="center" prop="code" />
|
|
|
<el-table-column label="姓名" align="center" prop="name" />
|
|
|
<el-table-column label="性别" align="center" prop="gander" >
|
|
|
<template slot-scope="scope">
|
|
@@ -24,7 +24,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="联系电话" align="center" prop="telephone" />
|
|
|
<el-table-column label="所属客户" align="center" prop="customerName" />
|
|
|
- <el-table-column label="部门名称" align="center" prop="departmentName" />
|
|
|
+ <el-table-column width="200" show-overflow-tooltip label="部门名称" align="center" prop="departmentName" />
|
|
|
<el-table-column label="职务" align="center" prop="position" >
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.mk_bo_position" :value="scope.row.position"/>
|
|
@@ -35,14 +35,14 @@
|
|
|
<dict-tag :options="dict.type.mk_bo_power" :value="scope.row.power"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="兴趣爱好" align="center" prop="hobby" />
|
|
|
- <el-table-column label="家庭地址" align="center" prop="address" />
|
|
|
+ <el-table-column width="200" show-overflow-tooltip label="兴趣爱好" align="center" prop="hobby" />
|
|
|
+ <el-table-column width="200" show-overflow-tooltip label="家庭地址" align="center" prop="address" />
|
|
|
<el-table-column label="状态" align="center" prop="state" >
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.mk_bo_contact_state" :value="scope.row.state"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" >
|
|
|
+ <el-table-column width="200" label="操作" fixed="right" align="center" class-name="small-padding fixed-width" >
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -79,7 +79,7 @@
|
|
|
|
|
|
<!-- 添加或修改联系人管理对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="1100px" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px" :disabled="this.operatingState == 'Browse'">
|
|
|
+ <el-form size="mini" ref="form" :model="form" :rules="rules" label-width="80px" :disabled="this.operatingState == 'Browse'">
|
|
|
<el-divider content-position="left">
|
|
|
<dev style="width: 50px; height: 40px; font-size: 18px">基本信息</dev>
|
|
|
</el-divider>
|
|
@@ -173,9 +173,13 @@
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="上级联系人" prop="superiorContactName">
|
|
|
- <el-input v-model="form.superiorContactName" >
|
|
|
- <el-button slot="append" icon="el-icon-more" @click="refereContact"></el-button>
|
|
|
- </el-input>
|
|
|
+ <dr-popover-select v-model="form.superiorContactName" title="上级联系人" type="LINKMAN_PARAM" :dataMapping="{
|
|
|
+ superiorContact: 'id',
|
|
|
+ superiorContactName: 'name',
|
|
|
+ }" :source.sync="form"
|
|
|
+ :queryParams="additionalCondition"
|
|
|
+ >
|
|
|
+ </dr-popover-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -315,55 +319,48 @@
|
|
|
<el-divider content-position="left">
|
|
|
<dev style="width: 50px; height: 40px; font-size: 18px">其它信息</dev>
|
|
|
</el-divider>
|
|
|
- <el-form :inline="true" label-position="right" :model="form">
|
|
|
- <el-form-item label="创建人">
|
|
|
- <el-input v-model="form.createByName" size="small" readonly></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="创建时间">
|
|
|
- <el-input v-model="form.createTime" size="small" readonly></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="修改人">
|
|
|
- <el-input v-model="form.updateByName" size="small" readonly></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="修改时间">
|
|
|
- <el-input v-model="form.updateTime" size="small" readonly></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="创建人">
|
|
|
+ <el-input v-model="form.createByName" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="创建时间">
|
|
|
+ <el-input v-model="form.createTime" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="修改人">
|
|
|
+ <el-input v-model="form.updateByName" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="修改时间">
|
|
|
+ <el-input v-model="form.updateTime" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
<div slot="footer">
|
|
|
- <el-button type="primary" @click="submitForm" v-if="this.operatingState != 'Browse'" :disabled="submitButtonEditStatus">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="submitForm" v-if="this.operatingState != 'Browse'" :disabled="submitButtonEditStatus">确 定</el-button>
|
|
|
+ <el-button size="mini" @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!-- 客户参照 -->
|
|
|
- <CustomerRef
|
|
|
- ref="customerSelect"
|
|
|
- @doSubmit="customerSelectionsToInput"
|
|
|
- :single="true"
|
|
|
- />
|
|
|
- <!-- 联系人参照 -->
|
|
|
- <ContactRef
|
|
|
- ref="contactSelect"
|
|
|
- @doSubmit="contactSelectionsToInput"
|
|
|
- :single="true"
|
|
|
- :outerQueryParams="this.bo"
|
|
|
- />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { listContact, getContact, delContact, addContact, updateContact } from "@/api/business/spd/bo/contact";
|
|
|
-import CustomerRef from '@/views/business/spd/bo/refer/customer/index.vue';
|
|
|
import EducationList from '../education/educationList.vue';
|
|
|
import RelationshipList from '../relationship/relationshipList.vue';
|
|
|
-import ContactRef from '@/views/business/spd/bo/refer/contact/index.vue';
|
|
|
|
|
|
export default {
|
|
|
name: "contactList",
|
|
|
props:["source","bo","boAuthority"],
|
|
|
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'],
|
|
|
- components: {CustomerRef,ContactRef,EducationList,RelationshipList},
|
|
|
+ components: {EducationList,RelationshipList},
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -586,23 +583,12 @@ export default {
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
- // 触发客户参照列表
|
|
|
- refereCustomer() {
|
|
|
- this.$refs.customerSelect.init()
|
|
|
- },
|
|
|
- //客户参照列表选择后
|
|
|
- customerSelectionsToInput (selections) {
|
|
|
- this.form.customer = selections[0].id;
|
|
|
- this.form.customerName = selections[0].name;
|
|
|
- },
|
|
|
- // 触发联系人参照列表
|
|
|
- refereContact() {
|
|
|
- this.$refs.contactSelect.init()
|
|
|
- },
|
|
|
- //联系人参照列表选择后
|
|
|
- contactSelectionsToInput (selections) {
|
|
|
- this.form.superiorContact = selections[0].id;
|
|
|
- this.form.superiorContactName = selections[0].name;
|
|
|
+ additionalCondition(){
|
|
|
+ return {
|
|
|
+ parame:{
|
|
|
+ customer: this.form.customer ? this.form.customer : 'xxx'
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
};
|