finance.data-210b222d.js 8.42 KB
var u=(t,e,n)=>new Promise((i,c)=>{var x=o=>{try{a(n.next(o))}catch(l){c(l)}},P=o=>{try{a(n.throw(o))}catch(l){c(l)}},a=o=>o.done?i(o.value):Promise.resolve(o.value).then(x,P);a((n=n.apply(t,e)).next())});import{k as f,f as r}from"./vue-5a35c3f5.js";import{v}from"./pdfShow-13fe577e.js";import{u as k,q as s}from"./order-eff5d778.js";import{u as I}from"./order-007d1b19.js";import{bb as d}from"./antd-6b087f69.js";import"./index.js";import"./message-c4c6f446.js";const p=f([]),m=f([]),w=k(),{customerCode:D,productionDepartment:A}=I(w),C=[{field:"invoiceNo",label:"invoice单号",component:"Input",colProps:{span:8}},{field:"checkNo",label:"checkNo单号",component:"Input",colProps:{span:8}},{field:"invoiceStatus",label:"invoice状态",component:"Select",colProps:{span:8},componentProps:{options:[{label:"未创建",value:-1},{label:"未收款",value:0},{label:"已收款",value:10}]}},{field:"checkNoStatus",label:"checkNo状态",component:"Select",colProps:{span:8},componentProps:{options:[{label:"未创建",value:-1},{label:"未付款",value:0},{label:"已付款",value:10}]}},{field:"customerCode",label:"客户编码",component:"Select",colProps:{span:8},componentProps:{options:D,showSearch:!0,mode:"multiple"}},{field:"projectNo",label:"项目号",component:"Select",colProps:{span:8},componentProps:{options:m,showSearch:!0,mode:"multiple",onSearch:t=>u(void 0,null,function*(){m.value=yield s("projectNo",t)})}},{field:"productionDepartment",label:"生产科",component:"Select",colProps:{span:8},componentProps:{mode:"multiple",options:A,showSearch:!0}},{field:"innerNo",label:"内部编号",component:"Select",colProps:{span:8},componentProps:{options:p,showSearch:!0,mode:"multiple",onSearch:t=>u(void 0,null,function*(){p.value=yield s("innerNo",t)})}},{field:"invoiceStartTime",label:"invoice创建时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"invoiceEndTime",label:"invoice结束时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"checkStartTime",label:"checkNo创建时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"checkEndTime",label:"checkNo结束时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"createStartTime",label:"订单创建时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"createEndTime",label:"订单结束时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"productionDepartmentConsignStartTime",label:"生产科拖货开始时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"productionDepartmentConsignEndTime",label:"生产科拖货结束时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"orderHodStartTime",label:"HOD开始时间",component:"DatePicker",colProps:{span:8},labelWidth:150},{field:"orderHodEndTime",label:"HOD结束时间",component:"DatePicker",colProps:{span:8},labelWidth:150}],O=[{title:"客户编码",dataIndex:"customerCode",width:100,fixed:"left"},{title:"项目号",dataIndex:"projectNo",width:100,fixed:"left"},{title:"生产科",dataIndex:"productionDepartment",width:70,fixed:"left"},{title:"内部编码",dataIndex:"innerNo",width:100,fixed:"left"},{title:"订单图片",width:80,dataIndex:"picUrl",fixed:"left"},{title:"数量",width:70,dataIndex:"orderCount",fixed:"left"},{title:"Model(REFERENCE)",width:140,dataIndex:"modeleLo",fixed:"left"},{title:"生产科拖货时间",width:150,dataIndex:"productionDepartmentConsignTime",customRender:t=>{var e;return h((e=t.record)==null?void 0:e.productionDepartmentConsignTime)}},{title:"订单上HOD时间",width:150,dataIndex:"orderHodTime",customRender:t=>{var e;return h((e=t.record)==null?void 0:e.orderHodTime)}},{title:"客户单价$",width:150,dataIndex:"customerPrice",customRender:t=>{var e;return(e=t.record.customerPrice)==null?void 0:e.toFixed(2)}},{title:"客户总价$",width:150,dataIndex:"customerTotalPrice",customRender:t=>{var e;return(e=t.record.customerTotalPrice)==null?void 0:e.toFixed(2)}},{title:"Invoice编号",dataIndex:"invoiceNo",width:180,customRender:t=>{var e;return r("span",{style:"color: red;"},[(e=t.record)==null?void 0:e.invoiceNo])}},{title:"报关单",dataIndex:"invoiceBgUrl",width:80,customRender:t=>{const e=t.record.invoiceBgUrl;if(e!=null)return r(d,{style:"font-size:25px",onClick:()=>v(e)},null)}},{title:"必须回款日期",dataIndex:"invoiceBackRefundDate",width:120},{title:"发生扣款金额$",dataIndex:"invoiceDeductAmount",width:120,customRender:t=>{var e;return(e=t.record.invoiceDeductAmount)==null?void 0:e.toFixed(2)}},{title:"上传扣款单",dataIndex:"invoiceDeductUrl",width:80,customRender:t=>{if(t.record.invoiceDeductUrl!=null)return r(d,{style:"font-size:25px"},null)}},{title:"实际应收金额$",dataIndex:"invoiceActualReceivableAmount",width:120,customRender:t=>{var e;return(e=t.record.invoiceActualReceivableAmount)==null?void 0:e.toFixed(2)}},{title:"实际收款金额1$",dataIndex:"invoiceActualPayedAmount1",width:120,customRender:t=>{var e;return(e=t.record.invoiceActualPayedAmount1)==null?void 0:e.toFixed(2)}},{title:"实际收款金额2$",dataIndex:"invoiceActualPayedAmount2",width:120,customRender:t=>{var e;return(e=t.record.invoiceActualPayedAmount2)==null?void 0:e.toFixed(2)}},{title:"实际收款金额3$",dataIndex:"invoiceActualPayedAmount3",width:120,customRender:t=>{var e;return(e=t.record.invoiceActualPayedAmount3)==null?void 0:e.toFixed(2)}},{title:"其他费用$",dataIndex:"invoiceOtherAmount",width:120,customRender:t=>{var e;return(e=t.record.invoiceOtherAmount)==null?void 0:e.toFixed(2)}},{title:"invoice备注",dataIndex:"invoiceNotes",width:200},{title:"INVOICE状态",dataIndex:"invoiceStatus",width:120,customRender:t=>{if(t.record.invoiceStatus==null||t.record.invoiceStatus==null)return"未创建";if(t.record.invoiceStatus==0)return"未收款";if(t.record.invoiceStatus==10)return"已收款"}},{title:"Action",key:"action",width:280},{title:"生产科单价¥",dataIndex:"productionDepartmentPrice",width:120,customRender:t=>{var e;return(e=t.record.productionDepartmentPrice)==null?void 0:e.toFixed(2)}},{title:"生产科总价¥",dataIndex:"productionDepartmentTotalPrice",width:120,customRender:t=>{var e;return(e=t.record.productionDepartmentTotalPrice)==null?void 0:e.toFixed(2)}},{title:"CheckNo编号",dataIndex:"checkNo",width:120,customRender:t=>{var e;return r("span",{style:"color: red;"},[(e=t.record)==null?void 0:e.checkNo])}},{title:"生产科应付款日期",dataIndex:"checkPayedDate",width:140},{title:"生产科扣款金额¥",dataIndex:"checkDeductAmount",width:160,customRender:t=>{var e;return(e=t.record.checkDeductAmount)==null?void 0:e.toFixed(2)}},{title:"扣款责任部门",dataIndex:"checkDeductDept",width:120},{title:"上传扣款单",dataIndex:"checkDeductUrl",width:120,customRender:t=>{if(t.record.checkDeductUrl!=null)return r(d,{style:"font-size:25px"},null)}},{title:"生产科实际应付金额¥",dataIndex:"checkActualPayedAmount",width:180,customRender:t=>{var e;return(e=t.record.checkActualPayedAmount)==null?void 0:e.toFixed(2)}},{title:"生产科发票上传",dataIndex:"checkInvoiceUrl",width:80,customRender:t=>{if(t.record.checkInvoiceUrl!=null)return r(d,{style:"font-size:25px"},null)}},{title:"实际付款金额1¥",dataIndex:"checkActualPayedAmount1",width:160,customRender:t=>{var e;return(e=t.record.checkActualPayedAmount1)==null?void 0:e.toFixed(2)}},{title:"实际付款金额2¥",dataIndex:"checkActualPayedAmount2",width:160,customRender:t=>{var e;return(e=t.record.checkActualPayedAmount2)==null?void 0:e.toFixed(2)}},{title:"实际付款金额3¥",dataIndex:"checkActualPayedAmount3",width:160,customRender:t=>{var e;return(e=t.record.checkActualPayedAmount3)==null?void 0:e.toFixed(2)}},{title:"生产科发票审核",dataIndex:"checkDepartmentInvoiceStatus",width:120,customRender:t=>{if(t.record.checkDepartmentInvoiceStatus==0)return"待审核";if(t.record.checkDepartmentInvoiceStatus==10)return"审核通过";if(t.record.checkDepartmentInvoiceStatus==20)return"审核驳回"}},{title:"生产科对账单号备注",dataIndex:"checkNotes",width:200},{title:"CHECKNO状态",dataIndex:"checkPayStatus",width:120,customRender:t=>{if(t.record.checkPayStatus==null||t.record.checkPayStatus==null)return"未创建";if(t.record.checkPayStatus==0)return"未付款";if(t.record.checkPayStatus==10)return"已付款"}},{title:"Action",key:"action2",width:280}];function h(t){const e=new Date(t),n=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),c=String(e.getDate()).padStart(2,"0");return`${n}-${i}-${c}`}export{O as columns,C as searchFormSchema};