index-B-34e5hn.js 3.2 KB

1
  1. import{b as v}from"./index-CKIhG1T4.js";import{f as d}from"./formatTime-GfXNJyvM.js";import{P as b}from"./index-Dq0w4Gsp.js";import f from"./SmartTable-riOq9hm6.js";import{C as D,a as r,b as y,$ as p,D as N,T as P,u as a,c as u,Z as C}from"./spreadSheetsDesignerVue-MRUT1X_l.js";import"./spreadSheetsDesignerResourcesCn-afJmEehS.js";import"./spreadSheetsDesigner-vOnK2KEP.js";import"./spreadSheetsBarcode-0B8Cksr7.js";import"./spreadSheetsCharts-DpwtlVVO.js";import"./spreadExcelio-BZ-mA4Op.js";import"./el-tree-select-Jn0wedJD.js";import"./el-collapse-transition-l0sNRNKZ.js";import"./lodash-D2MZWk6W.js";import"./index-yM08Ttvf.js";import"./index-Dszus0mF.js";const S=D({name:"TurnoverRegister",__name:"index",setup(U){const n=r(1),s=r(10),c=r(0),m=y([{label:"",prop:"",width:80,type:"selection"},{prop:"acceptNo",label:"\u53D7\u7406\u53F7",width:150,search:{type:"input"}},{prop:"unitCode",label:"\u63D0\u4EA4\u5355\u4F4D\u4EE3\u7801",width:150,search:{type:"input"}},{prop:"unitName",label:"\u63D0\u4EA4\u5355\u4F4D\u540D\u79F0",width:180,search:{type:"input"}},{prop:"unitContact",label:"\u63D0\u4EA4\u5355\u4F4D\u8054\u7CFB\u4EBA",width:150,search:{type:"input"}},{prop:"contactMobile",label:"\u63D0\u4EA4\u5355\u4F4D\u8054\u7CFB\u7535\u8BDD",width:150,search:{type:"input"}},{prop:"submitName",label:"\u8D44\u6599\u63D0\u4EA4\u4EBA",width:120,search:{type:"input"}},{prop:"submitDate",label:"\u8D44\u6599\u63D0\u4EA4\u65E5\u671F",width:180,render:(t,e)=>p("div",null,[d(e)]),search:{type:"daterange"}},{prop:"receptionName",label:"\u524D\u53F0\u63A5\u6536\u4EBA",width:120},{prop:"receptionTime",label:"\u524D\u53F0\u63A5\u6536\u65E5\u671F",width:180,render:(t,e)=>p("div",null,[d(e)])},{prop:"receptionDeptId",label:"\u63A5\u6536\u90E8\u95E8",width:180,render:(t,e)=>p("div",null,[t.receptionDeptName])},{prop:"receptionDeptUserId",label:"\u90E8\u95E8\u63A5\u6536\u4EBA",width:140,render:(t,e)=>p("div",null,[t.receptionDeptUserName])},{prop:"receptionDeptTime",label:"\u90E8\u95E8\u63A5\u6536\u65F6\u95F4",width:180,render:(t,e)=>p("div",null,[d(e)])},{prop:"customerName",label:"\u5BA2\u6237\u9886\u53D6\u4EBA",width:120},{prop:"collectionMobile",label:"\u8054\u7CFB\u7535\u8BDD",width:150},{prop:"collectionDate",label:"\u9886\u53D6\u65E5\u671F",width:180,fieldProps:{fixed:"right"},render:(t,e)=>p("div",null,[d(e)])}]),h=r([]),l=r({}),g=r([{label:"\u5BFC\u51FA",render:()=>p(v,{type:"primary",onClick:w},{default:()=>[C(" \u5BFC\u51FA")]})}]),w=()=>{b.exportProfileRegister({...l.value})},i=async()=>{const t={pageNo:n.value,pageSize:s.value,orderBy:"collectionDate",status:900,...l.value},e=await b.getProfileRegisterPage(t);e&&(h.value=e.list,c.value=e.total)};return i(),(t,e)=>(N(),P(a(f),{columns:a(m),"onUpdate:columns":e[0]||(e[0]=o=>u(m)?m.value=o:null),data:a(h),buttons:a(g),formData:a(l),"onUpdate:formData":e[1]||(e[1]=o=>u(l)?l.value=o:null),onOnPageNoChange:e[2]||(e[2]=()=>i()),onOnPageSizeChange:e[3]||(e[3]=()=>i()),onOnReset:e[4]||(e[4]=()=>i()),onOnSearch:e[5]||(e[5]=()=>i()),pageNo:a(n),"onUpdate:pageNo":e[6]||(e[6]=o=>u(n)?n.value=o:null),pageSize:a(s),"onUpdate:pageSize":e[7]||(e[7]=o=>u(s)?s.value=o:null),total:a(c),showRefresh:!1},null,8,["columns","data","buttons","formData","pageNo","pageSize","total"]))}});export{S as default};