sort_out.ef913bef.js 21 KB

12345
  1. import{aa as W,D as Z,_ as je,b7 as Ye,a4 as $e,a6 as Me,b as ve,r as b,o as He,dz as Ke,a_ as Xe,p as We,b6 as Ze,c as D,e as y,f as I,g as n,h as L,a1 as Je,i as O,u as w,A as M,m as B,t as R,F as z,j as F,w as Qe,v as et,E as N,y as le,k as we,H as oe,q as he,R as tt,S as st}from"./index.76214426.js";import{M as it}from"./index.b661d9c5.js";import{a as nt,b as lt,s as ot,c as at,o as dt,d as rt,w as ut}from"./sort_out.f3d53300.js";import{z as ct}from"./index.783cf3d7.js";import{s as _t}from"./category.b6612508.js";import{s as vt,b as ht}from"./category.9967ab12.js";import{g as pt}from"./lodopFuncs.2ba3e9ce.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.45576b33.js";import"./vuedraggable.umd.e261f12f.js";import"./index.ac274cf8.js";import"./index.6fdd4b98.js";const ft=f=>W.request({url:"agent/plugin.clothes.sorting_record/allItems",method:"GET",params:f}),mt=f=>W.request({url:"agent/plugin.clothes.sorting_record/washList",method:"GET",params:f}),gt=f=>W.request({url:"agent/plugin.clothes.sorting_record/add",method:"post",data:f}),xt=f=>W.request({url:"agent/plugin.clothes.sorting_order/ordersn_detail",method:"GET",params:f}),yt=f=>W.request({url:"agent/plugin.clothes.sorting_order/asyncOrderStatusByThird",method:"GET",params:f}),wt=f=>Z.request({url:"merchant/clothes.sorting_record/allItems",method:"GET",params:f}),bt=f=>Z.request({url:"merchant/clothes.sorting_record/washList",method:"GET",params:f}),It=f=>Z.request({url:"merchant/clothes.sorting_record/add",method:"post",data:f}),St=f=>Z.request({url:"merchant/clothes.sorting_order/ordersn_detail",method:"GET",params:f}),Et=f=>Z.request({url:"merchant/clothes.sorting_order/asyncOrderStatusByThird",method:"GET",params:f});const U=f=>(tt("data-v-aefae63b"),f=f(),st(),f),Tt={class:"center"},At={class:"header"},Lt=B("\u67E5\u8BE2"),kt={style:{display:"flex","justify-content":"space-between","flex-grow":"1"}},Ct={class:"body"},Rt={class:"btns"},Pt={key:0,style:{"font-size":"16px"}},Ot={key:0,class:"nav"},Vt={style:{display:"flex"}},Nt=["onClick"],Dt={key:1,class:"content"},Bt=["onClick"],Ut={key:2,class:"content7"},qt={class:"content7",style:{flex:"8"}},zt=U(()=>n("div",{style:{width:"98px",height:"98px",display:"flex","align-items":"center","justify-content":"center","border-radius":"4px",border:"1px dashed #d7d7d7"}},[n("text",{class:"tn-icon-camera",style:{"font-size":"30px",color:"#909399"}})],-1)),Ft=U(()=>n("div",{style:{"margin-top":"20px"}},"\u6253\u5F00\u6444\u50CF\u5934",-1)),Gt=[zt,Ft],jt={class:"upload",style:{cursor:"pointer"}},Yt=U(()=>n("div",{style:{"margin-top":"20px"}},"\u4E0A\u4F20\u672C\u5730\u56FE\u7247",-1)),$t=B("\u62CD\u7167"),Mt=B("\u5173\u95ED\u6444\u50CF\u5934"),Ht={style:{flex:"2"}},Kt={class:"body-right"},Xt=["onClick"],Wt={class:"clothes-info-title"},Zt={class:"left"},Jt={class:"left-number"},Qt={class:"left-title"},es={class:"right"},ts=["onClick"],ss={key:0,style:{padding:"10px"}},is={class:"clothes-info-other",style:{"justify-content":"space-between","align-items":"center","border-bottom":"1px dashed #bababa","padding-bottom":"10px"}},ns=U(()=>n("div",{style:{flex:"1"}},"\u6D17\u6DA4\u65B9\u5F0F",-1)),ls={style:{flex:"1","text-align":"end"}},os={class:"clothes-info-other"},as={style:{flex:"1"}},ds={style:{flex:"6",display:"flex","flex-wrap":"wrap"}},rs={key:0},us={class:"footer"},cs={class:"big-info"},_s=U(()=>n("div",{class:"title"},"\u6D41\u6C34\u53F7",-1)),vs={class:"info1"},hs=U(()=>n("div",{class:"title"},"\u4EF6\u6570",-1)),ps={class:"info1"},fs={style:{color:"#ff5e5e"}},ms=U(()=>n("div",{class:"title"},"\u4EF7\u683C",-1)),gs={class:"info1"},xs=B("\u786E\u8BA4"),ys={style:{"background-color":"#f4f4f4","border-radius":"8px",padding:"8px"}},ws={class:"add-center"},bs={class:"top-list"},Is=U(()=>n("div",{class:"top-list-left"}," \u540D\u79F0\uFF1A ",-1)),Ss={class:"top-list-right"},Es={class:"add-center",style:{"margin-top":"8px",display:"flex","justify-content":"center"}},Ts=B("\u786E\u8BA4"),As={setup(f){const ae=Ye(),be=$e(),{OpPlatform:S}=Me(),p=ve({list:[]});let l=b(0),r=b(0),Ie=b(null);const q=b(null),A=b(null),J=()=>{S.value=="shangpu"?rt({brand_id:A.value}).then(e=>{console.log("res",e),p.list=e,le(()=>{l.value=e[0].id,r.value=e[0].list[0].id,ue()})}):S.value=="agent"?ft({brand_id:A.value}).then(e=>{console.log("res",e),p.list=e,le(()=>{l.value=e[0].id,r.value=e[0].list[0].id,ue()})}):wt({brand_id:A.value}).then(e=>{console.log("res",e),p.list=e,le(()=>{l.value=e[0].id,r.value=e[0].list[0].id,ue()})})},G=b(be.query.ordersn||""),pe=b(),C=b([]),Se=e=>{let t=p.list.find(s=>s.id===e);return(t==null?void 0:t.list)||[]},Q=(e,t)=>{let s=p.list.find(u=>u.id===e),v=s==null?void 0:s.list.find(u=>u.id===t);return(v==null?void 0:v.infoList)||[]},ee=b(!1),H=ve({name:""}),fe=e=>{let t=p.list.find(s=>s.id===e);return(t==null?void 0:t.name)||""},Ee=()=>{ee.value=!0},Te=(e,t)=>{S.value=="shangpu"?_t({id:0,name:H.name,weigh:0,price:0,degree:3,parent_id:r.value,brand_id:A.value}).then(s=>{N({message:"\u63D0\u4EA4\u6210\u529F",type:"success"})}):S.value=="agent"?vt({id:0,name:H.name,weigh:0,price:0,degree:3,parent_id:r.value,brand_id:A.value}).then(s=>{N({message:"\u63D0\u4EA4\u6210\u529F",type:"success"})}):ht({id:0,name:H.name,weigh:0,price:0,degree:3,parent_id:r.value,brand_id:A.value}).then(s=>{N({message:"\u63D0\u4EA4\u6210\u529F",type:"success"})}),J(),ee.value=!1},K=b(null),j=b(null),de=b(null),X=b(!1);let m=b(-1);const Ae=async()=>{try{const e=await navigator.mediaDevices.getUserMedia({video:!0});K.value.srcObject=e,X.value=!0}catch(e){X.value=!1,N.error("\u65E0\u6CD5\u8BBF\u95EE\u6444\u50CF\u5934\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u8BBE\u5907\u662F\u5426\u914D\u5907\u4E86\u6444\u50CF\u5934\u3002"),console.error("Error accessing the camera:",e)}},me=()=>{!X.value||le(()=>{if(j.value&&K.value){const e=j.value.getContext("2d");if(e){e.drawImage(K.value,0,0,j.value.width,j.value.height),de.value=j.value.toDataURL("image/png");const t=ke(de.value);Le(t)}}})},Le=async e=>{const t=new FormData;t.append("file",e,"\u62CD\u7167.png"),S.value=="shangpu"?await nt(t).then(s=>{Array.isArray(C.value[m.value])||(C.value[m.value]=[]),C.value[m.value].push(s.uri)}):S.value=="agent"?await lt(t).then(s=>{Array.isArray(C.value[m.value])||(C.value[m.value]=[]),C.value[m.value].push(s.uri)}):await ot(t).then(s=>{Array.isArray(C.value[m.value])||(C.value[m.value]=[]),C.value[m.value].push(s.uri)})};function ke(e){const t=atob(e.split(",")[1]),s=e.split(",")[0].split(":")[1].split(";")[0],v=new ArrayBuffer(t.length),u=new Uint8Array(v);for(let g=0;g<t.length;g++)u[g]=t.charCodeAt(g);return new Blob([v],{type:s})}function ge(e){e.key===" "&&me()}He(()=>{document.addEventListener("keydown",ge)}),Ke(()=>{document.removeEventListener("keydown",ge)});const xe=()=>{var t;const e=(t=K.value)==null?void 0:t.srcObject;e&&(e.getTracks().forEach(v=>v.stop()),X.value=!1)};Xe(xe);let _=b([]),x=b([]);const Ce=e=>{console.log("isYangcong",P.value.isYangcong),P.value.isYangcong&&ze(P.value.id);const t=p.list.findIndex(a=>a.id===l.value),s=p.list[t],v=s.list.findIndex(a=>a.id===r.value),u=s.list[v],g=u.infoList.filter(a=>a.id===e),T=s.is_multi;console.log("firstItem",s),console.log("is_multi",T);const h=_.value.some(a=>a.first_id===l.value);if(console.log("isExist",h),h)if(T){const a=_.value.some(i=>i.third_items.some(d=>d.third_id===e));console.log("isExistThird",a),a?(_.value=_.value.map(i=>(i.first_id===l.value&&(i.third_items=i.third_items.filter(d=>d.third_id!==e)),i)),_.value=_.value.filter(i=>i.third_items.length>0)):_.value=_.value.map(i=>(i.first_id===l.value&&(i.third_items=i.third_items.concat(g.map(d=>({third_id:d.id,third_index:u.infoList.findIndex(c=>c.id===d.id),third_name:d.name,third_price:d.price})))),i))}else{console.log("\u4E0D\u662F\u591A\u9009");const a=_.value.some(i=>i.third_items.some(d=>d.third_id===e));if(console.log("isExistThird",a),a)_.value=_.value.map(i=>(i.first_id===l.value&&(i.third_items=i.third_items.filter(d=>d.third_id!==e)),i)),_.value=_.value.filter(i=>i.third_items.length>0);else{const i=_.value.some(d=>d.first_id===l.value&&d.second_id===r.value);if(console.log("isExistSecond",i),i)_.value=_.value.map(d=>(d.first_id===l.value&&d.second_id===r.value&&(d.third_items=g.map(c=>({third_id:c.id,third_index:u.infoList.findIndex(o=>o.id===c.id),third_name:c.name,third_price:c.price}))),d));else{const d=_.value.some(c=>c.first_id===l.value);console.log("isExistFirst",d),d?(_.value=_.value.filter(c=>c.first_id!==l.value),_.value.push({first_id:l.value,first_index:p.list.findIndex(c=>c.id===l.value),first_name:s.name,is_show:s.is_show,is_must:s.is_must,second_id:r.value,second_index:s.list.findIndex(c=>c.id===r.value),second_name:u.name,third_items:g.map(c=>({third_id:c.id,third_index:u.infoList.findIndex(o=>o.id===c.id),third_name:c.name,third_price:c.price}))})):_.value.push({first_id:l.value,first_index:p.list.findIndex(c=>c.id===l.value),first_name:s.name,is_show:s.is_show,is_must:s.is_must,second_id:r.value,second_index:s.list.findIndex(c=>c.id===r.value),second_name:u.name,third_items:g.map(c=>({third_id:c.id,third_index:u.infoList.findIndex(o=>o.id===c.id),third_name:c.name,third_price:c.price}))})}}}else{console.log("\u4E0D\u5B58\u5728");const a=_.value.some(i=>i.first_id===l.value&&i.second_id===r.value);console.log("isExistSecond",a),a?T===0&&a?(console.log("here"),_.value=_.value.filter(i=>i.first_id!==l.value||i.second_id!==r.value),_.value.push({first_id:l.value,first_index:p.list.findIndex(i=>i.id===l.value),first_name:s.name,is_show:s.is_show,is_must:s.is_must,second_id:r.value,second_index:s.list.findIndex(i=>i.id===r.value),second_name:u.name,third_items:g.map(i=>({third_id:i.id,third_index:u.infoList.findIndex(d=>d.id===i.id),third_name:i.name,third_price:i.price}))})):T&&a&&_.value.push({first_id:l.value,first_index:p.list.findIndex(i=>i.id===l.value),first_name:s.name,is_show:s.is_show,is_must:s.is_must,second_id:r.value,second_index:s.list.findIndex(i=>i.id===r.value),second_name:u.name,third_items:g.map(i=>({third_id:i.id,third_index:u.infoList.findIndex(d=>d.id===i.id),third_name:i.name,third_price:i.price}))}):_.value.push({first_id:l.value,first_index:p.list.findIndex(i=>i.id===l.value),first_name:s.name,is_show:s.is_show,is_must:s.is_must,second_id:r.value,second_index:s.list.findIndex(i=>i.id===r.value),second_name:u.name,third_items:g.map(i=>({third_id:i.id,third_index:u.infoList.findIndex(d=>d.id===i.id),third_name:i.name,third_price:i.price}))})}x.value[m.value].detail=_.value},Re=b(null),ye=async e=>{const t=p.list.findIndex(T=>T.id===l.value),s=p.list[t];console.log(s,"firstItem");const v=s.is_clothes==1;if(m.value==-1&&!v){N.error("\u8BF7\u5148\u9009\u62E9\u8863\u7269");return}if(v){m.value=x.value.length;const T=ve({list:[]});if(S.value=="shangpu")var u=await Ne(e);else if(S.value=="agent")var u=await getAgentWashList(e);else var u=await getStoreWashList(e);T.list=u;const h=u.find(a=>a.washItem.is_default===1);x.value.push({first_id:l.value,first_index:p.list.findIndex(a=>a.id===l.value),first_name:s.name,is_show:s.is_show,is_must:s.is_must,second_id:r.value,second_index:s.list.findIndex(a=>a.id===r.value),second_name:s.list.find(a=>a.id===r.value).name,third_id:e,third_index:Q(l.value,r.value).findIndex(a=>a.id===e),third_name:Q(l.value,r.value).find(a=>a.id===e).name,third_price:Q(l.value,r.value).find(a=>a.id===e).price,detail:null,washList:T.list,wash_id:(h==null?void 0:h.id)||null,wash_name:(h==null?void 0:h.washItem.name)||null,wash_price:(h==null?void 0:h.price)||null}),_.value=[]}if(Ie.value=e,Ce(e),console.log("currentOptionIndex",m),console.log("finalChooseRecord",x),console.log("current_firstItem",s),s.is_multi)return;const g=p.list.findIndex(T=>T.id===l.value);l.value=p.list[g+1].id,g+1<p.list.length&&p.list[g+1].list[0]&&p.list[g+1].list[0].id&&(r.value=p.list[g+1].list[0].id),console.log("chooseRecord",_),console.log("specialIndex",Re)},Pe=e=>{x.value.splice(e,1),p.list.length>0?(l.value=p.list[0].id,r.value=p.list[0].list[0].id):(l.value=0,r.value=0)},Oe=e=>{m.value=e,_.value=x.value[e].detail},Ve=e=>_.value.some(t=>t.third_items.some(s=>s.third_id===e)),Ne=async e=>S.value=="shangpu"?ut({category_id:e,brand_id:A.value}).then(t=>(console.log("res",t),t)):S.value=="agent"?mt({category_id:e,brand_id:A.value}).then(t=>(console.log("res",t),t)):bt({category_id:e,brand_id:A.value}).then(t=>(console.log("res",t),t)),De=e=>{console.log("item",e);const t=x.value[m.value].washList.findIndex(s=>s.id===e);x.value[m.value].wash_id=e,x.value[m.value].wash_name=x.value[m.value].washList[t].washItem.name,x.value[m.value].wash_price=x.value[m.value].washList[t].price},Be=async()=>{if(!q.value){N.error("\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7\u518D\u8FDB\u884C\u5206\u62E3");return}x.value.every(t=>p.list.every(s=>s.is_must===1?t.detail.some(u=>u.first_id===s.id):!0));for(let t=0;t<x.value.length;t++)if(x.value[t].thumbs){if(x.value[t].thumbs.length>20){N.error("\u6BCF\u6761\u8BB0\u5F55\u7684\u56FE\u7247\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC720");return}}else{N.error("\u8BF7\u4E0A\u4F20\u6BCF\u6761\u8BB0\u5F55\u7684\u56FE\u7247");return}const e=x.value.map(t=>{const{washList:s,...v}=t;return v});S.value=="shangpu"?await at({order_id:q.value,data:e,brand_id:A.value}).then(async t=>{console.log("res",t),await Y(),re()}):S.value=="agent"?await gt({order_id:q.value,data:e,brand_id:A.value}).then(async t=>{console.log("res",t),await Y(),re()}):await It({order_id:q.value,data:e,brand_id:A.value}).then(async t=>{console.log("res",t),await Y(),re()}),S.value=="shangpu"?ae.push({path:"/admin/plugin/clothes/index"}):S.value=="agent"?ae.push({path:"/agent/plugin/clothes/index"}):ae.push({path:"/store/plugin/clothes/index"})},Ue=()=>{x.value.forEach(e=>{let t=0;e.detail&&e.detail.forEach(s=>{s.third_items.forEach(v=>{t+=parseFloat(v.third_price)||0})}),t+=parseFloat(e.wash_price)||0,e.price=t}),console.log("finalChooseRecord11111111",x)},qe=()=>{const e=x.value.map((t,s)=>({...t,thumbs:C.value[s]}));x.value=e},P=b({}),Y=async()=>{if(!!G.value)return S.value=="shangpu"?dt({ordersn:G.value}).then(e=>{console.log(e),P.value=e,q.value=e.id,A.value=e.brand_id,J()}):S.value=="agent"?xt({ordersn:G.value}).then(e=>{console.log(e),P.value=e,q.value=e.id,A.value=e.brand_id,J()}):St({ordersn:G.value}).then(e=>{console.log(e),P.value=e,q.value=e.id,A.value=e.brand_id,J()})};Y();const re=()=>{let e=b(P.value);const t=e.value.mobile,s=e.value.addtime_cn,v=String(s).substring(5,10);e.value.sorting_records;let u=e.value.sorting_records,g=u.length;const T=localStorage.getItem("labelPrint");if(T==null){N.error("\u8BF7\u5728\u57FA\u7840\u8BBE\u7F6E\u4E2D\u6307\u5B9A\u6C34\u6D17\u551B\u6253\u5370\u673A");return}const h=pt();if(console.log("LODOP",h),h)for(let a=0;a<g;a++){const i=a+1;let d="",c="";const o=u[a].code,V=u[a].price,E=u[a].wash_name,$=u[a].data,te=u[a].print_num;$.forEach(k=>{if(k.title=="\u8863\u7269")d+=k.value+" \uFFE5"+V+" "+E+`\r
  2. \u7535\u8BDD\uFF1A`+t+" \u65E5\u671F\uFF1A"+v+" \u4EF6\uFF1A"+g+"-"+i+`\r
  3. `;else if(k.title=="\u989C\u8272"){const ie=d.indexOf("\uFFE5"),ce="\uFF08"+k.value+"\uFF09",ne=d.substring(0,ie),_e=d.substring(ie),Ge=ne+ce+_e;d="",d+=Ge,console.log(d)}else if(k.title!="\u62CD\u7167"&&(k.title=="\u7455\u75B5"||k.title=="\u6D17\u540E\u6548\u679C"||k.title=="\u670D\u52A1"||k.title=="\u914D\u9970")){let ie=k.title+"\uFF1A"+k.value;const ce=new RegExp(".{1,27}","g"),ne=ie.match(ce).map(_e=>_e+`\r
  4. `);console.log(ne),c+=ne.join("")}}),c.split(`\r
  5. `).filter(k=>k&&k.trim()!=="");const se=40;let Fe=60;h.PRINT_INIT("\u6253\u5370\u6807\u7B7E"),h.SET_PRINTER_INDEXA(T),h.SET_PRINT_PAGESIZE(3,1100,se,""),h.ADD_PRINT_BARCODE(5,10,100,Fe,"128Auto",o),h.SET_PRINT_STYLEA(0,"FontSize",8),h.ADD_PRINT_TEXT(5,110,300,16,d),h.SET_PRINT_STYLEA(0,"LineSpacing",-2),h.SET_PRINT_STYLEA(0,"FontSize",8),h.ADD_PRINT_TEXT(26,110,300,se,c),h.SET_PRINT_STYLEA(0,"LineSpacing",-2),h.SET_PRINT_STYLEA(0,"FontSize",8),te>1&&h.SET_PRINT_COPIES(te),h.PRINT()}else N.error("\u6CA1\u5B89\u88C5\u6216\u8005\u6CA1\u542F\u52A8Lodop")},ue=async()=>{for(const e of P.value.goods_ids)for(const t of p.list)for(const s of t.list)for(const v of s.infoList)v.goods_ids&&v.goods_ids.includes(e.toString())&&(l.value=t.id,r.value=s.id,await ye(v.id))};We(C.value,e=>{qe()},{deep:!0}),Ze(()=>{Ue()});const ze=e=>S.value=="shangpu"?ct({order_id:e}).then(t=>(console.log(t),t)):S.value=="agent"?yt({order_id:e}).then(t=>(console.log(t),t)):Et({order_id:e}).then(t=>(console.log(t),t));return(e,t)=>{var d,c;const s=D("el-input"),v=D("el-button"),u=D("el-scrollbar"),g=D("CirclePlus"),T=D("el-icon"),h=D("el-option"),a=D("el-select"),i=D("el-dialog");return y(),I("div",Tt,[n("div",At,[L(s,{modelValue:G.value,"onUpdate:modelValue":t[0]||(t[0]=o=>G.value=o),style:{width:"300px","margin-right":"20px"},placeholder:"\u8F93\u5165\u8BA2\u5355\u53F7\u6216\u8005\u7269\u6D41\u5355\u53F7",onKeyup:Je(Y,["enter"])},null,8,["modelValue","onKeyup"]),L(v,{type:"primary",onClick:Y},{default:O(()=>[Lt]),_:1})]),n("div",kt,[n("div",Ct,[L(u,{style:{height:"50px",width:"1000px"}},{default:O(()=>[n("div",Rt,[(y(!0),I(z,null,F(w(p).list,o=>(y(),we(v,{key:o.id,size:"large",type:"primary",plain:"",class:oe(["category",{"is-category":o.id===w(l)}]),onClick:V=>{var E,$;he(l)?l.value=o.id:l=o.id,he(r)?r.value=(E=o.list[0])==null?void 0:E.id:r=($=o.list[0])==null?void 0:$.id}},{default:O(()=>[B(R(o.name),1),o.is_must===1?(y(),I("span",Pt,"*")):M("",!0)]),_:2},1032,["class","onClick"]))),128))])]),_:1}),w(l)!=0?(y(),I("div",Ot,[L(s,{modelValue:pe.value,"onUpdate:modelValue":t[1]||(t[1]=o=>pe.value=o),style:{width:"240px","margin-right":"20px"},placeholder:"\u8F93\u5165\u5173\u952E\u5B57"},null,8,["modelValue"]),L(u,{style:{width:"1000px"}},{default:O(()=>[n("div",Vt,[(y(!0),I(z,null,F(Se(w(l)),o=>(y(),I("div",{key:o.id,plain:"",class:oe(["sub-category",{"is-sub-category":o.id===w(r)}]),onClick:V=>he(r)?r.value=o.id:r=o.id},R(o.name),11,Nt))),128))])]),_:1})])):M("",!0),w(l)!=0?(y(),I("div",Dt,[n("div",{class:"add-option",onClick:Ee},[L(T,{size:"32",color:"#409EFF"},{default:O(()=>[L(g)]),_:1}),B(" "+R(fe(w(l))),1)]),(y(!0),I(z,null,F(Q(w(l),w(r)),(o,V)=>(y(),I("div",{key:o.id,class:oe(["option",Ve(o.id)?"is-option":""]),onClick:E=>ye(o.id)},R(o.name),11,Bt))),128))])):M("",!0),w(l)==0?(y(),I("div",Ut,[n("div",qt,[n("div",{class:"paizhao",style:{"margin-right":"20px",cursor:"pointer"},onClick:Ae},Gt),n("div",jt,[L(it,{modelValue:C.value[w(m)],"onUpdate:modelValue":t[2]||(t[2]=o=>C.value[w(m)]=o),limit:20},null,8,["modelValue"]),Yt]),n("div",null,[n("video",{ref_key:"video",ref:K,autoplay:"",muted:""},null,512),L(v,{onClick:me,disabled:!X.value,size:"large",type:"primary",plain:""},{default:O(()=>[$t]),_:1},8,["disabled"]),L(v,{onClick:xe,size:"large"},{default:O(()=>[Mt]),_:1})])]),n("div",Ht,[Qe(n("canvas",{ref_key:"canvas",ref:j,style:{width:"120px",height:"90px",visibility:"hidden"}},null,512),[[et,de.value]])])])):M("",!0)]),n("div",Kt,[(y(!0),I(z,null,F(w(x),(o,V)=>(y(),I("div",{class:"clothes-list selected-sub-item",onClick:E=>Oe(V)},[n("div",{class:oe(["clothes-info",{select:w(m)==V}])},[n("div",Wt,[n("div",Zt,[n("div",Jt,R(V+1),1),n("div",Qt,R(o.third_name),1)]),n("div",es,[n("div",null,"\uFFE5"+R(o.price),1),n("div",{class:"tn-icon-delete",style:{color:"#ff0000","margin-left":"5px",cursor:"pointer"},onClick:E=>Pe(V)},null,8,ts)])])],2),w(m)==V?(y(),I("div",ss,[n("div",is,[ns,L(a,{placeholder:"\u9009\u62E9\u6D17\u6DA4\u65B9\u5F0F",style:{flex:"1"},modelValue:o.wash_id,"onUpdate:modelValue":E=>o.wash_id=E,onChange:E=>De(o.wash_id)},{default:O(()=>[(y(!0),I(z,null,F(o.washList,(E,$)=>(y(),we(h,{key:E.id,label:E.washItem.name,value:E.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),n("div",ls,"\uFFE5"+R(o.wash_price),1)]),(y(!0),I(z,null,F(o.detail,(E,$)=>(y(),I("div",os,[n("div",as,R(E.first_name)+"\uFF1A",1),n("div",ds,[(y(!0),I(z,null,F(E.third_items,(te,se)=>(y(),I("div",null,[n("div",null,[B(R(te.third_name),1),se!==E.third_items.length-1?(y(),I("span",rs,",")):M("",!0)])]))),256))])]))),256))])):M("",!0)],8,Xt))),256))])]),n("div",us,[n("div",cs,[n("div",null,R(P.value.ordersn),1),_s]),n("div",vs,[n("div",null,R((c=(d=P.value)==null?void 0:d.sorting_records)==null?void 0:c.length),1),hs]),n("div",ps,[n("div",fs,"\uFFE5"+R(P.value.total_fee),1),ms]),n("div",gs,[L(v,{type:"primary",size:"large",style:{width:"100px"},onClick:Be},{default:O(()=>[xs]),_:1})])]),L(i,{title:"\u6DFB\u52A0"+fe(w(l)),modelValue:ee.value,"onUpdate:modelValue":t[5]||(t[5]=o=>ee.value=o),width:"500"},{default:O(()=>[n("div",ys,[n("div",ws,[n("div",bs,[Is,n("div",Ss,[L(s,{modelValue:w(H).name,"onUpdate:modelValue":t[3]||(t[3]=o=>w(H).name=o),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue"])])])]),n("div",Es,[L(v,{type:"primary",style:{width:"200px"},size:"large",onClick:t[4]||(t[4]=o=>Te(w(l),w(r)))},{default:O(()=>[Ts]),_:1})])])]),_:1},8,["title","modelValue"])])}}},qs=je(As,[["__scopeId","data-v-aefae63b"]]);export{qs as default};