智慧教务系统 PHP-NiuCloud框架开发
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
17 KiB

import{d as Z,v as ee,l as le,r as v,f as ae,h as o,c as u,e as a,w as r,a as x,t as h,u as e,i as D,k as t,F as c,O as _,m as f,J as te,B as y,S as oe,E as ie,_ as ne,ac as re,G as se,bg as ue,H as de,K as pe,$ as ce,a0 as _e,a1 as me,L as he}from"./index-be67c1b4.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{u as g}from"./dict-8c55f18d.js";import{g as ve,d as fe,a as we,b as q}from"./follow_up_logs-f83ae7dc.js";import{_ as be}from"./_plugin-vue_export-helper-c27b6911.js";const ye={class:"main-container"},ge={class:"flex justify-between items-center"},Ve={class:"text-lg"},Pe={class:"mt-[10px]"},De={key:0},Le={key:0},ke={key:0},xe={key:0},Ue={key:0},Ce={key:0},Ie={key:0},Ye={key:0},Te={key:0},Ee={class:"mt-[16px] flex justify-end"},Se=Z({__name:"follow_up_logs",setup(Fe){const O=ee().meta.title;let i=le({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{sales_id:"",staff_id:"",entry_type:"",purchasing_power:"",cognitive_concept:"",schooltime:[],emotional_intensity:"",initial_customer_intent:"",initial_relationship_intent:"",promised_visit_date:[],actual_visit_date:[],is_closed_deal:"",follow_up_type:"",follow_up_time:[],customer_status:"",sign_up_contact_id:"",create_time:[]}});const B=v();v([]);const U=v([]);(async()=>{U.value=await(await g("entry_type")).data.dictionary})();const C=v([]);(async()=>{C.value=await(await g("low_middle_high")).data.dictionary})();const I=v([]);(async()=>{I.value=await(await g("low_middle_high")).data.dictionary})();const Y=v([]);(async()=>{Y.value=await(await g("low_middle_high")).data.dictionary})();const T=v([]);(async()=>{T.value=await(await g("initial_customer_intent")).data.dictionary})();const E=v([]);(async()=>{E.value=await(await g("initial_relationship_intent")).data.dictionary})();const S=v([]);(async()=>{S.value=await(await g("is_radio")).data.dictionary})();const F=v([]);(async()=>{F.value=await(await g("follow_up_type")).data.dictionary})();const M=v([]);(async()=>{M.value=await(await g("customer_status")).data.dictionary})();const P=(b=1)=>{i.loading=!0,i.page=b,ve({page:i.page,limit:i.limit,...i.searchParam}).then(s=>{i.loading=!1,i.data=s.data.data,i.total=s.data.total}).catch(()=>{i.loading=!1})};P();const R=ae(),W=()=>{R.push("/follow_up_logs/follow_up_logs_edit")},G=b=>{R.push("/follow_up_logs/follow_up_logs_edit?id="+b.id)},H=b=>{oe.confirm(t("followUpLogsDeleteTips"),t("warning"),{confirmButtonText:t("confirm"),cancelButtonText:t("cancel"),type:"warning"}).then(()=>{fe(b).then(()=>{P()}).catch(()=>{})})},z=v([]);(async()=>{z.value=await(await we({})).data})();const N=v([]);(async()=>{N.value=await(await q({})).data})();const $=v([]);(async()=>{$.value=await(await q({})).data})();const J=b=>{b&&(b.resetFields(),P())};return(b,s)=>{const L=ie,p=ne,w=re,m=se,k=ue,K=de,j=pe,d=ce,A=_e,Q=me,X=he;return o(),u("div",ye,[a(j,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[x("div",ge,[x("span",Ve,h(e(O)),1),a(L,{type:"primary",onClick:W},{default:r(()=>[D(h(e(t)("addFollowUpLogs")),1)]),_:1})]),a(j,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:r(()=>[a(K,{inline:!0,model:e(i).searchParam,ref_key:"searchFormRef",ref:B},{default:r(()=>[a(m,{label:e(t)("salesId"),prop:"sales_id"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.sales_id,"onUpdate:modelValue":s[0]||(s[0]=l=>e(i).searchParam.sales_id=l),clearable:"",placeholder:e(t)("salesIdPlaceholder")},{default:r(()=>[(o(!0),u(c,null,_(z.value,(l,n)=>(o(),f(p,{key:n,label:l.student_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("staffId"),prop:"staff_id"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.staff_id,"onUpdate:modelValue":s[1]||(s[1]=l=>e(i).searchParam.staff_id=l),clearable:"",placeholder:e(t)("staffIdPlaceholder")},{default:r(()=>[(o(!0),u(c,null,_(N.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("entryType"),prop:"entry_type"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.entry_type,"onUpdate:modelValue":s[2]||(s[2]=l=>e(i).searchParam.entry_type=l),clearable:"",placeholder:e(t)("entryTypePlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(U.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("purchasingPower"),prop:"purchasing_power"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.purchasing_power,"onUpdate:modelValue":s[3]||(s[3]=l=>e(i).searchParam.purchasing_power=l),clearable:"",placeholder:e(t)("purchasingPowerPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(C.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("cognitiveConcept"),prop:"cognitive_concept"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.cognitive_concept,"onUpdate:modelValue":s[4]||(s[4]=l=>e(i).searchParam.cognitive_concept=l),clearable:"",placeholder:e(t)("cognitiveConceptPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(I.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("schooltime"),prop:"schooltime"},{default:r(()=>[a(k,{modelValue:e(i).searchParam.schooltime,"onUpdate:modelValue":s[5]||(s[5]=l=>e(i).searchParam.schooltime=l),type:"datetimerange",format:"YYYY-MM-DD hh:mm:ss","start-placeholder":e(t)("startDate"),"end-placeholder":e(t)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("emotionalIntensity"),prop:"emotional_intensity"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.emotional_intensity,"onUpdate:modelValue":s[6]||(s[6]=l=>e(i).searchParam.emotional_intensity=l),clearable:"",placeholder:e(t)("emotionalIntensityPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(Y.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("initialCustomerIntent"),prop:"initial_customer_intent"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.initial_customer_intent,"onUpdate:modelValue":s[7]||(s[7]=l=>e(i).searchParam.initial_customer_intent=l),clearable:"",placeholder:e(t)("initialCustomerIntentPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(T.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("initialRelationshipIntent"),prop:"initial_relationship_intent"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.initial_relationship_intent,"onUpdate:modelValue":s[8]||(s[8]=l=>e(i).searchParam.initial_relationship_intent=l),clearable:"",placeholder:e(t)("initialRelationshipIntentPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(E.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("promisedVisitDate"),prop:"promised_visit_date"},{default:r(()=>[a(k,{modelValue:e(i).searchParam.promised_visit_date,"onUpdate:modelValue":s[9]||(s[9]=l=>e(i).searchParam.promised_visit_date=l),type:"datetimerange",format:"YYYY-MM-DD hh:mm:ss","start-placeholder":e(t)("startDate"),"end-placeholder":e(t)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("actualVisitDate"),prop:"actual_visit_date"},{default:r(()=>[a(k,{modelValue:e(i).searchParam.actual_visit_date,"onUpdate:modelValue":s[10]||(s[10]=l=>e(i).searchParam.actual_visit_date=l),type:"datetimerange",format:"YYYY-MM-DD hh:mm:ss","start-placeholder":e(t)("startDate"),"end-placeholder":e(t)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("isClosedDeal"),prop:"is_closed_deal"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.is_closed_deal,"onUpdate:modelValue":s[11]||(s[11]=l=>e(i).searchParam.is_closed_deal=l),clearable:"",placeholder:e(t)("isClosedDealPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(S.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("followUpType"),prop:"follow_up_type"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.follow_up_type,"onUpdate:modelValue":s[12]||(s[12]=l=>e(i).searchParam.follow_up_type=l),clearable:"",placeholder:e(t)("followUpTypePlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(F.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("followUpTime"),prop:"follow_up_time"},{default:r(()=>[a(k,{modelValue:e(i).searchParam.follow_up_time,"onUpdate:modelValue":s[13]||(s[13]=l=>e(i).searchParam.follow_up_time=l),type:"datetimerange",format:"YYYY-MM-DD hh:mm:ss","start-placeholder":e(t)("startDate"),"end-placeholder":e(t)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("customerStatus"),prop:"customer_status"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.customer_status,"onUpdate:modelValue":s[14]||(s[14]=l=>e(i).searchParam.customer_status=l),clearable:"",placeholder:e(t)("customerStatusPlaceholder")},{default:r(()=>[a(p,{label:"全部",value:""}),(o(!0),u(c,null,_(M.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("signUpContactId"),prop:"sign_up_contact_id"},{default:r(()=>[a(w,{class:"w-[280px]",modelValue:e(i).searchParam.sign_up_contact_id,"onUpdate:modelValue":s[15]||(s[15]=l=>e(i).searchParam.sign_up_contact_id=l),clearable:"",placeholder:e(t)("signUpContactIdPlaceholder")},{default:r(()=>[(o(!0),u(c,null,_($.value,(l,n)=>(o(),f(p,{key:n,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{label:e(t)("createTime"),prop:"create_time"},{default:r(()=>[a(k,{modelValue:e(i).searchParam.create_time,"onUpdate:modelValue":s[16]||(s[16]=l=>e(i).searchParam.create_time=l),type:"datetimerange",format:"YYYY-MM-DD hh:mm:ss","start-placeholder":e(t)("startDate"),"end-placeholder":e(t)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),a(m,null,{default:r(()=>[a(L,{type:"primary",onClick:s[17]||(s[17]=l=>P())},{default:r(()=>[D(h(e(t)("search")),1)]),_:1}),a(L,{onClick:s[18]||(s[18]=l=>J(B.value))},{default:r(()=>[D(h(e(t)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),x("div",Pe,[te((o(),f(A,{data:e(i).data,size:"large"},{empty:r(()=>[x("span",null,h(e(i).loading?"":e(t)("emptyData")),1)]),default:r(()=>[a(d,{prop:"id",label:e(t)("id"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"sales_id_name",label:e(t)("salesId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"staff_id_name",label:e(t)("staffId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{label:e(t)("entryType"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(U.value,(n,V)=>(o(),u("div",null,[n.value==l.entry_type?(o(),u("div",De,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{prop:"requirement",label:e(t)("requirement"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{label:e(t)("purchasingPower"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(C.value,(n,V)=>(o(),u("div",null,[n.value==l.purchasing_power?(o(),u("div",Le,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{label:e(t)("cognitiveConcept"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(I.value,(n,V)=>(o(),u("div",null,[n.value==l.cognitive_concept?(o(),u("div",ke,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{prop:"schooltime",label:e(t)("schooltime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"distance",label:e(t)("distance"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"communication_notes",label:e(t)("communicationNotes"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"decision_maker",label:e(t)("decisionMaker"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{label:e(t)("emotionalIntensity"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(Y.value,(n,V)=>(o(),u("div",null,[n.value==l.emotional_intensity?(o(),u("div",xe,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{label:e(t)("initialCustomerIntent"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(T.value,(n,V)=>(o(),u("div",null,[n.value==l.initial_customer_intent?(o(),u("div",Ue,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{label:e(t)("initialRelationshipIntent"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(E.value,(n,V)=>(o(),u("div",null,[n.value==l.initial_relationship_intent?(o(),u("div",Ce,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{prop:"promised_visit_date",label:e(t)("promisedVisitDate"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"actual_visit_date",label:e(t)("actualVisitDate"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"first_visit_feedback",label:e(t)("firstVisitFeedback"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"second_visit_feedback",label:e(t)("secondVisitFeedback"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{label:e(t)("isClosedDeal"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(S.value,(n,V)=>(o(),u("div",null,[n.value==l.is_closed_deal?(o(),u("div",Ie,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{label:e(t)("followUpType"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(F.value,(n,V)=>(o(),u("div",null,[n.value==l.follow_up_type?(o(),u("div",Ye,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{prop:"follow_up_time",label:e(t)("followUpTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"audio_upload",label:e(t)("audioUpload"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{prop:"follow_up_content",label:e(t)("followUpContent"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{label:e(t)("customerStatus"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[(o(!0),u(c,null,_(M.value,(n,V)=>(o(),u("div",null,[n.value==l.customer_status?(o(),u("div",Te,h(n.name),1)):y("",!0)]))),256))]),_:1},8,["label"]),a(d,{prop:"sign_up_contact_id_name",label:e(t)("signUpContactId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(d,{label:e(t)("createTime"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:l})=>[D(h(l.create_time||""),1)]),_:1},8,["label"]),a(d,{label:e(t)("operation"),fixed:"right","min-width":"120"},{default:r(({row:l})=>[a(L,{type:"primary",link:"",onClick:n=>G(l)},{default:r(()=>[D(h(e(t)("edit")),1)]),_:2},1032,["onClick"]),a(L,{type:"primary",link:"",onClick:n=>H(l.id)},{default:r(()=>[D(h(e(t)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[X,e(i).loading]]),x("div",Ee,[a(Q,{"current-page":e(i).page,"onUpdate:current-page":s[19]||(s[19]=l=>e(i).page=l),"page-size":e(i).limit,"onUpdate:page-size":s[20]||(s[20]=l=>e(i).limit=l),layout:"total, sizes, prev, pager, next, jumper",total:e(i).total,onSizeChange:s[21]||(s[21]=l=>P()),onCurrentChange:P},null,8,["current-page","page-size","total"])])])]),_:1})])}}});const vl=be(Se,[["__scopeId","data-v-fadcf09f"]]);export{vl as default};