1import{_ as X}from"./CuElPagination-ddd6e8d9.js";import{e as Z,M as ee,I as te,J as ae,b as re,r as oe,N as le,K as ne,H as se}from"./element-plus-38ad3556.js";import{q as ue}from"./PurchaserApi-d7ee7dd4.js";import{p as ce}from"./OrderApi-7959083f.js";import{u as de,U as ie}from"./virtual_svg-icons-register-decafda1.js";import{U as pe}from"./use-format-ce4ba7e4.js";import{dn as me,dp as fe,bW as he,cS as P,bL as u,bM as _,bN as N,cj as e,cd as r,bV as o,bT as V,cD as E,cc as i,cg as _e,ch as f,cp as ye,bz as q,co as be}from"./vendor-53482a14.js";/* empty css */import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-80c3741e.js";const ge={class:"page-tool"},ke={class:"page-content"},Te={__name:"DfDown",props:{queryStatusList:{type:Array,default(){return[]}}},emits:["on-loaded"],setup(h,{emit:D}){const{getUserInfo:T}=de();T();const{successNotify:we,errorMessageBox:y,startLoading:Le,endLoading:ve}=ie(),{colFormatTime:F,colMoneyFormat:b,colNumFormat:A,formatMoney:Ie,colMaskText:M}=pe(),g=h,U=D,k=me(),w=fe(),B=g.queryStatusList.length>0?g.queryStatusList.map(l=>l.name):["TO_PAY_DOWN"],p=be({filter:{purchaserId:"",purchaserMode:"4",purchaseOrderStatus:"",queryPurchaserId:"",signed:"",statusList:B,supplierId:"",text:""},a1PurchaserFilter:{current:1,disabled:"",frameworkContracted:"",parentId:"",purchaserLevel:"",purchaserLevelList:[],purchaserSource:"",size:1e3,text:""},options:{a1PurchaserList:[]}}),{filter:c,options:R}=ye(p),L=q([]),v=q(),H=async(l,t)=>{ce({...p.filter,...l}).then(s=>{s&&(L.value=s.records,t&&typeof t=="function"&&t(s.total),U("on-loaded",s.total))}).catch(s=>{y(s)})},I=()=>{v.value.loadData({current:1})},W=l=>{k.push({name:"purchaseAa1Item",params:{purchaseOrderId:l.purchaseOrderId},query:{back:w.name}})},z=l=>{k.push({name:"purchaseTodo",params:{purchaseOrderId:l.purchaseOrderId,todo:l.purchaseOrderStatus},query:{back:w.name}})},S=async l=>{try{const t=await ue({...p.a1PurchaserFilter,text:l});t&&(p.options.a1PurchaserList=t)}catch(t){y(t)}},Y=l=>{};return he(()=>{S()}),(l,t)=>{const s=Z,d=ee,O=te,x=ae,$=P("Search"),C=re,m=oe,j=P("refresh"),J=le,n=ne,K=se,G=X;return u(),_("div",null,[N("div",ge,[e(J,{inline:!0},{default:r(()=>[e(d,{label:"åå·"},{default:r(()=>[e(s,{modelValue:o(c).text,"onUpdate:modelValue":t[0]||(t[0]=a=>o(c).text=a),placeholder:"请è¾å
¥",clearable:""},null,8,["modelValue"])]),_:1}),e(d,{label:"代é客æ·"},{default:r(()=>[e(x,{modelValue:o(c).queryPurchaserId,"onUpdate:modelValue":t[1]||(t[1]=a=>o(c).queryPurchaserId=a),style:{width:"100%","min-width":"200px"},placeholder:"è¾å
¥å
³é®å",filterable:"",remote:"",clearable:"","remote-show-suffix":"","remote-method":S,onChange:Y},{default:r(()=>[(u(!0),_(V,null,E(o(R).a1PurchaserList,a=>(u(),i(O,{key:a.purchaserId,label:a.corpName,value:a.purchaserId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),h.queryStatusList.length>0?(u(),i(d,{key:0,label:"ç¶æ"},{default:r(()=>[e(x,{modelValue:o(c).purchaseOrderStatus,"onUpdate:modelValue":t[2]||(t[2]=a=>o(c).purchaseOrderStatus=a),placeholder:"è¯·éæ©",clearable:"",style:{width:"120px"}},{default:r(()=>[(u(!0),_(V,null,E(h.queryStatusList,a=>(u(),i(O,{key:a.name,label:a.label,value:a.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):_e("",!0),e(d,null,{default:r(()=>[e(m,{type:"primary",onClick:I},{default:r(()=>[e(C,null,{default:r(()=>[e($)]),_:1}),t[3]||(t[3]=f("æç´¢",-1))]),_:1})]),_:1}),e(d,null,{default:r(()=>[e(m,{type:"primary",onClick:I},{default:r(()=>[e(C,null,{default:r(()=>[e(j)]),_:1}),t[4]||(t[4]=f("å·æ°",-1))]),_:1})]),_:1})]),_:1})]),N("div",ke,[e(K,{data:o(L),border:"","header-cell-class-name":"wm-table-header-cell",style:{width:"100%"}},{default:r(()=>[e(n,{type:"index",label:"#",width:"50",align:"center"}),e(n,{prop:"purchaseOrderNo",label:"åå·",align:"center",width:200,"show-overflow-tooltip":""}),e(n,{prop:"purchaserCorpName",label:"客æ·",align:"center","min-width":160,"show-overflow-tooltip":"",formatter:o(M)},null,8,["formatter"]),e(n,{prop:"totalAmount",label:"订åéé¢",align:"center",formatter:o(b),"min-width":120},null,8,["formatter"]),e(n,{prop:"downAmount",label:"ä¿è¯ééé¢",align:"center",formatter:o(b),"min-width":120},null,8,["formatter"]),e(n,{prop:"totalCount",label:"éè´æ°é",align:"center",formatter:o(A),"min-width":120},null,8,["formatter"]),e(n,{prop:"creationDate",label:"åå»ºæ¥æ",align:"center",formatter:o(F),width:120},null,8,["formatter"]),e(n,{prop:"purchaseOrderStatusName",label:"ç¶æ",align:"center",width:100}),e(n,{label:"æä½",align:"center",width:100,fixed:"right"},{default:r(({row:a})=>
1[a.purchaseOrderStatus==="TO_PAY_DOWN"?(u(),i(m,{key:0,type:"primary",link:"",onClick:Q=>z(a)},{default:r(()=>[...t[5]||(t[5]=[f("仿¬¾",-1)])]),_:1},8,["onClick"])):(u(),i(m,{key:1,type:"primary",link:"",onClick:Q=>W(a)},{default:r(()=>[...t[6]||(t[6]=[f("æ¥ç",-1)])]),_:1},8,["onClick"]))]),_:1})]),_:1},8,["data"]),e(G,{ref_key:"cusELPaginationRef",ref:v,loadPageData:H},null,512)])])}}};export{Te as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.