Commit 1288a77a authored by 黄奎's avatar 黄奎

页面修改

parent bb8bef88
<style>
@import '../../assets/css/customerManage.css';
/* .tools{
padding-bottom: 0
}
.tools-item{
display: flex;
height: 41px;
}
.tools-item h1{
margin: 0 20px 0 0;
height: 100%;
line-height: 100%;
border-bottom: solid 2px rgba(35, 98, 251, 0);
}
.customerManage .tools h1:last-child{
margin: 0
}
.tools-item .active{
color: rgb(35, 98, 251);
border-color: rgb(35, 98, 251);
} */
.el-table__fixed-body-wrapper table {
padding-bottom: 8px !important;
......@@ -30,8 +10,6 @@
<div class="tools">
<div class="tools-item">
<h1>线索管理</h1>
<!-- <h1 class="cp" :class="[activeMenu === 1 ? 'active' : '']" @click="activeMenu = 1, getList()">客户线索管理</h1>
<h1 class="cp" :class="[activeMenu === 2 ? 'active' : '']" @click="activeMenu = 2">直客线索管理</h1> -->
</div>
<div style="width: 340px;">
<el-input placeholder="请输入线索名称/手机" v-model="msg.CustomerName" class="input-with-select">
......@@ -39,7 +17,6 @@
</el-input>
</div>
<div class="rightmenu">
<!-- <el-button class="crm-btn query-btn" @click="getList">查询</el-button> -->
<el-dropdown @command="handleCommand">
<el-button icon="el-icon-plus" class="crm-btn org-btn">新建线索</el-button>
<el-dropdown-menu slot="dropdown">
......@@ -52,7 +29,8 @@
<i class="iconfont icongengduo"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="3"><i class="iconfont icondaoru"></i> 导入</el-dropdown-item>
<el-dropdown-item command="3"><i class="iconfont icondaoru"></i> 导入客户线索</el-dropdown-item>
<el-dropdown-item command="4"><i class="iconfont icondaoru"></i> 导入直客线索</el-dropdown-item>
<!-- <el-dropdown-item><i class="iconfont icondaochu"></i> 导出</el-dropdown-item> -->
</el-dropdown-menu>
</el-dropdown>
......@@ -139,7 +117,7 @@
<el-table-column prop="CustomerSourceTypeStr" label="线索来源" v-if="queryType[1].show"
show-overflow-tooltip>
</el-table-column>
<!-- CustomerSource 其他的来源 -->
<!--CustomerSource其他的来源 -->
<el-table-column prop="SourceAccountName" label="来源细分"
v-if="queryType[2].show && msg.CustomerType === 1" show-overflow-tooltip>
</el-table-column>
......@@ -162,8 +140,6 @@
<el-table-column prop="WeChatNo" label="微信号" sortable v-if="queryType[7].show && msg.CustomerType === 1"
show-overflow-tooltip>
</el-table-column>
<!-- <el-table-column prop="Address" label="地址" v-if="queryType[4].show" show-overflow-tooltip>
</el-table-column> -->
<el-table-column prop="PersonChargeStr" label="负责人" sortable
v-if="queryType[8].show && msg.CustomerType === 1" show-overflow-tooltip>
</el-table-column>
......@@ -222,6 +198,10 @@
<div v-if="guestDialogBoxShow">
<guestDialogBox @getList="getList" :name="dialogTableVisibleName" :CustomerId="CustomerId" />
</div>
<!--显示导入弹窗-->
<div v-if="isShowImport">
<importDialogBox @getList="getList" :importType="importType" />
</div>
<el-dialog :visible.sync="transferVisible" :close-on-click-modal="false" width="450px"
custom-class="transfer-box add-box add-box2">
<div class="add-tit" slot="title">
......@@ -252,13 +232,15 @@
import customerDialogBox from "./customerDialogBox";
import guestDialogBox from "./guestDialogBox";
import guestInfoBox from "./guestInfoBox";
import importDialogBox from "./importDialogBox";
export default {
components: {
mySelect,
customerInfoBox,
customerDialogBox,
guestDialogBox,
guestInfoBox
guestInfoBox,
importDialogBox,
},
data() {
return {
......@@ -402,6 +384,8 @@
SceneEmployeeList: [],
sceneID: 29,
visible: false,
isShowImport: false, //是否显示导入弹窗
importType: 1, //导入文件类型(1-客户导入,2-直客导入)
};
},
mounted() {
......@@ -410,8 +394,9 @@
this.Employee()
let $this = this
this.MsgBus.$on('closeCustomerDialogBox', function () {
$this.dialogTableVisible = false
$this.guestDialogBoxShow = false
$this.dialogTableVisible = false;
$this.guestDialogBoxShow = false;
$this.isShowImport=false;
})
this.GetSceneEmployeeList()
this.MsgBus.$on('sceneSave', function (msg) {
......@@ -467,7 +452,11 @@
} else if (command === '2') {
this.guestDialogBoxShow = true
} else if (command === '3') {
this.$message.warning('功能正在开发中~');
this.importType = 1;
this.isShowImport = true;
} else if (command === '4') {
this.importType = 2;
this.isShowImport = true;
}
},
Employee() {
......@@ -491,7 +480,6 @@
},
//删除
deleteClue(type) {
let tips = '确定将这些线索删除?'
if (type === 1) {
tips = '是否把线索“' + this.CustomerName + '”删除?'
......@@ -534,7 +522,7 @@
changeState() {
},
// 转换为客户
//转换为客户
waters(type) {
let tips = '确定将这些线索转换为客户吗?'
if (type === 1) {
......@@ -677,7 +665,6 @@
this.ruleList = res.data.data.EmpList
}
})
},
handleSizeChange(val) {
this.msg.pageSize = val
......@@ -704,7 +691,6 @@
// 获取是否开启规则
this.GetCustomerAllotRule()
}
},
handleSelectionChange(val) {
this.multipleSelection = val.map(x =>
......
......@@ -498,18 +498,13 @@
</div>
</el-col>
</template>
<div class="_addPassengerEconomicCapability">
<span v-for="(item, index) in EconomicCapabilityS" :key="index" @click="addEconomicCapability(item)"
:class="{_active:item.isShow}">{{item.Name}}</span>
</div>
</el-form>
</el-collapse-item>
</el-collapse>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('form')">确 定</el-button>
......@@ -538,7 +533,7 @@
if (!value) {
return callback(new Error("手机号不能为空"));
} else {
const reg = /^1[3|4|5|7|8][0-9]\d{8}$/;
const reg = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
if (reg.test(value)) {
callback();
} else {
......@@ -640,11 +635,6 @@
message: "请填写客人需求",
trigger: "blur",
}, ],
// Remarks: [{
// required: true,
// message: '请填写备注',
// trigger: 'blur'
// }],
WeChatNo: [{
required: true,
validator: validateWechatAndPhone,
......
......@@ -223,7 +223,7 @@ Vue.prototype.UploadLocalSystem = function (params, fileObj, successCall) {
let url = that.domainManager().CRMUploadUrl;
let formData = new FormData()
if (params) {
formData.append("params", params);
formData.append("params", JSON.stringify(params));
}
formData.append('myfile', fileObj);
co(function* () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment