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

2 lines
7.5 KiB
JavaScript

import{I as oe,y as te,G as le,H as ae,w as ie,D as ue,C as ne,L as se,M as re,N as pe}from"./element-plus.258bf9e7.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as de,a as me}from"./index.ec401e3b.js";import{u as _e}from"./usePaging.f6660143.js";import{u as ve}from"./useDictOptions.c644f395.js";import{d as fe,a as $,e as we}from"./InvoicingRequests.ffa42549.js";import"./lodash.1d82ee7c.js";import{a as Ce}from"./contract.4f8a540d.js";import{b as be}from"./custom.13e75d58.js";import{_ as he}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.141ba0a9.js";import Fe from"./detail.e2436230.js";import{d as j,a0 as A,s as P,r as C,ai as ge,o as u,c as E,V as e,M as a,O as v,u as r,L as s,S,W as N,a8 as T,a as U,k as ye,T as c,n as k}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"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./index.vue_vue_type_script_setup_true_lang.ad39d63c.js";import"./suppler_list.25198ddd.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./procurement_contract.b71ab69f.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";const xe=c("\u67E5\u8BE2"),De=c("\u91CD\u7F6E"),Ee=c(" \u65B0\u589E "),ke=c(" \u5220\u9664 "),Be={class:"mt-4"},Ve=c(" \\ "),Re=c(" \u7F16\u8F91 "),Ie=c(" \u5220\u9664 "),qe=c(" \u8BE6\u60C5 "),Le={class:"flex justify-end mt-4"},$e=j({name:"projectLists"}),Lo=j({...$e,setup(Ae){A([]);const y=P(),b=P(),h=C(!1),x=C(!1),B=C([]),V=C([]),p=A({invoicing_company_name:"",contract_id:"",customer_id:""}),D=C([]),M=i=>{D.value=i.map(({id:o})=>o)},{dictData:R}=ve("pay_period,invoice_type"),{pager:f,getLists:F,resetParams:O,resetPage:G}=_e({fetchFun:fe,params:p}),H=async()=>{var i;h.value=!0,await k(),(i=b.value)==null||i.open("add")},W=async i=>{var d,n;let o=await $({id:i.id});h.value=!0,await k(),(d=b.value)==null||d.open("edit"),(n=b.value)==null||n.setFormData(o)},I=async i=>{await de.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await we({id:i}),F()},z=async i=>{var d,n;let o=await $({id:i.id});x.value=!0,await k(),(d=y.value)==null||d.open(),(n=y.value)==null||n.setFormData(o)},J=()=>{Ce().then(i=>{B.value=i.lists})},K=()=>{be().then(i=>{V.value=i.lists})};return J(),K(),F(),(i,o)=>{const d=oe,n=te,g=le,q=ae,m=ie,Q=ue,L=ne,X=me,l=se,Y=re,Z=ce,w=ge("perms"),ee=pe;return u(),E("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(Q,{class:"mb-[-16px]",model:p,inline:""},{default:a(()=>[e(n,{label:"\u5F00\u7968\u516C\u53F8\u540D\u79F0",prop:"invoicing_company_name"},{default:a(()=>[e(d,{class:"w-[280px]",modelValue:p.invoicing_company_name,"onUpdate:modelValue":o[0]||(o[0]=t=>p.invoicing_company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u6237",prop:"customer_id"},{default:a(()=>[e(q,{class:"w-[280px]",modelValue:p.customer_id,"onUpdate:modelValue":o[1]||(o[1]=t=>p.customer_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:a(()=>[e(g,{label:"\u5168\u90E8",value:""}),(u(!0),E(N,null,T(V.value,(t,_)=>(u(),s(g,{key:_,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u5408\u540C",prop:"contract_id"},{default:a(()=>[e(q,{class:"w-[280px]",modelValue:p.contract_id,"onUpdate:modelValue":o[2]||(o[2]=t=>p.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[e(g,{label:"\u5168\u90E8",value:""}),(u(!0),E(N,null,T(B.value,(t,_)=>(u(),s(g,{key:_,label:t.contract_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(m,{type:"primary",onClick:r(G)},{default:a(()=>[xe]),_:1},8,["onClick"]),e(m,{onClick:r(O)},{default:a(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),s(L,{class:"!border-none",shadow:"never"},{default:a(()=>[v((u(),s(m,{type:"primary",onClick:H},{icon:a(()=>[e(X,{name:"el-icon-Plus"})]),default:a(()=>[Ee]),_:1})),[[w,["InvoicingRequests.InvoicingRequests/add"]]]),v((u(),s(m,{disabled:!D.value.length,onClick:o[3]||(o[3]=t=>I(D.value))},{default:a(()=>[ke]),_:1},8,["disabled"])),[[w,["InvoicingRequests.InvoicingRequests/delete"]]]),U("div",Be,[e(Y,{data:r(f).lists,onSelectionChange:M},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u6750\u6599\u7C7B\u522B",prop:"tax_rate","show-overflow-tooltip":""}),e(l,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u6750\u6599\u540D\u79F0",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u6750\u6599\u7F16\u7801",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u89C4\u683C\u578B\u53F7",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u54C1\u724C",prop:"tax","show-overflow-tooltip":""}),Ve,e(l,{label:"\u5355\u4F4D",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u8BA2\u5355\u6570\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u53D1\u8D27\u6570\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u672A\u53D1\u8D27\u6570\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u5E93\u5B58\u6570\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u5728\u9014\u91C7\u8D2D\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u5B89\u5168\u5E93\u5B58\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u7F3A\u53E3\u6570\u91CF",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"tax","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[v((u(),s(m,{type:"primary",link:"",onClick:_=>W(t)},{default:a(()=>[Re]),_:2},1032,["onClick"])),[[w,["InvoicingRequests.InvoicingRequests/edit"]]]),v((u(),s(m,{type:"danger",link:"",onClick:_=>I(t.id)},{default:a(()=>[Ie]),_:2},1032,["onClick"])),[[w,["InvoicingRequests.InvoicingRequests/delete"]]]),v((u(),s(m,{link:"",onClick:_=>z(t)},{default:a(()=>[qe]),_:2},1032,["onClick"])),[[w,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),U("div",Le,[e(Z,{modelValue:r(f),"onUpdate:modelValue":o[4]||(o[4]=t=>ye(f)?f.value=t:null),onChange:r(F)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,r(f).loading]]),h.value?(u(),s(he,{key:0,ref_key:"editRef",ref:b,"dict-data":r(R),onSuccess:r(F),onClose:o[5]||(o[5]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0),x.value?(u(),s(Fe,{key:1,ref_key:"detailRef",ref:y,"dict-data":r(R),onClose:o[6]||(o[6]=t=>x.value=!1)},null,8,["dict-data"])):S("",!0)])}}});export{Lo as default};