Commit cffd8b77 authored by zhengke's avatar zhengke

1

parent c5222b54
...@@ -65,6 +65,30 @@ class CustomerService { ...@@ -65,6 +65,30 @@ class CustomerService {
data data
}) })
} }
//获取员工详情数据
static async getCustomInfo(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerInfo', {
method: 'post',
responseType: 'json',
data
})
}
//获取客户阶段下拉数据
static async getCustomStageList(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerStageList', {
method: 'post',
responseType: 'json',
data
})
}
//保存客户资料
static async saveCustomInfo(data: any): Promise<HttpResponse> {
return Axios('/QYCustomer/SetCustomerInfo', {
method: 'post',
responseType: 'json',
data
})
}
} }
export {CutomerParams} export {CutomerParams}
......
This diff is collapsed.
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
<img :src="props.row.WeChatPhoto" style="width:100%;height:100%" /> <img :src="props.row.WeChatPhoto" style="width:100%;height:100%" />
</div> </div>
<div> <div>
<div class="cutomer_Free">{{ props.row.CustomerName }}</div> <div class="cutomer_Free" @click="getCustomInfo(props)">{{ props.row.CustomerName }}</div>
<div class="customer_Wechat">{{ props.row.WeChatName }}</div> <div class="customer_Wechat">{{ props.row.WeChatName }}</div>
</div> </div>
</div> </div>
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
</template> </template>
<template v-slot:body-cell-LableList="props"> <template v-slot:body-cell-LableList="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<q-chip v-for="(item,index) in props.row.LableList">{{item}}</q-chip> <q-chip v-for="(item,index) in props.row.LableList" :key="index">{{item}}</q-chip>
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -211,6 +211,7 @@ ...@@ -211,6 +211,7 @@
/> />
</template> </template>
</q-table> </q-table>
<customRight v-if="isShowCustom" :CustomerId="CustomerId" @close="closeCustomer"></customRight>
</div> </div>
</q-page> </q-page>
</div> </div>
...@@ -219,9 +220,11 @@ ...@@ -219,9 +220,11 @@
import { ref, defineComponent, onMounted } from 'vue' import { ref, defineComponent, onMounted } from 'vue'
import CustomerModule from '@/module/customer/customerModule' import CustomerModule from '@/module/customer/customerModule'
import selectTree from '@/components/common/selectTree.vue' import selectTree from '@/components/common/selectTree.vue'
import customRight from '@/components/common/customRight.vue'
export default defineComponent({ export default defineComponent({
components: { components: {
selectTree selectTree,
customRight
}, },
setup() { setup() {
let { let {
...@@ -245,8 +248,17 @@ export default defineComponent({ ...@@ -245,8 +248,17 @@ export default defineComponent({
getChild, getChild,
getCkedFriend getCkedFriend
} = CustomerModule() } = CustomerModule()
let ticked = ref([]) let isShowCustom = ref(false)
let expanded = ref([]) const closeCustomer =()=>{
isShowCustom.value=false;
}
let CustomerId= ref(0);
const getCustomInfo =(item)=>{
CustomerId.value = item.row.Id;
isShowCustom.value=true;
}
onMounted(() => { onMounted(() => {
getCustomerList(msg) getCustomerList(msg)
getWayList({}) getWayList({})
...@@ -270,10 +282,12 @@ export default defineComponent({ ...@@ -270,10 +282,12 @@ export default defineComponent({
friendObj, friendObj,
friendOptions, friendOptions,
getEmployeeData, getEmployeeData,
ticked,
expanded,
getChild, getChild,
getCkedFriend getCkedFriend,
isShowCustom,
closeCustomer,
CustomerId,
getCustomInfo
} }
} }
}) })
...@@ -300,6 +314,7 @@ export default defineComponent({ ...@@ -300,6 +314,7 @@ export default defineComponent({
.cutomer_Free { .cutomer_Free {
color: #3470ff; color: #3470ff;
font-size: 14px; font-size: 14px;
cursor: pointer;
} }
.customer_Wechat { .customer_Wechat {
......
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