index.ddf1b5e8.js 3.4 KB

1
  1. import{ah as b,aE as k,aW as N,q as R,x as A,r as p,o as c,n as W,L as d,M as m,v as t,p as P,t as l,H as f,K as v,P as w,S as x}from"./index.ec6726c2.js";import{u as S}from"./use-permission.ee4ce87b.js";import{P as T}from"./page-content.7539282d.js";import{u as V,_ as Y}from"./use-page-search.de6c0538.js";import{e as H,f as M}from"./index.405fd0bc.js";import{s as B}from"./reconciliation.ba6be792.js";import"./index.266f2572.js";import"./responseHandle.ff956498.js";import"./hooks.5edcbc74.js";import"./use-response-handle.d6a4eb89.js";import"./basic-form.8028f82a.js";import"./global.9ad647c8.js";const q=[{type:"selection",minWidth:55,align:"left",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",minWidth:180,align:"left"},{label:"\u72B6\u6001",prop:"status",minWidth:120,cellRenderer:({row:e,props:o})=>b(k,{size:o.size},{default:()=>{var u;return(u=B.find(n=>e.status===n.value))==null?void 0:u.label}})},{label:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:110,align:"total_fee"},{label:"\u4F9B\u5E94\u5546\u7F16\u53F7",prop:"supplierNo",minWidth:180,align:"left"},{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplierName",minWidth:180,align:"left"},{label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u53F7",prop:"companyNo",minWidth:180,align:"left"},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180,align:"left"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:70,align:"left"},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:180,prop:"addtime",formatter:({addtime:e})=>N(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],h={title:"\u8BA2\u5355\u5BF9\u8D26",columns:q,deleteProp:"payNo",apis:{httpList:H,httpDelete:M},delTooltip:"\u662F\u5426\u64A4\u56DE\u8BA2\u5355\u5BF9\u8D26\u7533\u8BF7?",showDelete:({status:e})=>Number(e)!==3,powers:["001","002","003","004","005","006","007","008"]},F={formItems:[{field:"supplierNo",type:"input",placeholder:"\u4F9B\u5E94\u5546\u7F16\u53F7"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"startTime",endProp:"endTime",startPlaceholder:"\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u7ED3\u675F\u65E5\u671F"}},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:B}]},z={class:"main orderRecord"},L=x("\u65B0\u5EFA"),O={name:"orderRecord"},oe=R({...O,setup(e){const{pageContentRef:o,handleSearchClick:u,handleResetClick:n}=V(void 0,void 0,F),{push:r}=A(),_=()=>r("/purchase/orderRecordDetail");function g(a){r({path:"/purchase/orderRecordDetail",query:{id:a}})}const{permission:i,contentConfigRef:C}=S({pageName:"orderRecord",contentConfig:h,callback:a=>h.powers=a});return(a,s)=>{const y=p("el-button"),D=p("NoAuth");return c(),W("div",z,[d(P("div",null,[l(t(Y),{ref_key:"pageContentRef",ref:o,"form-config":t(F),onSearchBtnClick:t(u),onResetBtnClick:t(n)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(t(T),{ref_key:"pageContentRef",ref:o,"content-config":t(C),onPreviewBtnClick:s[0]||(s[0]=({payNo:E})=>g(E))},{create:f(()=>[t(i).create?(c(),v(y,{key:0,type:"primary",onClick:_},{default:f(()=>[L]),_:1})):w("",!0)]),_:1},8,["content-config"])],512),[[m,t(i).list]]),d(l(D,null,null,512),[[m,!t(i).list]])])}}});export{oe as default};