engineering/public/admin/assets/index.ff825ee3.js
2024-03-04 15:04:21 +08:00

2 lines
7.0 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as W,L as X,M as Y,N as Z}from"./element-plus.258bf9e7.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as le,a as oe}from"./index.ec401e3b.js";import{u as te}from"./usePaging.f6660143.js";import{u as ae}from"./useDictOptions.c644f395.js";import{d as ue}from"./material_classify.13e39292.js";import{m as ne,a as R,d as se}from"./material_list.9f618924.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.3fa63d83.js";import re from"./detail.58056e1d.js";import{d as $,s as x,r as F,a0 as de,ai as pe,o as r,c as me,V as e,M as t,O as _,u as d,L as p,S as I,a as q,k as ce,T as c,n as V}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./custom.13e75d58.js";const _e=c("\u67E5\u8BE2"),fe=c("\u91CD\u7F6E"),ve=c(" \u65B0\u589E "),Ce=c(" \u5220\u9664 "),be={class:"mt-4"},we=c(" \u7F16\u8F91 "),Fe=c(" \u5220\u9664 "),he=c(" \u8BE6\u60C5 "),ge={class:"flex justify-end mt-4"},Be=$({name:"projectLists"}),_l=$({...Be,setup(Ve){const h=x(),C=x(),b=F(!1),g=F(!1),L=F([]),a=de({first_level:"",second_level:"",three_level:"",code:"",brand:"",name:""}),B=F([]),U=u=>{B.value=u.map(({id:l})=>l)},{dictData:k}=ae("pay_period,invoice_type"),{pager:f,getLists:w,resetParams:P,resetPage:N}=te({fetchFun:ne,params:a}),S=async()=>{var u;b.value=!0,await V(),(u=C.value)==null||u.open("add")},T=async u=>{var s,n;let l=await R({id:u.id});b.value=!0,await V(),(s=C.value)==null||s.open("edit"),(n=C.value)==null||n.setFormData(l)},D=async u=>{await le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:u}),w()},j=async u=>{var s,n;let l=await R({id:u.id});g.value=!0,await V(),(s=h.value)==null||s.open(),(n=h.value)==null||n.setFormData(l)};return(()=>{ue({page_no:1,page_size:9999}).then(u=>{console.log(u),L.value=u.lists})})(),w(),(u,l)=>{const s=H,n=J,m=K,A=Q,y=W,M=oe,i=X,z=Y,O=ee,v=pe("perms"),G=Z;return r(),me("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(A,{class:"mb-[-16px]",model:a,inline:"","label-width":"auto"},{default:t(()=>[e(n,{label:"\u6750\u6599\u5927\u7C7B",prop:"first_level"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.first_level,"onUpdate:modelValue":l[0]||(l[0]=o=>a.first_level=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599\u5927\u7C7B"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"second_level"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.second_level,"onUpdate:modelValue":l[1]||(l[1]=o=>a.second_level=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599\u4E2D\u7C7B"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"three_level"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.three_level,"onUpdate:modelValue":l[2]||(l[2]=o=>a.three_level=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599\u5C0F\u7C7B"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6750\u6599\u7F16\u7801",prop:"code"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.code,"onUpdate:modelValue":l[3]||(l[3]=o=>a.code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u54C1\u724C",prop:"brand"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.brand,"onUpdate:modelValue":l[4]||(l[4]=o=>a.brand=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u54C1\u724C"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6750\u6599\u540D\u79F0",prop:"name"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.name,"onUpdate:modelValue":l[5]||(l[5]=o=>a.name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(m,{type:"primary",onClick:d(N)},{default:t(()=>[_e]),_:1},8,["onClick"]),e(m,{onClick:d(P)},{default:t(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),p(y,{class:"!border-none",shadow:"never"},{default:t(()=>[_((r(),p(m,{type:"primary",onClick:S},{icon:t(()=>[e(M,{name:"el-icon-Plus"})]),default:t(()=>[ve]),_:1})),[[v,["InvoicingRequests.InvoicingRequests/add"]]]),_((r(),p(m,{disabled:!B.value.length,onClick:l[6]||(l[6]=o=>D(B.value))},{default:t(()=>[Ce]),_:1},8,["disabled"])),[[v,["InvoicingRequests.InvoicingRequests/delete"]]]),q("div",be,[e(z,{data:d(f).lists,onSelectionChange:U},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(i,{label:"\u6750\u6599\u5927\u7C7B",prop:"first_level_name","show-overflow-tooltip":""}),e(i,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"second_level_name","show-overflow-tooltip":""}),e(i,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"three_level_name","show-overflow-tooltip":""}),e(i,{label:"\u6750\u6599\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(i,{label:"\u6750\u6599\u7F16\u7801",prop:"code","show-overflow-tooltip":""}),e(i,{label:"\u54C1\u724C",prop:"brand","show-overflow-tooltip":""}),e(i,{label:"\u89C4\u683C\u578B\u53F7",prop:"specs","show-overflow-tooltip":""}),e(i,{label:"\u53C2\u6570\u8BF4\u660E",prop:"parameter_description","show-overflow-tooltip":""}),e(i,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:o})=>[_((r(),p(m,{type:"primary",link:"",onClick:E=>T(o)},{default:t(()=>[we]),_:2},1032,["onClick"])),[[v,["InvoicingRequests.InvoicingRequests/edit"]]]),_((r(),p(m,{type:"danger",link:"",onClick:E=>D(o.id)},{default:t(()=>[Fe]),_:2},1032,["onClick"])),[[v,["InvoicingRequests.InvoicingRequests/delete"]]]),_((r(),p(m,{link:"",onClick:E=>j(o)},{default:t(()=>[he]),_:2},1032,["onClick"])),[[v,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),q("div",ge,[e(O,{modelValue:d(f),"onUpdate:modelValue":l[7]||(l[7]=o=>ce(f)?f.value=o:null),onChange:d(w)},null,8,["modelValue","onChange"])])]),_:1})),[[G,d(f).loading]]),b.value?(r(),p(ie,{key:0,ref_key:"editRef",ref:C,"dict-data":d(k),onSuccess:d(w),onClose:l[8]||(l[8]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):I("",!0),g.value?(r(),p(re,{key:1,ref_key:"detailRef",ref:h,"dict-data":d(k),onClose:l[9]||(l[9]=o=>g.value=!1)},null,8,["dict-data"])):I("",!0)])}}});export{_l as default};