BusinessListSelectForm-2c135a2d.js 2.1 KB

1
  1. import{_ as k,__tla as B}from"./Dialog-c2716df6.js";import{d as P,r as i,o as m,q as v,w as a,f as s,a as o,m as y,c as g,F as E,n as O,N as A,x as D,y as I,z as S,E as Y,A as j,i as q,B as z,__tla as M}from"./index-2eab2d23.js";import"./_plugin-vue_export-helper-1b428a4d.js";let V,N=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{V=P({name:"BusinessListSelectForm",__name:"BusinessListSelectForm",emits:["success"],setup(W,{expose:F,emit:b}){const n=i(!1),p=i(""),r=i(!1),d=i([]);F({open:async(u,e)=>{if(n.value=!0,p.value=t("action."+u),formType.value=u,T(),e){r.value=!0;try{d.value=await FollowUpRecordApi.getFollowUpRecord(e)}finally{r.value=!1}}}});const h=b,x=async()=>{await formRef.value.validate(),r.value=!0;try{h("success")}finally{r.value=!1}},T=()=>{var u;(u=formRef.value)==null||u.resetFields()};return(u,e)=>{const w=D,U=I,_=S,c=Y,L=j,R=q,f=z,C=k;return m(),v(C,{modelValue:o(n),"onUpdate:modelValue":e[3]||(e[3]=l=>A(n)?n.value=l:null),title:o(p),width:"50%"},{footer:a(()=>[s(f,{disabled:o(r),type:"primary",onClick:x},{default:a(()=>[y("\u786E \u5B9A")]),_:1},8,["disabled"]),s(f,{onClick:e[2]||(e[2]=l=>n.value=!1)},{default:a(()=>[y("\u53D6 \u6D88")]),_:1})]),default:a(()=>[s(R,null,{default:a(()=>[s(c,{span:12},{default:a(()=>[s(_,{label:"\u8DDF\u8FDB\u7C7B\u578B",prop:"type"},{default:a(()=>[s(U,{modelValue:o(d).type,"onUpdate:modelValue":e[0]||(e[0]=l=>o(d).type=l),placeholder:"\u8BF7\u9009\u62E9\u8DDF\u8FDB\u7C7B\u578B"},{default:a(()=>[(m(!0),g(E,null,O(u.getIntDictOptions(u.DICT_TYPE.CRM_FOLLOW_UP_TYPE),l=>(m(),v(w,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),s(c,{span:12},{default:a(()=>[s(_,{label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"nextTime"},{default:a(()=>[s(L,{modelValue:o(d).nextTime,"onUpdate:modelValue":e[1]||(e[1]=l=>o(d).nextTime=l),placeholder:"\u9009\u62E9\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",type:"date","value-format":"x"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}})});export{N as __tla,V as default};