2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{I as A,y as O,w as z,D as G,C as H,L as J,M as K,N as Q}from"./element-plus.4ff6f47d.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{a as X}from"./index.aaca920c.js";import{u as Y}from"./usePaging.f6660143.js";import{u as Z}from"./useDictOptions.c83e2497.js";import{c as ee,m as te}from"./material_purchase_request.cf57e949.js";import"./lodash.8ea2174a.js";import{_ as oe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.2e4ca37e.js";import ae from"./detail.fc55502b.js";import{d as x,a0 as k,s as y,r as w,ai as le,o as r,c as ie,V as e,M as o,O as E,u as l,L as p,S as B,a as q,k as se,T as _,n as V}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.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.9d50a443.js";import"./index.ff7c6188.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./material_purchase_request_detail.1f5f87d5.js";import"./custom.01004c04.js";const re=_("\u67E5\u8BE2"),ne=_("\u91CD\u7F6E"),ue=_(" \u65B0\u589E "),pe={class:"mt-4"},me=_(" \u8BE6\u60C5 "),ce={class:"flex justify-end mt-4"},de=x({name:"projectLists"}),ut=x({...de,setup(_e){k([]);const f=y(),D=y(),v=w(!1),h=w(!1),m=k({material_purchase_request_code:""}),R=w([]),I=i=>{R.value=i.map(({id:t})=>t)},{dictData:F}=Z("pay_period,invoice_type"),{pager:n,getLists:C,resetParams:L,resetPage:P}=Y({fetchFun:ee,params:m}),$=async()=>{var i;v.value=!0,await V(),(i=D.value)==null||i.open("add")},N=async i=>{var c,u;let t=await te({id:i.id});h.value=!0,await V(),(c=f.value)==null||c.open(),(u=f.value)==null||u.setFormData(t)};return C(),(i,t)=>{const c=A,u=O,d=z,S=G,b=H,T=X,a=J,j=K,M=W,g=le("perms"),U=Q;return r(),ie("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(S,{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]=s=>m.material_purchase_request_code=s),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:l(P)},{default:o(()=>[re]),_:1},8,["onClick"]),e(d,{onClick:l(L)},{default:o(()=>[ne]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),E((r(),p(b,{class:"!border-none",shadow:"never"},{default:o(()=>[E((r(),p(d,{type:"primary",onClick:$},{icon:o(()=>[e(T,{name:"el-icon-Plus"})]),default:o(()=>[ue]),_:1})),[[g,["InvoicingRequests.InvoicingRequests/add"]]]),q("div",pe,[e(j,{data:l(n).lists,onSelectionChange:I},{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:s})=>[E((r(),p(d,{link:"",onClick:fe=>N(s)},{default:o(()=>[me]),_:2},1032,["onClick"])),[[g,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),q("div",ce,[e(M,{modelValue:l(n),"onUpdate:modelValue":t[1]||(t[1]=s=>se(n)?n.value=s:null),onChange:l(C)},null,8,["modelValue","onChange"])])]),_:1})),[[U,l(n).loading]]),v.value?(r(),p(oe,{key:0,ref_key:"editRef",ref:D,"dict-data":l(F),onSuccess:l(C),onClose:t[2]||(t[2]=s=>v.value=!1)},null,8,["dict-data","onSuccess"])):B("",!0),h.value?(r(),p(ae,{key:1,ref_key:"detailRef",ref:f,"dict-data":l(F),onClose:t[3]||(t[3]=s=>h.value=!1)},null,8,["dict-data"])):B("",!0)])}}});export{ut as default};
|