2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
var u=Object.defineProperty,f=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var n=(e,t,l)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,m=(e,t)=>{for(var l in t||(t={}))P.call(t,l)&&n(e,l,t[l]);if(a)for(var l of a(t))b.call(t,l)&&n(e,l,t[l]);return e},d=(e,t)=>f(e,h(t));import{f as c}from"./index-37PAYcD6.js";import{g as p}from"./index-BYXkv45f.js";import{g as r}from"./index-DSVCE9Pk.js";import{g as S}from"./rangePickerProps-BiqeO_Im.js";import{D as o}from"./dict-enum-CaHgMaDZ.js";import{dh as i}from"../jse/index-index-WYMMa-75.js";import{at as N}from"./bootstrap-DO1fwVR8.js";function D(e){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"no",label:"收款单号",component:"Input",componentProps:{placeholder:"系统自动生成",disabled:!0}},{fieldName:"receiptTime",label:"收款时间",component:"DatePicker",componentProps:{disabled:e==="detail",placeholder:"选择收款时间",showTime:!0,format:"YYYY-MM-DD HH:mm:ss",valueFormat:"x"},rules:"required"},{fieldName:"customerId",label:"客户",component:"ApiSelect",componentProps:{disabled:e==="detail",placeholder:"请选择客户",allowClear:!0,showSearch:!0,api:p,labelField:"name",valueField:"id"},rules:"required"},{fieldName:"financeUserId",label:"财务人员",component:"ApiSelect",componentProps:{placeholder:"请选择财务人员",allowClear:!0,showSearch:!0,api:r,labelField:"nickname",valueField:"id"}},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注",autoSize:{minRows:1,maxRows:1},disabled:e==="detail"},formItemClass:"col-span-2"},{fieldName:"fileUrl",label:"附件",component:"FileUpload",componentProps:{maxNumber:1,maxSize:10,accept:["pdf","doc","docx","xls","xlsx","txt","jpg","jpeg","png"],showDescription:e!=="detail",disabled:e==="detail"},formItemClass:"col-span-3"},{fieldName:"items",label:"销售出库、退货单",component:"Input",formItemClass:"col-span-3"},{fieldName:"accountId",label:"收款账户",component:"ApiSelect",componentProps:{placeholder:"请选择收款账户",allowClear:!0,showSearch:!0,api:c,labelField:"name",valueField:"id"}},{fieldName:"totalPrice",label:"合计收款",component:"InputNumber",componentProps:{placeholder:"合计收款",precision:2,formatter:i,disabled:!0}},{fieldName:"discountPrice",label:"优惠金额",component:"InputNumber",componentProps:{disabled:e==="detail",placeholder:"请输入优惠金额",precision:2,formatter:i}},{fieldName:"receiptPrice",label:"实际收款",component:"InputNumber",componentProps:{placeholder:"实际收款",precision:2,formatter:i,disabled:!0},dependencies:{triggerFields:["totalPrice","discountPrice"],componentProps:t=>{const l=t.totalPrice||0,s=t.discountPrice||0;return t.receiptPrice=l-s,{}}}}]}function T(e){return[{type:"seq",title:"序号",minWidth:50,fixed:"left"},{field:"bizNo",title:"销售单据编号",minWidth:200},{field:"totalPrice",title:"应收金额",minWidth:100,formatter:"formatAmount2"},{field:"receiptedPrice",title:"已收金额",minWidth:100,formatter:"formatAmount2"},{field:"receiptPrice",title:"本次收款",minWidth:115,fixed:"right",slots:{default:"receiptPrice"}},{field:"remark",title:"备注",minWidth:150,slots:{default:"remark"}},{title:"操作",width:50,fixed:"right",slots:{default:"actions"},visible:!e}]}function R(){return[{fieldName:"no",label:"收款单号",component:"Input",componentProps:{placeholder:"请输入收款单号",allowClear:!0}},{fieldName:"receiptTime",label:"收款时间",component:"RangePicker",componentProps:d(m({},S()),{allowClear:!0})},{fieldName:"customerId",label:"客户",component:"ApiSelect",componentProps:{placeholder:"请选择客户",allowClear:!0,showSearch:!0,api:p,labelField:"name",valueField:"id"}},{fieldName:"creator",label:"创建人",component:"ApiSelect",componentProps:{placeholder:"请选择创建人",allowClear:!0,showSearch:!0,api:r,labelField:"nickname",valueField:"id"}},{fieldName:"financeUserId",label:"财务人员",component:"ApiSelect",componentProps:{placeholder:"请选择财务人员",allowClear:!0,showSearch:!0,api:r,labelField:"nickname",valueField:"id"}},{fieldName:"accountId",label:"收款账户",component:"ApiSelect",componentProps:{placeholder:"请选择收款账户",allowClear:!0,showSearch:!0,api:c,labelField:"name",valueField:"id"}},{fieldName:"status",label:"状态",component:"Select",componentProps:{options:N(o.ERP_AUDIT_STATUS,"number"),placeholder:"请选择状态",allowClear:!0}},{fieldName:"remark",label:"备注",component:"Input",componentProps:{placeholder:"请输入备注",allowClear:!0}},{fieldName:"bizNo",label:"销售单号",component:"Input",componentProps:{placeholder:"请输入销售单号",allowClear:!0}}]}function U(){return[{type:"checkbox",width:50,fixed:"left"},{field:"no",title:"收款单号",width:180,fixed:"left"},{field:"customerName",title:"客户",minWidth:120},{field:"receiptTime",title:"收款时间",width:160,formatter:"formatDate"},{field:"creatorName",title:"创建人",minWidth:120},{field:"financeUserName",title:"财务人员",minWidth:120},{field:"accountName",title:"收款账户",minWidth:120},{field:"totalPrice",title:"合计收款",formatter:"formatAmount2",minWidth:120},{field:"discountPrice",title:"优惠金额",formatter:"formatAmount2",minWidth:120},{field:"receiptPrice",title:"实际收款",formatter:"formatAmount2",minWidth:120},{field:"status",title:"状态",minWidth:90,cellRender:{name:"CellDict",props:{type:o.ERP_AUDIT_STATUS}}},{title:"操作",width:260,fixed:"right",slots:{default:"actions"}}]}function k(){return[{fieldName:"no",label:"出库单号",component:"Input",componentProps:{placeholder:"请输入出库单号",allowClear:!0}},{fieldName:"customerId",label:"客户",component:"Input",componentProps:{disabled:!0,placeholder:"已自动选择客户"}},{fieldName:"receiptStatus",label:"收款状态",component:"Select",componentProps:{options:[{label:"未收款",value:0},{label:"部分收款",value:1},{label:"全部收款",value:2}],placeholder:"请选择收款状态",allowClear:!0}}]}function v(){return[{type:"checkbox",width:50,fixed:"left"},{field:"no",title:"出库单号",width:200,fixed:"left"},{field:"customerName",title:"客户",minWidth:120},{field:"outTime",title:"出库时间",width:160,formatter:"formatDate"},{field:"totalPrice",title:"应收金额",formatter:"formatAmount2",minWidth:120},{field:"receiptPrice",title:"已收金额",formatter:"formatAmount2",minWidth:120},{field:"unReceiptPrice",title:"未收金额",formatter:({row:e})=>i(e.totalPrice-e.receiptPrice||0),minWidth:120},{field:"status",title:"状态",minWidth:100,cellRender:{name:"CellDict",props:{type:o.ERP_AUDIT_STATUS}}}]}function _(){return[{fieldName:"no",label:"退货单号",component:"Input",componentProps:{placeholder:"请输入退货单号",allowClear:!0}},{fieldName:"customerId",label:"客户",component:"Input",componentProps:{disabled:!0,placeholder:"已自动选择客户"}},{fieldName:"refundStatus",label:"退款状态",component:"Select",componentProps:{options:[{label:"未退款",value:0},{label:"部分退款",value:1},{label:"全部退款",value:2}],placeholder:"请选择退款状态",allowClear:!0}}]}function G(){return[{type:"checkbox",width:50,fixed:"left"},{field:"no",title:"退货单号",width:200,fixed:"left"},{field:"customerName",title:"客户",minWidth:120},{field:"returnTime",title:"退货时间",width:160,formatter:"formatDate"},{field:"totalPrice",title:"应退金额",formatter:"formatAmount2",minWidth:120},{field:"refundPrice",title:"已退金额",formatter:"formatAmount2",minWidth:120},{field:"unRefundPrice",title:"未退金额",formatter:({row:e})=>i(e.totalPrice-e.refundPrice||0),minWidth:120},{field:"status",title:"状态",minWidth:100,cellRender:{name:"CellDict",props:{type:o.ERP_AUDIT_STATUS}}}]}export{R as a,D as b,T as c,v as d,k as e,G as f,_ as g,U as u};
|