1 |
- import{al as i,aS as r,_ as g,d as w,w as d,aL as P,r as o,o as b,G as f,C as p,l as s,u as n,J as A,a as S}from"./index.42bf163d.js";import{u as R}from"./use-page-search.d97bdd00.js";import{h as k,I as x}from"./invoice-modal.46d4b4f8.js";const H=[{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"}],M={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,companyProp:"companyNo",columns:H,apis:{httpList:k}},v={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"}]}]},y=w({__name:"index",setup(l){const u="updateInvoice",e=d(null),c=d(null),{hasPermissionWithCode:B}=P("updateInvoice"),h={pageSearchHook:()=>R(void 0,void 0,v)};function E(F){var t;(t=e.value)==null||t.onDisplay(F)}return(F,t)=>{const m=o("el-button"),C=o("el-tooltip"),D=o("PageContainer"),_=o("PageAuth");return b(),f(_,{pageName:u},{default:p(()=>[s(D,{hooks:h,contentConfig:n(M),"search-config":n(v),"get-content-ref":a=>c.value=a},{content_action:p(a=>[String(a.status)==="4"&&n(B)("005")?(b(),f(C,{key:0,content:"\u7F16\u8F91"},{default:p(()=>[s(m,{type:"text",icon:n(A)("edit"),onClick:I=>E(a)},null,8,["icon","onClick"])]),_:2},1024)):S("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),s(x,{ref_key:"invoiceModalRef",ref:e,onRefresh:t[0]||(t[0]=a=>c.value.onSearch())},null,512)]),_:1})}}});var L=g(y,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/updateInvoice/index.vue"]]);export{L as default};
|