2 lines
5.9 KiB
JavaScript
2 lines
5.9 KiB
JavaScript
import{I as U,y as q,w as M,D as O,C as z,L as G,b as H,M as J,N as K}from"./element-plus.517d4382.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as W,a as X}from"./index.8b1962e9.js";import{u as Y}from"./usePaging.f6660143.js";import{u as Z}from"./useDictOptions.b5854a9e.js";import{_ as ee,a as oe,b as te}from"./edit.vue_vue_type_script_setup_true_name_projectProgressPaymentEdit_lang.1d8e2a12.js";import"./lodash.1d82ee7c.js";import{d as C,s as ae,r as j,a0 as le,ai as ue,o as s,c as re,V as e,M as t,O as _,u as n,L as m,S as ne,a as B,k as se,T as c,n as y}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./picker.6eb62d2f.js";import"./index.b17dae19.js";import"./index.ee772d81.js";import"./index.0a0ddda3.js";import"./index.vue_vue_type_script_setup_true_lang.f8507404.js";import"./vue3-video-play.b66b1487.js";import"./vuedraggable.05ef589e.js";import"./vue.6436c619.js";import"./sortablejs.81b741d7.js";const pe=c("\u67E5\u8BE2"),ie=c("\u91CD\u7F6E"),me=c(" \u65B0\u589E "),ce=c(" \u5220\u9664 "),de={class:"mt-4"},_e=c(" \u7F16\u8F91 "),fe=c(" \u5220\u9664 "),Ee={class:"flex mt-4 justify-end"},Fe=C({name:"projectProgressPaymentLists"}),mo=C({...Fe,setup(ve){const f=ae(),E=j(!1),r=le({num:"",project:"",project_num:""}),w=j([]),k=u=>{w.value=u.map(({id:o})=>o)},{dictData:D}=Z(""),{pager:d,getLists:F,resetParams:V,resetPage:x}=Y({fetchFun:oe,params:r}),P=async()=>{var u;E.value=!0,await y(),(u=f.value)==null||u.open("add")},A=async u=>{var o,p;E.value=!0,await y(),(o=f.value)==null||o.open("edit"),(p=f.value)==null||p.setFormData(u)},b=async u=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:u}),F()};return F(),(u,o)=>{const p=U,v=q,i=M,$=O,g=z,L=X,l=G,N=H,S=J,T=Q,h=ue("perms"),I=K;return s(),re("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:r,inline:""},{default:t(()=>[e(v,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:r.num,"onUpdate:modelValue":o[0]||(o[0]=a=>r.num=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(v,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:r.project,"onUpdate:modelValue":o[1]||(o[1]=a=>r.project=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(v,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:r.project_num,"onUpdate:modelValue":o[2]||(o[2]=a=>r.project_num=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(v,null,{default:t(()=>[e(i,{type:"primary",onClick:n(x)},{default:t(()=>[pe]),_:1},8,["onClick"]),e(i,{onClick:n(V)},{default:t(()=>[ie]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),m(g,{class:"!border-none",shadow:"never"},{default:t(()=>[_((s(),m(i,{type:"primary",onClick:P},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[me]),_:1})),[[h,["project_process_management.project_progress_payment/add"]]]),_((s(),m(i,{disabled:!w.value.length,onClick:o[3]||(o[3]=a=>b(w.value))},{default:t(()=>[ce]),_:1},8,["disabled"])),[[h,["project_process_management.project_progress_payment/delete"]]]),B("div",de,[e(S,{data:n(d).lists,onSelectionChange:k},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"",prop:"dataid","show-overflow-tooltip":""}),e(l,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num","show-overflow-tooltip":""}),e(l,{label:"\u767B\u8BB0\u4EBA",prop:"djr","show-overflow-tooltip":""}),e(l,{label:"\u767B\u8BB0\u65E5\u671F",prop:"djrq","show-overflow-tooltip":""}),e(l,{label:"\u8FDB\u5EA6\u7533\u62A5\u9020\u4EF7\u5408\u8BA1",prop:"sbhj","show-overflow-tooltip":""}),e(l,{label:"\u8FDB\u5EA6\u5BA1\u6838\u9020\u4EF7\u5408\u8BA1",prop:"shhj","show-overflow-tooltip":""}),e(l,{label:"\u7D2F\u8BA1\u5E94\u4ED8\u5DE5\u7A0B\u6B3E\u5408\u8BA1",prop:"ljhj","show-overflow-tooltip":""}),e(l,{label:"\u9644\u4EF6",prop:"annex"},{default:t(({row:a})=>[e(N,{style:{width:"50px",height:"50px"},src:a.annex},null,8,["src"])]),_:1}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[_((s(),m(i,{type:"primary",link:"",onClick:R=>A(a)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[h,["project_process_management.project_progress_payment/edit"]]]),_((s(),m(i,{type:"danger",link:"",onClick:R=>b(a.id)},{default:t(()=>[fe]),_:2},1032,["onClick"])),[[h,["project_process_management.project_progress_payment/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",Ee,[e(T,{modelValue:n(d),"onUpdate:modelValue":o[4]||(o[4]=a=>se(d)?d.value=a:null),onChange:n(F)},null,8,["modelValue","onChange"])])]),_:1})),[[I,n(d).loading]]),E.value?(s(),m(ee,{key:0,ref_key:"editRef",ref:f,"dict-data":n(D),onSuccess:n(F),onClose:o[5]||(o[5]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{mo as default};
|