import{af as i,ce as r,_,d as g,n as F,c9 as w,r as o,o as d,A as b,y as p,h as s,i as n,D as P,a as A,cC as S}from"./index.js";import{h as R,I as k}from"./invoice-modal.43fdc2.js";const x=[{label:"\u5F00\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:150},{prop:"KPLX",width:90,label:"\u5F00\u7968\u7C7B\u578B",cellRenderer({row:l}){return i(r,{},{default:()=>{var u;return((u=[{value:"0",label:"\u84DD\u5B57\u53D1\u7968"},{value:"1",label:"\u7EA2\u5B57\u53D1\u7968"}].find(({value:e})=>e===String(l.KPLX)))==null?void 0:u.label)||"--"}})}},{prop:"KPFS",width:80,label:"\u5F00\u7968\u65B9\u5F0F",cellRenderer({row:l}){return i(r,{},{default:()=>{var u;return((u=[{value:"0",label:"\u81EA\u52A8"},{value:"1",label:"\u624B\u52A8"}].find(({value:e})=>e===String(l.KPFS)))==null?void 0:u.label)||"--"}})}},{label:"\u72B6\u6001",prop:"status",width:"140px",cellRenderer({row:l}){return i(r,{},{default:()=>{var u;return((u=[{value:"0",label:"\u5F85\u5F00\u7968"},{value:"1",label:"\u5F85\u8FD4\u56DE\u5F00\u7968\u7ED3\u679C"},{value:"2",label:"\u5F00\u7968\u6210\u529F"},{value:"3",label:"\u6570\u636E\u6709\u8BEF"},{value:"4",label:"\u5F00\u7968\u5931\u8D25"}].find(({value:e})=>e===String(l.status)))==null?void 0:u.label)||"--"}})}},{label:"\u9500\u552E\u65B9\u540D\u79F0",prop:"XHFMC",width:110},{label:"\u9500\u552E\u65B9\u8BC6\u522B\u53F7",prop:"XHFSBH",width:160},{label:"\u8D2D\u4E70\u65B9\u8BC6\u522B\u53F7",prop:"GMFSBH",width:130},{label:"\u8D2D\u4E70\u65B9\u540D\u79F0",prop:"GMFMC",width:100},{label:"\u5F00\u7968\u4EBA",prop:"KPR",width:80},{label:"\u6536\u6B3E\u4EBA",prop:"SKR",width:80},{label:"\u590D\u6838\u4EBA",prop:"FHR"},{label:"\u7EA2\u51B2\u539F\u7968\u4EE3\u7801",prop:"YFPDM",width:100},{label:"\u7EA2\u51B2\u539F\u7968\u53F7\u7801",prop:"YFPHM",width:100},{label:"\u7EA2\u51B2\u539F\u7968\u7C7B\u578B",prop:"YFPLX",width:100},{label:"\u7EA2\u51B2\u539F\u7968\u5F00\u7968\u65E5\u671F",prop:"YFPKPRQ",width:120},{label:"\u4EF7\u7A0E\u5408\u8BA1",prop:"JSHJ"},{label:"\u5408\u8BA1\u91D1\u989D",prop:"HJJE"},{label:"\u5F00\u7968\u5907\u6CE8",prop:"remark",width:120},{label:"\u6DFB\u52A0\u65F6\u95F4",prop:"addtime",width:120},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],y={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,companyProp:"companyNo",columns:x,apis:{httpList:R}},f={formItems:[{field:"invNo",type:"input",placeholder:"\u5F00\u7968\u7533\u8BF7\u7F16\u53F7",span:4},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:4,options:[{value:"0",label:"\u5F85\u5F00\u7968"},{value:"1",label:"\u5F85\u8FD4\u56DE\u5F00\u7968\u7ED3\u679C"},{value:"2",label:"\u5F00\u7968\u6210\u529F"},{value:"3",label:"\u6570\u636E\u6709\u8BEF"},{value:"4",label:"\u5F00\u7968\u5931\u8D25"}]}]},H="updateInvoice",M=g({__name:"index",setup(l){const u=F(null),e=F(null),{hasPermissionWithCode:h}=w("updateInvoice"),v={pageSearchHook:()=>S(void 0,void 0,f)};function B(c){var t;(t=u.value)==null||t.onDisplay(c)}return(c,t)=>{const E=o("el-button"),D=o("el-tooltip"),C=o("PageContainer"),m=o("PageAuth");return d(),b(m,{pageName:H},{default:p(()=>[s(C,{hooks:v,contentConfig:n(y),"search-config":n(f),"get-content-ref":a=>e.value=a},{content_action:p(a=>[String(a.status)==="4"&&n(h)("005")?(d(),b(D,{key:0,content:"\u7F16\u8F91"},{default:p(()=>[s(E,{type:"text",icon:n(P)("edit"),onClick:I=>B(a)},null,8,["icon","onClick"])]),_:2},1024)):A("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),s(k,{ref_key:"invoiceModalRef",ref:u,onRefresh:t[0]||(t[0]=a=>e.value.onSearch())},null,512)]),_:1})}}});var X=_(M,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/updateInvoice/index.vue"]]);export{X as default};
