Browse Source

Merge remote-tracking branch 'origin/master'

master
dimengzhe 3 years ago
parent
commit
253f0d555f
  1. 7
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js
  2. 122
      anrui-buscenter/anrui-buscenter-ui/src/components/ButtonBar/index.vue
  3. 155
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiu.vue
  4. 98
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue
  5. 33
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue
  6. 143
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudangan.vue
  7. 102
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehugenjinjilu/genjinjiluguanli.vue
  8. 15
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/relation/xuanzekehuAdd.vue
  9. 48
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue
  10. 128
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue

7
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js

@ -1,5 +1,6 @@
import request from '@/utils/request'
// Pc端客户的意向车型接口
// Pc端客户基础信息条件分页查询数据的列表
export function pagerList(data) {
return request({
@ -48,12 +49,12 @@ export function UpdatePcCrmVehicleInfo(data) {
})
}
// 回显
// 回显 已改
export function getPcVehicleInfoBySid(data, user) {
return request({
url: '/crm/v1/crmvehicledemand/fetchSid/' + data,
url: '/crm/v1/crmvehicledemand/initVisitDemands/' + data,
method: 'get',
data: data
// data: data
})
}

122
anrui-buscenter/anrui-buscenter-ui/src/components/ButtonBar/index.vue

@ -0,0 +1,122 @@
<template>
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 按钮部分开始 :icon="item.icon"-->
<div>
<el-button v-for="item in btnList" :key="item.btnKey" :type="item.type" :size="item.size" :disabled="btndisabled" @click="btnHandle(item.btnKey)">
<svg-icon :iconClass="item.icon"/>{{ item.btnLabel }}
</el-button>
</div>
<!--end 按钮部分结束-->
</div>
<!--标题按钮部分结束-->
</template>
<script>
export default {
name: 'ButtonBar',
props: {
viewTitle: String,
btndisabled: { type: Boolean, default: false }
},
data() {
return {
currentPath: this.$route.path,
userSid: this.$store.getters.userInfo ? this.$store.getters.userInfo.userSid : '',
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'primary',
size: 'small',
icon: 'submit',
btnKey: 'doSubmit',
btnLabel: '提交'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'success',
size: 'small',
icon: 'Import',
btnKey: 'doImport',
btnLabel: '导入'
},
{
type: 'success',
size: 'small',
icon: 'export',
btnKey: 'build',
btnLabel: '导出'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
]
}
},
created: function() {
this.initPermission()
},
methods: {
initPermission() {
console.log('*******************当前路径 ' + this.currentPath)
console.log('*******************当前用户 ' + this.userSid)
const params = {
currentPath: this.currentPath,
userSid: this.userSid
}
// req
// .buttonPermission(params)
// .then(resp => {
// if (resp.success) {
// this.btnList = resp.data
// }
// })
// .catch(e => {
// console.log('' + e)
// })
},
btnHandle(btnKey) {
this.$emit('btnhandle', btnKey)
},
setButtonList(value) {
this.btnList = value
}
}
}
</script>
<style scoped>
.svg-icon {
width: 1.2em;
height: 1.2em;
vertical-align: -0.16em;
fill: currentColor;
overflow: hidden;
margin-right: 3px;
}
</style>

155
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiu.vue

