1 |
- import{B as D}from"./TableImg.36d2dab8.js";import"./index.bc2ce3a3.js";import{u as B}from"./useTable.2af3fa71.js";import{n as g}from"./index.819b754a.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.f9240906.js";import{A as c}from"./index.e6f3c6c4.js";import{T as y}from"./index.fe79a0f6.js";import{u as C}from"./index.51ec6257.js";import R from"./WebsiteDrawer.9646af8e.js";import{D as b}from"./index.db62f8f7.js";import"./index.7133fb8f.js";import"./Checkbox.d036b137.js";import"./index.c77d3359.js";import"./index.58e9abd1.js";import"./eagerComputed.938959e2.js";import"./FileOutlined.3b0f12f3.js";import"./BasicForm.77d882bb.js";/* empty css *//* empty css */import"./index.14dde92d.js";import"./index.6ebf08b3.js";import"./get.10de1502.js";import"./DeleteOutlined.a5ce7fb8.js";import"./transButton.bc515676.js";import"./index.12dee4f1.js";import"./index.48100a2d.js";import"./Col.46372180.js";import"./useFlexGapSupport.3936e9ba.js";import"./index.4c8ee6bd.js";import"./Form.01cea6c8.js";import"./_baseIteratee.dc5455db.js";import"./useSize.3965ca89.js";import"./uniqBy.8dd4637c.js";import"./index.5dfb37d9.js";import"./useWindowSizeFn.e05ba499.js";import"./FullscreenOutlined.16e551d7.js";import"./useForm.241a9971.js";import"./index.ab16c1d0.js";import"./index.963f7d97.js";import"./useContentViewHeight.51fb01ea.js";import"./ArrowLeftOutlined.8ef55b3d.js";import"./index.ae5f4215.js";import"./FormOutlined.317a5749.js";import"./index.837faab1.js";import"./index.beaefc64.js";import"./useRefs.704645bf.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.74a164b2.js";import"./index.e73b9811.js";import"./fromPairs.84aabb58.js";import"./scrollTo.dad4e7d2.js";import"./index.41b7c2b6.js";import"./Group.1f288892.js";import"./index.4910aef7.js";import"./index.e280a527.js";import"./download.f0b284ec.js";import"./base64Conver.08b9f4ec.js";import"./index.5459a547.js";import"./index.b2bbcc56.js";import"./index.55d1c7b9.js";import"./index.bc1d0b0a.js";import"./PlusOutlined.d3b73e32.js";import"./TabPane.9a67e6d2.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};
|