cashier-ERP/dist/assets/index-CBQTGiyO.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2024-04-10 14:29:20 +08:00
import{_ as j,u as J,r as a,b as w,l as M,c as t,h as s,e,f as l,w as p,g as $,p as Q,v as S,F as T,i as H,x as n,E as P,m as U,s as z,t as c,d as q,y as W,z as X,C as Y,o as Z,n as G,G as O,H as ee}from"./index-BpXYCW1n.js";import{v as te,p as se,f as oe,h as ie}from"./pay-EEWGeT4Q.js";import{p as ae}from"./padding-CLyithQn.js";const ne=y=>(W("data-v-aaa26790"),y=y(),X(),y),le={class:"my-order"},ce={class:"header-nav"},de=ne(()=>e("div",{class:"nav-item"},"核销订单",-1)),re={class:"nav-item-clear"},_e={class:"header-input"},ue={class:"order-list","infinite-scroll-distance":"300","infinite-scroll-delay":"500","infinite-scroll-immediate":"false",style:{overflow:"auto"}},ve=["onClick"],pe={class:"top"},fe={class:"create-time"},he={class:"shop"},me={key:0,class:"left"},ye={key:0,class:"shop-name"},ke={class:"right"},ge={class:"money"},$e={class:"count"},be={class:"bottom"},Ce={class:"pay"},Ve={key:0},we={key:0},xe={key:1},Se={key:2},Ie={key:3},Re={key:4},Le={key:5},Pe={key:6},Ae={key:1,style:{color:"#ff4a00"}},Ee={key:0,class:"cashier"},Oe={key:1,class:"cashier"},Ue={key:0,class:"load-end"},ze={key:1,class:"load-end"},Be={__name:"order",emits:["backOne"],setup(y,{expose:k,emit:x}){const I=J();a([]);const o=a(1);a(null);const v=a({page:1,limit:20,search_info:""}),g=a(!1);a(0);const h=a(0),m=a(!1),b=a([]),C=(r=!1)=>{if(!v.value.search_info)return P.error("请输入订单编号");if(r)v.value.page=1;else if(m.value||g.value)return;g.value=!0,o.value==1&&(v.value.paid=null),o.value==2&&(v.value.paid=0),b.value=[],U.emit("set-order-detail",{}),te(I.userInfo.service.mer_id,v.value.search_info).then(d=>{b.value=[d.data],U.emit("set-order-detail",b.value[0]),g.value=!1}).catch(d=>{m.value=!0,g.value=!1})},B=(r,d)=>{h.value=d,U.emit("set-order-detail",r)},D=r=>{v.value.search_info=r,C(!0)},A=x,K=()=>{A("backOne")};return k({setCode:D}),(r,d)=>{const u=w("el-button"),E=w("el-input"),N=w("el-image"),F=M("loading"),R=M("infinite-scroll");return t(),s("div",le,[e("div",ce,[de,e("div",re,[l(u,{type:"primary",size:"small",onClick:K},{default:p(()=>[$("返回上一页")]),_:1})])]),e("div",_e,[l(E,{modelValue:v.value.search_info,"onUpdate:modelValue":d[1]||(d[1]=i=>v.value.search_info=i),placeholder:"请输入订单编号",onKeydown:d[2]||(d[2]=Q(i=>C(!0),["enter"])),clearable:""},{append:p(()=>[l(u,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 5px 5px 0"},onClick:d[0]||(d[0]=i=>C(!0))},{default:p(()=>[$("搜索")]),_:1})]),_:1},8,["modelValue"])]),S((t(),s("div",ue,[(t(!0),s(T,null,H(b.value,(i,L)=>(t(),s("div",{class:z(["item",{"item-active":h.value==L}]),key:L,onClick:_=>B(i,L)},[e("div",pe,[e("div",{class:z(["sn",i.pay_type===11||i.pay_type===12||i.pay_type===13?"cahier":"cahier2"])},"单号: "+c(i.order_sn),3),e("div",fe,c(i.create_time),1)]),e("div",he,[i.orderProduct?(t(),s("div",me,[(t(!0),s(T,null,H(i.orderProduct.slice(0,5),(_,V)=>(t(),q(N,{key:V,src:_.cart_info.productAttr.image||_.cart_info.product.image,class:"shop-img"},null,8,["src"]))),128)),i.orderProduct.length==1?(t(),s("div",ye,c(i.orderProduct[0].cart_info.product.store_name),1)):n("",!0)])):n("",!0),e("div",ke,[e("div",ge,"¥"+c(i.pay_price),1),e("div",$e,"共"+c(i.total_num)+"件商品",1)])]),e("div",be,[e("div",Ce,[i.paid?(t(),s("div",Ve,[$(" 已支付 "),i.pay_type==13?(t(),s("span",we,"(支付宝收款)")):n("",!0),i.pay_type==12?(t(),s("span",xe,"(现金支付)")):n("",!0),i.pay_type==11?(t(),s("span",Se,"(微信收款)")):n("",!0),i.pay_type==0?(t(),s("span",Ie,"(余额支付)")):n("",!0),i.pay_type==1?(t(),s("span",Re,"(微信支付)")):n("",!0),i.pay_type==9?(t(),s("span",Le,"(商户余额支付)")):n("",!0),i.pay_type==10?(t(),s("span",Pe,"(对公转账)")):n("",!0)])):(t(),s("div",Ae,"未支付"))]),i.service_info?(t(),s("div",Ee,"收银员: "+c(i.service_info.nickname),1)):(t(),s("div",Oe,"平台订单"))])],10,ve))),128)),m.value?(t(),s("div",Ue,"没有更多了")):n("",!0),g.value?(t(),s("div",ze,"加载中...")):n("",!0)])),[[F,g.value],[R,C]])])}}},De=j(Be,[["__scopeId","data-v-aaa26790"]]),f=y=>(W("data-v-a4e