@ -1,25 +1,28 @@
<template>
<div class="app-container">
<div v-show="viewState ==1">
<div class="tab-header webtop">
<div>{{ this.customerName }}客户-意向车型</div>
<div>
<el-button v-show="btnVisible" type="primary" size="small" icon="el-icon-plus" @click="handleCreate()">新增
</el-button>
<!-- <el-button type="primary" size="small" @click="handleUpdate()">编辑</el-button> -->
<el-button v-show="btnVisible" type="danger" size="small" icon="el-icon-delete" @click="handleDelete()">删除
</el-button>
<el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button>
</div>
</div>
<button-bar :view-title=" this.customerName + '客户-意向车型'" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!-- <div class="tab-header webtop">-->
<!-- <div>{{ this.customerName }}客户-意向车型</div>-->
<!-- <div>-->
<!-- <el-button v-show="btnVisible" type="primary" size="small" icon="el-icon-plus" @click="handleCreate()">新增-->
<!-- </el-button>-->
<!-- &lt;!&ndash; <el-button type="primary" size="small" @click="handleUpdate()">编辑</el-button> &ndash;&gt;-->
<!-- <el-button v-show="btnVisible" type="danger" size="small" icon="el-icon-delete" @click="handleDelete()">删除-->
<!-- </el-button>-->
<!-- <el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button>-->
<!-- </div>-->
<!-- </div>-->
<div class="webcon">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="品牌">
<el-select v-model="listQuery.params.brandName" class="addinputw" placeholder="请选择" @change="changePinPai" style="width:200px">
<el-option v-for="(item, index) in brand_list" :key="index" :label="item.brandName" :value="item.sid"/>
<el-select v-model="listQuery.params.brandName" class="addinputw" placeholder="请选择"
@change="changePinPai" style="width:200px">
<el-option v-for="(item, index) in brand_list" :key="index" :label="item.brandName"
:value="item.sid"/>
</el-select>
</el-form-item>
<el-form-item label="车型">
@ -107,19 +110,19 @@
</div>
</div>
</div>
<cheliangxuqiuAdd v-show="viewState ==2" ref="divadd" @handleReturn="handleReturn_copy"/>
<cheliangxuqiuinfo v-show="viewState ==3" ref="divinfo" @handleReturn="handleReturn_copy"/>
<cheliangxuqiuAdd v-show="viewState == 2 || viewState == 3 " ref="divadd" @handleReturn="handleReturn_copy"/>
<cheliangxuqiuinfo v-show="viewState == 4" ref="divinfo" @handleReturn="handleReturn_copy"/>
</div>
</template>
<script>
import { pagerList, delBySids } from '@/api/jichuxinxi/crmvehicle'
import {delBySids, pagerList} from '@/api/jichuxinxi/crmvehicle'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import { getNamesDownBySid, getPinpai, getSelectDown } from '@/api/dictcommons/basemanufacturer'
import { typeValues } from '@/api/dictcommons/shujuzidian'
import { loginDetails } from '@/api/dictcommons/basemanufacturer'
import { getStorage } from '@/utils/auth'
import ButtonBar from '@/components/ButtonBar'
import {getSelectDown, loginDetails} from '@/api/dictcommons/basemanufacturer'
import {typeValues} from '@/api/dictcommons/shujuzidian'
import {getStorage} from '@/utils/auth'
import cheliangxuqiuAdd from './cheliangxuqiuAdd'
import cheliangxuqiuinfo from './cheliangxuqiuinfo'
import {brandDown, getPathSidByUserSid} from "@/api/chexingchaxun/modelinquire";
@ -130,17 +133,48 @@ export default {
cheliangxuqiuAdd,
cheliangxuqiuinfo,
Pagination,
pageye
pageye,
ButtonBar,
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
viewState: 1,
btnVisible: false,
customerSid: '',
customerName: '',
isSearchShow: false,
searchxianshitit: '隐藏查询条件',
btndisabled: false,
tableKey: 0,
sids: [],
list: [],
@ -173,11 +207,33 @@ export default {
temp: {} //
}
},
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() {
//
//
},
methods: {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@ -298,7 +354,6 @@ export default {
const aa = []
const bb = []
const cc = []
console.log('112233', row)
row.forEach((element) => {
aa.push(element.sid)
})
@ -313,35 +368,35 @@ export default {
console.log('勾选记录', this.sids)
},
//
handleCreate() {
toAdd() {
this.viewState = 2
this.$refs.divadd.openCreate(this.stateId)
},
//
handleUpdate() {
toEdit() {
if (this.sids.length === 1) {
this.$refs.divadd.openUpdate(this.sids[0], this.stateId, () => {
})
this.viewState = 3
this.$refs['divadd'].openUpdate(this.sids[0])
// this.$refs.divadd.openUpdate(this.sids[0], this.stateId, () => {
// })
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
this.$message({
showClose: true,
message: '不能选中多个修改!',
type: 'info',
duration: 2000
})
type: 'error'
});
} else {
this.$notify({
title: '提示',
message: '没有选择信息!',
type: 'error',
duration: 2000
})
this.$message({
showClose: true,
message: '请选择一条信息!',
type: 'error'
});
return
}
},
//
handleCheck(row) {
this.viewState = 3
this.viewState = 4
this.$refs['divinfo'].openinfo(row.sid, this.stateId)
},
// ------------------
@ -352,7 +407,7 @@ export default {
return pageindex
},
//
handleReturn() {
doClose() {
this.btnVisible = false
if (this.upLevel == '0') {
this.$emit('handleReturn')
@ -398,7 +453,7 @@ export default {
this.getList()
},
// ID
handleDelete() {
doDel() {
if (this.sids.length == 0) {
this.$message({
showClose: true,
@ -415,21 +470,19 @@ export default {
}).then(() => {
if (this.sids.length > 0) {
delBySids(this.sids).then((response) => {
console.log('3455', response)
if (response.code === '200') {
this.$notify({
title: '提示',
this.$message({
showClose: true,
message: '删除成功',
type: 'success',
duration: 2000
})
type: 'success'
});
this.getList()
} else {
this.$notify({
title: '删除失败',
message: response.msg,
this.$message({
showClose: true,
message: '删除失败',
type: 'error'
})
});
}
})
}

98
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue

@ -24,8 +24,10 @@
<el-col :span="4" class="el-form-item-right"> 品牌</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="temp.brandSid" style="width:50%" placeholder="请选择" @change="changePinPai">
<el-option v-for="(item, index) in brand_list" :key="index" :label="item.brandName" :value="item.sid"/>
<el-select v-model="temp.brandSid" :disabled="stateId == '1'" style="width:50%" placeholder="请选择"
@change="changePinPai">
<el-option v-for="(item, index) in brand_list" :key="index" :label="item.brandName"
:value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
@ -40,7 +42,7 @@
<div class="vehicle">
<span>{{ temp.modelName }}</span>
<div>
<el-button type="primary" size="small" @click="handSelect">车型选择</el-button>
<el-button type="primary" size="small" v-show="this.stateId !== '1'" @click="handSelect">车型选择</el-button>
</div>
</div>
</el-form-item>
@ -62,20 +64,23 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="el-form-item-right"> 选装内容</el-col>
<el-col :span="20">
<el-form-item>
<el-input v-model="temp.changeOptions" placeholder="" style="width:81%" clearable/>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right"> 选装内容</el-col>-->
<!-- <el-col :span="20">-->
<!-- <el-form-item>-->
<!-- <el-input v-model="temp.changeOptions" placeholder="" style="width:81%" clearable/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<el-row>
<el-col :span="4" class="el-form-item-right">销售指导价(万元)</el-col>
<el-col :span="8">
<el-form-item prop="saleReferencePrice">
<el-input v-model="temp.saleReferencePrice" maxlength="20" placeholder="" style="width:50%" clearable readonly/>
<el-form-item>
<span>{{ temp.saleReferencePrice }}</span>
</el-form-item>
<!-- <el-form-item prop="saleReferencePrice">-->
<!-- <el-input v-model="" maxlength="20" placeholder="" style="width:50%" clearable readonly/>-->
<!-- </el-form-item>-->
</el-col>
<el-col :span="4" class="el-form-item-right">车型报价</el-col>
<el-col :span="8">
@ -106,8 +111,9 @@
</el-form-item>
</el-col>
</el-row>
<!-- 选择贷款后展示的金融需求 -->
<div v-if="this.ifdictKey">
<div class="title" style="40px">金融需求</div>
<div class="title">金融需求</div>
<el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right" label-width="190px" :rules="rules">
<el-row>
<el-col :span="4" class="el-form-item-right">
@ -126,7 +132,8 @@
<el-col :span="8">
<el-form-item>
<el-select v-model="crmFindemandVo_copy.managementName" placeholder="请选择" style="width:50%">
<el-option v-for="(item, index) in supplier" :key="item.sid" :label="item.bankName" :value="item.bankName"/>
<el-option v-for="(item, index) in supplier" :key="item.sid" :label="item.manageName"
:value="item.manageName"/>
</el-select>
</el-form-item>
</el-col>
@ -306,37 +313,38 @@ export default {
// this.postHuoquyonghu()
this.getPathSid()
},
openUpdate(sid, user, checkin, showed) {
openUpdate(sid) {
this.stateId = '1'
// this.kehusid = sid
this.stateId = sid
this.userSidL = user
this.enter = checkin
if (this.stateId !== '0') {
getPcVehicleInfoBySid(this.stateId, this.userSidL).then((response) => {
if (response.code === '200') {
// this.$refs['dataForm'].clearValidate()
this.temp = response.data
this.crmFindemandVo_copy = this.temp.crmFindemandVo
this.aseTypeBox = [this.temp.purchaseMethod]
if (this.temp.purchaseMethodValue == '贷款') {
this.ifdictKey = true
} else {
this.ifdictKey = false
}
if (this.temp.crmFindemandVo.loanSubjectType !== '') {
this.principal.forEach((e) => {
if (e.dictValue == this.temp.crmFindemandVo.loanSubjectType) {
this.loanSubjectType = [e.dictKey]
}
})
}
this.getCheXingName(response.data.brandSid)
if (showed && typeof showed === 'function') {
showed()
}
}
})
}
// this.stateId = sid
// this.userSidL = user
// this.enter = checkin
getPcVehicleInfoBySid(sid).then((response) => {
if (response.code === '200') {
// this.temp = response.data
// this.temp.brandSid = response.data.brand
// this.aseTypeBox = [this.temp.purchaseMethod]
// if (this.temp.purchaseMethodValue == '') {
// this.ifdictKey = true
// this.crmFindemandVo_copy = response.data.crmFindemandVo
// } else {
// this.ifdictKey = false
// }
// if (this.temp.crmFindemandVo.loanSubjectType !== '') {
// this.principal.forEach((e) => {
// if (e.dictValue == this.temp.crmFindemandVo.loanSubjectType) {
// this.loanSubjectType = [e.dictKey]
// }
// })
// }
// this.getCheXingName(response.data.brandSid)
// if (showed && typeof showed === 'function') {
// showed()
// }
}
})
this.init()
},
openCreate(sid, checkin) {

33
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue

@ -8,7 +8,7 @@
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules">
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="title">车型详情</div>
<el-row>
<el-col :span="4" class="el-form-item-right">
@ -48,14 +48,14 @@
{{ temp.otherConfig }}
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="el-form-item-right">
选装内容
</el-col>
<el-col :span="20" class="el-form-item-left">
{{ temp.changeOptions }}
</el-col>
</el-row>
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right">-->
<!-- 选装内容-->
<!-- </el-col>-->
<!-- <el-col :span="20" class="el-form-item-left">-->
<!-- {{ temp.changeOptions }}-->
<!-- </el-col>-->
<!-- </el-row>-->
<el-row>
<el-col :span="4" class="el-form-item-right">
销售参考价
@ -94,8 +94,7 @@
</el-row>
<div v-if="this.ifdictKey">
<div class="title">金融需求</div>
<el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right" label-width="190px"
:rules="rules">
<el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right">
<el-row>
<el-col :span="4" class="el-form-item-right">
贷款主体类型
@ -163,7 +162,7 @@
</template>
<script>
import { getPcVehicleInfoBySid } from '@/api/jichuxinxi/crmvehicle'
import {getPcVehicleInfoBySid} from '@/api/jichuxinxi/crmvehicle'
export default {
name: 'Cheliangxuqiuinfo',
@ -237,6 +236,16 @@ export default {
</script>
<style scoped>
.el-form-item-right {
font-size: 14px;
font-weight: 700;
color: #606266;
line-height: 3 !important;
text-align: right;
}
.el-form-item-left {
font-size: 14px;
color: #606266;
line-height: 3 !important;
text-align: right;
}

143
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudangan.vue

@ -1,18 +1,20 @@
<template>
<div class="app-container">
<div v-show="viewState ==1">
<div class="tab-header webtop">
<div>客户管理</div>
<div>
<el-button type="primary" size="small" icon="el-icon-plus" @click="handleCreate()">新增</el-button>
<el-button type="primary" size="small" icon="el-icon-edit" @click="handleUpdate()">编辑</el-button>
<el-button type="success" size="small" icon="el-icon-user" @click="handleGenjin()">客户跟进</el-button>
<el-button type="success" size="small" icon="el-icon-user" @click="handleZiliao()">客户档案</el-button>
<!-- <el-button type="danger" size="small" @click="handleDelete()">删除</el-button>-->
<el-button type="success" size="small">导入</el-button>
<el-button type="success" size="small" @click="handleDaoChu()">导出</el-button>
<el-button type="info" size="small" icon="el-icon-close">关闭</el-button>
</div>
<button-bar view-title="客户管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!-- <div class="tab-header webtop">-->
<!-- <div>客户管理</div>-->
<!-- <div>-->
<!-- <el-button type="primary" size="small" icon="el-icon-plus" @click="handleCreate()">新增</el-button>-->
<!-- <el-button type="primary" size="small" icon="el-icon-edit" @click="handleUpdate()">编辑</el-button>-->
<!-- <el-button type="success" size="small" icon="el-icon-user" @click="handleGenjin()">客户跟进</el-button>-->
<!-- <el-button type="success" size="small" icon="el-icon-user" @click="handleZiliao()">客户档案</el-button>-->
<!-- &lt;!&ndash; <el-button type="danger" size="small" @click="handleDelete()">删除</el-button>&ndash;&gt;-->
<!-- <el-button type="success" size="small">导入</el-button>-->
<!-- <el-button type="success" size="small" @click="handleDaoChu()">导出</el-button>-->
<!-- <el-button type="info" size="small" icon="el-icon-close">关闭</el-button>-->
<!-- </div>-->
<!-- </div>-->
<!--登记类型弹窗-->
<el-dialog
title="客户登记-类型"
@ -38,7 +40,7 @@
<el-button @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>
</div>
<div class="webcon">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
@ -147,6 +149,7 @@ import {deleteBySids, pagerList} from '@/api/jichuxinxi/crmcustomer'
import {typeValues} from '@/api/dictcommons/shujuzidian'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import kehudanganAdd from './kehudanganAdd.vue'
import kehudanganInfo from './kehudanganinfo.vue'
import genjinjiluguanli from '@/views/kehuguanli/kehugenjinjilu/genjinjiluguanli.vue'
@ -158,6 +161,7 @@ export default {
components: {
Pagination,
pageye,
ButtonBar,
kehudanganAdd,
kehudanganInfo,
genjinjiluguanli,
@ -166,6 +170,65 @@ export default {
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'success',
size: 'small',
icon: 'user',
btnKey: 'toGenjin',
btnLabel: '客户跟进'
},
{
type: 'success',
size: 'small',
icon: 'user',
btnKey: 'toZiliao',
btnLabel: '客户档案'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'success',
size: 'small',
icon: 'Import',
btnKey: 'doImport',
btnLabel: '导入'
},
{
type: 'success',
size: 'small',
icon: 'export',
btnKey: 'build',
btnLabel: '导出'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
upLevel: '0',
dialogVisible: false, //
formLabelWidth: '110px',
@ -213,12 +276,46 @@ export default {
// ------------------------------------
}
},
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() {
//
this.init()
//
},
methods: {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'toGenjin':
this.toGenjin()
break
case 'toZiliao':
this.toZiliao()
break
case 'doDel':
this.doDel()
break
case 'doImport':
this.doImport()
break
case 'export':
this.export()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@ -281,7 +378,7 @@ export default {
this.getList()
},
//
handleCreate() {
toAdd() {
this.dialogVisible = true
},
handleOpen() {
@ -334,7 +431,7 @@ export default {
console.log('勾选记录', this.sids)
},
//
handleUpdate() {
toEdit() {
if (this.sids.length === 1) {
this.dialogStatus = 'update'
this.viewState = 3
@ -357,7 +454,7 @@ export default {
}
},
//
handleGenjin() {
toGenjin() {
if (this.sids.length === 1) {
this.dialogStatus = 'update'
this.viewState = 5
@ -380,7 +477,7 @@ export default {
}
},
//
handleZiliao() {
toZiliao() {
if (this.sids.length === 1) {
this.dialogStatus = 'update'
this.viewState = 7
@ -408,7 +505,7 @@ export default {
this.$refs['Info'].openInfo(row.sid)
},
// ID
handleDelete() {
doDel() {
if (this.sids.length) {
const sids = this.sids.toString()
deleteBySids(sids).then((response) => {
@ -437,9 +534,13 @@ export default {
})
return
}
},
//
doImport(){
},
//
handleDaoChu() {
export() {
// basefinbankExportExcel(this.sids).then((res) => {
// const blob = new Blob([res], {
// type: 'application/vnd.ms-excel',
@ -525,6 +626,10 @@ export default {
this.customerTypeList.visitWay = bb.name
this.customerTypeList.visitWayKey = bb.vaule
},
doClose(){
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
}
}
}
</script>

102
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehugenjinjilu/genjinjiluguanli.vue

@ -1,25 +1,28 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>客户跟进记录</div>
<div>
<el-button v-show="btnVisible" type="primary" size="small" icon="el-icon-plus" @click="handleCreate()">新增
</el-button>
<el-button v-show="btnVisible" type="primary" size="small" icon="" @click="handleUpdate()">编辑</el-button>
<!-- <el-button type="danger" size="small" @click="handleDelete()">删除</el-button> -->
<el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button>
</div>
</div>
<button-bar view-title="客户跟进记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!-- <div class="tab-header webtop">-->
<!-- <div>客户跟进记录</div>-->
<!-- <div>-->
<!-- <el-button v-show="btnVisible" type="primary" size="small" icon="el-icon-plus" @click="handleCreate()">新增-->
<!-- </el-button>-->
<!-- <el-button v-show="btnVisible" type="primary" size="small" icon="" @click="handleUpdate()">编辑</el-button>-->
<!-- &lt;!&ndash; <el-button type="danger" size="small" @click="handleDelete()">删除</el-button> &ndash;&gt;-->
<!-- <el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button>-->
<!-- </div>-->
<!-- </div>-->
<div class="webcon">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item class="formItem" label="跟进时间">
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.start_follow_time" clearable style="width: 160px;" type="date" placeholder="开始日期"/>
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.start_follow_time" clearable
style="width: 160px;" type="date" placeholder="开始日期"/>
<div class="line"></div>
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.end_follow_time" clearable style="width: 160px;" type="date" placeholder="结束日期"/>
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.end_follow_time" clearable
style="width: 160px;" type="date" placeholder="结束日期"/>
</el-form-item>
<el-form-item label="跟进形式">
<el-select v-model="listQuery.params.follow_form" class="addinputw" placeholder="请输入" @change="getXingshi">
@ -118,15 +121,16 @@
</template>
<script>
import { pagerList, del } from '@/api/jichuxinxi/crmvisit'
import {del, pagerList} from '@/api/jichuxinxi/crmvisit'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import genjinjiluAdd from './genjinjiliAdd.vue'
import { typeValues } from '@/api/dictcommons/shujuzidian'
import {typeValues} from '@/api/dictcommons/shujuzidian'
import genjinjiluInfo from './genjinjiluinfo.vue'
import { loginDetails } from '@/api/dictcommons/basemanufacturer'
import { getStorage } from '@/utils/auth'
import { getPcAppendix } from '@/api/jichuxinxi/commonappendix'
import {loginDetails} from '@/api/dictcommons/basemanufacturer'
import {getStorage} from '@/utils/auth'
import {getPcAppendix} from '@/api/jichuxinxi/commonappendix'
import cheliangxuqiu from '../cheliangxuqiu/cheliangxuqiu'
export default {
@ -134,12 +138,44 @@ export default {
components: {
Pagination,
pageye,
ButtonBar,
genjinjiluAdd,
genjinjiluInfo,
cheliangxuqiu
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
viewState: 1,
btnVisible: false,
upLevel: '1',
@ -182,11 +218,33 @@ export default {
dialogFormVisible: false
}
},
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() {
//
this.init()
},
methods: {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@ -279,7 +337,7 @@ export default {
this.getList()
},
//
handleCreate() {
toAdd() {
this.viewState = 2
this.$refs['addAndUpdate'].openCreate(this.Kehu_Name, this.kehu_uesrsid)
},
@ -292,7 +350,7 @@ export default {
this.sids = aa
},
//
handleUpdate() {
toEdit() {
if (this.sids.length === 1) {
this.dialogStatus = 'update'
this.viewState = 3
@ -334,7 +392,7 @@ export default {
this.$refs.openCheXu.cheLiang(this.kehu_uesrsid, this.upLevel, this.Kehu_Name, '02')
},
// ID
handleDelete() {
doDel() {
del(this.sids).then((response) => {
if (response.code === '200') {
this.$notify({
@ -361,6 +419,10 @@ export default {
type: 'warning'
})
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
},
//
dataCreated() {
this.getList()

15
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/relation/xuanzekehuAdd.vue

@ -508,7 +508,6 @@
Customeryou: '',
checkin: '', //
kehusid: '',
customerType: '',
YongHuid: [],
visible: false,
stateId: 0,
@ -649,6 +648,7 @@
openCreate(customerTypeList, showed) {
this.resetTemp()
this.temp.customerType = customerTypeList.customerType
this.temp.customerTypeKey = customerTypeList.customerTypeKey
this.temp.visitWay = customerTypeList.visitWay
this.temp.visitWayKey = customerTypeList.visitWayKey
this.$refs['dataForm'].clearValidate()
@ -663,18 +663,9 @@
this.temp.certificateType='营业执照'
this.temp.certificateTypeKey='02'
}
typeValues({type: 'customerType'}).then((res) => {
typeValues({psid: customerTypeList.psid, type: this.customerClass}).then((res) => {
if (res.code === '200') {
this.customerType_list = res.data
this.customerType_list.forEach((e) => {
if (e.dictValue == this.temp.customerType) {
typeValues({psid: e.sid, type: this.customerClass}).then((res)=>{
if (res.code === '200') {
this.merClass = res.data
}
})
}
})
this.merClass = res.data
}
})
}

48
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue

@ -683,10 +683,17 @@
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item :label-width="formLabelWidth" class="diaForm" label="客户类型">
<el-radio v-model="customerTypeList.customerType" label="个人">个人</el-radio>
<el-radio v-model="customerTypeList.customerType" label="企业">企业</el-radio>
<el-form-item label="客户类型" :label-width="formLabelWidth" class="diaForm">
<el-radio-group v-model="customerTypeList.customerType">
<el-radio v-for="item in merType" :key="item.dictKey" :label="item.dictValue"
@change="customerTypeChange">{{ item.dictValue }}
</el-radio>
</el-radio-group>
</el-form-item>
<!-- <el-form-item :label-width="formLabelWidth" class="diaForm" label="客户类型">-->
<!-- <el-radio v-model="customerTypeList.customerType" label="个人">个人</el-radio>-->
<!-- <el-radio v-model="customerTypeList.customerType" label="企业">企业</el-radio>-->
<!-- </el-form-item>-->
</el-form>
<span slot="footer" class="dialog-footer">
<el-button class="el-button-sure" type="primary" @click="handleOpen()"> </el-button>
@ -916,6 +923,7 @@ export default {
payType_list: [],
guaKaoCompanyList: [],
visitWay_list: [],
merType:[],
tableKey: 0,
tableKey2: 1,
tableKey3: 2,
@ -928,7 +936,9 @@ export default {
customerTypeList: {
visitWay: '', //
visitWayKey: '',
customerType: ''//
customerType: '', //
customerTypeKey: '',//
psid:''
},
temp: {
affiliatedCompany: '', //
@ -1101,6 +1111,13 @@ export default {
methods: {
// ========== ==========
getType() {
dictType({
type: 'customerType'
}).then((res) => {
if (res.code === '200') {
this.merType = res.data
}
})
// payType invoiceType
dictType({
type: 'purchaseType ',
@ -1801,6 +1818,13 @@ export default {
openCustomerCreate() {
this.customerVisible = true
},
//
customerTypeChange(val) {
const choosetItem = this.merType.filter((item) => item.dictValue == val)
this.customerTypeList.customerTypeKey = choosetItem[0].dictKey
this.customerTypeList.psid = choosetItem[0].sid
console.log('name:', this.customerTypeList.customerType, 'key:', this.customerTypeList.customerTypeKey,'sid',this.customerTypeList.psid)
},
//
handleOpen() {
if (this.customerTypeList.visitWay !== '' && this.customerTypeList.customerType !== '') {
@ -1812,7 +1836,9 @@ export default {
this.customerTypeList = {
visitWay: '',
visitWayKey: '',
customerType: ''
customerType: '',
customerTypeKey: '',
psid:'',
}
})
} else {
@ -2221,14 +2247,14 @@ export default {
moreConfig: modelData.otherConfig, //
specialConfig: '',
finalPrice: '',
type: type, //
// type: type, //
}
const countList = {
customerSid: this.temp.customerSid, //sid
modelConfigSid: this.temp.busSalesOrderModel.modelConfigSid, //sid
modelSid: this.temp.busSalesOrderModel.modelSid, //sid
staffSid: window.sessionStorage.getItem('staffSid'), //sid
type: 1, //
// type: 1, //
}
const caigouCount = {
configSid: this.temp.busSalesOrderModel.modelConfigSid, // sid
@ -2263,14 +2289,14 @@ export default {
moreConfig: modelData.otherConfig, //
specialConfig: '',
finalPrice: '',
type: type, //
// type: type, //
}
const countList = {
customerSid: this.temp.customerSid, //sid
modelConfigSid: this.temp.busSalesOrderModel.modelConfigSid, //sid
modelSid: this.temp.busSalesOrderModel.modelSid, //sid
staffSid: window.sessionStorage.getItem('staffSid'), //sid
type: 2, //
// type: 2, //
}
const caigouCount = {
configSid: this.temp.busSalesOrderModel.modelConfigSid, // sid
@ -2305,7 +2331,7 @@ export default {
moreConfig: modelData.moreConfig, //
specialConfig: '',
finalPrice: '',
type: 3, //
// type: 3, //
}
//
const countList = {
@ -2313,7 +2339,7 @@ export default {
modelConfigSid: this.temp.busSalesOrderModel.modelConfigSid, //sid
modelSid: this.temp.busSalesOrderModel.modelSid, //sid
staffSid: window.sessionStorage.getItem('staffSid'), //sid
type: 3, //
// type: 3, //
}
const caigouCount = {
configSid: this.temp.busSalesOrderModel.modelConfigSid, // sid

128
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue

@ -1,15 +1,7 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>销售政策管理</div>
<div>
<el-button type="primary" icon="el-icon-plus" size="small" @click="handleCreate()">新增</el-button>
<el-button type="primary" size="small">提交</el-button>
<el-button type="danger" icon="el-icon-delete" size="small" @click="handleDelete()">删除</el-button>
<el-button type="info" icon="el-icon-close" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<button-bar view-title="销售政策管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="webcon">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
@ -129,6 +121,7 @@
import {deleteBySids, selectSalesOrderList, typeValues} from '@/api/jichuxinxi/salepolicy'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import xiaoshouzhengceAdd from './xiaoshouzhengceAdd'
import xiaoshouzhengceInfo from './xiaoshouzhengceInfo'
@ -138,11 +131,43 @@ export default {
components: {
Pagination,
pageye,
ButtonBar,
xiaoshouzhengceAdd,
xiaoshouzhengceInfo,
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'submit',
btnKey: 'doSubmit',
btnLabel: '提交'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
disabled: false, //
isSearchShow: false,
searchxianshitit: '显示查询条件',
@ -181,6 +206,9 @@ export default {
nodeState: ''
}
},
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() {
//
this.init()
@ -188,6 +216,25 @@ export default {
this.getList()
},
methods: {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'doSubmit':
this.doSubmit()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@ -239,7 +286,7 @@ export default {
})
},
//
handleCreate() {
toAdd() {
this.viewState = 2
this.$refs['divadd'].showAdd()
},
@ -332,7 +379,7 @@ export default {
console.log('选择订单类型', this.billType)
},
// ID
handleDelete() {
doDel() {
if (this.sids.length > 0) {
const tip = '请确认是否删除所选记录?'
this.$confirm(tip, '提示', {
@ -360,31 +407,30 @@ export default {
})
})
} else {
this.$notify({
title: '提示',
message: '没有选择资方信息!!',
type: 'error',
duration: 2000
})
this.$message({
showClose: true,
message: '请选择至少一条记录!',
type: 'error'
});
return
}
},
handleReturn() {
doClose() {
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
}
},
//
// handleSubmit(row) {
// // if (this.sids.length == 1) {
// this.$confirm('', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning'
// }).then(() => {
// this.submitDto.businessSid = row.sid
// submitApprove(this.submitDto).then((response) => {
// if (response.code === '200') {
// this.updateDto.nodeState = response.data.nodeState
doSubmit(row) {
// // if (this.sids.length == 1) {
// this.$confirm('', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning'
// }).then(() => {
// this.submitDto.businessSid = row.sid
// submitApprove(this.submitDto).then((response) => {
// if (response.code === '200') {
// this.updateDto.nodeState = response.data.nodeState
// this.$notify({
// title: '',
// message: '',
@ -420,17 +466,17 @@ export default {
// })
// })
// // } else if (this.sids.length == 0) {
// // this.$notify({
// // title: '',
// // type: 'error',
// // })
// // } else if (this.sids.length > 1) {
// // this.$notify({
// // title: '',
// // type: 'error',
// // })
// // }
// },
// // this.$notify({
// // title: '',
// // type: 'error',
// // })
// // } else if (this.sids.length > 1) {
// // this.$notify({
// // title: '',
// // type: 'error',
// // })
// // }
},
}
}
</script>

Loading…
Cancel
Save