2 lines
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
|
import{_ as T,u as H,r as a,b as m,l as K,c as s,h as o,e,f as _,w as x,g as C,p as j,v as g,F as U,i as A,x as c,m as R,E as q,s as F,t as l,d as G,y as J,z as P,D as X,o as Q,a as Y,n as M,H as O,I as Z}from"./index-CWN5yz9-.js";import{e as ee,d as te,w as se}from"./store-cGjVPjwr.js";/* empty css */import{p as oe}from"./padding-DCYByQzK.js";const ie=r=>(J("data-v-74887828"),r=r(),P(),r),ae={class:"my-order"},ne={class:"header-nav"},le=ie(()=>e("div",{class:"nav-item"},"核销订单",-1)),de={class:"nav-item-clear"},ce={class:"header-input"},_e={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},re=["onClick"],ve={class:"top"},ue={class:"create-time"},pe={class:"shop"},fe={key:0,class:"left"},he={key:0,class:"shop-name"},ye={class:"right"},me={class:"money"},ge={class:"count"},ke={class:"bottom"},$e={class:"pay"},be={key:0},we={key:0},xe={key:1},Ce={key:2},ze={key:3},Ie={key:4},Se={key:1,style:{color:"#ff4a00"}},Ve={key:0,class:"cashier"},Oe={key:1,class:"cashier",style:{color:"#ff4a00"}},Re={key:0,class:"load-end"},De={key:1,class:"load-end"},Be={__name:"order",emits:["backOne"],setup(r,{expose:t,emit:h}){H(),a([]),a(null);const n=a({verify_code:""}),p=a(!1),k=a(0),$=a(0),v=a(!1),u=a([]),y=(b=!1)=>{ee(n.value).then(d=>{u.value=[d.data],$.value=0,R.emit("set-sale-order-detail",u.value[0]),k.value=d.data.count,u.value[0].is_writeoff&&q.warning("订单已核销过")}).catch(d=>{})},w=(b,d)=>{$.value=d,R.emit("set-order-detail",b)},D=b=>{n.value.verify_code=b,y(!0)},B=h,E=()=>{B("backOne")};return t({setCode:D}),(b,d)=>{const z=m("el-button"),I=m("el-input"),S=m("el-image"),V=K("loading");return s(),o("div",ae,[e("div",ne,[le,e("div",de,[_(z,{type:"primary",size:"small",onClick:E},{default:x(()=>[C("返回上一页")]),_:1})])]),e("div",ce,[_(I,{modelValue:n.value.verify_code,"onUpdate:modelValue":d[1]||(d[1]=i=>n.value.verify_code=i),placeholder:"请输入核销码",onKeydown:d[2]||(d[2]=j(i=>y(!0),["enter"])),clearable:""},{append:x(()=>[_(z,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:d[0]||(d[0]=i=>y(!0))},{default:x(()=>[C("搜索")]),_:1})]),_:1},8,["modelValue"])]),g((s(),o("div",_e,[(s(!0),o(U,null,A(u.value,(i,L)=>(s(),o("div",{class:F(["item",{"item-active":$.value==L}]),key:L,onClick:N=>w(i,L)},[e("div",ve,[e("div",{class:F(["sn","cahier"])},"单号: "+l(i.order_id),1),e("div",ue,l(i.pay_time),1)]),e("div",pe,[i.product?(s(),o("div",fe,[(s(!0),o(U,null,A(i.product.slice(0,5),(N,W)=>(s(),G(S,{key:W,src:N.cart_info.image,class:"shop-img"},null,8,["src"]))),128)),i.product.length==1?(s(),o("div",he,l(i.product[0].store_name),1)):c("",!0)])):c("",!0),e("div",ye,[e("div",me,"¥"+l(i.pay_price),1),e("div",ge,"共"+l(i.total_num)+"款商品",1)])]),e("div",ke,[e("div",$e,[i.paid?(s(),o("div",be,[C(l(i.paid_name)+" ",1),i.pay_type==9?(s(),o("span",we,"(微信收款)")):c("",!0),i.pay_type==17?(s(),o("span",xe,"(现金支付)")):c("",!0),i.pay_type==13?(s(),o("span",Ce,"(支付宝收款)")):c("",!0),i.pay_type==3?(s(),o("span",ze,"(余额支付)")):c("",!0),i.pay_type==1?(s(),o("span",Ie,"(微信支付)")):c("",!0)])):(s(),o("div",Se,l(i.paid_name),1))]),i.is_writeoff==0?(s(),o("div",Ve,"核销码:"+l(i.verify_code),1)):(s(),o("div",Oe,"已核销:"+l(i.verify_code),1))])],10,re))),128)),v.value?(s(),o("div",Re,"没有更多了")):c("",!0),p.value?(s(),o("div",De,"加载中...")):c("",!0)])),[[V,p.value]])])}}},Ee=T(Be,[["__scopeId","data-v-74887828"]]),f=r=>(J("data-v-39b7d4a3"),r=r(),P(),r),Le={class:"my-order"},Ke={key:0,class:"detail"},Ne={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ue=f(()=>e("div",{class:"table-title"},"订单信息",-1)),Ae={class:"table-info"},Fe={class:"info-item"},Me=f(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),Te={class:"info-item-info"},He={class:"info-item"},je=f(()=>e("div",{class:"info-item-title"},"商品<EFBFBD><EFBFBD>
|