import{bM as A,_ as k,d as P,w as f,ah as w,r as p,o as F,G as h,C as u,l as t,u as s,J as M,a as U,b as I,M as a,L as n}from"./index.1d1a5ecb.js";import{r as c}from"./columnRenderHelper.0fb69d06.js";import{u as O}from"./use-page-search.f4c305e2.js";import{Q as R,M as d}from"./qrd-modal.fd5bf2a7.js";import"./platform.a6aa4c12.js";import"./company.67c5684f.js";import"./customer.63bc250b.js";import"./supplier.5db912ab.js";import"./category.6ed5219d.js";import"./sale-user.22a79a15.js";import"./user.5cfb98b4.js";const S=[{type:"selection",width:40,align:"center",hide:({checkList:i})=>!i.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:i})=>!i.includes("\u5E8F\u53F7\u5217")},{type:"expand",label:"",slot:"expand"},{prop:"orderCode",label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",width:"150px"},{prop:"sale_name",label:"\u4E1A\u52A1\u5458",width:"70px"},{prop:"khName",label:"\u4F01\u4E1A\u5BA2\u6237","min-width":"190px",...c("khNo","khName","\u4F01\u4E1A\u5BA2\u6237\u7F16\u7801:")},{prop:"companyName",label:"\u9500\u552E\u65B9\u516C\u53F8","min-width":"190px",...c("companyNo","companyName","\u9500\u552E\u65B9\u516C\u53F8\u7F16\u7801:")},{prop:"cgdNo",label:"\u91C7\u8D2D\u5355\u53F7",width:"165px"},{prop:"supplierName",label:"\u4F9B\u5E94\u5546\u516C\u53F8","min-width":"190px",...c("supplierNo","supplierName","\u4F9B\u5E94\u5546\u516C\u53F8\u7F16\u7801:")},{prop:"ordertime",label:"\u521B\u5EFA\u65F6\u95F4",width:"140px"},{prop:"",label:"\u64CD\u4F5C",width:"85px",slot:"operation",fixed:"right"}],L={title:"\u8BA2\u5355\u5BF9\u8D26\u67E5\u8BE2",columns:S,superUserNoAction:!0,apis:{httpList:A,httpAdd:!0,httpUpdate:!0}},g={formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"starttime",endProp:"endtime",startPlaceholder:"\u8BA2\u5355\u751F\u6210\u65F6\u95F4\u8D77\u59CB",endPlaceholder:"\u8BA2\u5355\u751F\u6210\u65F6\u95F4\u7ED3\u675F"}},{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"qrdNo",label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801"},{value:"cgdNo",label:"\u91C7\u8D2D\u5355\u7F16\u7801"},{value:"sale_name",label:"\u9500\u552E\u5458"},{value:"cgd_saler",label:"\u91C7\u8D2D\u5458"}]}}]},V={style:{padding:"0 60px","box-sizing":"border-box"}},q=P({__name:"index",setup(i){const C="netOrderEnter",r=f(null),m=f(null),{isSuperUser:E}=w(),b={pageSearchHook:()=>O(void 0,void 0,g)},x=({id:l})=>{r.value.onDisplay(d.proUpdate,l)},v={content:{create:()=>r.value.onDisplay(d.create),preview:({id:l})=>r.value.onDisplay(d.preview,l),update:({id:l})=>r.value.onDisplay(d.update,l)}};return(l,_)=>{const y=p("el-button"),o=p("ElDescriptionsItem"),D=p("ElDescriptions"),N=p("PageContainer"),B=p("PageAuth");return F(),h(B,{pageName:C},{default:u(()=>[t(N,{hooks:b,events:v,contentConfig:s(L),"search-config":s(g),"get-content-ref":e=>m.value=e},{content_action:u(e=>[s(E)?(F(),h(y,{key:0,type:"primary",link:"",size:"small",icon:s(M)("edit"),onClick:z=>x({id:e.id})},null,8,["icon","onClick"])):U("v-if",!0)]),expand:u(e=>[I("div",V,[t(D,{column:2},{default:u(()=>[t(o,{label:"\u5546\u54C1\u540D\u79F0"},{default:u(()=>[a(n(e.goodName),1)]),_:2},1024),t(o,{label:"\u90E8\u95E8"},{default:u(()=>[a(n(e.sale_depart),1)]),_:2},1024),t(o,{label:"\u5355\u4EF7"},{default:u(()=>[a(n(e.goodPrice),1)]),_:2},1024),t(o,{label:"\u6570\u91CF"},{default:u(()=>[a(n(e.goodNum),1)]),_:2},1024),t(o,{label:"\u5355\u636E\u53F7"},{default:u(()=>[a(n(e.workCode),1)]),_:2},1024),t(o,{label:"\u5E73\u53F0\u8BA2\u5355\u7F16\u7801"},{default:u(()=>[a(n(e.poCode),1)]),_:2},1024),t(o,{label:"\u7A0E\u70B9"},{default:u(()=>[a(n(e.tax)+"%",1)]),_:2},1024)]),_:2},1024)])]),_:1},8,["contentConfig","search-config","get-content-ref"]),t(R,{ref_key:"qrdModalRef",ref:r,onReload:_[0]||(_[0]=()=>m.value.onSearch())},null,512)]),_:1})}}});var Z=k(q,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/netOrderEnter/netOrderEntry/index.vue"]]);export{Z as default};
