`:""},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};