fuyuan-housekeeping-admin/public/admin/assets/index.60625e78.js

2 lines
8.2 KiB
JavaScript

import{B as Q,C as W,K as X,L as Y,w as Z,D as ee,N as te,x as oe,y as ae,G as le,c as ne,a1 as se,O as re,H as ue,a0 as ie}from"./element-plus.02c000b8.js";import{h as de,i as me}from"./lists.3c8d3393.js";import{u as pe}from"./vue-router.93f65f3b.js";import{am as _e,e as ce}from"./index.7e71cca7.js";import fe from"./operation.83bf4a4d.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.c2066be7.js";import{_ as be}from"./index.vue_vue_type_script_setup_true_lang.8593aa8c.js";import{_ as ve}from"./cancelOrderDialog.vue_vue_type_script_setup_true_lang.63bb23d6.js";import{u as he}from"./usePaging.4e4902f8.js";import{d as $,a1 as A,e as Ee,r as ge,k as we,b1 as Be,af as Ce,o as v,c as I,X as t,P as o,Y as O,a8 as xe,u as s,a as n,Q as ye,O as N,W as r,V as c,S as De,i as Se,b7 as Te,b6 as Ve}from"./@vue.ad3a2c51.js";import"./lodash.8effadcb.js";import{o as ke}from"./status.83e9ed42.js";import{u as Ae}from"./hook.21b08abd.js";import"./@vueuse.c2fd8b33.js";import"./@element-plus.4b8482d8.js";import"./lodash-es.61686ec6.js";import"./dayjs.c8b8967e.js";import"./axios.136fb7b6.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./memoize-one.4ee5c96d.js";import"./pinia.f0255b9b.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.3cb93b94.js";import"./color.0adfd97a.js";import"./clone.4b381e37.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.09754c1e.js";import"./vue-clipboard3.c5f2d3ed.js";import"./clipboard.42524a75.js";import"./echarts.234b3572.js";import"./zrender.8ee1a698.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0d5173e3.js";import"./vue3-eventbus.c7305b83.js";import"./mitt.d8e3ba72.js";import"./index.323c3889.js";import"./useCreateModal.92d1bf49.js";const C=f=>(Te("data-v-157312ba"),f=f(),Ve(),f),Ie=c("\u67E5\u8BE2"),Oe=c("\u91CD\u7F6E"),Ne={class:"mt-4"},$e={class:"flex"},Pe=C(()=>n("span",{class:"flex-none mr-2"},"\u5934\u50CF\uFF1A",-1)),Le={class:"flex mt-2"},Ue=C(()=>n("span",{class:"flex-none mr-2"},"\u6635\u79F0\uFF1A",-1)),Re={class:"flex mt-2"},qe=C(()=>n("span",{class:"flex-none mr-2"},"\u7F16\u53F7\uFF1A",-1)),Me={class:"pointer normal text-primary"},je={class:"flex items-center goods-box"},ze={class:"w-[60px] h-[60px]"},Ge={class:"goods-name truncate w-44"},He={class:"form-tips"},Je=c("\u8BE6\u60C5"),Ke={class:"flex justify-end mt-4"},Qe=$({name:"orderList"}),We=$({...Qe,setup(f){var y;const h=pe();A(_e);const a=A({sn:"",userInfo:"",goodsName:"",payStatus:"",orderTimeStart:"",orderTimeEnd:"",orderStatus:"",staffInfo:(y=h.query.staffInfo)!=null?y:"",isDispatch:""}),x=async()=>{i.value=await de(a)},P=Ee(()=>function(b){return b==="\u5F85\u652F\u4ED8"||b==="\u5DF2\u9000\u6B3E"||b==="\u9000\u6B3E\u4E2D"}),{pager:m,getLists:E,resetPage:F,resetParams:L}=he({fetchFun:me,params:a,nextFetchFun:x}),i=ge({});E(),x(),we(R);const{handleCancelOrder:U}=Ae(ve);function R(){Object.keys(h.query).length!==0&&(a.staffInfo=JSON.parse(h.query.staffInfo))}return Be(()=>{E()}),(b,l)=>{const g=Q,d=W,q=X,M=Y,D=Z,j=ee,S=te,p=oe,z=ae,u=le,T=ne,w=Ce("router-link"),G=se,H=re,J=ue,K=ie;return v(),I(O,null,[t(S,{shadow:"never",class:"!border-none"},{default:o(()=>[t(j,{model:a,inline:""},{default:o(()=>[t(d,{label:"\u8BA2\u5355\u7F16\u53F7"},{default:o(()=>[t(g,{class:"ls-input",modelValue:a.sn,"onUpdate:modelValue":l[0]||(l[0]=e=>a.sn=e),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(d,{label:"\u7528\u6237\u4FE1\u606F"},{default:o(()=>[t(g,{class:"ls-input",modelValue:a.userInfo,"onUpdate:modelValue":l[1]||(l[1]=e=>a.userInfo=e),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),t(d,{label:"\u670D\u52A1\u540D\u79F0"},{default:o(()=>[t(g,{class:"ls-input",modelValue:a.goodsName,"onUpdate:modelValue":l[2]||(l[2]=e=>a.goodsName=e),placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(d,{label:"\u652F\u4ED8\u72B6\u6001"},{default:o(()=>[t(M,{modelValue:a.payStatus,"onUpdate:modelValue":l[3]||(l[3]=e=>a.payStatus=e),placeholder:"\u8BF7\u9009\u62E9",class:"ls-input"},{default:o(()=>[(v(!0),I(O,null,xe(s(ke).payStatusOptions,e=>(v(),N(q,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,{label:"\u4E0B\u5355\u65F6\u95F4"},{default:o(()=>[t(be,{class:"ls-input",style:{width:"280px"},startTime:a.orderTimeStart,"onUpdate:startTime":l[4]||(l[4]=e=>a.orderTimeStart=e),endTime:a.orderTimeEnd,"onUpdate:endTime":l[5]||(l[5]=e=>a.orderTimeEnd=e)},null,8,["startTime","endTime"])]),_:1}),t(d,null,{default:o(()=>[t(D,{type:"primary",onClick:s(F)},{default:o(()=>[Ie]),_:1},8,["onClick"]),t(D,{onClick:s(L)},{default:o(()=>[Oe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),t(S,{shadow:"never",class:"mt-4 !border-none"},{default:o(()=>[t(z,{class:"-mt-2",modelValue:a.orderStatus,"onUpdate:modelValue":l[6]||(l[6]=e=>a.orderStatus=e),onTabChange:s(F)},{default:o(()=>{var e,_,B,V,k;return[t(p,{label:`\u5168\u90E8(${((e=i.value)==null?void 0:e.totalCount)||"0"})`,name:""},null,8,["label"]),t(p,{label:`\u5F85\u652F\u4ED8(${((_=i.value)==null?void 0:_.waitPayCount)||"0"})`,name:0},null,8,["label"]),t(p,{label:`\u5DF2\u9884\u7EA6(${((B=i.value)==null?void 0:B.servicingCount)||"0"})`,name:2},null,8,["label"]),t(p,{label:`\u5DF2\u5B8C\u6210(${((V=i.value)==null?void 0:V.finishedCount)||"0"})`,name:3},null,8,["label"]),t(p,{label:`\u9000\u6B3E\u5355(${((k=i.value)==null?void 0:k.closeCount)||"0"})`,name:4},null,8,["label"])]}),_:1},8,["modelValue","onTabChange"]),n("div",Ne,[ye((v(),N(J,{ref:"tableData",size:"large",data:s(m).lists},{default:o(()=>[t(u,{property:"sn",label:"\u8BA2\u5355\u7F16\u53F7","min-width":"200"}),t(u,{label:"\u7528\u6237\u4FE1\u606F","min-width":"120"},{default:o(e=>[t(G,{placement:"top-start",width:"200px",trigger:"hover"},{reference:o(()=>[t(w,{to:`/user/userList/detail?id=${e.row.userId}`},{default:o(()=>[n("div",Me,r(e.row.nickname),1)]),_:2},1032,["to"])]),default:o(()=>[n("div",$e,[Pe,t(T,{src:e.row.avatar,style:{width:"40px",height:"40px","border-radius":"50%"}},null,8,["src"])]),n("div",Le,[Ue,n("span",null,r(e.row.nickname),1)]),n("div",Re,[qe,n("span",null,r(e.row.userSn),1)])]),_:2},1024)]),_:1}),t(u,{label:"\u670D\u52A1\u540D\u79F0","min-width":"260"},{default:o(({row:e})=>[n("div",je,[n("div",ze,[t(T,{style:{width:"60px",height:"60px"},src:e.goodsImage,"preview-src-list":[e.goodsImage],"hide-on-click-modal":!0,"preview-teleported":!0,fit:"contain"},null,8,["src","preview-src-list"])]),t(w,{to:`/service/lists/edit?id=${e.goodsId}`,class:"ml-2 xs"},{default:o(()=>[n("div",Ge,r(e.goodsName),1),n("div",He,r(e.goodsPrice)+" "+r(e.unitName),1)]),_:2},1032,["to"])])]),_:1}),t(u,{label:"\u5B9E\u4ED8\u91D1\u989D","min-width":"100"},{default:o(e=>[c("\xA5"+r(e.row.orderAmount),1)]),_:1}),t(u,{label:"\u9884\u7EA6\u65E5\u671F","min-width":"160"},{default:o(e=>[c(r(e.row.appointTime)+" "+r(e.row.weekDay)+" "+r(e.row.appointTimeStartStr)+"-"+r(e.row.appointTimeEndStr),1)]),_:1}),t(u,{property:"contact",label:"\u8054\u7CFB\u4EBA","min-width":"100"}),t(u,{label:"\u8BA2\u5355\u72B6\u6001","min-width":"100"},{default:o(({row:e})=>[n("span",{class:De({error:s(P)(e.orderStatusName)})},r(e.orderStatusName),3)]),_:1}),t(u,{label:"\u64CD\u4F5C","min-width":"140",fixed:"right"},{default:o(e=>{var _;return[t(w,{class:"mr-2",to:{path:"lists/detail",query:{id:e.row.id}}},{default:o(()=>[t(H,{type:"primary",underline:!1},{default:o(()=>[Je]),_:1})]),_:2},1032,["to"]),t(fe,{btnStyle:"text",id:e.row.id,verificationCode:e.row.verificationCode,cancelBtn:e.row.cancelBtn,deleteBtn:e.row.deleteBtn,verificationBtn:e.row.verificationBtn,orderRemarks:(_=e.row.orderRemarks)!=null?_:"",onRefresh:s(F),onCancelOrder:B=>s(U)(e.row,s(F))},null,8,["id","verificationCode","cancelBtn","deleteBtn","verificationBtn","orderRemarks","onRefresh","onCancelOrder"])]}),_:1})]),_:1},8,["data"])),[[K,s(m).loading]])]),n("div",Ke,[t(Fe,{modelValue:s(m),"onUpdate:modelValue":l[7]||(l[7]=e=>Se(m)?m.value=e:null),onChange:s(E)},null,8,["modelValue","onChange"])])]),_:1})],64)}}});const qt=ce(We,[["__scopeId","data-v-157312ba"]]);export{qt as default};