Commit c9096f9d authored by zhengke's avatar zhengke

修改

parent 063be834
...@@ -231,8 +231,16 @@ const CustomerModule = () => { ...@@ -231,8 +231,16 @@ const CustomerModule = () => {
console.log('getChild', deptArray) console.log('getChild', deptArray)
//数据处理 获取夏利是 1-2 前面代表部门还是人员 后面是原生ID //数据处理 获取夏利是 1-2 前面代表部门还是人员 后面是原生ID
} }
const getCkedFriend = (e)=>{
const Ids = e.map(x=>{
return x.Id
}).toString();
msg.Q_Friends = Ids;
getCustomerList(msg)
}
return { getCustomerList, getWayList, getEmployeeData, data, msg, title, TypeList, SeletObj, getSelectWay, TimeObj, TimeList, changePage, pagination, CustomList, customSetObj, friendObj, friendOptions, getChild } return { getCustomerList, getWayList, getEmployeeData, data, msg, title, TypeList, SeletObj, getSelectWay, TimeObj, TimeList, changePage, pagination,
CustomList, customSetObj, friendObj, friendOptions, getChild, getCkedFriend}
} }
export default CustomerModule export default CustomerModule
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-2"> <div class="col-3">
<q-select <q-select
filled filled
option-value="Id" option-value="Id"
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
/> />
</div> </div>
<template v-if="TimeObj.timeWay == 1"> <template v-if="TimeObj.timeWay == 1">
<div class="col-2"> <div class="col-3">
<q-input filled v-model="msg.CreateSTime" mask="date" @update:model-value="getCustomerList(msg)" placeholder="创建时间"> <q-input filled v-model="msg.CreateSTime" mask="date" @update:model-value="getCustomerList(msg)" placeholder="创建时间">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-2"> <div class="col-3">
<q-input filled v-model="msg.CreateETime" mask="date" @range-end="getCustomerList(msg)" placeholder="创建时间"> <q-input filled v-model="msg.CreateETime" mask="date" @range-end="getCustomerList(msg)" placeholder="创建时间">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</div> </div>
</template> </template>
<template v-if="TimeObj.timeWay == 2"> <template v-if="TimeObj.timeWay == 2">
<div class="col-2"> <div class="col-3">
<q-input filled v-model="msg.FriendSTime" mask="date" placeholder="添加时间"> <q-input filled v-model="msg.FriendSTime" mask="date" placeholder="添加时间">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-2"> <div class="col-3">
<q-input filled v-model="msg.FriendETime" mask="date" placeholder="添加时间"> <q-input filled v-model="msg.FriendETime" mask="date" placeholder="添加时间">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</q-input> </q-input>
</div> </div>
</template> </template>
<div class="col-2"> <div class="col-3">
<q-select <q-select
filled filled
option-value="Id" option-value="Id"
...@@ -127,11 +127,12 @@ ...@@ -127,11 +127,12 @@
map-options map-options
/> />
</div> </div>
<div class="col-2" v-if="customSetObj.customWay == 1"> <div class="col-3" v-if="customSetObj.customWay == 1">
<q-select <q-select
filled filled
label="请选择" label="请选择"
use-chips use-chips
@update:model-value="getCkedFriend"
option-value="Id" option-value="Id"
option-label="Name" option-label="Name"
:options="friendOptions" :options="friendOptions"
...@@ -139,7 +140,7 @@ ...@@ -139,7 +140,7 @@
multiple multiple
/> />
</div> </div>
<div class="col-2" v-if="customSetObj.customWay == 2"> <div class="col-3" v-if="customSetObj.customWay == 2">
<q-select <q-select
filled filled
label="请选择" label="请选择"
...@@ -155,16 +156,6 @@ ...@@ -155,16 +156,6 @@
<q-input filled v-model="msg.Q_NotFollowUpDay" label="几天未跟进"></q-input> <q-input filled v-model="msg.Q_NotFollowUpDay" label="几天未跟进"></q-input>
</div> </div>
<div class="col-3"> <div class="col-3">
<!-- <q-tree class="col-12 col-sm-6"
tick-strategy="leaf"
:nodes="data.EmployeeList"
v-model:ticked="ticked"
v-model:expanded="expanded"
node-key="DeptId"
label-key="DeptName"
children-key="ChildList"
default-expand-all
/>-->
<selectTree <selectTree
:treeData="data.EmployeeList" :treeData="data.EmployeeList"
:defaultArray="data.defaultArray" :defaultArray="data.defaultArray"
...@@ -176,7 +167,7 @@ ...@@ -176,7 +167,7 @@
@getChild="getChild" @getChild="getChild"
></selectTree> ></selectTree>
</div> </div>
<div class="col-2"> <div class="col-3">
<q-btn color="primary" size="sm" label="导入" /> <q-btn color="primary" size="sm" label="导入" />
<q-btn color="primary" size="sm" style="margin-left:20px;" label="导出" /> <q-btn color="primary" size="sm" style="margin-left:20px;" label="导出" />
</div> </div>
...@@ -246,7 +237,8 @@ export default defineComponent({ ...@@ -246,7 +237,8 @@ export default defineComponent({
friendObj, friendObj,
friendOptions, friendOptions,
getEmployeeData, getEmployeeData,
getChild getChild,
getCkedFriend
} = CustomerModule() } = CustomerModule()
let ticked = ref([]) let ticked = ref([])
let expanded = ref([]) let expanded = ref([])
...@@ -275,7 +267,8 @@ export default defineComponent({ ...@@ -275,7 +267,8 @@ export default defineComponent({
getEmployeeData, getEmployeeData,
ticked, ticked,
expanded, expanded,
getChild getChild,
getCkedFriend
} }
} }
}) })
......
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