1 |
- import{ac as a,aZ as r,_ as C,d as _,n as f,r as l,o as g,G as b,C as F,j as B,l as n}from"./index.js";import{u as w}from"./use-page-search.bc5b1329.js";import{h as E,d as y}from"./index.edddc1e6.js";import{c as v,a as i,g as D}from"./status.0f771e9a.js";import{b as c}from"./columns.d5e463fb.js";import{r as p}from"./columnRenderHelper.b5670a8e.js";import"./tootip.de00a876.js";const A=[{label:"ID",prop:"id",width:80},{label:"\u5546\u54C1\u7F16\u7801",prop:"skuCode",width:150},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:150},{label:"\u5546\u54C1\u7C7B\u578B",width:100,cellRenderer({row:u}){return a(r,{size:"small"},{default:()=>{var e;return((e=v.find(t=>t.value==u.good_type))==null?void 0:e.label)||"--"}})}},{label:"\u7ED3\u5B58\u6570",prop:"total_stock",width:80},{label:"\u72B6\u6001",prop:"status",width:60,cellRenderer({row:u}){var e;return a(r,{size:"small",type:((e=i.find(t=>t.value==u.status))==null?void 0:e.type)||"warning"},{default:()=>{var t;return((t=i.find(o=>o.value==u.status))==null?void 0:t.label)||"--"}})}},{label:"\u6210\u672C\u72B6\u6001",width:75,cellRenderer({row:u}){return a(r,{size:"small"},{default:()=>{var e;return((e=c.find(t=>t.value==u.basic_status))==null?void 0:e.label)||"--"}})}},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"subunit_price",width:100},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"unit_price",width:100},{label:"\u5355\u4F4D",prop:"unit",width:42},{label:"\u89C4\u683C",prop:"spec",width:80},{label:"\u91CD\u91CF",prop:"unit_weight",width:80},{label:"\u9500\u552E\u65B9\u516C\u53F8",width:160,...p("seller_code","seller_name","\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",width:160,...p("buyer_code","buyer_name","\u8D2D\u4E70\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",width:140},{label:"\u64CD\u4F5C",fixed:"right",width:70,slot:"operation"}],P={columns:A,title:"\u5546\u54C1\u7BA1\u7406",permissions:["003","004","007"],companyProp:"buyer_code",superUserNoAction:!0,apis:{httpList:E,httpStatus:y,httpAdd:!0}},d={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:"skuCode",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"good_type",type:"select",options:D,placeholder:"\u5546\u54C1\u7C7B\u578B"},{type:"select",placeholder:"\u6210\u672C\u7C7B\u578B",field:"good_type",options:c}]},k="productManager",x=_({__name:"index",setup(u){const e=f(),t={pageSearchHook:()=>w(void 0,void 0,d)},o={content:{preview:({id:s})=>e.push("/invoiceInOut/productManagerDetail?id="+s),create:()=>e.push("/invoiceInOut/productManagerDetail")}};return(s,I)=>{const h=l("PageContainer"),m=l("PageAuth");return g(),b(m,{pageName:k},{default:F(()=>[B(h,{hooks:t,events:o,searchConfig:n(d),contentConfig:n(P)},null,8,["searchConfig","contentConfig"])]),_:1})}}});var j=C(x,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/productManager/index.vue"]]);export{j as default};
|