1 |
- import{bn as w,_ as v,d as D,j as y,m as l,aH as B,az as p,Q as k,V as x,r as n,o as c,A as d,x as a,f as A,h as r,H as P,a as O,bo as I}from"./index.js";import{u as N}from"./use-page-search.dfa27a70.js";import{r as T}from"./columnRenderHelper.8411add2.js";import{g as V}from"./status.b7512d56.js";const j=[{type:"selection",width:40},{label:"\u8C03\u6574\u5355\u7F16\u53F7",prop:"checkCode",width:150,fixed:"left"},{label:"\u6765\u6E90\u5355\u53F7",prop:"code",width:160},{label:"\u53D1\u7968\u660E\u7EC6ID",prop:"itemid",width:100},{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:160},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:140,showOverflowTooltip:!0},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",width:150,...T("company_code","company_name","\u8D2D\u4E70\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u89C4\u683C",prop:"spec",width:60},{label:"\u5355\u4F4D",prop:"unit",width:60},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"subprice",width:120,align:"right"},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"price",width:120,align:"right"},{label:"\u8C03\u6574\u6570\u91CF",prop:"num",width:120,align:"right"},{label:"\u8C03\u6574\u91D1\u989D",prop:"check_fee",width:120,align:"right"},{label:"\u521B\u5EFA\u4EBA",prop:"check_uname",width:100},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],S={columns:j,title:"\u8C03\u6574\u5355\u7BA1\u7406",permissions:["007"],companyProp:"company_code",apis:{httpList:w,httpAdd:!0}},h={formItems:[{field:"goodNo",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"goodType",type:"select",options:V,placeholder:"\u5546\u54C1\u7C7B\u578B"},{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"}}]},H="productManager",L=D({__name:"index",setup(R){const s=y(),m={pageSearchHook:()=>N(void 0,void 0,h)},i=l(null),f=B({success(){var e;p.success("\u5220\u9664\u6210\u529F"),(e=i.value)==null||e.onSearch()}});k({orderImportVisible:!1,notOrderImportVisible:!1});const{isSuperUser:g}=x(),u=l([]),C={content:{create:()=>s.push("/invoiceInOut/adjustOrderDetail"),preview:({id:e})=>s.push("/invoiceInOut/adjustOrderDetail?id="+e)}};function F(){if(u.value.length===0){p.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u6761\u6570\u636E");return}f.run(I({id:u.value.map(({id:e})=>e)}))}return(e,t)=>{const _=n("ElButton"),E=n("PageContainer"),b=n("PageAuth");return c(),d(b,{pageName:H},{default:a(()=>[A(E,{hooks:m,events:C,searchConfig:r(h),contentConfig:r(S),"get-content-ref":o=>i.value=o,onContentSelectChange:t[0]||(t[0]=o=>u.value=o)},{content_header:a(()=>[r(g)?O("v-if",!0):(c(),d(_,{key:0,style:{"margin-right":"10px"},size:"small",type:"danger",onClick:F},{default:a(()=>t[1]||(t[1]=[P(" \u6279\u91CF\u5220\u9664 ")])),_:1}))]),_:1},8,["searchConfig","contentConfig","get-content-ref"])]),_:1})}}});var q=v(L,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/adjustOrder/index.vue"]]);export{q as default};
|