Commit 17fa733e authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/huaguohao/crm into master

# Conflicts:
#	src/components/guestManagement/Agreement.vue
#	src/components/guestManagement/customerInfoBox.vue
parents 4dbfef1e 5facc92b
...@@ -78,7 +78,6 @@ function getLotteryAwardItem() { ...@@ -78,7 +78,6 @@ function getLotteryAwardItem() {
} }
$(document).ready(function () { $(document).ready(function () {
//动态添加大转盘的奖品与奖品区域背景颜色 //动态添加大转盘的奖品与奖品区域背景颜色
console.log(LotteryAward)
turnplate.restaraunts = LotteryAward; turnplate.restaraunts = LotteryAward;
turnplate.colors = colors; turnplate.colors = colors;
//旋转转盘 item:奖品位置; txt:提示语; //旋转转盘 item:奖品位置; txt:提示语;
......
...@@ -218,7 +218,6 @@ export default { ...@@ -218,7 +218,6 @@ export default {
}, },
methods: { methods: {
reload(){ reload(){
console.log(1)
this.getList() this.getList()
this.drawer = false this.drawer = false
}, },
......
...@@ -682,9 +682,8 @@ export default { ...@@ -682,9 +682,8 @@ export default {
}); });
}); });
}, },
// 上传附件 //上传附件
uploadImg2(file) { uploadImg2(file) {
console.log(file);
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
......
...@@ -4,51 +4,35 @@ ...@@ -4,51 +4,35 @@
<template> <template>
<div class="Business"> <div class="Business">
<div class="add-Enclosure"> <div class="add-Enclosure">
<el-button icon="el-icon-plus" class="crm-btn query-btn crm-btn-mini margin-right0" @click="addBusiness">新建商机</el-button> <el-button icon="el-icon-plus" class="crm-btn query-btn crm-btn-mini margin-right0" @click="addBusiness">新建商机
</el-button>
</div> </div>
<el-table <el-table v-loading="loading" stripe ref="multipleTable" :data="dataList" tooltip-effect="dark" style="width: 100%"
v-loading="loading"
stripe
ref="multipleTable"
:data="dataList"
tooltip-effect="dark"
style="width: 100%"
row-class-name="font-size-12"> row-class-name="font-size-12">
<el-table-column <el-table-column prop="BusinessName" label="商机名称" show-overflow-tooltip>
prop="BusinessName"
label="商机名称"
show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.BusinessName}}</p> <p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.BusinessName}}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="BudgetPrice" label="商机金额" show-overflow-tooltip>
prop="BudgetPrice"
label="商机金额"
show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="CustomerName" label="客户名称" show-overflow-tooltip>
prop="CustomerName"
label="客户名称"
show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="BusinessStatusStr" label="商机阶段" show-overflow-tooltip>
prop="BusinessStatusStr"
label="商机阶段"
show-overflow-tooltip>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ['ID', 'BusinessType'], props: ['ID', 'BusinessType'],
data() { data() {
return { return {
dataList: [], dataList: [],
loading: false loading: false
}; };
},watch:{ },
watch: {
}, },
mounted() { mounted() {
...@@ -56,30 +40,30 @@ export default { ...@@ -56,30 +40,30 @@ export default {
}, },
methods: { methods: {
openDetails(scope){ openDetails(scope) {
console.log(scope.row.ID)
this.MsgBus.$emit('busnessDrawerShow', scope.row.ID, 0) this.MsgBus.$emit('busnessDrawerShow', scope.row.ID, 0)
}, },
GetBusinessList(){ GetBusinessList() {
this.apipost('/api/Customer/GetBusinessList', {CustomerId: this.ID}, res=>{ this.apipost('/api/Customer/GetBusinessList', {
CustomerId: this.ID
}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res.data.data)
this.dataList = res.data.data this.dataList = res.data.data
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}) })
}, },
addBusiness(){ addBusiness() {
let $this= this let $this = this
this.MsgBus.$emit('addBusinessBoxOpen', $this.ID, 0) this.MsgBus.$emit('addBusinessBoxOpen', $this.ID, 0)
}, },
guanlian(){ guanlian() {
}, },
jiechuguanlian(){ jiechuguanlian() {
}, },
} }
} }
</script> </script>
\ No newline at end of file
...@@ -90,7 +90,6 @@ export default { ...@@ -90,7 +90,6 @@ export default {
},watch:{ },watch:{
CustomerId: { CustomerId: {
handler(val, oldVal){ handler(val, oldVal){
console.log(val)
this.GetCustomerTeamList() this.GetCustomerTeamList()
}, },
deep:true deep:true
......
This diff is collapsed.
...@@ -90,7 +90,6 @@ export default { ...@@ -90,7 +90,6 @@ export default {
},watch:{ },watch:{
BusinessId: { BusinessId: {
handler(val, oldVal){ handler(val, oldVal){
console.log(val)
this.GetCustomerTeamList() this.GetCustomerTeamList()
}, },
deep:true deep:true
......
...@@ -580,15 +580,15 @@ export default { ...@@ -580,15 +580,15 @@ export default {
}, },
//删除 //删除
delete(){ delete(){
console.log('删除')
}, },
//导出 //导出
export(){ export(){
console.log('导出')
}, },
// 更改状态 // 更改状态
changeState(){ changeState(){
console.log('更改状态')
}, },
// 放入公海 // 放入公海
waters(type){ waters(type){
......
This diff is collapsed.
<style> <style>
.add-Enclosure{ .add-Enclosure {
text-align: right; text-align: right;
padding-bottom: 20px; padding-bottom: 20px;
} }
</style> </style>
<template> <template>
<div class="Enclosure"> <div class="Enclosure">
<div class="add-Enclosure" v-if="upload !== 2"> <div class="add-Enclosure" v-if="upload !== 2">
<el-upload <el-upload class="upload-demo" :file-list="fileList" :limit="1" :http-request="uploadImg2" :multiple="true"
class="upload-demo"
:file-list="fileList" :limit="1" :http-request="uploadImg2" :multiple="true"
:show-file-list="false" action=""> :show-file-list="false" action="">
<el-button icon="el-icon-plus" class="crm-btn query-btn crm-btn-mini margin-right0">上传附件</el-button> <el-button icon="el-icon-plus" class="crm-btn query-btn crm-btn-mini margin-right0">上传附件</el-button>
</el-upload> </el-upload>
</div> </div>
<el-table <el-table v-loading="loading" stripe ref="multipleTable" :data="fileList" tooltip-effect="dark" style="width: 100%"
v-loading="loading"
stripe
ref="multipleTable"
:data="fileList"
tooltip-effect="dark"
style="width: 100%"
row-class-name="font-size-12"> row-class-name="font-size-12">
<el-table-column <el-table-column prop="FileName" label="附件名称" show-overflow-tooltip>
prop="FileName"
label="附件名称"
show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="CreateSrt" label="上传人" show-overflow-tooltip>
prop="CreateSrt"
label="上传人"
show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="CreateTime" label="上传时间" show-overflow-tooltip>
prop="CreateTime"
label="上传时间"
show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span class="cfont-color-info">{{scope.row.CreateTime}}</span> <span class="cfont-color-info">{{scope.row.CreateTime}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="IsFirstContact" label="操作" width="100" show-overflow-tooltip>
prop="IsFirstContact"
label="操作"
width="100"
show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span class="font-color-link cp" style="padding-right: 10px;" @click="previewFile(scope.row.FileURL)">预览</span> <span class="font-color-link cp" style="padding-right: 10px;"
<span class="font-color-warning cp underline" v-if="scope.row.FileUploadType && IsRead === 0" @click="deleteItem(scope.row.ID)">删除</span> @click="previewFile(scope.row.FileURL)">预览</span>
<span class="font-color-warning cp underline" v-if="scope.row.FileUploadType && IsRead === 0"
@click="deleteItem(scope.row.ID)">删除</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props:['ID', 'type', 'IsRead', 'upload', 'isGuest'], props: ['ID', 'type', 'IsRead', 'upload', 'isGuest'],
data() { data() {
return { return {
loading: false, loading: false,
...@@ -73,7 +54,8 @@ export default { ...@@ -73,7 +54,8 @@ export default {
FileSoureType: '' FileSoureType: ''
} }
}; };
},watch:{ },
watch: {
}, },
mounted() { mounted() {
...@@ -88,17 +70,17 @@ export default { ...@@ -88,17 +70,17 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
getList(){ getList() {
this.loading = true this.loading = true
this.apipost('/api/Customer/GetCustomerFilePage', this.msg, res=>{ this.apipost('/api/Customer/GetCustomerFilePage', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.fileList = res.data.data.pageData this.fileList = res.data.data.pageData
this.loading = false this.loading = false
} }
}) })
}, },
AddCustomerFile(){ AddCustomerFile() {
this.apipost('/api/Customer/AddCustomerFile', this.fileMsg, res=>{ this.apipost('/api/Customer/AddCustomerFile', this.fileMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.msg.pageIndex = 1 this.msg.pageIndex = 1
this.getList() this.getList()
...@@ -106,13 +88,15 @@ export default { ...@@ -106,13 +88,15 @@ export default {
}) })
}, },
// 删除 // 删除
deleteItem(id){ deleteItem(id) {
this.$confirm('确定删除此附件,删除后不可恢复', '提示', { this.$confirm('确定删除此附件,删除后不可恢复', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.apipost('/api/Customer/DelCustomerFile', {IDs: id}, res=>{ this.apipost('/api/Customer/DelCustomerFile', {
IDs: id
}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.msg.pageIndex = 1 this.msg.pageIndex = 1
this.getList() this.getList()
...@@ -135,7 +119,6 @@ export default { ...@@ -135,7 +119,6 @@ export default {
}, },
// 上传附件 // 上传附件
uploadImg2(file) { uploadImg2(file) {
console.log(file)
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
...@@ -147,5 +130,5 @@ export default { ...@@ -147,5 +130,5 @@ export default {
}); });
}, },
} }
} }
</script> </script>
\ No newline at end of file
...@@ -545,10 +545,10 @@ export default { ...@@ -545,10 +545,10 @@ export default {
}); });
}, },
handleEdit(index, row) { handleEdit(index, row) {
console.log(index, row);
}, },
handleDelete(index, row) { handleDelete(index, row) {
console.log(index, row);
}, },
toggleSelection(rows) { toggleSelection(rows) {
if (rows) { if (rows) {
......
This diff is collapsed.
This diff is collapsed.
...@@ -485,7 +485,6 @@ export default { ...@@ -485,7 +485,6 @@ export default {
watch: { watch: {
CustomerId: { CustomerId: {
handler(val, oldVal) { handler(val, oldVal) {
console.log(val);
}, },
deep: true, deep: true,
}, },
......
...@@ -303,7 +303,6 @@ export default { ...@@ -303,7 +303,6 @@ export default {
SceneName: '', SceneName: '',
IsDefault: 0, IsDefault: 0,
} }
console.log(val)
}, },
deep:true deep:true
} }
...@@ -324,7 +323,6 @@ export default { ...@@ -324,7 +323,6 @@ export default {
arr.push(item[i]) arr.push(item[i])
} }
arr.map((x, index)=>{ arr.map((x, index)=>{
console.log(x)
this.sceneList.map((s, sIndex)=>{ this.sceneList.map((s, sIndex)=>{
if(x.name === s.FieldName) { if(x.name === s.FieldName) {
let msg = { let msg = {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -104,7 +104,6 @@ ...@@ -104,7 +104,6 @@
<el-table-column prop="MobilePhone" label="手机号码" width="120" v-if="queryType[1].show" <el-table-column prop="MobilePhone" label="手机号码" width="120" v-if="queryType[1].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="CustomerSourceTypeStr" label="客户来源" v-if="queryType[3].show" <el-table-column prop="CustomerSourceTypeStr" label="客户来源" v-if="queryType[3].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
...@@ -530,6 +529,7 @@ ...@@ -530,6 +529,7 @@
$this.dialogTableVisible = false; $this.dialogTableVisible = false;
}); });
this.GetSceneEmployeeList(); this.GetSceneEmployeeList();
//保存场景
this.MsgBus.$on("sceneSave", function (msg) { this.MsgBus.$on("sceneSave", function (msg) {
$this.sceneList = [...msg]; $this.sceneList = [...msg];
$this.GetSceneEmployeeList(); $this.GetSceneEmployeeList();
...@@ -540,6 +540,7 @@ ...@@ -540,6 +540,7 @@
$this.msg.Data = obj; $this.msg.Data = obj;
$this.getList(); $this.getList();
}); });
//编辑场景
this.MsgBus.$on("editScene", function () { this.MsgBus.$on("editScene", function () {
$this.GetSceneEmployeeList(); $this.GetSceneEmployeeList();
}); });
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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