form.47628e.js 3.9 KB

1
  1. import{aT as m,ac as U,_ as Y,d as M,w as h,bs as N,z as I,r as s,o as i,G as B,C as u,j as t,l,c as v,F as V,D as C,h as O,M as S,b1 as j}from"./index.js";const{VITE_PROXY_DOMAIN_REAL:X,VITE_PROXY_USER_REAL:L}=U(),p=L+"/admin/",G=(e={})=>m.request("post",`${p}Resigninfolist`,{data:e}),P=(e={})=>m.request("post",`${p}userCompanyBasicList`,{data:e}),J=(e={})=>m.request("post",`${p}Resigninfocreate`,{data:e}),K=(e={})=>m.request("post",`${p}Resigninfoselect`,{data:e}),Q=(e={})=>m.request("post",`${p}Resigninfoedit`,{data:e}),T={class:"w-full flex justify-end"},$=M({__name:"form",props:{data:{type:null,required:!0},modal:{type:Boolean,required:!1,default:!1},companyNo:{type:String,required:!0},disabled:{type:Boolean,required:!0}},emits:["submit"],setup(e,{emit:w}){const c=e,g=h(null),o=N(c,"data"),f=h([]);async function A(){const{data:_}=await P({size:100,companyNo:c.companyNo});f.value=_.list}const q={resign_uid:[{required:!0,message:"\u8BF7\u9009\u62E9\u79BB\u804C\u4EBA",trigger:"change"}],hand_uid:[{required:!0,message:"\u8BF7\u9009\u62E9\u63A5\u53D7\u4EBA",trigger:"change"}],resign_date:[{required:!0,message:"\u8BF7\u9009\u62E9\u79BB\u804C\u65F6\u95F4",trigger:"blur"}],expire_date:[{required:!0,message:"\u8BF7\u9009\u62E9\u751F\u6548\u65F6\u95F4",trigger:"blur"}]};I(()=>c.companyNo,()=>{A()},{immediate:!0});async function D(){try{await g.value.validate(),w("submit")}catch{}}return(_,r)=>{const y=s("ElOption"),b=s("ElSelect"),n=s("ElFormItem"),d=s("ElCol"),F=s("ElDatePicker"),k=s("ElInput"),R=s("ElRow"),x=s("ElButton");return i(),B(l(j),{"label-width":"80px",model:l(o),rules:q,ref_key:"formRef",ref:g,size:"small",disabled:e.disabled},{default:u(()=>[t(R,null,{default:u(()=>[t(d,{span:e.modal?24:12},{default:u(()=>[t(n,{label:"\u79BB\u804C\u4EBA",prop:"resign_uid"},{default:u(()=>[t(b,{modelValue:l(o).resign_uid,"onUpdate:modelValue":r[0]||(r[0]=a=>l(o).resign_uid=a),style:{width:"100%"},placeholder:"\u79BB\u804C\u4EBA"},{default:u(()=>[(i(!0),v(V,null,C(f.value,({id:a,nickname:E})=>(i(),B(y,{key:a,label:E,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["span"]),t(d,{span:e.modal?24:12},{default:u(()=>[t(n,{label:"\u63A5\u53D7\u4EBA",prop:"hand_uid"},{default:u(()=>[t(b,{modelValue:l(o).hand_uid,"onUpdate:modelValue":r[1]||(r[1]=a=>l(o).hand_uid=a),style:{width:"100%"},placeholder:"\u63A5\u6536\u4EBA"},{default:u(()=>[(i(!0),v(V,null,C(f.value,({id:a,nickname:E})=>(i(),B(y,{key:a,label:E,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["span"]),t(d,{span:e.modal?24:12},{default:u(()=>[t(n,{label:"\u79BB\u804C\u65E5\u671F",prop:"resign_date"},{default:u(()=>[t(F,{modelValue:l(o).resign_date,"onUpdate:modelValue":r[2]||(r[2]=a=>l(o).resign_date=a),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},placeholder:"\u79BB\u804C\u65E5\u671F"},null,8,["modelValue"])]),_:1})]),_:1},8,["span"]),t(d,{span:e.modal?24:12},{default:u(()=>[t(n,{label:"\u751F\u6548\u65E5\u671F",prop:"expire_date"},{default:u(()=>[t(F,{modelValue:l(o).expire_date,"onUpdate:modelValue":r[3]||(r[3]=a=>l(o).expire_date=a),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},placeholder:"\u751F\u6548\u65E5\u671F"},null,8,["modelValue"])]),_:1})]),_:1},8,["span"]),t(d,{span:e.modal?24:12},{default:u(()=>[t(n,{label:"\u5BA1\u6838\u5907\u6CE8",prop:"remark"},{default:u(()=>[t(k,{modelValue:l(o).remark,"onUpdate:modelValue":r[4]||(r[4]=a=>l(o).remark=a),type:"textarea",style:{width:"100%"},placeholder:"\u5BA1\u6838\u5907\u6CE8"},null,8,["modelValue"])]),_:1})]),_:1},8,["span"])]),_:1}),O("div",T,[t(x,{type:"primary",onClick:D},{default:u(()=>[S("\u4FDD\u5B58")]),_:1})])]),_:1},8,["model","disabled"])}}});var z=Y($,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/interest/handover/form.vue"]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{z as F,Q as a,G as b,J as c,W as f,K as h};