2 lines
7.6 KiB
JavaScript
2 lines
7.6 KiB
JavaScript
import{I as M,y as q,w as O,D as G,C as H,L as J,M as K,N as Q}from"./element-plus.258bf9e7.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{_ as oo}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as eo}from"./usePaging.f6660143.js";import{u as to}from"./useDictOptions.c644f395.js";import{_ as lo,a as g,b as uo,c as ao}from"./edit.vue_vue_type_script_setup_true_name_projectCommissionEdit_lang.9255bda0.js";import"./lodash.1d82ee7c.js";import{d as A,s as po,r as V,a0 as so,ai as ro,o as n,c as no,V as o,M as t,O as w,u as a,L as d,S as io,a as C,k as mo,T as _,n as x}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./cost_project.2762b876.js";const co=_("\u67E5\u8BE2"),_o=_("\u91CD\u7F6E"),fo=_(" \u65B0\u589E "),wo=_(" \u5220\u9664 "),vo={class:"mt-4"},Eo={style:{width:"95%",margin:"0 auto"}},Fo=_(" \u7F16\u8F91 "),ho=_(" \u5220\u9664 "),bo={class:"flex justify-end mt-4"},Do=A({name:"projectCommissionLists"}),_e=A({...Do,setup(Bo){const v=po(),E=V(!1),p=so({num:"",project:"",project_num:""}),D=V([]),$=s=>{D.value=s.map(({id:l})=>l)},{dictData:F}=to("supervision_project_industry,task_type,major_type"),{pager:i,getLists:h,resetParams:P,resetPage:z}=eo({fetchFun:g,params:p}),I=async()=>{var s;E.value=!0,await x(),(s=v.value)==null||s.open("add")},L=async s=>{var m,r;let l=await uo({id:s.id});E.value=!0,await x(),(m=v.value)==null||m.open("edit"),(r=v.value)==null||r.setFormData(l)},y=async s=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ao({id:s}),h()};return h(),(s,l)=>{const m=M,r=q,c=O,N=oo,S=G,k=H,T=Z,e=J,B=X,j=K,R=W,b=ro("perms"),U=Q;return n(),no("div",null,[o(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(S,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[o(r,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:t(()=>[o(m,{class:"w-[280px]",modelValue:p.num,"onUpdate:modelValue":l[0]||(l[0]=u=>p.num=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),o(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:t(()=>[o(m,{class:"w-[280px]",modelValue:p.project,"onUpdate:modelValue":l[1]||(l[1]=u=>p.project=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(r,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:t(()=>[o(m,{class:"w-[280px]",modelValue:p.project_num,"onUpdate:modelValue":l[2]||(l[2]=u=>p.project_num=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),o(r,null,{default:t(()=>[o(c,{type:"primary",onClick:a(z)},{default:t(()=>[co]),_:1},8,["onClick"]),o(c,{onClick:a(P)},{default:t(()=>[_o]),_:1},8,["onClick"]),o(N,{class:"ml-2.5","fetch-fun":a(g),params:p,"page-size":a(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),w((n(),d(k,{class:"!border-none",shadow:"never"},{default:t(()=>[w((n(),d(c,{type:"primary",onClick:I},{icon:t(()=>[o(T,{name:"el-icon-Plus"})]),default:t(()=>[fo]),_:1})),[[b,["project_commission/add"]]]),w((n(),d(c,{disabled:!D.value.length,onClick:l[3]||(l[3]=u=>y(D.value))},{default:t(()=>[wo]),_:1},8,["disabled"])),[[b,["project_commission/delete"]]]),C("div",vo,[o(j,{data:a(i).lists,onSelectionChange:$,"row-key":"id"},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{type:"expand"},{default:t(u=>[C("div",Eo,[o(j,{data:u.row.children},{default:t(()=>[o(e,{label:"\u5DE5\u7A0B\u5E08",prop:"engineer","show-overflow-tooltip":""}),o(e,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task_name","show-overflow-tooltip":""}),o(e,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"task_type"},{default:t(({row:f})=>[o(B,{options:a(F).task_type,value:f.task_type},null,8,["options","value"])]),_:1}),o(e,{label:"\u4E13\u4E1A\u7C7B\u578B",prop:"professional_type"},{default:t(({row:f})=>[o(B,{options:a(F).major_type,value:f.professional_type},null,8,["options","value"])]),_:1}),o(e,{label:"\u9020\u4EF7\u91D1\u989D",prop:"zj_amount","show-overflow-tooltip":""}),o(e,{label:"\u6536\u6B3E\u91D1\u989D",prop:"sk_amount","show-overflow-tooltip":""}),o(e,{label:"\u63D0\u6210\u6BD4\u4F8B\uFF08%\uFF09",prop:"tc_rate","show-overflow-tooltip":""}),o(e,{label:"\u5E94\u63D0\u6210\u91D1\u989D",prop:"tc_amount","show-overflow-tooltip":""}),o(e,{label:"\u672C\u6B21\u652F\u4ED8\u91D1\u989D",prop:"pay_amount","show-overflow-tooltip":""})]),_:2},1032,["data"])])]),_:1}),o(e,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"projectInfo.principal","show-overflow-tooltip":""}),o(e,{label:"\u5173\u8054\u5408\u540C",prop:"contract.contract_name","show-overflow-tooltip":""}),o(e,{label:"\u884C\u4E1A",prop:"industry","show-overflow-tooltip":""},{default:t(({row:u})=>[o(B,{options:a(F).supervision_project_industry,value:u.industry},null,8,["options","value"])]),_:1}),o(e,{label:"\u9879\u76EE\u56DE\u6B3E\u603B\u989D",prop:"hk","show-overflow-tooltip":""}),o(e,{label:"\u63D0\u6210\u6BD4\u4F8B\uFF08%\uFF09",prop:"rate","show-overflow-tooltip":""}),o(e,{label:"\u5E94\u63D0\u6210\u603B\u91D1\u989D",prop:"ticheng","show-overflow-tooltip":""}),o(e,{label:"\u5DF2\u652F\u4ED8\u603B\u989D",prop:"paid_amount","show-overflow-tooltip":""}),o(e,{label:"\u672C\u6B21\u652F\u4ED8\u603B\u989D",prop:"bczfze","show-overflow-tooltip":""}),o(e,{label:"\u767B\u8BB0\u4EBA",prop:"djr","show-overflow-tooltip":""}),o(e,{label:"\u767B\u8BB0\u65E5\u671F",prop:"apptime","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:u})=>[w((n(),d(c,{type:"primary",link:"",onClick:f=>L(u)},{default:t(()=>[Fo]),_:2},1032,["onClick"])),[[b,["project_commission/edit"]]]),w((n(),d(c,{type:"danger",link:"",onClick:f=>y(u.id)},{default:t(()=>[ho]),_:2},1032,["onClick"])),[[b,["project_commission/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",bo,[o(R,{modelValue:a(i),"onUpdate:modelValue":l[4]||(l[4]=u=>mo(i)?i.value=u:null),onChange:a(h)},null,8,["modelValue","onChange"])])]),_:1})),[[U,a(i).loading]]),E.value?(n(),d(lo,{key:0,ref_key:"editRef",ref:v,"dict-data":a(F),onSuccess:a(h),onClose:l[5]||(l[5]=u=>E.value=!1)},null,8,["dict-data","onSuccess"])):io("",!0)])}}});export{_e as default};
|