1 |
- import{aT as d,ac as f,al as a,a$ as o,bN as _,_ as b,d as E,w as t,r as s,o as B,G as C,C as y,j as x,l as r}from"./index.js";import{s as v}from"./orderRecord.da508661.js";import{u as P}from"./use-page-search.0b9457f6.js";import{u as k}from"./use-page-modal.0c8cee22.js";import"./tootip.7e77b7ac.js";const{VITE_PROXY_DOMAIN_REAL:U,VITE_PROXY_USER_REAL:A}=f(),c=A+"/admin/",W=e=>d.request("post",`${c}keepblist`,{data:e}),S=e=>d.request("post",`${c}channelstatus`,{data:e}),D=[{prop:"gyscode",label:"\u4F9B\u5E94\u5546\u7F16\u53F7",minWidth:"140px"},{prop:"gysname",label:"\u4F9B\u5E94\u5546\u540D\u79F0",minWidth:"140px"},{prop:"brand_name",label:"\u54C1\u724C",minWidth:"100px"},{prop:"status",label:"\u72B6\u6001",minWidth:"60",_slot_:"status"},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:e})=>a(o,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{prop:"brand_book",label:"\u6388\u6743\u56FE",minWidth:"60px",cellRenderer({row:e}){return(e.brand_book?e.brand_book.split(","):[]).map(u=>a(_,{src:u,style:{height:"20px"},previewSrcList:[u],previewTeleported:!0}))}},{prop:"long",label:"\u6388\u6743\u7C7B\u578B",minWidth:"70",cellRenderer:({row:e})=>a(o,{type:String(e.long)==="0"?"success":"danger"},{default:()=>String(e.long)==="1"?"\u975E\u957F\u671F":"\u957F\u671F"})},{prop:"longTime",label:"\u6388\u6743\u65E5\u671F",minWidth:"180",cellRenderer({row:e}){return e.starttime.split(" ")[0]+" ~ "+(String(e.long)==="0"?"\u957F\u671F\u6709\u6548":e.endtime.split(" ")[0])}},{prop:"creater",label:"\u521B\u5EFA\u4EBA",minWidth:"60px"},{prop:"addtime",label:"\u6DFB\u52A0\u65F6\u95F4",minWidth:"145px"},{prop:"",label:"\u64CD\u4F5C",fixed:"right",width:"140px",_noset_:!0,slot:"operation"}],R={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:D,apis:{httpList:W,httpAdd:!0,httpStatus:S,httpUpdate:!0}},i={formItems:[{field:"status",type:"select",options:v,placeholder:"\u72B6\u6001"},{type:"input",field:"channel_name",placeholder:"\u6E20\u9053\u540D\u79F0"},{type:"input",field:"apply_name",placeholder:"\u521B\u5EFA\u4EBA"}]},p=[{value:"0",label:"\u957F\u671F"},{value:"1",label:"\u975E\u957F\u671F"}],q={title:"\u54C1\u724C\u652F\u6301",colLayout:{span:24},itemStyle:{},labelWidth:"120px",formItems:[{field:"gyscode",type:"supplier-query",label:"\u4F9B\u5E94\u5546",labelWidth:"120px",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546"}]},{field:"brand_id",type:"brand-query",label:"\u652F\u6301\u54C1\u724C",labelWidth:"120px",placeholder:"\u8BF7\u9009\u62E9\u652F\u6301\u54C1\u724C",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u652F\u6301\u54C1\u724C"}]},{field:"long",type:"radio",label:"\u6388\u6743\u7C7B\u578B",options:p,rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u6388\u6743\u7C7B\u578B"}]},{field:"create_timer",type:"date_picker",label:"\u6388\u6743\u65F6\u95F4",otherOptions:{type:"daterange",startProp:"starttime",endProp:"endtime",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"brand_book",type:"img_upload",label:"\u6388\u6743\u56FE\u7247",options:p,rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u6388\u6743\u56FE\u7247"}],otherOptions:{size:"small"}},{field:"remark",type:"input",label:"\u5907\u6CE8",placeholder:"\u5907\u6CE8",otherOptions:{type:"textarea"}}]},O=E({__name:"index",setup(e){const n="supplierBrand",u=t(null);t(!1),t(!1),t({});const g={pageSearchHook:()=>P(void 0,void 0,i),pageModalHook:l=>k(l)};return(l,I)=>{const m=s("PageContainer"),h=s("PageAuth");return B(),C(h,{pageName:n},{default:y(()=>[x(m,{hooks:g,"content-config":r(R),"search-config":r(i),"modal-config":r(q),"get-content-ref":F=>u.value=F},null,8,["content-config","search-config","modal-config","get-content-ref"])]),_:1})}}});var V=b(O,[["__file","C:/Users/63107/Desktop/projects/purchase-vue3/src/views/serviceParam/supplierBrand/index.vue"]]);export{V as default};
|