File: /var/www/html/public/static/js/needInvoice-851e62aa.js
import{ab as Q}from"./message-2472a54a.js";import{useEqu as G}from"./hookNeedInvoice-16576825.js";import H from"./locationConfig-f34a2895.js";import{b as J,P as W}from"./index.es-1f469e7e.js";import{d as V,o as X,Q as c,e as p,f as m,g as l,p as Z,u as e,y as a,i as f,m as n,v as i,x as s,t as ee,F as k,I as D,l as te,b5 as oe,b4 as le}from"./runtime-core.esm-bundler-6128546f.js";import{_ as ae}from"./_plugin-vue_export-helper-c27b6911.js";import"./po-bf9ba69d.js";import"./index-479458b8.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";import"./index-81e4a901.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";import"./eye_show-c9f79c85.js";import"./hookLocationConfig-a3c81c2e.js";import"./epTheme-277a4581.js";import"./index-a7c31d60.js";import"./merge-f215fb43.js";const _=v=>(oe("data-v-f59b4b05"),v=v(),le(),v),ne={class:"main"},ie={class:"dialog_procure_box",style:{"margin-top":"0px"}},se=_(()=>l("div",null,"Customer :",-1)),re=_(()=>l("div",{style:{margin:"0 0px 0 20px"}},"Booking Date :",-1)),de={style:{width:"370px"}},ue={key:0},ce=_(()=>l("div",{class:"dialog_tilte"},"Make Invoice",-1)),pe={class:"createOrderobj_box"},me=_(()=>l("tr",null,[l("td",null,"CusName"),l("td",null,"Count"),l("td",null,"Times"),l("td",null,"Total amount")],-1)),_e={class:"dialog_procure_box"},ve=_(()=>l("div",null,null,-1)),ge={class:"part_out_button"},fe=V({name:"/crm/yuyue/needInvoice"}),ye=V({...fe,setup(v){const{searchDetail:r,btnSearchPart:S,loading:I,small:be,selectList:w,columns:T,checkList:he,pagination:M,handleSizeChange:L,handleCurrentChange:N,PartList:U,order_date:y,deliverDialog:b,selectClick:Y,btnDeliverConfirm:xe,singleTableRef:B,getDate:E,btnMakeInvoice:x,onSelectLocation:Ce,locationDialog:d,eventIsNumlocation:P,locationData:R,taxData:z,invoiceArr:$,btnDellocation:A}=G();return X(()=>{}),(F,o)=>{const K=c("el-date-picker"),g=c("el-button"),O=c("el-switch"),j=c("el-option"),q=c("el-select"),C=c("el-dialog");return p(),m("div",ne,[l("div",ie,[se,Z(l("input",{class:"input","onUpdate:modelValue":o[0]||(o[0]=t=>e(r).searchKey=t),type:"text"},null,512),[[Q,e(r).searchKey]]),re,l("div",de,[a(K,{modelValue:e(y),"onUpdate:modelValue":o[1]||(o[1]=t=>f(y)?y.value=t:null),type:"daterange","start-placeholder":"Start date","end-placeholder":"End Date",format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",onChange:e(E)},null,8,["modelValue","onChange"])]),a(g,{type:"primary",onClick:o[2]||(o[2]=t=>e(S)())},{default:n(()=>[i("Search")]),_:1})]),a(e(W),{title:"设备列表",selectArr:e(w),onRefresh:F.onSearch},{default:n(({size:t,checkList:h})=>[a(e(J),{border:"",ref_key:"singleTableRef",ref:B,onSelectionChange:e(Y),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(I),size:"small",data:e(U),columns:e(T),checkList:h,pagination:e(M),paginationSmall:t==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:e(L),onCurrentChange:e(N)},{ServiceTime:n(({row:u})=>[i(s(u.begin_time)+"-"+s(u.end_time),1)]),operation:n(({row:u})=>[u.is_enough?(p(),m("span",ue,[i(s(u.enough_values)+" ",1),a(g,{class:"reset-margin reset-margin1",link:"",type:"primary",onClick:ke=>e(A)(u)},{default:n(()=>[i(" Use ")]),_:2},1032,["onClick"])])):ee("",!0)]),_:2},1032,["onSelectionChange","loading","data","columns","checkList","pagination","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"]),a(g,{style:{"margin-top":"20px"},type:"primary",plain:"",onClick:o[3]||(o[3]=t=>e(x)("summary"))},{default:n(()=>[i("Make Invoice")]),_:1}),a(C,{modelValue:e(b),"onUpdate:modelValue":o[7]||(o[7]=t=>f(b)?b.value=t:null),title:"",style:{width:"60%"}},{default:n(()=>[ce,l("table",pe,[me,(p(!0),m(k,null,D(e($),(t,h)=>(p(),m("tr",{key:h},[l("td",null,s(t.name),1),l("td",null,s(t.count),1),l("td",null,s(t.session),1),l("td",null,s(t.total),1)]))),128))]),l("div",_e,[l("div",null,[i(" + Tax:"),a(O,{style:{margin:"0 50px 0 0"},modelValue:e(r).is_tax,"onUpdate:modelValue":o[4]||(o[4]=t=>e(r).is_tax=t)},null,8,["modelValue"]),i(" Include Tax "),a(q,{style:{width:"80px"},clearable:"true",modelValue:e(r).include_tax,"onUpdate:modelValue":o[5]||(o[5]=t=>e(r).include_tax=t),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:n(()=>[(p(!0),m(k,null,D(e(z),t=>(p(),te(j,{key:t.value,label:t.text,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),ve]),l("div",ge,[a(g,{type:"primary",onClick:o[6]||(o[6]=t=>e(x)("submit"))},{default:n(()=>[i("Submit")]),_:1})])]),_:1},8,["modelValue"]),a(C,{style:{width:"78%"},modelValue:e(d),"onUpdate:modelValue":o[9]||(o[9]=t=>f(d)?d.value=t:null),title:"",draggable:""},{default:n(()=>[a(H,{onEventIsNumlocation:e(P),note:1,locationData:e(R),locationDialog:e(d),"onUpdate:locationDialog":o[8]||(o[8]=t=>f(d)?d.value=t:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"])])}}});const qe=ae(ye,[["__scopeId","data-v-f59b4b05"]]);export{qe as default};