import{bJ as B,_ as N,d as k,E as _,ai as P,x as r,o as f,N as F,K as u,y as t,u as s,R as w,a as U,b as O,W as a,T as n}from"./index.1417328f.js";import{u as R}from"./use-page-search.7e7b4728.js";import{Q as I,M as d}from"./qrd-modal.57e9eb79.js";import"./company.cc52f23f.js";import"./customer.51c9777d.js";import"./supplier.974778e3.js";import"./category.58c73d9f.js";import"./sale-user.ccb2ba71.js";import"./user.04c9bd5f.js";const M=[{type:"selection",minWidth:55,align:"left",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:"\u786E\u8BA4\u5355\u7F16\u53F7",width:"165px"},{prop:"sale_name",label:"\u4E1A\u52A1\u5458",width:"70px"},{prop:"khNo",label:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u7801",width:"125px"},{prop:"khName",label:"\u4F01\u4E1A\u5BA2\u6237","min-width":"190px"},{prop:"companyNo",label:"\u786E\u8BA4\u5355\u9500\u552E\u516C\u53F8\u7F16\u7801",width:"175px"},{prop:"companyName",label:"\u786E\u8BA4\u5355\u9500\u552E\u516C\u53F8","min-width":"190px"},{prop:"cgdNo",label:"\u91C7\u8D2D\u5355\u53F7",width:"165px"},{prop:"supplierNo",label:"\u4F9B\u5E94\u5546\u7F16\u53F7",width:"140px"},{prop:"supplierName",label:"\u4F9B\u5E94\u5546","min-width":"190px"},{prop:"ordertime",label:"\u521B\u5EFA\u65F6\u95F4",width:"140px"},{prop:"",label:"\u64CD\u4F5C",width:"85px",slot:"operation",fixed:"right"}],S={title:"\u8BA2\u5355\u5BF9\u8D26\u67E5\u8BE2",columns:M,superUserNoAction:!0,apis:{httpList:B,httpAdd:!0,httpUpdate:!0}},h={formItems:[{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"qrdNo",label:"\u786E\u8BA4\u5355\u7F16\u53F7"},{value:"cgdNo",label:"\u91C7\u8D2D\u5355\u7F16\u53F7"},{value:"sale_name",label:"\u9500\u552E\u5458"},{value:"cgd_saler",label:"\u91C7\u8D2D\u5458"}]}},{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"}}]},V={style:{padding:"0 60px","box-sizing":"border-box"}},q=k({__name:"index",setup(i){const g="netOrderEnter",p=_(null),c=_(null),{isSuperUser:E}=P(),b={pageSearchHook:()=>R(void 0,void 0,h)},x=({id:l})=>{p.value.onDisplay(d.proUpdate,l)},C={content:{create:()=>p.value.onDisplay(d.create),preview:({id:l})=>p.value.onDisplay(d.preview,l),update:({id:l})=>p.value.onDisplay(d.update,l)}};return(l,m)=>{const y=r("el-button"),o=r("ElDescriptionsItem"),v=r("ElDescriptions"),D=r("PageContainer"),A=r("PageAuth");return f(),F(A,{pageName:g},{default:u(()=>[t(D,{hooks:b,events:C,contentConfig:s(S),"search-config":s(h),"get-content-ref":e=>c.value=e},{content_action:u(e=>[s(E)?(f(),F(y,{key:0,type:"primary",link:"",size:"small",icon:s(w)("edit"),onClick:T=>x({id:e.id})},null,8,["icon","onClick"])):U("v-if",!0)]),expand:u(e=>[O("div",V,[t(v,{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\u53F7"},{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(I,{ref_key:"qrdModalRef",ref:p,onReload:m[0]||(m[0]=()=>c.value.onSearch())},null,512)]),_:1})}}});var $=N(q,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/netOrderEnter/netOrderEntry/index.vue"]]);export{$ as default};