mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-29 01:40:16 +00:00
2 lines
8.6 KiB
JavaScript
2 lines
8.6 KiB
JavaScript
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{a as q,E as G}from"./el-form-item-1b16c9fc.js";/* empty css *//* empty css */import{t as a}from"./index-0ca94763.js";import{p as J}from"./order-16e6c90b.js";import{c as K}from"./common-c3be41fd.js";import{u as Q,a as W}from"./vue-router-48fdc1e3.js";import{E as X}from"./index-e27c3bb0.js";import{E as Z}from"./index-51138976.js";import{E as ee}from"./index-c5914bde.js";import{E as te}from"./index-9ecd3f93.js";import{a as oe,E as ae}from"./index-24fb848e.js";import{a as le,E as re}from"./index-fe3867fe.js";import{E as ne}from"./index-448a4893.js";import{E as se}from"./index-21f38393.js";import{v as ie}from"./directive-64fb15dc.js";import{d as de,r as h,O as me,$ as D,e as _,f as u,y as e,x as n,g as s,B as m,u as o,A as x,M as pe,F as _e,z as ce,H as R,v as ue}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as fe}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-bcd7a424.js";import"./index-cf9a2dd7.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./index-d469ae66.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./_baseClone-3dbf39d6.js";import"./customParseFormat-40c50080.js";import"./arrays-e667dc24.js";import"./flatten-749195f8.js";import"./index-6c0acd90.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";import"./isEqual-0b9509fd.js";import"./strings-53351eda.js";import"./index-95b00894.js";import"./_isIterateeCall-47526406.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./validator-bcf701e4.js";const be={class:"main-container"},he={class:"flex justify-between items-center"},ge={class:"text-[20px]"},xe={class:"table-body min-h-[150px]"},ve={key:0},ye={class:"flex items-center justify-between bg-[#f7f8fa] mt-[10px] border-[#e4e7ed] border-solid border-b-[1px] px-3 h-[35px] text-[12px] text-[#666]"},we={class:"ml-5"},ke={class:"flex cursor-pointer"},Ee={class:"flex items-center min-w-[50px] mr-[10px]"},Ce=["src"],Pe={key:1,class:"w-[50px] h-[50px]",src:"",alt:""},Ve={class:"flex"},De={class:"multi-hidden"},Re={class:"flex flex-col"},Te={class:"text-[14px]"},Fe={class:"text-[14px]"},Ne={class:"text-[14px]"},ze={class:"text-[14px]"},Se={class:"text-[14px]"},Be={key:0,class:"text-[14px] h-[30px] leading-[30px] px-3 bg-[#fff0e5] text-[#ff7f5b]"},Me={class:"mr-[5px]"},Ue={class:"mt-[16px] flex justify-end"},$e=de({__name:"refund",setup(je){const T=Q(),k=W(),F=T.meta.title,E=h("");(async()=>{})();const v=h(null),y=h(!1),N=()=>{if(y.value==!1){y.value=!0;for(const i in t.data)for(const l in t.data[i].order_goods)v.value[i].toggleRowSelection(t.data[i].order_goods[l],!0)}else{y.value=!1;for(const i in t.data)for(const l in t.data[i].order_goods)v.value[i].clearSelection()}},t=me({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{order_refund_no:"",create_time:[],status:""}}),C=h();h([]);const c=(i=1)=>{t.loading=!0,t.page=i,J({page:t.page,limit:t.limit,...t.searchParam}).then(l=>{t.loading=!1,t.data=l.data.data.map(b=>(b.order_goods=[b.order_goods],b)),t.total=l.data.total}).catch(()=>{t.loading=!1})};c();const z=i=>{t.searchParam.status=i,c()},S=i=>{k.push("/shop/order/refund/detail?refund_id="+i.refund_id)},B=i=>{const l=k.resolve({path:"/member/detail",query:{id:i}});window.open(l.href,"_blank")},M=i=>{i&&(i.resetFields(),c())};return(i,l)=>{const b=X,w=q,U=Z,g=ee,$=G,P=te,f=oe,j=ae,d=le,V=re,A=ne,I=se,Y=D("delivery-action"),H=D("order-notes"),L=ie;return _(),u("div",be,[e(P,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[s("div",he,[s("span",ge,m(o(F)),1)]),e(P,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:n(()=>[e($,{inline:!0,model:t.searchParam,ref_key:"searchFormRef",ref:C},{default:n(()=>[e(w,{label:o(a)("orderRefundNo"),prop:"order_refund_no"},{default:n(()=>[e(b,{modelValue:t.searchParam.order_refund_no,"onUpdate:modelValue":l[0]||(l[0]=r=>t.searchParam.order_refund_no=r),placeholder:o(a)("orderRefundNoPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(w,{label:o(a)("createTime"),prop:"create_time"},{default:n(()=>[e(U,{modelValue:t.searchParam.create_time,"onUpdate:modelValue":l[1]||(l[1]=r=>t.searchParam.create_time=r),type:"datetimerange","value-format":"YYYY-MM-DD HH:mm:ss","start-placeholder":o(a)("startDate"),"end-placeholder":o(a)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),e(w,null,{default:n(()=>[e(g,{type:"primary",onClick:l[2]||(l[2]=r=>c())},{default:n(()=>[x(m(o(a)("search")),1)]),_:1}),e(g,{onClick:l[3]||(l[3]=r=>M(C.value))},{default:n(()=>[x(m(o(a)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(j,{modelValue:E.value,"onUpdate:modelValue":l[4]||(l[4]=r=>E.value=r),class:"demo-tabs",onTabChange:z},{default:n(()=>[e(f,{label:o(a)("all"),name:""},null,8,["label"]),e(f,{label:o(a)("applyForRefund"),name:"1"},null,8,["label"]),e(f,{label:o(a)("refundEnd"),name:"8"},null,8,["label"]),e(f,{label:o(a)("toBeReturned"),name:"2"},null,8,["label"]),e(f,{label:o(a)("receivedGoods"),name:"4"},null,8,["label"]),e(f,{label:o(a)("refundRefuse"),name:"3"},null,8,["label"])]),_:1},8,["modelValue"]),s("div",null,[e(V,{data:t.data,size:"large",class:"table-top",onSelectAll:N},{default:n(()=>[e(d,{type:"selection",width:"40"}),e(d,{label:o(a)("goodsInfo"),"min-width":"240"},null,8,["label"]),e(d,{label:o(a)("goodsMoney"),"min-width":"120"},null,8,["label"]),e(d,{label:o(a)("buyMember"),"min-width":"120"},null,8,["label"]),e(d,{label:o(a)("refundMoney"),"min-width":"120"},null,8,["label"]),e(d,{label:o(a)("refundType"),"min-width":"120"},null,8,["label"]),e(d,{label:o(a)("createTime"),"min-width":"120"},null,8,["label"]),e(d,{label:o(a)("refundStatus"),"min-width":"120"},null,8,["label"]),e(d,{label:o(a)("operation"),fixed:"right",align:"right","min-width":"120"},null,8,["label"])]),_:1},8,["data"]),pe((_(),u("div",xe,[t.loading?R("",!0):(_(),u("div",ve,[t.data.length?(_(!0),u(_e,{key:0},ce(t.data,(r,O)=>(_(),u("div",{key:O},[s("div",ye,[s("div",null,[s("span",we,m(o(a)("orderRefundNo"))+":"+m(r.order_refund_no),1)])]),e(V,{data:r.order_goods,size:"large","show-header":!1,ref_for:!0,ref_key:"multipleTable",ref:v},{default:n(()=>[e(d,{type:"selection",width:"40"}),e(d,{align:"left","min-width":"240"},{default:n(({row:p})=>[s("div",ke,[s("div",Ee,[p.goods_image_thumb_small?(_(),u("img",{key:0,class:"w-[50px] h-[50px]",src:o(K)(p.goods_image_thumb_small),alt:""},null,8,Ce)):(_(),u("img",Pe))]),s("div",Ve,[s("p",De,m(p.goods_name),1)])])]),_:1}),e(d,{"min-width":"120"},{default:n(({row:p})=>[s("div",Re,[s("span",Te,"¥"+m(p.goods_money-p.discount_money),1)])]),_:1}),e(d,{"min-width":"120"},{default:n(({row:p})=>[e(g,{link:"",type:"primary",onClick:Ie=>B(r.member.member_id)},{default:n(()=>[x(m(r.member.nickname),1)]),_:2},1032,["onClick"])]),_:2},1024),e(d,{"min-width":"120"},{default:n(({row:p})=>[s("span",Fe,"¥"+m(r.apply_money),1)]),_:2},1024),e(d,{"min-width":"120"},{default:n(({row:p})=>[s("span",Ne,m(r.refund_type_name),1)]),_:2},1024),e(d,{"min-width":"120"},{default:n(({row:p})=>[s("span",ze,m(r.create_time),1)]),_:2},1024),e(d,{"min-width":"120"},{default:n(({row:p})=>[s("span",Se,m(r.status_name),1)]),_:2},1024),e(d,{align:"right","min-width":"120"},{default:n(()=>[e(g,{type:"primary",link:"",onClick:p=>S(r)},{default:n(()=>[x(m(o(a)("info")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["data"]),r.shop_remark?(_(),u("div",Be,[s("span",Me,m(o(a)("notes"))+":",1),s("span",null,m(r.shop_remark),1)])):R("",!0)]))),128)):(_(),ue(A,{key:1,description:o(a)("emptyData")},null,8,["description"]))]))])),[[L,t.loading]]),s("div",Ue,[e(I,{"current-page":t.page,"onUpdate:currentPage":l[5]||(l[5]=r=>t.page=r),"page-size":t.limit,"onUpdate:pageSize":l[6]||(l[6]=r=>t.limit=r),layout:"total, sizes, prev, pager, next, jumper",total:t.total,onSizeChange:l[7]||(l[7]=r=>c()),onCurrentChange:c},null,8,["current-page","page-size","total"])])])]),_:1}),e(Y,{ref:"deliveryActionDialog",onComplete:c},null,512),e(H,{ref:"orderNotesDialog",onComplete:c},null,512)])}}});const Kt=fe($e,[["__scopeId","data-v-ef2be16c"]]);export{Kt as default};
|