1 |
- import{_ as x,d as R,E as c,A as S,aZ as T,bo as O,x as p,o as d,N as f,K as o,y as B,u as i,a as E,R as W,W as I,aS as y}from"./index.743f0c80.js";import{d as V,e as q,h as U}from"./index.88e5dbb1.js";import{r as $}from"./columnRenderHelper.80b3e081.js";import{u as z}from"./use-page-search.a895acdb.js";import{h as G}from"./export.155240ef.js";import"./xlsx.ed122d16.js";const h=[{value:"1",label:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{value:"2",label:"\u5BA1\u6838\u6210\u529F"},{value:"3",label:"\u4E70\u5BB6\u9A73\u56DE"},{value:"4",label:"\u5DF2\u64A4\u9500\u5BF9\u8D26"}],H=[{value:"1",label:"\u56DE\u7968\u6807\u7B7E"},{value:"2",label:"\u4ED8\u6B3E\u6807\u7B7E"},{value:"3",label:"\u4ED8\u6B3E\u56DE\u7968\u6700\u5C11\u6709\u4E00\u4E2A"},{value:"4",label:"\u4ED8\u6B3E\u56DE\u7968\u90FD\u6709"}],K=[{type:"selection",minWidth:55,align:"left"},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:160,align:"left"},{label:"\u72B6\u6001",prop:"status",width:140,transform:u=>{var e;return((e=h.find(a=>u===a.value))==null?void 0:e.label)||"--"},...$(h)},{label:"\u5BF9\u8D26\u603B\u989D",prop:"total_fee",width:110,align:"total_fee"},{label:"\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",width:155,align:"left"},{label:"\u5356\u51FA\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:160,align:"left"},{label:"\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:160,align:"left"},{label:"\u4E70\u5165\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180,align:"left"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:70,align:"left"},{label:"\u7533\u8BF7\u65F6\u95F4",width:140,prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:135,slot:"operation"}],L={title:"\u8BA2\u5355\u5BF9\u8D26",columns:K,apis:{httpList:V,httpAdd:!0,httpDelete:q},superUserNoAction:!0,showDelete:()=>!1,payProps:{prop:"payNo",type:"1"},returnProps:{prop:"payNo",type:"2"},showPayTagFn:({status:u},e)=>String(u)==="2"&&e.includes("013"),showReturnTagFn:({status:u},e)=>String(u)==="2"&&e.includes("014")},v={formItems:[{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"payNo",label:"\u5BF9\u8D26\u7F16\u53F7"}]}},{field:"supplierNo",type:"supplier-query"},{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",span:4,options:h},{field:"status",type:"select",placeholder:"\u6807\u7B7E\u72B6\u6001",span:4,options:H}]},M=I(" \u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA "),Z=R({__name:"index",setup(u){const e="orderRecord",a="/purchase/orderRecordDetail",n=c([]),l=c(!1),{push:F}=S(),m=c(null),{run:_}=T({success:()=>m.value.onSearch()}),{hasPermissionWithCode:D}=O("orderRecord"),C={pageSearchHook:()=>z(void 0,void 0,v)},b=s=>{_(U({payNo:s,status:"4"}))},A={content:{create:()=>F(a),preview:({payNo:s})=>F(`${a}?id=${s}`)}};async function N(){if(n.value.length===0){y.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u5BF9\u8D26\u5355");return}if(n.value.length>1){y.warning("\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u5BF9\u8D26\u5355");return}await G({url:"paycgdexport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onStart:()=>l.value=!0,onSuccess:()=>l.value=!1,onFail:()=>l.value=!1,params:{payNo:n.value[0].payNo}})}return(s,r)=>{const g=p("ElButton"),w=p("ElTooltip"),P=p("PageContainer"),k=p("PageAuth");return d(),f(k,{pageName:e},{default:o(()=>[B(P,{hooks:C,events:A,contentConfig:i(L),"search-config":i(v),"get-content-ref":t=>m.value=t,onContentSelectChange:r[1]||(r[1]=t=>n.value=t)},{content_header:o(()=>[i(D)("038")?(d(),f(g,{key:0,size:"small",loading:l.value,onClick:r[0]||(r[0]=()=>N())},{default:o(()=>[M]),_:1},8,["loading"])):E("v-if",!0)]),content_action:o(t=>[B(w,{placement:"top",content:"\u64A4\u9500\u5BF9\u8D26\u7533\u8BF7"},{default:o(()=>[String(t.status)==="2"?(d(),f(g,{key:0,type:"primary",link:"",text:"",icon:i(W)("refresh-right"),onClick:()=>b(t.payNo)},null,8,["icon","onClick"])):E("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","search-config","get-content-ref"])]),_:1})}}});var ue=x(Z,[["__file","D:/work/accout-vue3-ui/src/views/purchase/orderRecord/index.vue"]]);export{ue as default};
|