1 |
- import{_ as u}from"./BasicTable.vue_vue_type_script_setup_true_lang-Bm8Sj10O.js";import"./TableImg.vue_vue_type_style_index_0_lang-CEi7QgY1.js";import{_}from"./index-CJ9IJZ6V.js";import{u as f}from"./useTable-BpLpAc3A.js";import{j as b}from"./index-_eObEv1v.js";import{f as g,_ as h}from"./entry/index-C17E5Aqh.js";import{l as a,d as x,f as T,k as o,a9 as s,Z as k,_ as I,a8 as w}from"./vue-ByATgq5d.js";import{u as D}from"./index-BAzNbRu7.js";import y from"./WebsiteDrawer-BVYqf7PL.js";import{M as C,U as R}from"./antd-FjOLgRLC.js";import"./BasicForm.vue_vue_type_script_setup_true_lang-CFZcuue5.js";import"./FormItem.vue_vue_type_script_lang-BXKcfqe-.js";import"./componentMap-BCS30Piw.js";import"./useFormItem-DmfL7Ss_.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-D1TWC5U3.js";import"./index-DI1OQsgv.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-DvdeuzSL.js";import"./copyTextToClipboard-D9zCzvi-.js";import"./index-B1NsfGPK.js";import"./index-gY5k7B8D.js";import"./index-BzY6kAqa.js";import"./useWindowSizeFn-D8-jNAUn.js";import"./base64Conver-bBv-IO2K.js";import"./helper-BstPbuXQ.js";import"./BasicForm.vue_vue_type_style_index_0_lang-HSLsn_ym.js";import"./useForm-BVkchyna.js";import"./uuid-D0SLUWHI.js";import"./sortable.esm-CoO8jRpa.js";import"./onMountedOrActivated-BDlj7Upy.js";import"./useSortable-ByzHqV5X.js";import"./download-BGbpuxZu.js";const v=[{title:"订单号",dataIndex:"order_no",width:150},{title:"用户",dataIndex:"user_id"},{title:"产品",dataIndex:"product_id"},{title:"sku",dataIndex:"product_sku"},{title:"订单金额",dataIndex:"order_amount_total"},{title:"优惠金额",dataIndex:"preferential_price"},{title:"实付金额",dataIndex:"order_amount_total"},{title:"分账订单",dataIndex:"is_profit",customRender:({record:e})=>a("div",e.is_profit==1?"是":"否")},{title:"支付方式",dataIndex:"pay_channel",customRender:({record:e})=>a("div",e.pay_channel===1?"微信小程序":e.pay_channel===2?"微信扫码":"支付宝扫码")},{title:"支付时间",dataIndex:"pay_time",customRender:({record:e})=>a("div",e.pay_time?g(e.pay_time*1e3):"-")},{title:"订单状态",dataIndex:"order_status",customRender:({record:e})=>{let t="";switch(parseInt(e.order_status)){case 1:t="未支付";break;case 2:t="已支付";break;case 3:t="退款中";break;case 4:t="退款完成";break;default:t="-"}return a("div",t)}}],B={title:"订单列表",titleHelpMessage:"比如:后台管理模块,前台管理模块,命名空间必须与代码模块保持一致!",api:()=>b("combo_order_list"),columns:v,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20,pageSize:20},actionColumn:{width:160,title:"操作",dataIndex:"action",slots:{customRender:"action"}}},S=x({components:{BasicTable:u,TableAction:_,WebsiteDrawer:y},setup(){const[e,{openDrawer:t}]=D(),l=T(!1),[c,{reload:d}]=f(B);function p(r){t(!0,{record:r,isUpdate:!0})}function i(){d()}function n(){t(!0,{isUpdate:!1})}return{loading:l,registerTable:c,registerDrawer:e,handleCreate:n,handleEdit:p,handleSuccess:i,handleDelete:r=>{C.confirm({title:"你确定要删除该站点吗?",icon:o(R),content:o("div",{style:"color:red;"},"注:该站点关联数据将无法恢复!"),okText:"删除",okType:"danger",onOk(){}})}}}}),$={class:"p-4"};function E(e,t,l,c,d,p){const i=s("TableAction"),n=s("BasicTable"),m=s("WebsiteDrawer");return k(),I("div",$,[o(n,{onRegister:e.registerTable},{action:w(({record:r})=>[o(i,{actions:[{label:"详情",icon:"clarity:note-edit-line",color:"success",onClick:e.handleEdit.bind(null,r)}]},null,8,["actions"])]),_:1},8,["onRegister"]),o(m,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}const de=h(S,[["render",E]]);export{de as default};
|