engineering/public/admin/assets/index.351d2304.js
2024-02-27 10:28:16 +08:00

2 lines
5.1 KiB
JavaScript

import{I as z,y as G,w as H,D as J,C as K,L as Q,M as W,N as X}from"./element-plus.517d4382.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{a as Z}from"./index.8b1962e9.js";import{u as ee}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.b5854a9e.js";import{m as oe,c as ae}from"./material_purchase_request.88aad46b.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.3ca4301e.js";import le from"./detail.cef90b27.js";import{u as re}from"./vue-router.87ebc608.js";import{d as L,a0 as B,s as R,r as w,ai as se,o as s,c as ne,V as e,M as o,O as E,u as i,L as p,S as V,n as x,a as I,k as ue,T as _}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"./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"./project_material_budget_detail.ace9a748.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./material_purchase_request_detail.81b8cab7.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const pe=_("\u67E5\u8BE2"),me=_("\u91CD\u7F6E"),ce=_(" \u65B0\u589E "),de={class:"mt-4"},_e=_(" \u8BE6\u60C5 "),fe={class:"flex justify-end mt-4"},ve=L({name:"projectLists"}),vt=L({...ve,setup(he){var g;B([]);const D=re(),f=R(),F=R(),v=w(!1),h=w(!1),m=B({material_purchase_request_code:""}),P=w([]),$=l=>{P.value=l.map(({id:t})=>t)},{dictData:y}=te("pay_period,invoice_type"),{pager:n,getLists:C,resetParams:N,resetPage:S}=ee({fetchFun:ae,params:m}),T=async()=>{var l;v.value=!0,await x(),(l=F.value)==null||l.open("add")},b=async l=>{var c,u;let t=await oe({id:l.id});h.value=!0,await x(),(c=f.value)==null||c.open(),(u=f.value)==null||u.setFormData(t)};return(g=D.query)!=null&&g.listId&&b({id:D.query.listId}),C(),(l,t)=>{const c=z,u=G,d=H,j=J,k=K,M=Z,a=Q,U=W,A=Y,q=se("perms"),O=X;return s(),ne("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:m,inline:""},{default:o(()=>[e(u,{label:"\u91C7\u8D2D\u7533\u8BF7\u5355\u53F7",prop:"material_purchase_request_code"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:m.material_purchase_request_code,"onUpdate:modelValue":t[0]||(t[0]=r=>m.material_purchase_request_code=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u91C7\u8D2D\u7533\u8BF7\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(d,{type:"primary",onClick:i(S)},{default:o(()=>[pe]),_:1},8,["onClick"]),e(d,{onClick:i(N)},{default:o(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),E((s(),p(k,{class:"!border-none",shadow:"never"},{default:o(()=>[E((s(),p(d,{type:"primary",onClick:T},{icon:o(()=>[e(M,{name:"el-icon-Plus"})]),default:o(()=>[ce]),_:1})),[[q,["InvoicingRequests.InvoicingRequests/add"]]]),I("div",de,[e(U,{data:i(n).lists,onSelectionChange:$},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u91C7\u8D2D\u7533\u8BF7\u5355\u53F7",prop:"material_purchase_request_code","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u5F00\u7968\u65E5\u671F",prop:"apply_date","show-overflow-tooltip":""}),e(a,{label:"\u5E0C\u671B\u5230\u8D27\u65E5\u671F",prop:"arrival_date","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:r})=>[E((s(),p(d,{link:"",onClick:Ce=>b(r)},{default:o(()=>[_e]),_:2},1032,["onClick"])),[[q,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),I("div",fe,[e(A,{modelValue:i(n),"onUpdate:modelValue":t[1]||(t[1]=r=>ue(n)?n.value=r:null),onChange:i(C)},null,8,["modelValue","onChange"])])]),_:1})),[[O,i(n).loading]]),v.value?(s(),p(ie,{key:0,ref_key:"editRef",ref:F,"dict-data":i(y),onSuccess:i(C),onClose:t[2]||(t[2]=r=>v.value=!1)},null,8,["dict-data","onSuccess"])):V("",!0),h.value?(s(),p(le,{key:1,ref_key:"detailRef",ref:f,"dict-data":i(y),onClose:t[3]||(t[3]=r=>h.value=!1)},null,8,["dict-data"])):V("",!0)])}}});export{vt as default};