Commit e1d8be81 authored by 黄奎's avatar 黄奎

页面修改

parent 7e43fc76
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
.el-table__fixed-body-wrapper table { .el-table__fixed-body-wrapper table {
padding-bottom: 8px !important; padding-bottom: 8px !important;
} }
.clueTitle{
.clueTitle {
padding: 20px 20px 0 20px; padding: 20px 20px 0 20px;
} }
</style> </style>
...@@ -159,7 +160,8 @@ ...@@ -159,7 +160,8 @@
<el-table-column prop="PersonChargeStr" label="负责人" sortable <el-table-column prop="PersonChargeStr" label="负责人" sortable
v-if="queryType[8].show && msg.CustomerType === 1" show-overflow-tooltip width="90"> v-if="queryType[8].show && msg.CustomerType === 1" show-overflow-tooltip width="90">
</el-table-column> </el-table-column>
<el-table-column prop="CreateByStr" label="创建人" sortable v-if="queryType[9].show" show-overflow-tooltip width="90"> <el-table-column prop="CreateByStr" label="创建人" sortable v-if="queryType[9].show" show-overflow-tooltip
width="90">
</el-table-column> </el-table-column>
<el-table-column prop="UpdateTime" label="上次更新时间" sortable v-if="queryType[10].show" <el-table-column prop="UpdateTime" label="上次更新时间" sortable v-if="queryType[10].show"
show-overflow-tooltip> show-overflow-tooltip>
...@@ -203,7 +205,7 @@ ...@@ -203,7 +205,7 @@
<el-drawer :with-header="false" size='70%' :visible.sync="isShowCustomerInfo" direction="rtl" <el-drawer :with-header="false" size='70%' :visible.sync="isShowCustomerInfo" direction="rtl"
:before-close="handleClose"> :before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @deleteClue="deleteClue" @watersS="waters" <customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @deleteClue="deleteClue" @watersS="waters"
@editCustS="editCust" @getList="getList" :activeNameNum="activeNameNum" :receiptType="receiptType"/> @editCustS="editCust" @getList="getList" :activeNameNum="activeNameNum" :receiptType="receiptType" />
</el-drawer> </el-drawer>
<el-drawer :with-header="false" size='70%' :visible.sync="isShowGuestInfo" direction="rtl" <el-drawer :with-header="false" size='70%' :visible.sync="isShowGuestInfo" direction="rtl"
:before-close="handleClose"> :before-close="handleClose">
...@@ -252,13 +254,13 @@ ...@@ -252,13 +254,13 @@
import guestInfoBox from "./guestInfoBox"; import guestInfoBox from "./guestInfoBox";
import importDialogBox from "./importDialogBox"; import importDialogBox from "./importDialogBox";
export default { export default {
props:{ props: {
isDrawer:{ isDrawer: {
type:Boolean, type: Boolean,
default: false, default: false,
}, },
queryTime:{ queryTime: {
type:Object, type: Object,
default: null default: null
} }
}, },
...@@ -281,12 +283,12 @@ ...@@ -281,12 +283,12 @@
}, },
data() { data() {
return { return {
receiptType:{ receiptType: {
ReFinanceId:"", ReFinanceId: "",
ReFinanceId2:"",//单据类型 ReFinanceId2: "", //单据类型
RelevanceFrId:"",//1机票 2签证 3地接 4套餐 5其他 RelevanceFrId: "", //1机票 2签证 3地接 4套餐 5其他
}, },
activeNameNum:"1", activeNameNum: "1",
ruleList: [], ruleList: [],
guestDialogBoxShow: false, guestDialogBoxShow: false,
isShowGuestInfo: false, //是否显示直客弹窗 isShowGuestInfo: false, //是否显示直客弹窗
...@@ -382,9 +384,9 @@ ...@@ -382,9 +384,9 @@
CustomerIds: [], CustomerIds: [],
EmpId: '', EmpId: '',
}, },
CustomerTypeText:"",// 线索名称搜索 CustomerTypeText: "", // 线索名称搜索
msg: { msg: {
KeyWord:'', KeyWord: '',
CustomerName: '', CustomerName: '',
Contact: '', Contact: '',
pageIndex: 1, pageIndex: 1,
...@@ -451,9 +453,9 @@ ...@@ -451,9 +453,9 @@
done(); done();
}, },
// 查看详情 // 查看详情
seeDetails(row){ seeDetails(row) {
this.drawer = true this.drawer = true
this.queryTime = this.msg.YearStr+'-'+row.DateStr this.queryTime = this.msg.YearStr + '-' + row.DateStr
}, },
changeWhere(item) { changeWhere(item) {
this.msg.ID = item.ID this.msg.ID = item.ID
...@@ -532,7 +534,8 @@ ...@@ -532,7 +534,8 @@
str = str + x + ',' str = str + x + ','
}) })
this.apipost('/api/Customer/DelCustomerClue', { this.apipost('/api/Customer/DelCustomerClue', {
CustomerIds: str.substring(0, str.length - 1) CustomerIds: str.substring(0, str.length - 1),
CustomerType: this.msg.CustomerType
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (type === 1) {} { if (type === 1) {} {
...@@ -684,7 +687,11 @@ ...@@ -684,7 +687,11 @@
}, },
openDetails(scope) { openDetails(scope) {
this.CustomerId = scope.row.CustomerId this.CustomerId = scope.row.CustomerId
this.CustomerName = scope.row.CustomerName if (this.msg.CustomerType == 0) {
this.CustomerName = scope.row.CustomerName;
} else if (this.msg.CustomerType == 1) {
this.CustomerName = scope.row.ClueName;
}
if (this.msg.CustomerType === 0) { if (this.msg.CustomerType === 0) {
this.isShowCustomerInfo = true this.isShowCustomerInfo = true
} else { } else {
...@@ -711,26 +718,24 @@ ...@@ -711,26 +718,24 @@
done(); done();
}, },
getList: function (isclose) { getList: function (isclose) {
if(isclose&&isclose==1) if (isclose && isclose == 1) {
{ this.isShowGuestInfo = false;
this.isShowGuestInfo=false;
} }
if(this.msg.CustomerType!=1){ if (this.msg.CustomerType != 1) {
this.msg.CustomerName = this.CustomerTypeText this.msg.CustomerName = this.CustomerTypeText
this.msg.KeyWord="" this.msg.KeyWord = ""
}else{ } else {
this.msg.KeyWord = this.CustomerTypeText this.msg.KeyWord = this.CustomerTypeText
this.msg.CustomerName="" this.msg.CustomerName = ""
} }
this.tableData = [] this.tableData = []
this.loading = true this.loading = true
let url let url
if(!this.isDrawer){ if (!this.isDrawer) {
url = '/api/Customer/GetCustomerCluePage' url = '/api/Customer/GetCustomerCluePage'
}else{ } else {
this.msg.StartTime = this.queryTime && this.queryTime.StartTime
this.msg.StartTime = this.queryTime&&this.queryTime.StartTime this.msg.EndTime = this.queryTime && this.queryTime.EndTime
this.msg.EndTime = this.queryTime&&this.queryTime.EndTime
url = '/api/Customer/GetCustomerClueAllPage' url = '/api/Customer/GetCustomerClueAllPage'
} }
this.apipost(url, this.msg, res => { this.apipost(url, this.msg, res => {
......
...@@ -89,8 +89,7 @@ ...@@ -89,8 +89,7 @@
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="z"><i class="iconfont iconplus-transfer"></i> 转移</el-dropdown-item> <el-dropdown-item command="z"><i class="iconfont iconplus-transfer"></i> 转移</el-dropdown-item>
<el-dropdown-item command="g"><i class="iconfont icongonghaiguanli"></i> 转化为客户 <el-dropdown-item command="g"><i class="iconfont icongonghaiguanli"></i>转化为客户</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item command="d"><i class="iconfont icondelete"></i> 删除</el-dropdown-item> <el-dropdown-item command="d"><i class="iconfont icondelete"></i> 删除</el-dropdown-item>
<el-dropdown-item command="w"><i class="iconfont icondelete"></i> 无效线索</el-dropdown-item> <el-dropdown-item command="w"><i class="iconfont icondelete"></i> 无效线索</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
......
...@@ -99,7 +99,8 @@ ...@@ -99,7 +99,8 @@
<div class="top-info"> <div class="top-info">
<el-row class="margin-bottom-25"> <el-row class="margin-bottom-25">
<el-col :span="12"> <el-col :span="12">
<span class="info-lable">客户级别:</span><span>{{detailsData.CustomerIdLevelStr?detailsData.CustomerIdLevelStr:"--"}}</span> <span
class="info-lable">客户级别:</span><span>{{detailsData.CustomerIdLevelStr?detailsData.CustomerIdLevelStr:"--"}}</span>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<span <span
...@@ -188,7 +189,7 @@ ...@@ -188,7 +189,7 @@
methods: { methods: {
//刷新父页面 //刷新父页面
refreshParentPage() { refreshParentPage() {
this.$emit('getList',1); this.$emit('getList', 1);
}, },
init() { init() {
this.apipost('/api/Customer/GetAllGuesstCustomerModel', { this.apipost('/api/Customer/GetAllGuesstCustomerModel', {
...@@ -233,6 +234,8 @@ ...@@ -233,6 +234,8 @@
this.$emit('transferS', 3); this.$emit('transferS', 3);
} else if (command === 'g') { } else if (command === 'g') {
} else if (command === 'd') {
this.$emit('deleteClue', 1)
} }
//无效线索弹窗 //无效线索弹窗
else if (command === 'w') { else if (command === 'w') {
......
...@@ -127,7 +127,6 @@ ...@@ -127,7 +127,6 @@
"/api/ClueStatic/GetClueDay", "/api/ClueStatic/GetClueDay",
this.msg, this.msg,
(res) => { (res) => {
console.log(res);
this.loading = false; this.loading = false;
this.tableData = res.data.data; this.tableData = res.data.data;
}, },
...@@ -172,17 +171,14 @@ ...@@ -172,17 +171,14 @@
changeMonthHandler(val) { changeMonthHandler(val) {
this.msg.YearStr = val.getFullYear(); this.msg.YearStr = val.getFullYear();
this.msg.MonthStr = val.getMonth() + 1; this.msg.MonthStr = val.getMonth() + 1;
console.log(this.msg);
this.init(); this.init();
}, },
handleCommand(command) { handleCommand(command) {
console.log(command);
if (command == "1") { if (command == "1") {
this.downloadHandler(); this.downloadHandler();
} }
}, },
downloadHandler() { downloadHandler() {
console.log("点击了");
this.GetLocalFile( this.GetLocalFile(
"/api/ClueStatic/DownLoadClueDay", "/api/ClueStatic/DownLoadClueDay",
this.msg, this.msg,
......
...@@ -236,7 +236,6 @@ ...@@ -236,7 +236,6 @@
return row[column.property] + "%"; return row[column.property] + "%";
}, },
handleCommand(command) { handleCommand(command) {
console.log(command);
if (command == "1") { if (command == "1") {
if (this.activeName == "monthdata") { if (this.activeName == "monthdata") {
this.downloadHandler( this.downloadHandler(
...@@ -252,7 +251,6 @@ ...@@ -252,7 +251,6 @@
} }
}, },
downloadHandler(url, name) { downloadHandler(url, name) {
console.log("点击了");
this.GetLocalFile(url, this.msg, `${name}.xls`, (res) => { this.GetLocalFile(url, this.msg, `${name}.xls`, (res) => {
this.$message({ this.$message({
message: "导出成功", message: "导出成功",
......
...@@ -138,13 +138,11 @@ export default { ...@@ -138,13 +138,11 @@ export default {
return row[column.property] + "%"; return row[column.property] + "%";
}, },
handleCommand(command) { handleCommand(command) {
console.log(command);
if (command == "1") { if (command == "1") {
this.downloadHandler(); this.downloadHandler();
} }
}, },
downloadHandler() { downloadHandler() {
console.log("点击了");
this.GetLocalFile( this.GetLocalFile(
"/api/ClueStatic/DownLoadClueDay", "/api/ClueStatic/DownLoadClueDay",
this.msg, this.msg,
...@@ -158,7 +156,6 @@ export default { ...@@ -158,7 +156,6 @@ export default {
); );
}, },
handleCommand(command) { handleCommand(command) {
console.log(command);
if (command == "1") { if (command == "1") {
if (this.activeName == "monthdata") { if (this.activeName == "monthdata") {
this.downloadHandler( this.downloadHandler(
...@@ -174,7 +171,6 @@ export default { ...@@ -174,7 +171,6 @@ export default {
} }
}, },
downloadHandler(url, name) { downloadHandler(url, name) {
console.log("点击了");
this.GetLocalFile(url, this.msg, `${name}.xls`, (res) => { this.GetLocalFile(url, this.msg, `${name}.xls`, (res) => {
this.$message({ this.$message({
message: "导出成功", message: "导出成功",
......
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