engineering/public/admin/assets/index.49e53cb4.js
2024-02-20 17:15:05 +08:00

2 lines
4.9 KiB
JavaScript

import{L as I,w as j,M as A,C as M,N as O}from"./element-plus.b3353ca6.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{u as z}from"./usePaging.f6660143.js";import{u as G}from"./useDictOptions.c47985a3.js";import{m as H,a as b}from"./material_purchase_request_detail.c9b6e711.js";import"./lodash.1d82ee7c.js";import"./index.892155dd.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.047de4a9.js";import K from"./detail.85cec290.js";import{d as k,a0 as D,s as F,r as v,ai as Q,o as s,c as W,O as w,u as l,L as p,M as n,S as g,a as E,V as o,k as X,T as y,n as B}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"./index.771e5a41.js";import"./custom.735a8774.js";const Y={class:"mt-4"},Z=y(" \u7F16\u8F91 "),ee=y(" \u8BE6\u60C5 "),oe={class:"flex justify-end mt-4"},te=k({name:"projectLists"}),Je=k({...te,setup(ae){D([]);const m=F(),c=F(),d=v(!1),_=v(!1),R=D({}),x=v([]),V=i=>{x.value=i.map(({id:t})=>t)},{dictData:h}=G("pay_period,invoice_type"),{pager:u,getLists:f,resetParams:le,resetPage:ie}=z({fetchFun:H,params:R}),q=async i=>{var e,a;let t=await b({id:i.id});d.value=!0,await B(),(e=c.value)==null||e.open("edit"),(a=c.value)==null||a.setFormData(t)},L=async i=>{var e,a;let t=await b({id:i.id});_.value=!0,await B(),(e=m.value)==null||e.open(),(a=m.value)==null||a.setFormData(t)};return f(),(i,t)=>{const e=I,a=j,$=A,N=U,P=M,C=Q("perms"),S=O;return s(),W("div",null,[w((s(),p(P,{class:"!border-none",shadow:"never"},{default:n(()=>[E("div",Y,[o($,{data:l(u).lists,onSelectionChange:V},{default:n(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u5BA2\u6237",prop:"custom_name","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(e,{label:"\u7533\u8BF7\u65E5\u671F",prop:"apply_date","show-overflow-tooltip":""}),o(e,{label:"\u5E0C\u671B\u5230\u8D27\u65E5\u671F",prop:"arrival_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7C7B\u522B",prop:"material_first_level","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"material_second_level","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"material_three_level","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u540D\u79F0",prop:"material_name","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7F16\u7801",prop:"material_code","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C\u578B\u53F7",prop:"material_specs","show-overflow-tooltip":""}),o(e,{label:"\u54C1\u724C",prop:"material_brand","show-overflow-tooltip":""}),o(e,{label:"\u53C2\u6570\u8BF4\u660E",prop:"material_parameter_description","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4F4D",prop:"material_unit","show-overflow-tooltip":""}),o(e,{label:"\u7533\u8BF7\u91C7\u8D2D\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),o(e,{label:"\u5DF2\u91C7\u8D2D\u6570\u91CF",prop:"has_procure_num","show-overflow-tooltip":""}),o(e,{label:"\u672A\u91C7\u8D2D\u6570\u91CF",prop:"not_procure_num","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:n(({row:r})=>[w((s(),p(a,{type:"primary",link:"",onClick:T=>q(r)},{default:n(()=>[Z]),_:2},1032,["onClick"])),[[C,["InvoicingRequests.InvoicingRequests/edit"]]]),w((s(),p(a,{link:"",onClick:T=>L(r)},{default:n(()=>[ee]),_:2},1032,["onClick"])),[[C,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),E("div",oe,[o(N,{modelValue:l(u),"onUpdate:modelValue":t[0]||(t[0]=r=>X(u)?u.value=r:null),onChange:l(f)},null,8,["modelValue","onChange"])])]),_:1})),[[S,l(u).loading]]),d.value?(s(),p(J,{key:0,ref_key:"editRef",ref:c,"dict-data":l(h),onSuccess:l(f),onClose:t[1]||(t[1]=r=>d.value=!1)},null,8,["dict-data","onSuccess"])):g("",!0),_.value?(s(),p(K,{key:1,ref_key:"detailRef",ref:m,"dict-data":l(h),onClose:t[2]||(t[2]=r=>_.value=!1)},null,8,["dict-data"])):g("",!0)])}}});export{Je as default};