import{aF as I,a6 as w,a7 as R,bq as k,_ as x,d as P,j as V,Q as N,m as v,aH as g,az as E,r as m,o as T,A as L,x as l,f as s,h as F,H as h,a as S}from"./index.js";import{u as z}from"./use-page-search.dfa27a70.js";import M from"./index.bdcf42.js";import U from"./index.674a5d.js";import{r as c}from"./columnRenderHelper.8411add2.js";import{s as _}from"./shared.d9aac3ad.js";import{b as j}from"./index.004a0bb2.js";import"./execl-upload.8692a4ce.js";import"./status.b7512d56.js";const{VITE_PROXY_DOMAIN_REAL:ae,VITE_PROXY_USER_REAL:re,VITE_WORKORDER_REAL:H}=w(),W=H,$=u=>I.request("post",`${W}/cxinv/adjust/list`,{data:u}),q=[{type:"selection",width:40},{label:"ID",prop:"id",width:90},{label:"\u4E1A\u52A1\u7F16\u53F7",minWidth:150,prop:"manager__invoiceCode"},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:140,...c("manager__goodNo","manager__goodName","\u5546\u54C1\u7F16\u53F7:")},{label:"\u72B6\u6001",width:80,cellRenderer({row:u}){var a;return R(k,{size:"small",type:(a=_.find(t=>u.status==t.value))==null?void 0:a.type},{default:()=>{var t;return(t=_.find(p=>u.status==p.value))==null?void 0:t.label}})}},{label:"\u8BA1\u63D0\u6570\u91CF",prop:"num",width:100},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"manager__inv_subprice",width:120},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"manager__inv_price",width:120},{label:"\u53D1\u7968\u8D2D\u4E70\u65B9\u516C\u53F8",width:150,...c("manager__inv_buyer_code","manager__inv_buyer_name","\u8D2D\u4E70\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u53D1\u7968\u9500\u552E\u65B9\u516C\u53F8",prop:"seller_code",width:150,...c("manager__inv_seller_code","manager__inv_seller_name","\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:120},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",width:120},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:45}],X={columns:q,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],companyProp:"seller_code",apis:{httpList:(u={})=>$({...u}),httpAdd:!0}},C={formItems:[{field:"timer",type:"date_picker",span:7,label:"\u521B\u5EFA\u65F6\u95F4",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"status",placeholder:"\u72B6\u6001",options:_,type:"select"}]},Y="inOutManager",J=P({__name:"index",setup(u){const a=V(),t=N({orderImportVisible:!1,notOrderImportVisible:!1}),p={pageSearchHook:()=>z(void 0,void 0,C)},d=v([]);g();const b=g({success(){var n;E.success("\u53D6\u6D88\u6210\u529F"),(n=i.value)==null||n.onSearch()}}),i=v(null),B={content:{create:()=>a.push("/invoiceInOut/provisionOutDetail"),preview:({id:n})=>a.push("/invoiceInOut/provisionOutDetail?id="+n)}};function A(){if(d.value.length===0){E.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u6761\u6570\u636E");return}b.run(j({type:"2",item_ids:d.value.map(({id:n})=>n),remark:""}))}function D(){}return(n,e)=>{const f=m("ElButton"),O=m("PageContainer"),y=m("PageAuth");return T(),L(y,{pageName:Y},{default:l(()=>[s(O,{hooks:p,events:B,searchConfig:F(C),contentConfig:F(X),"get-content-ref":o=>i.value=o,onContentSelectChange:e[0]||(e[0]=o=>d.value=o)},{content_header:l(()=>[s(f,{size:"small",type:"primary",onClick:D},{default:l(()=>e[5]||(e[5]=[h(" \u5BFC\u51FA ")])),_:1}),s(f,{size:"small",type:"primary",onClick:A},{default:l(()=>e[6]||(e[6]=[h("\u6279\u91CF\u53D6\u6D88")])),_:1}),S(' \u6279\u91CF\u5220\u9664 ')]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),s(U,{visible:t.orderImportVisible,"onUpdate:visible":e[1]||(e[1]=o=>t.orderImportVisible=o),onRefresh:e[2]||(e[2]=o=>{var r;return(r=i.value)==null?void 0:r.onSearch()})},null,8,["visible"]),s(M,{visible:t.notOrderImportVisible,"onUpdate:visible":e[3]||(e[3]=o=>t.notOrderImportVisible=o),onRefresh:e[4]||(e[4]=o=>{var r;return(r=i.value)==null?void 0:r.onSearch()})},null,8,["visible"])]),_:1})}}});var se=x(J,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/provisionOut/index.vue"]]);export{se as default};