Commit 90b38508 authored by 罗超's avatar 罗超

1

parent de25e559
...@@ -14,24 +14,24 @@ import Axios from './axios' ...@@ -14,24 +14,24 @@ import Axios from './axios'
* @property {string} password -用户密码 * @property {string} password -用户密码
*/ */
interface CutomerParams { interface CutomerParams {
PageIndex: number, PageIndex: number
PageSize: number, PageSize: number
pageCount: number, pageCount: number
CorpName: string, //企业名称 CorpName: string //企业名称
CustomerName: string, //备注名 CustomerName: string //备注名
WeChatName: string, //昵称 WeChatName: string //昵称
CustomerMobile: string, //手机号码 CustomerMobile: string //手机号码
CreateSTime: string, //创建开始时间 CreateSTime: string //创建开始时间
CreateETime: string, //创建结束时间 CreateETime: string //创建结束时间
FriendSTime: string, //好友开始时间 FriendSTime: string //好友开始时间
FriendETime: string, //好友结束时间 FriendETime: string //好友结束时间
Q_NotFollowUpDay: number, //几天未跟进 Q_NotFollowUpDay: number //几天未跟进
Q_Friends: string, //好友关系 多选逗号分隔、 Q_Friends: string //好友关系 多选逗号分隔、
Q_AddWay: string, //获取来源 多选英文逗号分隔 Q_AddWay: string //获取来源 多选英文逗号分隔
EmpId: number, //员工id EmpId: number //员工id
CustomerType: number, //类型1微信用户 2企业微信用户 CustomerType: number //类型1微信用户 2企业微信用户
SelectList: Array<any>, //自定义查询 SelectList: Array<any> //自定义查询
OrderBy: number, //排序 OrderBy: number //排序
AddCondition: number //查询条件 AddCondition: number //查询条件
} }
......
...@@ -31,11 +31,10 @@ export default { ...@@ -31,11 +31,10 @@ export default {
const myAllCol = computed(() => { const myAllCol = computed(() => {
return props.allCol return props.allCol
}) })
const showCol = computed(() => { const showCol = computed(() => {
console.log(props.modelValue)
return props.modelValue return props.modelValue
}) })
const changeVisible = (e) => { const changeVisible = (e) => {
if (e.visible) { if (e.visible) {
showCol.value.push(e.value) showCol.value.push(e.value)
...@@ -43,7 +42,6 @@ export default { ...@@ -43,7 +42,6 @@ export default {
showCol.value.splice(showCol.value.indexOf(e.value), 1) showCol.value.splice(showCol.value.indexOf(e.value), 1)
} }
context.emit('update:modelValue', showCol.value) context.emit('update:modelValue', showCol.value)
console.log(showCol.value)
} }
return { myAllCol, scrollStyle, changeVisible } return { myAllCol, scrollStyle, changeVisible }
......
This diff is collapsed.
This diff is collapsed.
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<q-btn color="primary" :disable="!PublicGetDeptState" unelevated label="修改" size="xs" class="q-ml-lg" <q-btn color="primary" :disable="!PublicGetDeptState" unelevated label="修改" size="xs" class="q-ml-lg"
@click="checkedPublicGetDept" /> @click="checkedPublicGetDept" />
</div> </div>
<div> <div v-if="PublicGetDeptState">
<div v-for="(item,index) in PublicGetDeptNameList" :key="index" class="dept-item"> <div v-for="(item,index) in PublicGetDeptNameList" :key="index" class="dept-item">
<div class="flex justify-center items-center"> <div class="flex justify-center items-center">
<q-icon name="work" color="primary" v-if="item.Type==1" /> <q-icon name="work" color="primary" v-if="item.Type==1" />
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
<Abandon v-model:AabandonType="data.AbandonType" v-model:AbandonDept="data.AbandonDept" <Abandon v-model:AabandonType="data.AbandonType" v-model:AbandonDept="data.AbandonDept"
v-model:AbandonAudit="data.AbandonAudit" :AbandonReasonList="data.AbandonReasonList" v-model:AbandonAudit="data.AbandonAudit" :AbandonReasonList="data.AbandonReasonList"
v-model:AbandonReason="data.AbandonReason" v-model:AbandonSelectType="data.AbandonSelectType" v-model:AbandonReason="data.AbandonReason" v-model:AbandonSelectType="data.AbandonSelectType"
:AbandonEmpList="data.AbandonEmpList" :AbandonDeptList="data.AbandonDeptList" :AbandonEmpList="data.AbandonEmpList" :AbandonDeptList="data.AbandonDeptList" />
/>
</div> </div>
<div v-if="curItem == 3" class="row"> <div v-if="curItem == 3" class="row">
<div class="collaborator-title">申请成为协作人:</div> <div class="collaborator-title">申请成为协作人:</div>
...@@ -226,7 +225,7 @@ ...@@ -226,7 +225,7 @@
AbandonReasonList: [], AbandonReasonList: [],
}, },
PublicGetDeptState: false, //以下部门允许领取公海客户 PublicGetDeptState: false, //以下部门允许领取公海客户
PublicGetDeptNameList:[],//允许领取公海客户列表 PublicGetDeptNameList: [], //允许领取公海客户列表
showDptDialog: false, showDptDialog: false,
DptDataTreeDefault: [], //部门默认值 DptDataTreeDefault: [], //部门默认值
}) })
...@@ -245,7 +244,15 @@ ...@@ -245,7 +244,15 @@
} else { } else {
data.PublicGetDeptState = true data.PublicGetDeptState = true
} }
const PublicGetDeptList = data.data.PublicGetDeptList.map(e => {
e.Type = 1
return e
})
const PublicGetEmpList = data.data.PublicGetEmpList.map(e => {
e.Type = 2
return e
})
data.PublicGetDeptNameList=[...PublicGetDeptList,...PublicGetEmpList]
}) })
} }
const getDptTree = () => { const getDptTree = () => {
...@@ -270,8 +277,7 @@ ...@@ -270,8 +277,7 @@
} }
//保存客户操作配置 //保存客户操作配置
const setCustomerConfig = () => { const setCustomerConfig = () => {
customerSetService.setCustomerConfig(data.data).then(res => { customerSetService.setCustomerConfig(data.data).then(() => {
console.log('set', res.data.Data)
message.successMsg('设置成功') message.successMsg('设置成功')
getConfig() getConfig()
}) })
...@@ -292,7 +298,7 @@ ...@@ -292,7 +298,7 @@
const dept = JSON.parse(JSON.stringify(val)) const dept = JSON.parse(JSON.stringify(val))
if (curItem.value === 1) { if (curItem.value === 1) {
data.data.PublicGetDept = ids data.data.PublicGetDept = ids
data.data.PublicGetDeptList = dept data.PublicGetDeptNameList = dept
} }
if (curItem.value === 2) { if (curItem.value === 2) {
data.data.AbandonDept = ids data.data.AbandonDept = ids
......
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