"use strict";const e=require("../../../../common/vendor.js"),n=require("../../../../gen/Enums.js"),o=require("../method.js"),r=require("../model.js");if(require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../gen/Apis.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/sendWxWork.js"),require("../../../../common/libraries/day.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const i=e.defineComponent({__name:"PersonnelList",setup:i=>(i,s)=>({a:e.f(e.unref(r.useModel).listData.value,(r,i,s)=>{var l,t;return e.e({a:null==(l=null==r?void 0:r.list)?void 0:l.length},(null==(t=null==r?void 0:r.list)?void 0:t.length)?{b:e.t(null==r?void 0:r.label),c:e.f(null==r?void 0:r.list,(r,i,l)=>e.e({a:e.t(null==r?void 0:r.name),b:e.t(null==r?void 0:r.phone),c:"Owner"===(null==r?void 0:r.house_relation)},"Owner"===(null==r?void 0:r.house_relation)?{}:{d:"9eb1f75a-0-"+s+"-"+l,e:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),value:null==r?void 0:r.residential_relation})},{f:"9eb1f75a-1-"+s+"-"+l,g:e.p({type:"star-filled",size:"20",color:(null==r?void 0:r.is_contact)?"#FFD666":"#DCDFE6"}),h:e.t((null==r?void 0:r.is_contact)?"常用联系人":"设为常用"),i:e.o(n=>{var i;return null==(i=e.unref(o.method))?void 0:i.handleSetContact(r)},`personnel_${i}`),j:e.o(n=>{var o;(o=null==r?void 0:r.phone)&&e.index.makePhoneCall({phoneNumber:o})},`personnel_${i}`),k:e.o(n=>{return o=null==r?void 0:r.phone,void e.index.setClipboardData({data:o,success(n){setTimeout(()=>{e.index.qy.navigateToAddCustomer({success:function(){}})},1e3)}});var o},`personnel_${i}`),l:e.o(n=>{return o=null==r?void 0:r.id,void e.index.navigateTo({url:`/CUSTOMER/show/index?id=${o}`});var o},`personnel_${i}`),m:`personnel_${i}`}))}:{},{d:`item_${i}`})})})}),s=e._export_sfc(i,[["__scopeId","data-v-9eb1f75a"]]);wx.createComponent(s);
