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

2 lines
7.2 KiB
JavaScript

import{I as W,y as z,G as J,H as K,w as Q,D as X,C as Y,L as Z,M as oo,N as eo}from"./element-plus.517d4382.js";import{_ as to}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{u as lo}from"./usePaging.f6660143.js";import{u as io}from"./useDictOptions.b5854a9e.js";import{d as ao,a as uo}from"./InvoicingRequests.194880ba.js";import"./lodash.1d82ee7c.js";import{a as no}from"./contract.2d0c2079.js";import{b as po}from"./custom.99349afc.js";import"./index.8b1962e9.js";import ro from"./detail.cd9bbbef.js";import{d as R,a0 as y,s as V,r as c,ai as so,o as n,c as F,V as o,M as i,O as k,u as r,L as d,S as co,W as x,a8 as A,a as L,k as mo,T as g,n as _o}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.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./index.b17dae19.js";const vo=g("\u67E5\u8BE2"),fo=g("\u91CD\u7F6E"),wo={class:"mt-4"},bo=g(" \u8BE6\u60C5 "),Fo={class:"flex justify-end mt-4"},go=R({name:"projectLists"}),se=R({...go,setup(ho){y([]);const f=V();V(),c(!1);const w=c(!1),h=c([]),E=c([]),a=y({invoicing_company_name:"",contract_id:"",customer_id:""}),I=c([]),N=u=>{I.value=u.map(({id:l})=>l)},{dictData:P}=io("pay_period,invoice_type"),{pager:s,getLists:C,resetParams:T,resetPage:j}=lo({fetchFun:ao,params:a}),S=async u=>{var m,p;let l=await uo({id:u.id});w.value=!0,await _o(),(m=f.value)==null||m.open(),(p=f.value)==null||p.setFormData(l)},U=()=>{no().then(u=>{h.value=u.lists})},q=()=>{po().then(u=>{E.value=u.lists})};return U(),q(),C(),(u,l)=>{const m=W,p=z,_=J,B=K,b=Q,$=X,D=Y,e=Z,M=oo,O=to,G=so("perms"),H=eo;return n(),F("div",null,[o(D,{class:"!border-none mb-4",shadow:"never"},{default:i(()=>[o($,{class:"mb-[-16px]",model:a,inline:""},{default:i(()=>[o(p,{label:"\u5F00\u7968\u516C\u53F8\u540D\u79F0",prop:"invoicing_company_name"},{default:i(()=>[o(m,{class:"w-[280px]",modelValue:a.invoicing_company_name,"onUpdate:modelValue":l[0]||(l[0]=t=>a.invoicing_company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u5BA2\u6237",prop:"customer_id"},{default:i(()=>[o(B,{class:"w-[280px]",modelValue:a.customer_id,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:i(()=>[o(_,{label:"\u5168\u90E8",value:""}),(n(!0),F(x,null,A(E.value,(t,v)=>(n(),d(_,{key:v,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(p,{label:"\u5408\u540C",prop:"contract_id"},{default:i(()=>[o(B,{class:"w-[280px]",modelValue:a.contract_id,"onUpdate:modelValue":l[2]||(l[2]=t=>a.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:i(()=>[o(_,{label:"\u5168\u90E8",value:""}),(n(!0),F(x,null,A(h.value,(t,v)=>(n(),d(_,{key:v,label:t.contract_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(p,null,{default:i(()=>[o(b,{type:"primary",onClick:r(j)},{default:i(()=>[vo]),_:1},8,["onClick"]),o(b,{onClick:r(T)},{default:i(()=>[fo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),k((n(),d(D,{class:"!border-none",shadow:"never"},{default:i(()=>[L("div",wo,[o(M,{data:r(s).lists,onSelectionChange:N},{default:i(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u51FA\u5E93\u5355\u53F7",prop:"customer_name","show-overflow-tooltip":""}),o(e,{label:"\u5BA2\u6237\u540D\u79F0",prop:"customer_name","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(e,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u4ED3\u5E93\u7F16\u7801",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u51FA\u8D27\u65B9\u5F0F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u4F9B\u5E94\u65B9\u5F0F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u51FA\u5E93\u65E5\u671F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7C7B\u522B",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u540D\u79F0",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7F16\u7801",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u54C1\u724C",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C\u578B\u53F7",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u53C2\u6570\u8BF4\u660E",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4F4D",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4EF7",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u91D1\u989D",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u9000\u5E93\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u9000\u5E93\u91D1\u989D",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u662F\u5426\u9501\u5B9A",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6DFB\u52A0\u4EBA",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u521B\u5EFA\u65E5\u671F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u66F4\u65B0\u4EBA",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u66F4\u65B0\u65E5\u671F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:i(({row:t})=>[k((n(),d(b,{link:"",onClick:v=>S(t)},{default:i(()=>[bo]),_:2},1032,["onClick"])),[[G,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",Fo,[o(O,{modelValue:r(s),"onUpdate:modelValue":l[3]||(l[3]=t=>mo(s)?s.value=t:null),onChange:r(C)},null,8,["modelValue","onChange"])])]),_:1})),[[H,r(s).loading]]),w.value?(n(),d(ro,{key:0,ref_key:"detailRef",ref:f,"dict-data":r(P),onClose:l[4]||(l[4]=t=>w.value=!1)},null,8,["dict-data"])):co("",!0)])}}});export{se as default};