import{C as N,D as T,w as U,F as R,I as H,L as j,M,N as q}from"./element-plus.ae09c4a0.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.8003a1e1.js";import{d as k,s as W,r as C,a0 as y,ah as X,o as p,c as z,W as o,O as r,u as e,T as c,P as F,M as f,a as b,X as G,j as J,S as K,n as Q}from"./@vue.a7a54728.js";import{u as Y}from"./usePaging.3230a0a8.js";import{a as Z}from"./useDictOptions.b75da5b0.js";import{_ as oo,a as eo}from"./edit.vue_vue_type_script_setup_true_name_propertyCommissionEdit_lang.174ea2a4.js";import"./lodash.fc1b942f.js";import"./index.80696382.js";import{_ as to}from"./detail.vue_vue_type_script_setup_true_lang.57af8da3.js";import"./@vueuse.0a77614e.js";import"./@element-plus.a03b0c46.js";import"./lodash-es.bb7dceda.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.e64ff1d1.js";import"./axios.108bc101.js";import"./vue-router.c1c4566f.js";import"./pinia.b401a84e.js";import"./css-color-function.91b6e704.js";import"./color.d62296c5.js";import"./clone.f2407509.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.f4ae74de.js";import"./index.vue_vue_type_script_setup_true_lang.7230403b.js";import"./service_work.866ae439.js";const ao={class:"mt-4"},ro={class:"flex mt-4 justify-end"},lo=k({name:"propertyCommissionLists"}),Ko=k({...lo,setup(so){const w=W(),h=C(!1),i=y({show:!1,id:""}),B=async u=>{var t;i.show=!0,i.id=u.work_id,await Q(),(t=w.value)==null||t.setFormData(u)},s=y({property_head_id:"",property_user_id:"",property_order_id:"",work_id:"",order_amount:"",ratio:"",commission_amount:"",head_name:""}),g=C([]),V=u=>{g.value=u.map(({id:t})=>t)},{dictData:D}=Z(""),{pager:n,getLists:m,resetParams:A,resetPage:x}=Y({fetchFun:eo,params:s});return m(),(u,t)=>{const v=N,d=T,_=U,P=R,E=H,l=j,S=M,$=O,I=X("perms"),L=q;return p(),z("div",null,[o(E,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[o(P,{class:"mb-[-16px]",model:e(s),inline:""},{default:r(()=>[o(d,{label:"\u7269\u4E1A\u8D1F\u8D23\u4EBAID",prop:"property_head_id"},{default:r(()=>[o(v,{class:"w-[280px]",modelValue:e(s).property_head_id,"onUpdate:modelValue":t[0]||(t[0]=a=>e(s).property_head_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7269\u4E1A\u8D1F\u8D23\u4EBAID"},null,8,["modelValue"])]),_:1}),o(d,{label:"\u8D1F\u8D23\u4EBA\u540D\u79F0",prop:"head_name"},{default:r(()=>[o(v,{class:"w-[280px]",modelValue:e(s).head_name,"onUpdate:modelValue":t[1]||(t[1]=a=>e(s).head_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(d,null,{default:r(()=>[o(_,{type:"primary",onClick:e(x)},{default:r(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(_,{onClick:e(A)},{default:r(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((p(),f(E,{class:"!border-none",shadow:"never"},{default:r(()=>[b("div",ao,[o(S,{data:e(n).lists,onSelectionChange:V},{default:r(()=>[o(l,{label:"\u6240\u5C5E\u7269\u4E1A",prop:"propertyHead.property_name","show-overflow-tooltip":""}),o(l,{label:"\u6240\u5C5E\u5C0F\u533A",prop:"propertyHead.village_name","show-overflow-tooltip":""}),o(l,{label:"\u7269\u4E1A\u8D1F\u8D23\u4EBA\u540D\u79F0",prop:"propertyHead.head_name","show-overflow-tooltip":""}),o(l,{label:"\u6237\u4E3B\u540D\u79F0",prop:"propertyUser.householder_name","show-overflow-tooltip":""}),o(l,{label:"\u8BA2\u5355\u53EF\u5206\u6210\u603B\u91D1\u989D",prop:"order_amount","show-overflow-tooltip":""}),o(l,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"ratio","show-overflow-tooltip":""}),o(l,{label:"\u63D0\u6210\u6536\u76CA\u91D1\u989D",prop:"commission_amount","show-overflow-tooltip":""}),o(l,{label:"\u5DE5\u5355"},{default:r(({row:a})=>[F((p(),f(_,{type:"primary",link:"",onClick:io=>B(a)},{default:r(()=>[c("\u8BE6\u60C5")]),_:2},1032,["onClick"])),[[I,["work.service_work/detail"]],[G,a.work_id]])]),_:1})]),_:1},8,["data"])]),b("div",ro,[o($,{modelValue:e(n),"onUpdate:modelValue":t[2]||(t[2]=a=>J(n)?n.value=a:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[L,e(n).loading]]),e(h)?(p(),f(oo,{key:0,ref_key:"editRef",ref:w,"dict-data":e(D),onSuccess:e(m),onClose:t[3]||(t[3]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):K("",!0),o(to,{show:e(i).show,"onUpdate:show":t[4]||(t[4]=a=>e(i).show=a),"dict-data":e(D),id:e(i).id,onConfirm:a=>!1},null,8,["show","dict-data","id"])])}}});export{Ko as default};
