Files
aiot-platform-ui/apps/web-antd/dist/js/data-D8BAq-gr.js
lzh 35c3d0e06e
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-18 16:18:59 +08:00

5 lines
7.0 KiB
JavaScript

var h=Object.defineProperty,b=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=(e,l,r)=>l in e?h(e,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[l]=r,m=(e,l)=>{for(var r in l||(l={}))N.call(l,r)&&c(e,r,l[r]);if(s)for(var r of s(l))g.call(l,r)&&c(e,r,l[r]);return e},u=(e,l)=>b(e,T(l));import{b as y}from"./index-A3AZVneH.js";import{g as P}from"./index-BMEC_UM6.js";import{g as I}from"./index-Bg0xCLe9.js";import{g as D}from"./rangePickerProps-ChXrdImK.js";import{D as t}from"./dict-enum-CaHgMaDZ.js";import{D as o}from"./biz-mall-enum-Bmxc7Ei7.js";import{dH as f,dF as C}from"../jse/index-index-Cy8amzIl.js";import{at as a}from"./bootstrap-CW2RsBQq.js";let d=[];P().then(e=>{d=e});function U(){return[{fieldName:"status",label:"订单状态",component:"Select",componentProps:{options:a(t.TRADE_ORDER_STATUS,"number"),placeholder:"请选择订单状态",allowClear:!0}},{fieldName:"payChannelCode",label:"支付方式",component:"Select",componentProps:{options:a(t.PAY_CHANNEL_CODE,"number"),placeholder:"请选择支付方式",allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:u(m({},D()),{allowClear:!0})},{fieldName:"terminal",label:"订单来源",component:"Select",componentProps:{options:a(t.TERMINAL,"number"),placeholder:"请选择订单来源",allowClear:!0}},{fieldName:"deliveryType",label:"配送方式",component:"Select",componentProps:{options:a(t.TRADE_DELIVERY_TYPE,"number"),placeholder:"请选择配送方式",allowClear:!0}},{fieldName:"logisticsId",label:"快递公司",component:"ApiSelect",componentProps:{api:y,labelField:"name",valueField:"id",placeholder:"请选择快递公司",allowClear:!0},dependencies:{triggerFields:["deliveryType"],show:e=>e.deliveryType===o.EXPRESS.type}},{fieldName:"pickUpStoreId",label:"自提门店",component:"ApiSelect",componentProps:{api:P,labelField:"name",valueField:"id",placeholder:"请选择自提门店",allowClear:!0},dependencies:{triggerFields:["deliveryType"],show:e=>e.deliveryType===o.PICK_UP.type}},{fieldName:"pickUpVerifyCode",label:"核销码",component:"Input",componentProps:{placeholder:"请输入核销码",allowClear:!0},dependencies:{triggerFields:["deliveryType"],show:e=>e.deliveryType===o.PICK_UP.type}},{fieldName:"no",label:"订单号",component:"Input",componentProps:{placeholder:"请输入订单号",allowClear:!0}},{fieldName:"userId",label:"用户 UID",component:"Input",componentProps:{placeholder:"请输入用户 UID",allowClear:!0}},{fieldName:"userNickname",label:"用户昵称",component:"Input",componentProps:{placeholder:"请输入用户昵称",allowClear:!0}},{fieldName:"userMobile",label:"用户电话",component:"Input",componentProps:{placeholder:"请输入用户电话",allowClear:!0}}]}function k(){return[{type:"expand",width:80,slots:{content:"expand_content"},fixed:"left"},{field:"no",title:"订单号",fixed:"left",minWidth:180},{field:"createTime",title:"下单时间",formatter:"formatDateTime",minWidth:160},{field:"terminal",title:"订单来源",cellRender:{name:"CellDict",props:{type:t.TERMINAL}},minWidth:120},{field:"payChannelCode",title:"支付方式",cellRender:{name:"CellDict",props:{type:t.PAY_CHANNEL_CODE}},minWidth:120},{field:"payTime",title:"支付时间",formatter:"formatDateTime",minWidth:160},{field:"type",title:"订单类型",cellRender:{name:"CellDict",props:{type:t.TRADE_ORDER_TYPE}},minWidth:80},{field:"payPrice",title:"实际支付",formatter:"formatAmount2",minWidth:180},{field:"user",title:"买家/收货人",formatter:({row:e})=>{var l,r,n,p;return e.deliveryType===o.EXPRESS.type?`买家:${(l=e.user)==null?void 0:l.nickname} / 收货人: ${e.receiverName} ${e.receiverMobile}${e.receiverAreaName}${e.receiverDetailAddress}`:e.deliveryType===o.PICK_UP.type?`门店名称:${(r=d.find(i=>i.id===e.pickUpStoreId))==null?void 0:r.name} /
门店手机:${(n=d.find(i=>i.id===e.pickUpStoreId))==null?void 0:n.phone} /
自提门店:${(p=d.find(i=>i.id===e.pickUpStoreId))==null?void 0:p.detailAddress}
`:""},minWidth:180},{field:"deliveryType",title:"配送方式",cellRender:{name:"CellDict",props:{type:t.TRADE_DELIVERY_TYPE}},minWidth:80},{field:"status",title:"订单状态",cellRender:{name:"CellDict",props:{type:t.TRADE_ORDER_STATUS}},minWidth:80},{title:"操作",width:180,fixed:"right",slots:{default:"actions"}}]}function W(){return[{component:"Input",fieldName:"id",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"remark",label:"备注",component:"Input",componentProps:{type:"textarea",rows:3}}]}function $(){return[{component:"Input",fieldName:"id",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"payPrice",label:"应付金额(总)",component:"Input",componentProps:{placeholder:"请输入应付金额(总)",disabled:!0,formatter:e=>`${e}`}},{fieldName:"adjustPrice",label:"订单调价",component:"InputNumber",componentProps:{placeholder:"请输入订单调价",step:.1,precision:2},help:"订单调价。 正数,加价;负数,减价",rules:"required"},{fieldName:"newPayPrice",label:"调价后",component:"Input",componentProps:{placeholder:"",formatter:e=>`${e}`},dependencies:{triggerFields:["payPrice","adjustPrice"],disabled:!0,trigger(e,l){const r=f(e.payPrice),n=f(e.adjustPrice),p=r+n;l.setFieldValue("newPayPrice",C(p))}}}]}function L(){return[{component:"Input",fieldName:"id",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"receiverName",label:"收件人",component:"Input",componentProps:{placeholder:"请输入收件人名称"},rules:"required"},{fieldName:"receiverMobile",label:"手机号",component:"Input",componentProps:{placeholder:"请输入收件人手机号"},rules:"required"},{fieldName:"receiverAreaId",label:"所在地",component:"ApiTreeSelect",componentProps:{api:I,labelField:"name",valueField:"id",childrenField:"children",placeholder:"请选择收件人所在地",treeDefaultExpandAll:!0},rules:"required"},{fieldName:"receiverDetailAddress",label:"详细地址",component:"Input",componentProps:{placeholder:"请输入收件人详细地址",type:"textarea",rows:3},rules:"required"}]}function Y(){return[{component:"Input",fieldName:"id",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"expressType",label:"发货方式",component:"RadioGroup",componentProps:{options:[{label:"快递",value:"express"},{label:"无需发货",value:"none"}],buttonStyle:"solid",optionType:"button"},defaultValue:"express"},{fieldName:"logisticsId",label:"物流公司",component:"ApiSelect",componentProps:{api:y,labelField:"name",valueField:"id",placeholder:"请选择物流公司"},dependencies:{triggerFields:["expressType"],show:e=>e.expressType==="express"},rules:"required"},{fieldName:"logisticsNo",label:"物流单号",component:"Input",componentProps:{placeholder:"请输入物流单号"},dependencies:{triggerFields:["expressType"],show:e=>e.expressType==="express"},rules:"required"}]}export{Y as a,$ as b,W as c,k as d,U as e,L as u};