HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/index-7e488f3c.js
import{useList as re}from"./hook-26438309.js";import"./index-3693fecb.js";import{be as de}from"./message-2472a54a.js";import{b as T,P as me}from"./index.es-7593c96a.js";import{u as x}from"./hooks-925dc7bd.js";import{d as ce}from"./search-cc37b371.js";import{R as ue}from"./refresh-74425c09.js";import{A as Y}from"./add-circle-line-5b89a592.js";import{u as pe,d as _e}from"./vue-router-a383d220.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang-284a0584.js";import{o as ve}from"./index-81e4a901.js";import{d as B,r as s,o as ge,Q as m,e as g,f as C,g as c,y as t,m as a,x as h,u as e,v as p,F as ye,I as he,l as $,t as V}from"./runtime-core.esm-bundler-6128546f.js";import{_ as be}from"./_plugin-vue_export-helper-c27b6911.js";import"./employee_note-bb59dd54.js";import"./utils-2ab4f76a.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./epTheme-f71e3118.js";import"./index-a7c31d60.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";import"./merge-f215fb43.js";import"./index-9676aad5.js";import"./hook-b7977f52.js";import"./delete-6d738bc7.js";import"./employee_invoice-ccc2de06.js";const ke={class:"main"},xe={class:"float-right w-[100%]"},Ce={class:"font-600 mr-1 text-2xl"},Se={class:"text-sm mr-2",style:{color:"var(--el-text-color-regular)"}},we={class:"Amount_box"},Ve={class:"Amount_box_right"},Ie={key:0,class:"mt-5"},Re={class:"flex space-x-1"},Ae={class:"m-4"},Fe={key:1,class:"mt-5"},De=B({name:"/yuyue/employee_note/list/index"}),Me=B({...De,props:{},emits:["save"],setup(Ne,{emit:Te}){const U=pe();s(),_e();const S=s(),{InvData:r,resetInvForm:Ye,dur_list:E,comp_list:L,product_list:$e,search_form:n,show_select_btn:I,statusHas:Be,row_key:H,config_loading:Ue,select_items:R,handleSelectionChange:J,handleCurrentChange:O,childColumns:P,columns:z,resetForm:Q,model_name:A,form_desc:W,onSearchParams:j,onSearch:w,selectList:q,form:Ee,loading:F,dataList:G,pagination:K}=re();s({});const b=s(!1),X=()=>{var o;if(R.value.length<=0)return de("Please Choose one item",{type:"error"}),!1;r.company_id=n.company_id,r.items=JSON.parse(JSON.stringify(R.value));let d=0;(o=r.items)==null||o.forEach((i,y)=>{i.note_id=i.id,i.id=0,d+=parseFloat(i.price)}),r.total_price=d,b.value=!0};function Z(d){var i,y;r.company_id=n.company_id,r.items=[],(i=r.items)==null||i.push(JSON.parse(JSON.stringify(d))),(y=r.items)==null||y.forEach((_,u)=>{_.note_id=_.id,_.id=0});let o=parseFloat(d.price);r.total_price=o,b.value=!0}function Le(){}s(!1),s("360"),s({});const ee=s("450"),oe=s("300"),te=d=>{const{toggleRowSelection:o,clearSelection:i}=S.value.getTableRef();i(),w()},le=d=>{},ae=d=>{},ne=s(!0),D=d=>{const{toggleRowSelection:o,clearSelection:i}=S.value.getTableRef();i(),ve.confirm("Create Invoie Success,go to view it or continue make other Invoie?","Info",{confirmButtonText:"To view",cancelButtonText:"Still here",type:"success"}).then(()=>{U.push({path:"/yuyue/employee_invoice/list/index"})}).catch(()=>{w()})};ge(()=>{});const M=s();return(d,o)=>{const i=m("el-page-header"),y=m("el-segmented"),_=m("el-date-picker"),u=m("el-form-item"),k=m("el-option"),N=m("el-select"),f=m("el-button"),ie=m("el-form");return g(),C("div",ke,[c("div",xe,[t(i,{icon:null},{title:a(()=>[c("span",Ce,h(e(A)),1)]),content:a(()=>[c("span",Se,h(e(W)),1)]),_:1}),t(y,{modelValue:e(n).company_id,"onUpdate:modelValue":o[0]||(o[0]=l=>e(n).company_id=l),options:e(L),onChange:te,block:""},{default:a(({item:l})=>[p(h(l.label),1)]),_:1},8,["modelValue","options"]),t(ie,{inline:!0,model:e(n),ref_key:"vFormRef",ref:M,class:"mt-2"},{default:a(()=>[t(u,{label:"Service begin data",prop:"begin_time"},{default:a(()=>[t(_,{modelValue:e(n).begin_time,"onUpdate:modelValue":o[1]||(o[1]=l=>e(n).begin_time=l),type:"date",placeholder:"Select day",class:"!w-48","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),t(u,{label:"Service end data",prop:"begin_end"},{default:a(()=>[t(_,{modelValue:e(n).begin_end,"onUpdate:modelValue":o[2]||(o[2]=l=>e(n).begin_end=l),type:"date",placeholder:"Select day",class:"!w-48","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),t(u,{label:"Duration",prop:"duration"},{default:a(()=>[t(N,{modelValue:e(n).duration,"onUpdate:modelValue":o[3]||(o[3]=l=>e(n).duration=l),placeholder:"Duration",clearable:"",class:"!w-32",onChange:le,onClear:o[4]||(o[4]=l=>e(n).duration="")},{default:a(()=>[(g(!0),C(ye,null,he(e(E),l=>(g(),$(k,{key:l.duration,label:l.duration,value:l.duration},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(u,{label:"Has Invoiced",prop:"is_inved"},{default:a(()=>[t(N,{modelValue:e(n).is_inved,"onUpdate:modelValue":o[5]||(o[5]=l=>e(n).is_inved=l),placeholder:"Has Invoiced",clearable:"",class:"!w-32",onChange:ae},{default:a(()=>[t(k,{key:"no",label:"N",value:"no"}),t(k,{key:"yes",label:"Y",value:"yes"}),t(k,{key:"all",label:"All",value:"all"})]),_:1},8,["modelValue"])]),_:1}),t(u,null,{default:a(()=>[t(f,{type:"primary",icon:e(x)(e(ce)),loading:e(F),onClick:e(j)},{default:a(()=>[p(" 搜索 ")]),_:1},8,["icon","loading","onClick"])]),_:1}),t(u,null,{default:a(()=>[t(f,{icon:e(x)(e(ue)),onClick:o[6]||(o[6]=l=>e(Q)(M.value))},{default:a(()=>[p(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),c("div",we,[c("div",null,"Amount : "+h(e(n).Amount)+" $",1),c("div",Ve," Invoiced :"+h(e(n).Invoiced)+" $ ",1)]),t(e(me),{title:e(A),selectArr:e(q),onRefresh:e(w),selectable:!1},{buttons:a(()=>[t(f,{type:"primary",icon:e(x)(e(Y)),onClick:o[7]||(o[7]=l=>X())},{default:a(()=>[p(" Make Invoices ")]),_:1},8,["icon"])]),default:a(({size:l,checkList:se})=>[e(I)?(g(),C("div",Ie,[t(f,{onClick:o[8]||(o[8]=v=>void 0),type:"primary"},{default:a(()=>[p(" 确定 ")]),_:1})])):V("",!0),t(e(T),{"row-key":e(H),border:"","align-whole":"left","table-layout":"auto",loading:e(F),size:"small",data:e(G),columns:e(z),checkList:se,pagination:e(K),paginationSmall:l==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},ref_key:"multipleTableRef",ref:S,onSelectionChange:e(J),onCurrentChange:e(O),"max-height":ee.value},{operation:a(({row:v})=>[c("div",Re,[v.invoice_id>0?V("",!0):(g(),$(f,{key:0,class:"reset-margin",link:"",type:"primary",size:l,icon:e(x)(e(Y)),onClick:He=>Z(v)},{default:a(()=>[p(" Make Invoice ")]),_:2},1032,["size","icon","onClick"]))])]),expand:a(({row:v})=>[c("div",Ae,[t(e(T),{border:"","align-whole":"left","table-layout":"auto",size:"small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},data:v.child,columns:e(P),"max-height":oe.value},null,8,["header-cell-style","data","columns","max-height"])])]),_:2},1032,["row-key","loading","data","columns","checkList","pagination","paginationSmall","header-cell-style","onSelectionChange","onCurrentChange","max-height"]),e(I)?(g(),C("div",Fe,[t(f,{onClick:o[9]||(o[9]=v=>void 0),type:"primary"},{default:a(()=>[p(" 确定 ")]),_:1})])):V("",!0)]),_:1},8,["title","selectArr","onRefresh"]),t(fe,{visible:b.value,"onUpdate:visible":o[10]||(o[10]=l=>b.value=l),data:e(r),send_email:ne.value,onSave_over:D,onAddWorkSheet:D},null,8,["visible","data","send_email"])])])}}});const go=be(Me,[["__scopeId","data-v-28703d16"]]);export{go as default};