2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{I as K,y as Q,w as X,D as Y,C as Z,L as ee,a0 as te,M as oe,N as ae}from"./element-plus.b3353ca6.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as se,a as ne}from"./index.892155dd.js";import{u as ie}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.c47985a3.js";import{_ as ue,a as pe,b as de,c as ce}from"./edit.vue_vue_type_script_setup_true_name_projectCostAdjustmentEdit_lang.07637fb3.js";import{d as S,s as $,r as b,a0 as me,ai as _e,o as s,c as L,V as e,M as o,O as c,u as n,L as i,S as R,n as g,a as A,W as fe,a8 as ve,k as Ce,T as u,U as je}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import he from"./detail.7d0463c2.js";import{u as Ee}from"./vue-router.87ebc608.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"./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"./index.771e5a41.js";import"./index.vue_vue_type_script_setup_true_lang.3dd325bc.js";import"./project.31b61d2e.js";import"./index.cf38292c.js";import"./approve.cdf281c2.js";import"./flow.ec77bb69.js";import"./flowSet.0350f9c8.js";const ke=u("\u67E5\u8BE2"),we=u("\u91CD\u7F6E"),ye=u(" \u65B0\u589E "),be=u(" \u5220\u9664 "),ge={class:"mt-4"},De=u(" \u7F16\u8F91 "),Fe=u(" \u5220\u9664 "),xe=u(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},Be=S({name:"projectCostAdjustmentLists"}),yt=S({...Be,setup(Pe){var B;const k=$(),v=$(),C=b(!1),w=b(!1),j=me({project_id:""}),y=b([]),I=l=>{y.value=l.map(({id:t})=>t)},{dictData:D}=re(""),{pager:m,getLists:h,resetParams:N,resetPage:T}=ie({fetchFun:pe,params:j}),q=async()=>{var l;C.value=!0,await g(),(l=v.value)==null||l.open("add")},F=async l=>{var t,p;C.value=!0,await g(),(t=v.value)==null||t.open("edit"),(p=v.value)==null||p.setFormData(l)},x=async l=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:l}),h()},U=async l=>{var p,_;let t=await ce({id:l.id});w.value=!0,await g(),(p=k.value)==null||p.open(),(_=k.value)==null||_.setFormData(t)},V=Ee();return(B=V.query)!=null&&B.listId&&F({id:V.query.listId}),h(),(l,t)=>{const p=K,_=Q,d=X,M=Y,P=Z,O=ne,r=ee,W=te,z=oe,G=le,f=_e("perms"),H=ae;return s(),L("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(M,{class:"mb-[-16px]",model:j,inline:""},{default:o(()=>[e(_,{label:"\u9879\u76EEid",prop:"project_id"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:j.project_id,"onUpdate:modelValue":t[0]||(t[0]=a=>j.project_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EEid"},null,8,["modelValue"])]),_:1}),e(_,null,{default:o(()=>[e(d,{type:"primary",onClick:n(T)},{default:o(()=>[ke]),_:1},8,["onClick"]),e(d,{onClick:n(N)},{default:o(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((s(),i(P,{class:"!border-none",shadow:"never"},{default:o(()=>[c((s(),i(d,{type:"primary",onClick:q},{icon:o(()=>[e(O,{name:"el-icon-Plus"})]),default:o(()=>[ye]),_:1})),[[f,["project.project_cost_adjustment/add"]]]),c((s(),i(d,{disabled:!y.value.length,onClick:t[1]||(t[1]=a=>x(y.value))},{default:o(()=>[be]),_:1},8,["disabled"])),[[f,["project.project_cost_adjustment/delete"]]]),A("div",ge,[e(z,{data:n(m).lists,onSelectionChange:I},{default:o(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(r,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(r,{label:"\u8C03\u6574\u65E5\u671F",prop:"adjust_date","show-overflow-tooltip":""}),e(r,{label:"\u8C03\u6574\u91D1\u989D",prop:"adjust_amount","show-overflow-tooltip":""}),e(r,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(r,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":"",align:"center"},{default:o(({row:a})=>[(s(!0),L(fe,null,ve(a.annex,(E,J)=>(s(),i(W,{style:{"margin-right":"4px"},type:"primary",href:E.uri},{default:o(()=>[u("\u6587\u4EF6"+je(J+1),1)]),_:2},1032,["href"]))),256))]),_:1}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[c((s(),i(d,{type:"primary",link:"",onClick:E=>F(a)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[f,["project.project_cost_adjustment/edit"]]]),c((s(),i(d,{type:"danger",link:"",onClick:E=>x(a.id)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[f,["project.project_cost_adjustment/delete"]]]),c((s(),i(d,{link:"",onClick:E=>U(a)},{default:o(()=>[xe]),_:2},1032,["onClick"])),[[f,["project.project_cost_adjustment/detail"]]])]),_:1})]),_:1},8,["data"])]),A("div",Ve,[e(G,{modelValue:n(m),"onUpdate:modelValue":t[2]||(t[2]=a=>Ce(m)?m.value=a:null),onChange:n(h)},null,8,["modelValue","onChange"])])]),_:1})),[[H,n(m).loading]]),C.value?(s(),i(ue,{key:0,ref_key:"editRef",ref:v,"dict-data":n(D),onSuccess:n(h),onClose:t[3]||(t[3]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),w.value?(s(),i(he,{key:1,ref_key:"detailRef",ref:k,"dict-data":n(D),onClose:t[4]||(t[4]=a=>w.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{yt as default};
|