import{I as Y,y as Z,G as ee,H as le,w as oe,D as te,C as ae,L as ue,M as ne,N as se}from"./element-plus.517d4382.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as ie,a as de}from"./index.8b1962e9.js";import{u as me}from"./usePaging.f6660143.js";import{u as _e}from"./useDictOptions.b5854a9e.js";import{a as ce,b as S,e as fe}from"./project_follow_up.9e000742.js";import{d as I,s as R,r as U,a0 as we,ai as Fe,o as u,c as b,V as l,M as t,O as w,u as s,L as r,S as N,W as y,a8 as k,a as g,U as T,k as Be,T as f,n as $}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectFollowUpEdit_lang.fde0c8f3.js";import be from"./detail.cd48b31d.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.b17dae19.js";import"./index.e6dda1f5.js";import"./custom.99349afc.js";const Ee=f("\u67E5\u8BE2"),De=f("\u91CD\u7F6E"),Ce=f(" \u65B0\u589E "),Ve=f(" \u5220\u9664 "),ye={class:"mt-4"},ke=f(" \u7F16\u8F91 "),ge=f(" \u5220\u9664 "),xe=f(" \u8BE6\u60C5 "),he={class:"flex justify-end mt-4"},je=I({name:"projectFollowUpLists"}),Cl=I({...je,setup(Ae){const x=R(),E=R(),D=U(!1),h=U(!1),a=we({executor:"",contacts:"",contact_information:"",custom_name:"",follow_date:"",follow_type:"",theme:"",action_description:"",project_assurance:"",follow_status:"",follow_stage:""}),j=U([]),M=i=>{j.value=i.map(({id:o})=>o)},{dictData:_}=_e("project_assurance,follow_status,follow_type,follow_stage"),{pager:F,getLists:C,resetParams:O,resetPage:q}=me({fetchFun:ce,params:a}),G=async()=>{var i;D.value=!0,await $(),(i=E.value)==null||i.open("add")},H=async i=>{var d,n;let o=await S({id:i.id});D.value=!0,await $(),(d=E.value)==null||d.open("edit"),(n=E.value)==null||n.setFormData(o)},P=async i=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:i}),C()},W=async i=>{var d,n;let o=await S({id:i.id});h.value=!0,await $(),(d=x.value)==null||d.open(),(n=x.value)==null||n.setFormData(o)};return C(),(i,o)=>{const d=Y,n=Z,B=ee,V=le,c=oe,z=te,L=ae,J=de,p=ue,A=re,K=ne,Q=pe,v=Fe("perms"),X=se;return u(),b("div",null,[l(L,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[l(z,{class:"mb-[-16px]",model:a,inline:"","label-width":"auto"},{default:t(()=>[l(n,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:t(()=>[l(d,{class:"w-[280px]",modelValue:a.custom_name,"onUpdate:modelValue":o[0]||(o[0]=e=>a.custom_name=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u8DDF\u8FDB\u7C7B\u578B",prop:"follow_type"},{default:t(()=>[l(V,{modelValue:a.follow_type,"onUpdate:modelValue":o[1]||(o[1]=e=>a.follow_type=e),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8DDF\u8FDB\u7C7B\u578B"},{default:t(()=>[l(B,{label:"\u5168\u90E8",value:""}),(u(!0),b(y,null,k(s(_).follow_type,(e,m)=>(u(),r(B,{key:m,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u9879\u76EE\u628A\u63E1\u5EA6",prop:"project_assurance"},{default:t(()=>[l(V,{modelValue:a.project_assurance,"onUpdate:modelValue":o[2]||(o[2]=e=>a.project_assurance=e),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE\u628A\u63E1\u5EA6"},{default:t(()=>[(u(!0),b(y,null,k(s(_).project_assurance,(e,m)=>(u(),r(B,{key:m,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u8DDF\u8FDB\u72B6\u6001",prop:"follow_status"},{default:t(()=>[l(V,{modelValue:a.follow_status,"onUpdate:modelValue":o[3]||(o[3]=e=>a.follow_status=e),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8DDF\u8FDB\u72B6\u6001"},{default:t(()=>[(u(!0),b(y,null,k(s(_).follow_status,(e,m)=>(u(),r(B,{key:m,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u8DDF\u8FDB\u9636\u6BB5",prop:"follow_stage"},{default:t(()=>[l(V,{modelValue:a.follow_stage,"onUpdate:modelValue":o[4]||(o[4]=e=>a.follow_stage=e),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8DDF\u8FDB\u9636\u6BB5"},{default:t(()=>[(u(!0),b(y,null,k(s(_).follow_stage,(e,m)=>(u(),r(B,{key:m,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u4E3B\u9898",prop:"theme"},{default:t(()=>[l(d,{modelValue:a.theme,"onUpdate:modelValue":o[5]||(o[5]=e=>a.theme=e),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u8054\u7CFB\u4EBA",prop:"contacts"},{default:t(()=>[l(d,{class:"w-[280px]",modelValue:a.contacts,"onUpdate:modelValue":o[6]||(o[6]=e=>a.contacts=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact_information"},{default:t(()=>[l(d,{class:"w-[280px]",modelValue:a.contact_information,"onUpdate:modelValue":o[7]||(o[7]=e=>a.contact_information=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u6267\u884C\u4EBA",prop:"executor"},{default:t(()=>[l(d,{class:"w-[280px]",modelValue:a.executor,"onUpdate:modelValue":o[8]||(o[8]=e=>a.executor=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u4EBA"},null,8,["modelValue"])]),_:1}),l(n,null,{default:t(()=>[l(c,{type:"primary",onClick:s(q)},{default:t(()=>[Ee]),_:1},8,["onClick"]),l(c,{onClick:s(O)},{default:t(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),w((u(),r(L,{class:"!border-none",shadow:"never"},{default:t(()=>[w((u(),r(c,{type:"primary",onClick:G},{icon:t(()=>[l(J,{name:"el-icon-Plus"})]),default:t(()=>[Ce]),_:1})),[[v,["project.project_follow_up/add"]]]),w((u(),r(c,{disabled:!j.value.length,onClick:o[9]||(o[9]=e=>P(j.value))},{default:t(()=>[Ve]),_:1},8,["disabled"])),[[v,["project.project_follow_up/delete"]]]),g("div",ye,[l(K,{data:s(F).lists,onSelectionChange:M},{default:t(()=>[l(p,{type:"selection",width:"55"}),l(p,{label:"\u5E8F\u53F7",type:"index",width:"55"}),l(p,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),l(p,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),l(p,{label:"\u6267\u884C\u4EBA",prop:"executor","show-overflow-tooltip":""}),l(p,{label:"\u65E5\u671F",prop:"follow_date"},{default:t(({row:e})=>[g("span",null,T(e.follow_date?e.follow_date:""),1)]),_:1}),l(p,{label:"\u7C7B\u578B",prop:"follow_type"},{default:t(({row:e})=>[l(A,{options:s(_).follow_type,value:e.follow_type},null,8,["options","value"])]),_:1}),l(p,{label:"\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),l(p,{label:"\u9879\u76EE\u628A\u63E1\u5EA6",prop:"project_assurance_text"}),l(p,{label:"\u72B6\u6001",prop:"follow_status"},{default:t(({row:e})=>[l(A,{options:s(_).follow_status,value:e.follow_status},null,8,["options","value"])]),_:1}),l(p,{label:"\u9636\u6BB5",prop:"follow_stage"},{default:t(({row:e})=>[l(A,{options:s(_).follow_stage,value:e.follow_stage},null,8,["options","value"])]),_:1}),l(p,{label:"\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F",prop:"next_follow_up_date"},{default:t(({row:e})=>[g("span",null,T(e.next_follow_up_date?e.next_follow_up_date:""),1)]),_:1}),l(p,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:e})=>[w((u(),r(c,{type:"primary",link:"",onClick:m=>H(e)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[v,["project.project_follow_up/edit"]]]),w((u(),r(c,{type:"danger",link:"",onClick:m=>P(e.id)},{default:t(()=>[ge]),_:2},1032,["onClick"])),[[v,["project.project_follow_up/delete"]]]),w((u(),r(c,{link:"",onClick:m=>W(e)},{default:t(()=>[xe]),_:2},1032,["onClick"])),[[v,["project.project_follow_up/detail"]]])]),_:1})]),_:1},8,["data"])]),g("div",he,[l(Q,{modelValue:s(F),"onUpdate:modelValue":o[10]||(o[10]=e=>Be(F)?F.value=e:null),onChange:s(C)},null,8,["modelValue","onChange"])])]),_:1})),[[X,s(F).loading]]),D.value?(u(),r(ve,{key:0,ref_key:"editRef",ref:E,"dict-data":s(_),onSuccess:s(C),onClose:o[11]||(o[11]=e=>D.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),h.value?(u(),r(be,{key:1,ref_key:"detailRef",ref:x,"dict-data":s(_),onClose:o[12]||(o[12]=e=>h.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{Cl as default};