index.da643a.js 3.1 KB

1
  1. import{ac as o,aZ as r,_ as m,d as C,n as _,r as n,o as f,G as b,C as g,j as F,l}from"./index.js";import{u as w}from"./use-page-search.496e3eda.js";import{h as B,d as E}from"./index.3e4a56da.js";import{c as y,a as i,g as v}from"./status.0f771e9a.js";import{b as D}from"./columns.eaa2d03d.js";import{r as p}from"./columnRenderHelper.4d01a9b2.js";import"./tootip.c29898b9.js";const A=[{label:"\u5546\u54C1ID",prop:"id",width:80},{label:"\u5546\u54C1\u7F16\u7801",prop:"skuCode",width:150},{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:"\u5546\u54C1\u7C7B\u578B",width:100,cellRenderer({row:t}){return o(r,{size:"small"},{default:()=>{var e;return((e=y.find(u=>u.value==t.good_type))==null?void 0:e.label)||"--"}})}},{label:"\u8FDB\u9879\u6210\u672C\u72B6\u6001",width:110,cellRenderer({row:t}){return o(r,{size:"small"},{default:()=>{var e;return((e=D.find(u=>u.value==t.basic_status))==null?void 0:e.label)||"--"}})}},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:150},{label:"\u89C4\u683C",prop:"spec",width:80},{label:"\u5355\u4F4D",prop:"unit",width:80},{label:"\u72B6\u6001",prop:"status",width:80,cellRenderer({row:t}){var e;return o(r,{size:"small",type:((e=i.find(u=>u.value==t.status))==null?void 0:e.type)||"warning"},{default:()=>{var u;return((u=i.find(a=>a.value==t.status))==null?void 0:u.label)||"--"}})}},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"subunit_price",width:100},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"unit_price",width:100},{label:"\u91CD\u91CF",prop:"unit_weight",width:80},{label:"\u5206\u5149",prop:"spectral",width:80},{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:B,httpStatus:E,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:v,placeholder:"\u5546\u54C1\u7C7B\u578B"}]},k="productManager",x=C({__name:"index",setup(t){const e=_(),u={pageSearchHook:()=>w(void 0,void 0,d)},a={content:{preview:({id:s})=>e.push("/invoiceInOut/productManagerDetail?id="+s),create:()=>e.push("/invoiceInOut/productManagerDetail")}};return(s,I)=>{const c=n("PageContainer"),h=n("PageAuth");return f(),b(h,{pageName:k},{default:g(()=>[F(c,{hooks:u,events:a,searchConfig:l(d),contentConfig:l(P)},null,8,["searchConfig","contentConfig"])]),_:1})}}});var j=m(x,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/productManager/index.vue"]]);export{j as default};