data-b55df283.js 3.06 KB
var p=(o,t,e)=>new Promise((a,c)=>{var i=r=>{try{d(e.next(r))}catch(n){c(n)}},P=r=>{try{d(e.throw(r))}catch(n){c(n)}},d=r=>r.done?a(r.value):Promise.resolve(r.value).then(i,P);d((e=e.apply(o,t)).next())});import{k as u}from"./vue-5a35c3f5.js";import{u as h,q as l}from"./order-eff5d778.js";import{u as x}from"./order-007d1b19.js";import"./index.js";import"./antd-6b087f69.js";import"./message-c4c6f446.js";const s=u([]),m=u([]),w=h(),{customerCode:R,productionDepartment:k}=x(w),A=[{field:"customerCode",label:"客户编码",component:"Select",colProps:{span:8},componentProps:{options:R,showSearch:!0,mode:"multiple"}},{field:"projectNo",label:"项目号",component:"Select",colProps:{span:8},componentProps:{options:m,showSearch:!0,mode:"multiple",onSearch:o=>p(void 0,null,function*(){m.value=yield l("projectNo",o)})}},{field:"productionDepartment",label:"生产科",component:"Select",colProps:{span:8},componentProps:{mode:"multiple",options:k,showSearch:!0}},{field:"innerNo",label:"内部编号",component:"Select",colProps:{span:8},componentProps:{options:s,showSearch:!0,mode:"multiple",onSearch:o=>p(void 0,null,function*(){s.value=yield l("innerNo",o)})}}],T=[{title:"客户编码",dataIndex:"customerCode",width:150},{title:"项目号",dataIndex:"projectNo",width:100},{title:"生产科",dataIndex:"productionDepartment",width:100},{title:"内部编号",dataIndex:"innerNo",width:100},{title:"订单图片",dataIndex:"picUrl",width:100},{title:"数量",dataIndex:"orderCount",width:100},{title:"包装费用$",dataIndex:"packetPrice",width:120,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetPrice)==null?void 0:e.toFixed(2)}},{title:"包装费用合计$",dataIndex:"packetTotalPrice",width:120,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetTotalPrice)==null?void 0:e.toFixed(2)}},{title:"包装费用合计¥",dataIndex:"packetRmbTotalPrice",width:120,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetRmbTotalPrice)==null?void 0:e.toFixed(2)}},{title:"包装费用实际金额¥",dataIndex:"packetActualRmbTotalPrice",width:150,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetActualRmbTotalPrice)==null?void 0:e.toFixed(2)}},{title:"实际跟单单价¥",dataIndex:"packetActualRmbPrice",width:120,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetActualRmbPrice)==null?void 0:e.toFixed(2)}},{title:"实际跟单单价折算美金$",dataIndex:"packetActualPrice",width:170,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetActualPrice)==null?void 0:e.toFixed(2)}},{title:"包装费用收益¥",dataIndex:"packetProfitRmbPrice",width:120,customRender:o=>{var t,e;return(e=(t=o.record)==null?void 0:t.packetProfitRmbPrice)==null?void 0:e.toFixed(2)}},{title:"包装费用净利润率",dataIndex:"packetProfitRate",width:140,customRender:o=>{var t,e,a,c,i;return(t=o.record)!=null&&t.packetProfitRate?((a=(e=o.record)==null?void 0:e.packetProfitRate)==null?void 0:a.toFixed(2))+"%":(i=(c=o.record)==null?void 0:c.packetProfitRate)==null?void 0:i.toFixed(2)}}];export{T as COLUMNS,A as searchFormSchema};