1 |
- import{u as g,_ as h}from"./use-page-search.f69d0651.js";import{u as C,_ as B}from"./use-page-modal.5cbd50a5.js";import{P as b}from"./page-content.28283dd3.js";import{R as D,a as r}from"./inv-return.bbbf0fb3.js";import{c as E,b as k}from"./index.e65fa21b.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.f1f72fab.js";import{u as M}from"./use-permission.8b8332f7.js";import"./basic-form.3fcecd34.js";import"./global.9ad647c8.js";import"./hooks.56104ccd.js";import"./index.e06d2700.js";import"./responseHandle.e1b4a6cf.js";import"./use-response-handle.848983a0.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};
|