import{C as R,D as U,w as I,F as T,N as H,O as j,P as q,Q as O}from"./element-plus.55d71530.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.39bbbfbb.js";import{d as k,s as Q,r as C,_ as y,aq as W,o as p,c as z,V as o,M as r,u as e,S as c,O as F,L as f,a as b,W as G,j as J,R as K,n as X}from"./@vue.96c135a1.js";import{u as Y}from"./usePaging.af60c1ec.js";import{u as Z}from"./useDictOptions.39c074af.js";import{_ as oo,a as eo}from"./edit.vue_vue_type_script_setup_true_name_propertyCommissionEdit_lang.16558752.js";import"./lodash.d6737109.js";import"./dayjs.37feae28.js";import"./index.e2bd5212.js";import{_ as to}from"./detail.vue_vue_type_script_setup_true_lang.e5798ff2.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.f4694335.js";import"./@element-plus.07bd0514.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.e651cfa0.js";import"./@amap.8a62addd.js";import"./axios.c6b9fe3d.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.7f53c13d.js";import"./color.4952d479.js";import"./clone.dd01d7ea.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.80787eb0.js";import"./tslib.60310f1a.js";import"./zrender.6f33727c.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.3d7ee361.js";import"./index.vue_vue_type_script_setup_true_lang.e4c20ee9.js";import"./service_work.02efb294.js";import"./edit.vue_vue_type_script_setup_true_name_serviceWorkEdit_lang.e064acc2.js";const ao={class:"mt-4"},ro={class:"flex mt-4 justify-end"},lo=k({name:"propertyCommissionLists"}),Ko=k({...lo,setup(so){const w=Q(),D=C(!1),i=y({show:!1,id:""}),B=async n=>{var t;i.show=!0,i.id=n.work_id,await X(),(t=w.value)==null||t.setFormData(n)},s=y({property_head_id:"",property_user_id:"",property_order_id:"",work_id:"",order_amount:"",ratio:"",commission_amount:"",head_name:""}),g=C([]),V=n=>{g.value=n.map(({id:t})=>t)},{dictData:h}=Z(""),{pager:u,getLists:m,resetParams:x,resetPage:A}=Y({fetchFun:eo,params:s});return m(),(n,t)=>{const E=R,d=U,_=I,P=T,v=H,l=j,S=q,$=M,L=W("perms"),N=O;return p(),z("div",null,[o(v,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[o(P,{class:"mb-[-16px]",model:e(s),inline:""},{default:r(()=>[o(d,{label:"\u4EE3\u7406\u8D1F\u8D23\u4EBAID",prop:"property_head_id"},{default:r(()=>[o(E,{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\u4EE3\u7406\u8D1F\u8D23\u4EBAID"},null,8,["modelValue"])]),_:1}),o(d,{label:"\u8D1F\u8D23\u4EBA\u540D\u79F0",prop:"head_name"},{default:r(()=>[o(E,{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(A)},{default:r(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(_,{onClick:e(x)},{default:r(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((p(),f(v,{class:"!border-none",shadow:"never"},{default:r(()=>[b("div",ao,[o(S,{data:e(u).lists,onSelectionChange:V},{default:r(()=>[o(l,{label:"\u6240\u5C5E\u4EE3\u7406",prop:"propertyHead.property_name","show-overflow-tooltip":""}),o(l,{label:"\u6240\u5C5E\u5C0F\u533A",prop:"propertyHead.village_name","show-overflow-tooltip":""}),o(l,{label:"\u4EE3\u7406\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"])),[[L,["work.service_work/detail"]],[G,a.work_id]])]),_:1})]),_:1},8,["data"])]),b("div",ro,[o($,{modelValue:e(u),"onUpdate:modelValue":t[2]||(t[2]=a=>J(u)?u.value=a:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[N,e(u).loading]]),e(D)?(p(),f(oo,{key:0,ref_key:"editRef",ref:w,"dict-data":e(h),onSuccess:e(m),onClose:t[3]||(t[3]=a=>D.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(h),id:e(i).id,onConfirm:a=>!1},null,8,["show","dict-data","id"])])}}});export{Ko as default};
