import{u as g,_ as h}from"./use-page-search.665e4825.js";import{u as C,_ as B}from"./use-page-modal.4a26f3da.js";import{P as b}from"./page-content.c90a59ec.js";import{R as D,a as r}from"./inv-return.7e479c21.js";import{b as E,c as k}from"./index.7ba913e4.js";import{aX as y,ah as v,aE as R,_ as x,q as w,x as T,o as N,n as S,t as i,H as P,p as q,v as e,bo as I}from"./index.d8ce26ef.js";import{u as M}from"./use-permission.314b29b7.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./hooks.3def80f5.js";import"./index.4ed99b91.js";import"./responseHandle.f073653a.js";import"./use-response-handle.e6cae34f.js";const Y={formItems:[{field:"tradNo",type:"input",placeholder:"\u8D44\u91D1\u7F16\u53F7"},{field:"logNo",type:"input",placeholder:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7"},{field:"returnCode",type:"input",placeholder:"\u9000\u6B3E\u7F16\u53F7"},{field:"type",type:"select",placeholder:"\u9000\u6B3E\u7C7B\u578B",options:D},{field:"status",type:"select",placeholder:"\u9000\u6B3E\u72B6\u6001",options:r}]},A={title:"\u9000\u7968\u7533\u8BF7",colLayout:{span:24},formItems:[{field:"invNo",type:"input",label:"\u53D1\u7968\u7F16\u53F7",labelWidth:"120px",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"}]},{field:"return_reason",type:"input",labelWidth:"120px",label:"\u9000\u8D27\u539F\u56E0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u9000\u8D27\u539F\u56E0"}]},{field:"remark",type:"input",labelWidth:"120px",label:"\u5907\u6CE8",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]}]},H=[{type:"selection",width:55,hide:({checkList:u})=>!u.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:u})=>!u.includes("\u5E8F\u53F7\u5217")},{label:"\u9000\u7968\u7F16\u53F7",prop:"returnCode"},{label:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0",prop:"buyer_title"},{label:"\u4ED8\u6B3E\u94F6\u884C\u540D\u79F0",prop:"buyer_bank"},{label:"\u4ED8\u6B3E\u8D26\u53F7",prop:"inv_value"},{label:"\u6536\u6B3E\u5355\u4F4D\u540D\u79F0",prop:"inv_in"},{label:"\u7533\u8BF7\u65F6\u95F4",prop:"addtime",formatter:({addtime:u})=>y(u).format("YYYY-MM-DD HH:mm:ss")},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:u})=>v(R,null,{default:()=>{var t;return(t=r.find(o=>o.value===u.status))==null?void 0:t.label}})},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],l={title:"\u9000\u7968\u7533\u8BF7\u7BA1\u7406",powers:["001","002","003","004","005","006","007","008"],columns:H,apis:{httpList:E,httpAdd:k}};const U={class:"main role"},W={"w-full":""},$={name:"invoiceheader"},L=w({...$,setup(u){const{push:t}=T(),{pageContentRef:o,handleResetClick:s,handleSearchClick:p}=g(),{pageModalRef:c,handleConfrim:d}=C({pageContentRef:o});function f(a){t({path:"/InvoiceSales/returnTicketDetail",query:{id:a}})}const{permission:m,contentConfigRef:_}=M({pageName:"returnTicket",contentConfig:l,callback:a=>l.powers=a});return(a,n)=>(N(),S("div",U,[i(I,{"is-show":e(m).list},{default:P(()=>[q("div",W,[i(e(h),{"form-config":e(Y),onSearchBtnClick:e(p),onResetBtnClick:e(s)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(e(b),{ref_key:"pageContentRef",ref:o,"content-config":e(_),onPreviewBtnClick:n[0]||(n[0]=({returnCode:F})=>f(F)),onCreateBtnClick:n[1]||(n[1]=()=>e(t)("/InvoiceSales/returnTicketDetail"))},null,8,["content-config"])]),i(e(B),{ref_key:"pageModalRef",ref:c,modalConfig:e(A),onConfirmBtnClick:e(d)},null,8,["modalConfig","onConfirmBtnClick"])]),_:1},8,["is-show"])]))}});var oe=x(L,[["__scopeId","data-v-26b6cf3b"]]);export{oe as default};
