index.ddd736.js 3.5 KB

1
  1. import{ac as o,aZ as a,_ as m,d as f,n as g,r as i,o as b,G as F,C as B,j as E,l as n}from"./index.js";import{u as w}from"./use-page-search.ccdda2cc.js";import{h as y,d as v}from"./index.3df46f90.js";import{c as D,a as s,g as A}from"./status.b7512d56.js";import{g as c,b as h}from"./columns.f9aa8f9a.js";import{r as p}from"./columnRenderHelper.e2cf0def.js";import"./tootip.4c68c02b.js";const P=[{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:t}){return o(a,{size:"small"},{default:()=>{var e;return((e=D.find(u=>u.value==t.good_type))==null?void 0:e.label)||"--"}})}},{label:"\u7ED3\u5B58\u6570",prop:"residue_stock",width:80},{label:"\u72B6\u6001",prop:"status",width:60,cellRenderer({row:t}){var e;return o(a,{size:"small",type:((e=s.find(u=>u.value==t.status))==null?void 0:e.type)||"warning"},{default:()=>{var u;return((u=s.find(r=>r.value==t.status))==null?void 0:u.label)||"--"}})}},{label:"\u5546\u54C1\u6765\u6E90",width:95,cellRenderer({row:t}){return o(a,{size:"small"},{default:()=>{var e;return((e=c.find(u=>u.value==t.good_source))==null?void 0:e.label)||"--"}})}},{label:"\u6210\u672C\u72B6\u6001",width:75,cellRenderer({row:t}){return o(a,{size:"small"},{default:()=>{var e;return((e=h.find(u=>u.value==t.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"}],k={columns:P,title:"\u5546\u54C1\u7BA1\u7406",permissions:["003","004","007"],companyProp:"buyer_code",superUserNoAction:!0,apis:{httpList:y,httpStatus:v,httpAdd:!0}},d={formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"good_type",type:"select",options:A,placeholder:"\u5546\u54C1\u7C7B\u578B"},{type:"select",placeholder:"\u6210\u672C\u7C7B\u578B",field:"basic_status",options:h},{type:"select",placeholder:"\u5546\u54C1\u6765\u6E90",field:"good_source",options:c},{field:"skuCode",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"status",type:"select",options:s,placeholder:"\u72B6\u6001"}]},x="productManager",O=f({__name:"index",setup(t){const e=g(),u={pageSearchHook:()=>w(void 0,void 0,d)},r={content:{preview:({id:l})=>e.push("/invoiceInOut/productManagerDetail?id="+l),create:()=>e.push("/invoiceInOut/productManagerDetail")}};return(l,I)=>{const C=i("PageContainer"),_=i("PageAuth");return b(),F(_,{pageName:x},{default:B(()=>[E(C,{hooks:u,events:r,searchConfig:n(d),contentConfig:n(k)},null,8,["searchConfig","contentConfig"])]),_:1})}}});var T=m(O,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/productManager/index.vue"]]);export{T as default};