1 |
- import{B as D}from"./TableImg.8fe3d61a.js";import"./index.a7ed205f.js";import{u as B}from"./useTable.37d2a279.js";import{n as g}from"./index.75694236.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.723c022d.js";import{A as c}from"./index.55dec4bb.js";import{T as y}from"./index.8f225c1e.js";import{u as C}from"./index.58539c53.js";import R from"./WebsiteDrawer.9eeecc9e.js";import{D as b}from"./index.9a19a3f7.js";import"./index.672cb799.js";import"./Checkbox.c04f7b55.js";import"./index.fbbd1f1f.js";import"./index.11082491.js";import"./eagerComputed.c778769d.js";import"./FileOutlined.de22406c.js";import"./BasicForm.e6661e7b.js";/* empty css *//* empty css */import"./index.8663089e.js";import"./index.3fb6ac38.js";import"./get.86e6b49d.js";import"./DeleteOutlined.6291cf54.js";import"./transButton.10f02921.js";import"./index.ed278b64.js";import"./index.c12b00dd.js";import"./Col.58b8a958.js";import"./useFlexGapSupport.4d92c09c.js";import"./index.e3c0dcb4.js";import"./Form.9dcaf6f8.js";import"./_baseIteratee.826d6655.js";import"./useSize.a1b385c4.js";import"./uniqBy.4b69f709.js";import"./index.1ca4cef4.js";import"./useWindowSizeFn.79f59aef.js";import"./FullscreenOutlined.3316925c.js";import"./useForm.07244cd7.js";import"./index.6bc64354.js";import"./index.d5e83f0f.js";import"./useContentViewHeight.eea93209.js";import"./ArrowLeftOutlined.09823751.js";import"./index.bab0934d.js";import"./FormOutlined.3bac65b1.js";import"./index.9141ffb0.js";import"./index.09b55302.js";import"./useRefs.c430f5ca.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.2d33fcab.js";import"./index.f60fc8fa.js";import"./fromPairs.84aabb58.js";import"./scrollTo.6ea53bed.js";import"./index.9e723d47.js";import"./Group.436b142a.js";import"./index.274a2934.js";import"./index.94ab951f.js";import"./download.6473a23c.js";import"./base64Conver.08b9f4ec.js";import"./index.3fb26d03.js";import"./index.b0f4ea79.js";import"./index.e672b793.js";import"./index.a18a959d.js";import"./PlusOutlined.5cf0e253.js";import"./TabPane.2a5382b2.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};
|