moreShopAdmin/build/admin/assets/index.a7f00e13.js

2 lines
6.4 KiB
JavaScript

import{$ as Z,C as z,D as G,J as H,K as W,w as X,F as Y,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.91c68cc0.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.20e90b1a.js";import{d as $,s as V,r as k,Z as ue,o as s,c as m,U as t,L as a,u as l,aa as re,T as S,a9 as L,K as u,R as r,M as pe,a as y,S as _,Q as T,j as ie,n as me}from"./@vue.76ce7aa3.js";import{u as _e}from"./usePaging.f8c888e4.js";import{u as de}from"./useDictOptions.0ab5d9e3.js";import{a as ce}from"./store_order.b931422b.js";import"./lodash.4e6d2a38.js";import"./index.f650c3a4.js";import"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.8d6d4f30.js";import{_ as fe}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.dde6c7c1.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.8d25b141.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./moment.40bc58bf.js";import"./orderInfo.vue_vue_type_script_setup_true_name_orderInfo_lang.a3245991.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.654444ef.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.0fbe8f12.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.40fcebcf.js";const ye={class:"mt-4"},ve={class:"truncate text-[12px]"},Fe={key:0,style:{"text-align":"left"}},ge={class:"flex mt-4 justify-end"},De=$({name:"store_order_transshipment"}),yt=$({...De,setup(we){V();const v=V();k(!1);const F=k(!1),p=ue({order_id:"",pay_type:""}),A=k([]),K=d=>{A.value=d.map(({id:o})=>o)},{dictData:g}=de("pay_type"),{pager:i,getLists:D,resetParams:N,resetPage:w}=_e({fetchFun:ce,params:p}),R=async d=>{var o,c;F.value=!0,await me(),(o=v.value)==null||o.open(),(c=v.value)==null||c.getDetail(d)};return D(),(d,o)=>{const c=z,b=G,I=H,P=W,C=X,U=Y,B=ee,n=te,O=oe,f=Z,j=ne,M=ae,q=se,J=le;return s(),m("div",null,[t(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(U,{class:"mb-[-16px]",model:l(p),inline:""},{default:a(()=>[t(b,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[t(c,{class:"w-[280px]",modelValue:l(p).order_id,"onUpdate:modelValue":o[0]||(o[0]=e=>l(p).order_id=e),onKeydown:re(l(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),t(b,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[t(P,{class:"w-[280px]",modelValue:l(p).pay_type,"onUpdate:modelValue":o[1]||(o[1]=e=>l(p).pay_type=e),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",onChange:l(w)},{default:a(()=>[(s(!0),m(S,null,L(l(g).pay_type,e=>(s(),u(I,{label:e.name,value:e.value,key:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),t(b,null,{default:a(()=>[t(C,{type:"primary",onClick:l(w)},{default:a(()=>o[4]||(o[4]=[r("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(C,{onClick:l(N)},{default:a(()=>o[5]||(o[5]=[r("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),pe((s(),u(B,{class:"!border-none",shadow:"never"},{default:a(()=>[o[7]||(o[7]=y("div",null,null,-1)),y("div",ye,[t(M,{data:l(i).lists,onSelectionChange:K},{default:a(()=>[t(n,{type:"selection",width:"55"}),t(n,{label:"\u8BA2\u5355ID",prop:"id","show-overflow-tooltip":""}),t(n,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),t(n,{label:"\u5546\u54C1\u4FE1\u606F",prop:"order_id","min-width":"150","show-overflow-tooltip":""},{default:a(({row:e})=>{var E,x;return[(s(!0),m(S,null,L((E=e.product)==null?void 0:E.slice(0,3),(h,Q)=>(s(),m("div",{class:"flex items-center mb-2",key:Q},[t(O,{class:"w-[30px] h-[30px] mr-2 flex-shrink-0",src:h.image,fit:"cover","preview-src-list":[h.image],"preview-teleported":!0},null,8,["src","preview-src-list"]),y("p",ve,_(h.store_name),1)]))),128)),((x=e.product)==null?void 0:x.length)>3?(s(),m("div",Fe,"...")):T("",!0)]}),_:1}),t(n,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),t(n,{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),t(n,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status_name"},{default:a(({row:e})=>[e.status_name=="\u5F85\u6536\u8D27"?(s(),u(f,{key:0,type:"success"},{default:a(()=>[r(_(e.status_name),1)]),_:2},1024)):e.status_name=="\u5DF2\u6536\u8D27"||e.status_name=="\u5DF2\u5B8C\u6210"?(s(),u(f,{key:1,type:"info"},{default:a(()=>[r(_(e.status_name),1)]),_:2},1024)):e.status_name=="\u5F85\u53D1\u8D27"||e.status_name=="\u5F85\u6838\u9500"?(s(),u(f,{key:2,type:"warning"},{default:a(()=>[r(_(e.status_name),1)]),_:2},1024)):(s(),u(f,{key:3,type:"danger"},{default:a(()=>[r(_(e.status_name),1)]),_:2},1024))]),_:1}),t(n,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":""},{default:a(({row:e})=>[t(j,{options:l(g).pay_type,value:e.pay_type},null,8,["options","value"])]),_:1}),t(n,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:e})=>[t(C,{type:"primary",link:"",onClick:E=>R(e)},{default:a(()=>o[6]||(o[6]=[r("\u8BE6\u60C5")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),y("div",ge,[t(q,{modelValue:l(i),"onUpdate:modelValue":o[2]||(o[2]=e=>ie(i)?i.value=e:null),onChange:l(D)},null,8,["modelValue","onChange"])])]),_:1})),[[J,l(i).loading]]),l(F)?(s(),u(fe,{key:0,ref_key:"detailsRef",ref:v,onSuccess:l(D),onClose:o[3]||(o[3]=e=>F.value=!1),dictData:l(g)},null,8,["onSuccess","dictData"])):T("",!0)])}}});export{yt as default};