2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{C as L,D as T,w as N,F as U,J as $,P as j,Q as A,R as Q}from"./element-plus.74337649.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.ffdfb4a0.js";import{r as J}from"./index.59d2be02.js";import{u as W}from"./usePaging.bd7a7dec.js";import z from"./detail.c9fdfa36.js";import{d as E,s as G,r as b,$ as H,aq as K,o as m,c as M,W as e,Q as t,u as r,U as f,R as w,P as v,a as g,j as O,T as X,n as Y}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.3b74a81e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";function Z(C){return J.get({url:"/user.user/villageInfoList",params:C})}const ee={class:"mt-4"},oe={class:"flex justify-end mt-4"},te=E({name:"projectLists"}),Ge=E({...te,setup(C){const p=G(),c=b(!1),l=H({name:"",contact:""}),h=b([]),D=u=>{h.value=u.map(({id:o})=>o)},{pager:s,getLists:B,resetParams:k,resetPage:V}=W({fetchFun:Z,params:l}),y=async u=>{var o,i;c.value=!0,await Y(),(o=p.value)==null||o.open(),(i=p.value)==null||i.setFormData(u)};return B(),(u,o)=>{const i=L,d=T,_=N,x=U,F=$,n=j,R=A,P=S,I=K("perms"),q=Q;return m(),M("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(x,{class:"mb-[-16px]",model:l,inline:""},{default:t(()=>[e(d,{label:"\u6237\u4E3B\u59D3\u540D",prop:"name"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:l.name,"onUpdate:modelValue":o[0]||(o[0]=a=>l.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6237\u4E3B\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:l.contact,"onUpdate:modelValue":o[1]||(o[1]=a=>l.contact=a),type:"number",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(_,{type:"primary",onClick:r(V)},{default:t(()=>[f("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:r(k)},{default:t(()=>[f("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),w((m(),v(F,{class:"!border-none",shadow:"never"},{default:t(()=>[g("div",ee,[e(R,{data:r(s).lists,onSelectionChange:D},{default:t(()=>[e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u6237\u4E3B\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(n,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact","show-overflow-tooltip":""}),e(n,{label:"\u5BB6\u5EAD\u4EBA\u6570",prop:"family_count","show-overflow-tooltip":""}),e(n,{label:"\u5BB6\u5EAD\u5730\u5740",prop:"address","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:a})=>[w((m(),v(_,{link:"",onClick:ae=>y(a),type:"primary"},{default:t(()=>[f(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[I,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),g("div",oe,[e(P,{modelValue:r(s),"onUpdate:modelValue":o[2]||(o[2]=a=>O(s)?s.value=a:null),onChange:r(B)},null,8,["modelValue","onChange"])])]),_:1})),[[q,r(s).loading]]),c.value?(m(),v(z,{key:0,ref_key:"detailRef",ref:p,onClose:o[3]||(o[3]=a=>c.value=!1)},null,512)):X("",!0)])}}});export{Ge as default};
|