1 |
- import{_ as B,__tla as C}from"./Dialog-48d90cfe.js";import{d as g,r as i,o as m,A as v,B as l,f as s,a as o,G as y,c as k,F as D,P as O,a2 as S,Q as A,R as E,S as I,J as M,K as Y,M as G,L as J,__tla as K}from"./index-645bc0b6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let V,Q=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return K}catch{}})()]).then(async()=>{V=g({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,x(),e){r.value=!0;try{d.value=await FollowUpRecordApi.getFollowUpRecord(e)}finally{r.value=!1}}}});const T=b,h=async()=>{await formRef.value.validate(),r.value=!0;try{T("success")}finally{r.value=!1}},x=()=>{var u;(u=formRef.value)==null||u.resetFields()};return(u,e)=>{const R=A,U=E,_=I,c=M,w=Y,L=G,f=J,P=B;return m(),v(P,{modelValue:o(n),"onUpdate:modelValue":e[3]||(e[3]=a=>S(n)?n.value=a:null),title:o(p),width:"50%"},{footer:l(()=>[s(f,{disabled:o(r),type:"primary",onClick:h},{default:l(()=>[y("\u786E \u5B9A")]),_:1},8,["disabled"]),s(f,{onClick:e[2]||(e[2]=a=>n.value=!1)},{default:l(()=>[y("\u53D6 \u6D88")]),_:1})]),default:l(()=>[s(L,null,{default:l(()=>[s(c,{span:12},{default:l(()=>[s(_,{label:"\u8DDF\u8FDB\u7C7B\u578B",prop:"type"},{default:l(()=>[s(U,{modelValue:o(d).type,"onUpdate:modelValue":e[0]||(e[0]=a=>o(d).type=a),placeholder:"\u8BF7\u9009\u62E9\u8DDF\u8FDB\u7C7B\u578B"},{default:l(()=>[(m(!0),k(D,null,O(u.getIntDictOptions(u.DICT_TYPE.CRM_FOLLOW_UP_TYPE),a=>(m(),v(R,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),s(c,{span:12},{default:l(()=>[s(_,{label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"nextTime"},{default:l(()=>[s(w,{modelValue:o(d).nextTime,"onUpdate:modelValue":e[1]||(e[1]=a=>o(d).nextTime=a),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{Q as __tla,V as default};
|