2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
import{a0 as ae,a1 as le,x as ue,y as oe,b as G,M as W,N as X,g as ne,S as se,U as ie,T as re,$ as de,J as me,K as pe,D as _e,C as ce,w as fe,F as ve,L as Ee,O as Fe}from"./element-plus.7e347b00.js";import{_ as De}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{d as J,r as D,o as n,K as h,L as t,a,U as e,S as r,c,Q as T,T as H,a9 as q,M as ee,R as x,V as he,Z as we,s as Be,aa as be,u as F,j as ye,n as Ce}from"./@vue.18505fe0.js";import{u as xe}from"./usePaging.6a6670f9.js";import{u as ge}from"./useDictOptions.dc8aa87e.js";import{h as ke}from"./moment.40bc58bf.js";import{m as Ve}from"./store_order.b5e7cefd.js";import{_ as Ae}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.cc35ca54.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.fd76ab8a.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.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.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfaac421.js";import"./system_store.0aadec73.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./orderInfo.vue_vue_type_script_setup_true_name_orderInfo_lang.143e1eec.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.fd0266ac.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.a09a0d2a.js";import"./store_product.0382114d.js";import"./store_branch_product.b62f27ae.js";import"./warehouse_product_storege.77d813d1.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.4c5d32b1.js";import"./index.1071aff1.js";import"./refundOrderProduct.vue_vue_type_script_setup_true_name_refundOrderProduct_lang.d6984119.js";import"./warehouse.6fb0326e.js";const Te=a("h4",null,"\u8BA2\u5355\u8BE6\u60C5",-1),Se={class:"flex"},Re={class:"flex flex-col ml-3 justify-between"},$e={style:{"font-size":"16px"}},je={class:"flex justify-between w-[70%] mt-[20px]"},Pe=a("div",null,"\u8BA2\u5355\u72B6\u6001",-1),Ue=a("div",null,"\u5B9E\u9645\u652F\u4ED8",-1),Ye=a("div",null,"\u652F\u4ED8\u65B9\u5F0F",-1),Le={key:0},Ne=a("div",null,"\u652F\u4ED8\u65F6\u95F4",-1),Me={key:1},Ie=a("div",null,"\u9000\u6B3E\u4EF6\u6570",-1),Ke=[Ie],Oe={key:2},ze=a("div",null,"\u9000\u6B3E\u65F6\u95F4",-1),He=[ze],qe={class:"flex w-[300px] items-center"},Je="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",Z="first",Qe=J({__name:"index",props:{detailData:{type:Object},orderType:{type:Number,default:1}},setup(i,{expose:_}){var B,S,R,f,$,j,P,b,U,k,o,d,Y,v,E;const p=D(!1),u=i,g=D([{title:"\u9000\u6B3E\u539F\u56E0",isShow:u.orderType==0,child:[{name:"\u9000\u6B3E\u539F\u56E0",value:(B=u.detailData)==null?void 0:B.refund_reason},{name:"\u9000\u6B3E\u91D1\u989D",value:(S=u.detailData)==null?void 0:S.refund_price},{name:"\u9000\u6B3E\u8BF4\u660E",value:(R=u.detailData)==null?void 0:R.refund_reason_wap_explain}]},{title:"\u7528\u6237\u4FE1\u606F",isShow:!0,child:[{name:"\u7528\u6237\u6635\u79F0",value:(f=u.detailData)==null?void 0:f.nickname},{name:"\u7ED1\u5B9A\u7535\u8BDD",value:($=u.detailData)==null?void 0:$.mobile}]},{title:"\u6536\u8D27\u4EBA\u4FE1\u606F",isShow:!0,child:[{name:"\u6536\u8D27\u4EBA",value:(j=u.detailData)==null?void 0:j.real_name},{name:"\u6536\u83B7\u7535\u8BDD",value:(P=u.detailData)==null?void 0:P.user_phone},{name:"\u6536\u83B7\u5730\u5740",value:(b=u.detailData)==null?void 0:b.user_address}]},{title:"\u8BA2\u5355\u4FE1\u606F",isShow:!0,child:[{name:"\u521B\u5EFA\u65F6\u95F4",value:(U=u.detailData)==null?void 0:U.create_time},{name:"\u5546\u54C1\u603B\u6570",value:(k=u.detailData)==null?void 0:k.total_num},{name:"\u5546\u54C1\u603B\u4EF7",value:(o=u.detailData)==null?void 0:o.total_price},{name:"\u5E97\u5458\u540D\u79F0",value:(d=u.detailData)==null?void 0:d.staff_name},{name:"\u652F\u4ED8\u65F6\u95F4",value:(Y=u.detailData)==null?void 0:Y.pay_time},{name:"\u652F\u4ED8\u65B9\u5F0F",value:(v=u.detailData)==null?void 0:v.pay_type}]},{title:"\u8BA2\u5355\u5907\u6CE8",isShow:!0,child:[{name:"\u5907\u6CE8",value:(E=u.detailData)==null?void 0:E.remark}]}]);return _({open:()=>{p.value=!0},close:()=>{p.value=!1}}),(N,y)=>{const C=G,M=ae,I=le,V=ue,s=W,K=X,L=oe,O=ne;return n(),h(O,{modelValue:p.value,"onUpdate:modelValue":y[1]||(y[1]=m=>p.value=m),direction:"rtl","destroy-on-close":!0,title:"\u8BA2\u5355\u8BE6\u60C5",size:"50%"},{header:t(()=>[Te]),default:t(()=>[a("div",Se,[e(C,{class:"w-[50px] h-[50px]",src:Je,fit:N.fit,"preview-teleported":!0},null,8,["fit"]),a("div",Re,[a("div",$e,r(i.orderType?"\u3010\u6536\u94F6\u8BA2\u5355\u3011":"\u552E\u540E\u8BA2\u5355"),1),a("div",null," \u8BA2\u5355\u7F16\u53F7\uFF1A "+r(i.detailData.order_id),1)])]),a("ul",je,[a("li",null,[Pe,a("div",null,r(i.orderType?i.detailData.status_name:i.detailData.refund_status_name),1)]),a("li",null,[Ue,a("div",null,r(i.detailData.pay_price),1)]),a("li",null,[Ye,a("div",null,r(i.detailData.pay_type),1)]),i.orderType?(n(),c("li",Le,[Ne,a("div",null,r(i.detailData.pay_time),1)])):T("",!0),i.orderType?T("",!0):(n(),c("li",Me,Ke)),i.orderType?T("",!0):(n(),c("li",Oe,He))]),e(L,{modelValue:Z,"onUpdate:modelValue":y[0]||(y[0]=m=>Z=m),class:"mt-[20px]"},{default:t(()=>[e(V,{label:"\u8BA2\u5355\u4FE1\u606F",name:"first"},{default:t(()=>[(n(!0),c(H,null,q(g.value,(m,z)=>ee((n(),h(I,{column:3,border:"",title:m.title,class:"mb-[30px]",key:z},{default:t(()=>[(n(!0),c(H,null,q(m.child,l=>(n(),h(M,{label:l.name,"label-class-name":"my-label"},{default:t(()=>[x(r(l.value),1)]),_:2},1032,["label"]))),256))]),_:2},1032,["title"])),[[he,m.isShow]])),128))]),_:1}),e(V,{label:"\u5546\u54C1\u4FE1\u606F",name:"second"},{default:t(()=>[e(K,{border:"",data:i.detailData.product},{default:t(()=>[e(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"build_area_text","show-overflow-tooltip":""},{default:t(({row:m})=>[a("div",qe,[e(C,{class:"w-[50px] h-[50px] mr-2",src:m.cart_info.image,"preview-teleported":!0},null,8,["src"]),a("span",null,r(m.cart_info.name),1)])]),_:1}),e(s,{label:"\u4EF7\u683C",prop:"cart_info.price","show-overflow-tooltip":""}),e(s,{label:"\u6570\u91CF",prop:"cart_info.cart_num","show-overflow-tooltip":"",width:"120"}),e(s,{label:"\u5C0F\u8BA1",prop:"cart_info.total","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Ze={class:"mt-4"},Ge={class:"text-[12px]"},We={class:"flex mt-4 justify-end"},Xe={key:0},et=J({name:"manageProjectLists"}),ta=J({...et,setup(i){const _=we({order_id:"",pay_type:"",start_time:"",end_time:"",refund_type:""}),p=D([]),u=D(!1),g=Be(),{dictData:Q}=ge("pay_type"),{pager:w,getLists:B,resetParams:S,resetPage:R}=xe({fetchFun:Ve,params:_}),f=()=>{p.value.length&&(_.start_time=p.value[0],_.end_time=p.value[1]),R()},$=()=>{p.value=[],S()},j=D(null),P=D({}),b=D(!1),U=async k=>{var o,d;b.value=!0,await Ce(),(o=g.value)==null||o.open(),(d=g.value)==null||d.getDetail(k)};return B(),(k,o)=>{const d=me,Y=pe,v=_e,E=se,N=ie,y=ce,C=fe,M=re,I=ve,V=Ee,s=W,K=G,L=de,O=X,m=De,z=Fe;return n(),c("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(I,{class:"mb-[-16px]",model:_,"label-width":"80px"},{default:t(()=>[e(M,null,{default:t(()=>[e(E,{span:6},{default:t(()=>[e(v,{label:"\u8BA2\u5355\u72B6\u6001"},{default:t(()=>[e(Y,{class:"flex-1",modelValue:_.refund_type,"onUpdate:modelValue":o[0]||(o[0]=l=>_.refund_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u72B6\u6001",onChange:f},{default:t(()=>[e(d,{label:"\u4EC5\u9000\u6B3E",value:"1"}),e(d,{label:"\u4EC5\u9000\u6B3E",value:"2"}),e(d,{label:"\u62D2\u7EDD\u9000\u6B3E",value:"3"}),e(d,{label:"\u5546\u54C1\u5F85\u9000\u8D27",value:"4"}),e(d,{label:"\u9000\u8D27\u5F85\u6536\u8D27",value:"5"}),e(d,{label:"\u5DF2\u9000\u6B3E",value:"6"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:t(()=>[e(v,{label:"\u9000\u6B3E\u65F6\u95F4"},{default:t(()=>[e(N,{modelValue:p.value,"onUpdate:modelValue":o[1]||(o[1]=l=>p.value=l),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",onChange:f},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:t(()=>[e(v,{label:"\u8BA2\u5355\u641C\u7D22"},{default:t(()=>[e(y,{modelValue:_.order_id,"onUpdate:modelValue":o[2]||(o[2]=l=>_.order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7",onKeydown:be(f,["enter"])},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:t(()=>[e(v,null,{default:t(()=>[e(C,{type:"primary",onClick:f},{default:t(()=>[x("\u67E5\u8BE2")]),_:1}),e(C,{onClick:$},{default:t(()=>[x("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ee((n(),h(V,{class:"!border-none",shadow:"never"},{default:t(()=>[a("div",Ze,[e(O,{data:F(w).lists},{default:t(()=>[e(s,{label:"\u8BA2\u5355\u53F7",prop:"order_id","min-width":"150","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u4FE1\u606F",prop:"nickname","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"project_level_text","show-overflow-tooltip":"","min-width":"180"},{default:t(({row:l})=>[(n(!0),c(H,null,q(l.product,(A,te)=>(n(),c("div",{key:te,class:"flex items-center"},[e(K,{src:A.cart_info.image,class:"mr-2 w-[40px] h-[40px] !flex-shrink-0","preview-teleported":!0},null,8,["src"]),a("div",Ge,[a("p",null,r(A.cart_info.name),1),a("p",null,"\uFFE5"+r(A.cart_info.price)+" x "+r(A.cart_info.cart_num),1)])]))),128))]),_:1}),e(s,{label:"\u5B9E\u9645\u652F\u4ED8",prop:"pay_price","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u53D1\u8D77\u9000\u6B3E\u65F6\u95F4",prop:"refund_reason_time","min-width":"150","show-overflow-tooltip":""},{default:t(({row:l})=>[a("span",null,r(l.refund_reason_time?F(ke)(l.refund_reason_time<10**10?l.refund_reason_time*1e3:l.refund_reason_time).format("YYYY-MM-DD HH:mm:ss"):"-"),1)]),_:1}),e(s,{label:"\u9000\u6B3E\u72B6\u6001",prop:"refund_status_name","min-width":"100","show-overflow-tooltip":""},{default:t(({row:l})=>[l.refund_status_name=="\u5DF2\u9000\u6B3E"?(n(),h(L,{key:0,type:"success"},{default:t(()=>[x(r(l.refund_status_name),1)]),_:2},1024)):(n(),h(L,{key:1,type:"danger"},{default:t(()=>[x(r(l.refund_status_name),1)]),_:2},1024))]),_:1}),e(s,{label:"\u9000\u6B3E\u4FE1\u606F",prop:"","show-overflow-tooltip":""}),e(s,{label:"\u9000\u8D27\u4FE1\u606F",prop:"","show-overflow-tooltip":""}),e(s,{label:"\u552E\u540E\u5907\u6CE8",prop:"","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right",align:"center"},{default:t(({row:l})=>[e(C,{type:"primary",link:"",onClick:A=>U(l)},{default:t(()=>[x(" \u8BA2\u5355\u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),a("div",We,[e(m,{modelValue:F(w),"onUpdate:modelValue":o[3]||(o[3]=l=>ye(w)?w.value=l:null),onChange:F(B)},null,8,["modelValue","onChange"])])]),_:1})),[[z,F(w).loading]]),u.value?(n(),c("div",Xe,[e(Qe,{ref_key:"detailRef",ref:j,detailData:P.value,onClose:o[4]||(o[4]=l=>u.value=!1),orderType:0},null,8,["detailData"])])):T("",!0),b.value?(n(),h(Ae,{key:1,ref_key:"detailsRef",ref:g,onSuccess:F(B),onClose:o[5]||(o[5]=l=>b.value=!1),dictData:F(Q)},null,8,["onSuccess","dictData"])):T("",!0)])}}});export{ta as default};
|