2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{C as T,D as U,w as I,F as O,L as j,M,N as q,O as K}from"./element-plus.1e96d4ee.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.272adef5.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.bec16338.js";import{a as H}from"./store_order.3233432d.js";import"./lodash.60201f64.js";import"./index.163b09f9.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.d5b6026d.js";import{_ as W}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.8824072e.js";import{d as h,s as B,r as F,Z as X,o as m,c as Y,U as e,L as a,u as o,R as w,M as ee,K as y,a as D,j as oe,Q as E,n as te}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.d7cb9838.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./orderInfo.a36936e9.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.575e9cf1.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.1f247f2a.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.3bdec377.js";const ae={class:"mt-4"},le={class:"flex mt-4 justify-end"},se=h({name:"storeOrderLists"}),Xe=h({...se,setup(re){const g=B(),d=B(),C=F(!1),c=F(!1),r=X({order_id:"",pay_type:""}),k=F([]),V=p=>{k.value=p.map(({id:t})=>t)},{dictData:_}=G(""),{pager:i,getLists:u,resetParams:x,resetPage:R}=z({fetchFun:H,params:r}),S=async p=>{var t,n;c.value=!0,await te(),(t=d.value)==null||t.open(),(n=d.value)==null||n.getDetail(p)};return u(),(p,t)=>{const n=T,f=U,v=I,$=O,b=j,s=M,L=Z,A=q,N=Q,P=K;return m(),Y("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e($,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(f,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:o(r).pay_type,"onUpdate:modelValue":t[1]||(t[1]=l=>o(r).pay_type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u652F\u4ED8\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(f,null,{default:a(()=>[e(v,{type:"primary",onClick:o(R)},{default:a(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:o(x)},{default:a(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ee((m(),y(b,{class:"!border-none",shadow:"never"},{default:a(()=>[D("div",ae,[e(A,{data:o(i).lists,onSelectionChange:V},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u8BA2\u5355ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(s,{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),e(s,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""}),e(s,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":""}),e(s,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:a(({row:l})=>[e(L,{options:o(_).order_status,values:l.status},null,8,["options","values"])]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[e(v,{type:"primary",link:"",onClick:ie=>S(l)},{default:a(()=>[w("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),D("div",le,[e(N,{modelValue:o(i),"onUpdate:modelValue":t[2]||(t[2]=l=>oe(i)?i.value=l:null),onChange:o(u)},null,8,["modelValue","onChange"])])]),_:1})),[[P,o(i).loading]]),o(C)?(m(),y(J,{key:0,ref_key:"editRef",ref:g,"dict-data":o(_),onSuccess:o(u),onClose:t[3]||(t[3]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):E("",!0),o(c)?(m(),y(W,{key:1,ref_key:"detailsRef",ref:d,"dict-data":o(_),onSuccess:o(u),onClose:t[4]||(t[4]=l=>c.value=!1)},null,8,["dict-data","onSuccess"])):E("",!0)])}}});export{Xe as default};
|