index.1c101592.js 4.9 KB

1
  1. import{B as D}from"./TableImg.6b99eb73.js";import"./index.c3e0a369.js";import{u as B}from"./useTable.3fccb17f.js";import{n as g}from"./index.f0f1dac4.js";import{bR as u,eI as A,a as k,s as h,o as m,h as n,n as o,y as a,i,B as l,z as d,F as v,k as x}from"./index.3f97cc33.js";import{A as c}from"./index.e9945251.js";import{T as y}from"./index.309e8a99.js";import{u as C}from"./index.57748f4c.js";import R from"./WebsiteDrawer.8499362f.js";import{D as b}from"./index.222f0459.js";import"./index.9f019cdd.js";import"./Checkbox.d22129d5.js";import"./index.cde36067.js";import"./index.bfa19e2c.js";import"./eagerComputed.ab644b1a.js";import"./FileOutlined.eac4c93b.js";import"./BasicForm.2ae13259.js";/* empty css *//* empty css */import"./index.6757786b.js";import"./index.ade181eb.js";import"./get.7e5a4802.js";import"./DeleteOutlined.9e5fb76b.js";import"./transButton.54be5ef0.js";import"./index.a54fbaf1.js";import"./index.872d0787.js";import"./Col.a5c4aef2.js";import"./useFlexGapSupport.a62ab4b7.js";import"./index.137cd5fa.js";import"./Form.e8d8d176.js";import"./_baseIteratee.74621dd5.js";import"./useSize.029b57c4.js";import"./uniqBy.66af1ece.js";import"./index.48fd6577.js";import"./useWindowSizeFn.63c1b6a0.js";import"./FullscreenOutlined.79df86c0.js";import"./useForm.8deaf95d.js";import"./index.e8c88e99.js";import"./index.0abd0285.js";import"./useContentViewHeight.1983ed20.js";import"./ArrowLeftOutlined.5c21fff9.js";import"./index.2b936b77.js";import"./FormOutlined.abb32020.js";import"./index.6ecec018.js";import"./index.b35c80c0.js";import"./useRefs.428779fe.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.fe1eaec0.js";import"./index.4e54ae7e.js";import"./fromPairs.84aabb58.js";import"./scrollTo.073f007f.js";import"./index.5b650468.js";import"./Group.ae7e47e2.js";import"./index.4ffbbda4.js";import"./index.f3e20199.js";import"./download.ab58da56.js";import"./base64Conver.08b9f4ec.js";import"./index.fb0ad110.js";import"./index.3d1cac26.js";import"./index.f74085c4.js";import"./index.8c14bde9.js";import"./PlusOutlined.f1f3bd13.js";import"./TabPane.2340d2dc.js";const I=[{title:"\u8BA2\u5355\u53F7",dataIndex:"order_no",width:180},{title:"\u4EA7\u54C1",dataIndex:"product_id",customRender:({record:t})=>{let e;return t.relate_0?e=u("span",[u(c,{src:t.relate_0.avatar,style:{marginRight:"5px"}}),u("span",t.relate_0.username)]):e=u("div","-"),t.relate_1?u("span",[e,u(c,{src:t.relate_1.logo,style:{marginRight:"5px"}}),u("span",t.relate_1.title)]):u("div","-")}},{title:"sku",dataIndex:"product_sku",customRender:({record:t})=>{let e="";return t.product_sku==1?e="\u6708\u4F1A\u5458":t.product_sku==2?e="\u534A\u5E74":t.product_sku==3?e="\u4E00\u5E74":t.product_sku==4?e="\u6C38\u4E45":t.product_sku==5?e="\u5378\u8F7D\u4F18\u60E0":e="-",u("div",e)}},{title:"\u8BA2\u5355\u91D1\u989D",dataIndex:"order_amount_total",customRender:({record:t})=>u("div",[u("div","\u5B9E\u4ED8: "+t.pay_amount_total),u("div","\u4F18\u60E0\uFF1A "+t.preferential_price),u("div","\u603B\u91D1\u989D\uFF1A "+t.order_amount_total)])},{title:"\u5206\u8D26\u8BA2\u5355",dataIndex:"is_profit",customRender:({record:t})=>u("div",t.is_profit==1?"\u662F":"\u5426")},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"pay_channel",customRender:({record:t})=>{let e="";return t.pay_channel===1?e="\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F":t.pay_channel===2?e="\u5FAE\u4FE1\u652F\u4ED8":e="-",u("div",e)}},{title:"\u652F\u4ED8\u65F6\u95F4",dataIndex:"pay_time",customRender:({record:t})=>u("div",t.pay_time?A(t.pay_time*1e3):"-")},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_status",customRender:({record:t})=>{let e="",r="";switch(parseInt(t.order_status)){case 1:e="\u672A\u652F\u4ED8",r="green";break;case 2:e="\u5DF2\u652F\u4ED8",r="blue";break;case 3:e="\u9000\u6B3E\u4E2D",r="red";break;case 4:e="\u9000\u6B3E\u5B8C\u6210",r="red";break;default:e="-"}return u(y,{color:r},e)}}],T={title:"\u8BA2\u5355\u5217\u8868",titleHelpMessage:"\u6BD4\u5982:\u540E\u53F0\u7BA1\u7406\u6A21\u5757,\u524D\u53F0\u7BA1\u7406\u6A21\u5757\uFF0C\u547D\u540D\u7A7A\u95F4\u5FC5\u987B\u4E0E\u4EE3\u7801\u6A21\u5757\u4FDD\u6301\u4E00\u81F4\uFF01",api:t=>g("product_order_list",t),columns:I,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20,pageSize:20},actionColumn:{width:180,title:"\u64CD\u4F5C",dataIndex:"action",slots:{customRender:"action"}}},w={class:"p-4"},$t=k({__name:"index",setup(t){const[e,{openDrawer:r}]=C();h(!1);const[_,{reload:F}]=B(T);function f(s){r(!0,{record:s,isUpdate:!0})}function E(){F()}return(s,S)=>(m(),n("div",w,[o(i(D),{onRegister:i(_)},{action:a(({record:p})=>[o(i(l),{type:"primary",onClick:z=>f(p)},{default:a(()=>[d("\u8BE6\u60C5")]),_:2},1032,["onClick"]),p.order_status==2?(m(),n(v,{key:0},[o(i(b),{type:"vertical"}),o(i(l),{type:"primary",danger:""},{default:a(()=>[d("\u9000\u6B3E")]),_:1})],64)):x("",!0)]),_:1},8,["onRegister"]),o(R,{onRegister:i(e),onSuccess:E},null,8,["onRegister"])]))}});export{$t as default};