Commit c9096f9d authored by zhengke's avatar zhengke

修改

parent 063be834
......@@ -231,8 +231,16 @@ const CustomerModule = () => {
console.log('getChild', deptArray)
//数据处理 获取夏利是 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
......@@ -21,7 +21,7 @@
</template>
</q-input>
</div>
<div class="col-2">
<div class="col-3">
<q-select
filled
option-value="Id"
......@@ -33,7 +33,7 @@
/>
</div>
<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="创建时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
......@@ -53,7 +53,7 @@
</template>
</q-input>
</div>
<div class="col-2">
<div class="col-3">
<q-input filled v-model="msg.CreateETime" mask="date" @range-end="getCustomerList(msg)" placeholder="创建时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
......@@ -75,7 +75,7 @@
</div>
</template>
<template v-if="TimeObj.timeWay == 2">
<div class="col-2">
<div class="col-3">
<q-input filled v-model="msg.FriendSTime" mask="date" placeholder="添加时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
......@@ -95,7 +95,7 @@
</template>
</q-input>
</div>
<div class="col-2">
<div class="col-3">
<q-input filled v-model="msg.FriendETime" mask="date" placeholder="添加时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
......@@ -116,7 +116,7 @@
</q-input>
</div>
</template>
<div class="col-2">
<div class="col-3">
<q-select
filled
option-value="Id"
......@@ -127,11 +127,12 @@
map-options
/>
</div>
<div class="col-2" v-if="customSetObj.customWay == 1">
<div class="col-3" v-if="customSetObj.customWay == 1">
<q-select
filled
label="请选择"
use-chips
@update:model-value="getCkedFriend"
option-value="Id"
option-label="Name"
:options="friendOptions"
......@@ -139,7 +140,7 @@
multiple
/>
</div>
<div class="col-2" v-if="customSetObj.customWay == 2">
<div class="col-3" v-if="customSetObj.customWay == 2">
<q-select
filled
label="请选择"
......@@ -155,16 +156,6 @@
<q-input filled v-model="msg.Q_NotFollowUpDay" label="几天未跟进"></q-input>
</div>
<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
:treeData="data.EmployeeList"
:defaultArray="data.defaultArray"
......@@ -176,7 +167,7 @@
@getChild="getChild"
></selectTree>
</div>
<div class="col-2">
<div class="col-3">
<q-btn color="primary" size="sm" label="导入" />
<q-btn color="primary" size="sm" style="margin-left:20px;" label="导出" />
</div>
......@@ -246,7 +237,8 @@ export default defineComponent({
friendObj,
friendOptions,
getEmployeeData,
getChild
getChild,
getCkedFriend
} = CustomerModule()
let ticked = ref([])
let expanded = ref([])
......@@ -275,7 +267,8 @@ export default defineComponent({
getEmployeeData,
ticked,
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