data-55df4b57.js 3.79 KB
var s=(e,r,t)=>new Promise((d,o)=>{var i=n=>{try{c(t.next(n))}catch(a){o(a)}},f=n=>{try{c(t.throw(n))}catch(a){o(a)}},c=n=>n.done?d(n.value):Promise.resolve(n.value).then(i,f);c((t=t.apply(e,r)).next())});import{k as m}from"./vue-5a35c3f5.js";import{u as x,q as p}from"./order-eff5d778.js";import{u as P}from"./order-007d1b19.js";import"./index.js";import"./antd-6b087f69.js";import"./message-c4c6f446.js";const u=m([]),l=m([]),h=x(),{customerCode:R,productionDepartment:w}=P(h),O=[{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:l,showSearch:!0,mode:"multiple",onSearch:e=>s(void 0,null,function*(){l.value=yield p("projectNo",e)})}},{field:"productionDepartment",label:"生产科",component:"Select",colProps:{span:8},componentProps:{mode:"multiple",options:w,showSearch:!0}},{field:"innerNo",label:"内部编号",component:"Select",colProps:{span:8},componentProps:{options:u,showSearch:!0,mode:"multiple",onSearch:e=>s(void 0,null,function*(){u.value=yield p("innerNo",e)})}}],g=[{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:"生产科单价¥",width:150,dataIndex:"productionDepartmentPrice",customRender:e=>{var r,t;return(t=(r=e.record)==null?void 0:r.productionDepartmentPrice)==null?void 0:t.toFixed(2)}},{title:"生产科总价¥",width:150,dataIndex:"productionDepartmentTotalPrice",customRender:e=>{var r,t;return(t=(r=e.record)==null?void 0:r.productionDepartmentTotalPrice)==null?void 0:t.toFixed(2)}},{title:"生产科预算金额¥",width:150,dataIndex:"productionDepartmentPredictPrice",customRender:e=>{var r,t;return(t=(r=e.record)==null?void 0:r.productionDepartmentPredictPrice)==null?void 0:t.toFixed(2)}},{title:"实际发生费用",dataIndex:"productionActualPrice",width:120,customRender:e=>{var r,t;return(t=(r=e.record)==null?void 0:r.productionActualPrice)==null?void 0:t.toFixed(2)}},{title:"预算占比",dataIndex:"predictRatio",width:120,customRender:e=>{var r,t,d,o,i;return(r=e.record)!=null&&r.predictRatio?((d=(t=e.record)==null?void 0:t.predictRatio)==null?void 0:d.toFixed(2))+"%":(i=(o=e.record)==null?void 0:o.predictRatio)==null?void 0:i.toFixed(2)}},{title:"预算占比差",dataIndex:"predictAndActualRatio",width:120,customRender:e=>{var r,t,d,o,i;return(r=e.record)!=null&&r.predictAndActualRatio?((d=(t=e.record)==null?void 0:t.predictAndActualRatio)==null?void 0:d.toFixed(2))+"%":(i=(o=e.record)==null?void 0:o.predictAndActualRatio)==null?void 0:i.toFixed(2)}},{title:"事前毛利润",dataIndex:"beforeGrossProfit",width:120,customRender:e=>{var r,t;return(t=(r=e.record)==null?void 0:r.beforeGrossProfit)==null?void 0:t.toFixed(2)}},{title:"事前毛利率",dataIndex:"beforeGrossProfitRate",width:120,customRender:e=>{var r,t,d,o,i;return(r=e.record)!=null&&r.beforeGrossProfitRate?((d=(t=e.record)==null?void 0:t.beforeGrossProfitRate)==null?void 0:d.toFixed(2))+"%":(i=(o=e.record)==null?void 0:o.beforeGrossProfitRate)==null?void 0:i.toFixed(2)}},{title:"事后毛利润",dataIndex:"grossProfit",width:120,customRender:e=>{var r,t;return(t=(r=e.record)==null?void 0:r.grossProfit)==null?void 0:t.toFixed(2)}},{title:"事后毛利率",dataIndex:"grossProfitRate",width:120,customRender:e=>{var r,t,d,o,i;return(r=e.record)!=null&&r.grossProfitRate?((d=(t=e.record)==null?void 0:t.grossProfitRate)==null?void 0:d.toFixed(2))+"%":(i=(o=e.record)==null?void 0:o.grossProfitRate)==null?void 0:i.toFixed(2)}}];export{g as COLUMNS,O as searchFormSchema};