index-742e5532.js 7.5 KB

1
  1. import{d as q,h as M,r as d,e as R,k as G,P as j,o as m,c as E,f as e,w as o,a,Q as f,m as _,v as g,q as y,F as J,U as L,z as W,A as X,_ as Z,B as $,C as ee,D as ae,G as re,H as le,__tla as te}from"./index-2eab2d23.js";import{_ as oe,__tla as se}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ce,__tla as ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as ie,__tla as ue}from"./formatTime-41155543.js";import{d as pe}from"./download-20922b56.js";import{_ as de,O as Q,__tla as me}from"./OrderPercentageForm.vue_vue_type_script_setup_true_lang-d85e9783.js";import{u as fe,__tla as _e}from"./useMessage-171aa63e.js";import{__tla as Pe}from"./index-cc63c3c4.js";import{__tla as ge}from"./el-card-c558f0ec.js";import{__tla as ye}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let K,he=Promise.all([(()=>{try{return te}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ye}catch{}})()]).then(async()=>{K=q({name:"OrderPercentage",__name:"index",setup(be){const w=fe(),{t:D}=M(),v=d(!0),V=d([]),U=d(0),r=R({pageNo:1,pageSize:10,grossProfitPerc:void 0,grossProfitUserQuotaPerc:void 0,grossProfitAncestorQuotaPerc:void 0,grossProfitBonusQuotaPerc:void 0,grossProfitPlatformQuotaPerc:void 0,divideIntoPerc:void 0,createTime:[]}),k=d(),x=d(!1),P=async()=>{v.value=!0;try{const i=await Q.getOrderPercentagePage(r);V.value=i.list,U.value=i.total}finally{v.value=!1}},c=()=>{r.pageNo=1,P()},I=()=>{k.value.resetFields(),c()},C=d(),A=(i,l)=>{C.value.open(i,l)},S=async()=>{try{await w.exportConfirm(),x.value=!0;const i=await Q.exportOrderPercentage(r);pe.excel(i,"\u79EF\u5206\u76F8\u5173\u8BA1\u7B97\u6D6E\u52A8\u767E\u5206\u6BD4\u8BBE\u7F6E.xls")}catch{}finally{x.value=!1}};return G(()=>{P()}),(i,l)=>{const u=L,n=W,T=X,h=Z,p=$,z=ee,B=ce,s=ae,N=re,O=oe,b=j("hasPermi"),Y=le;return m(),E(J,null,[e(B,null,{default:o(()=>[e(z,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:o(()=>[e(n,{label:"\u6BDB\u5229 = \u6210\u672C * 0.38... (\u63A8\u5E7F\u8D39\u7528)",prop:"grossProfitPerc"},{default:o(()=>[e(u,{modelValue:a(r).grossProfitPerc,"onUpdate:modelValue":l[0]||(l[0]=t=>a(r).grossProfitPerc=t),placeholder:"\u8BF7\u8F93\u5165\u6BDB\u5229 = \u6210\u672C * 0.38... (\u63A8\u5E7F\u8D39\u7528)",clearable:"",onKeyup:f(c,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u63A8\u5E7F-\u7528\u6237\u989D\u5EA6 \u767E\u5206\u6BD4",prop:"grossProfitUserQuotaPerc"},{default:o(()=>[e(u,{modelValue:a(r).grossProfitUserQuotaPerc,"onUpdate:modelValue":l[1]||(l[1]=t=>a(r).grossProfitUserQuotaPerc=t),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u7528\u6237\u989D\u5EA6 \u767E\u5206\u6BD4",clearable:"",onKeyup:f(c,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u63A8\u5E7F-\u63A8\u8350\u4EBA\u989D\u5EA6 \u767E\u5206\u6BD4",prop:"grossProfitAncestorQuotaPerc"},{default:o(()=>[e(u,{modelValue:a(r).grossProfitAncestorQuotaPerc,"onUpdate:modelValue":l[2]||(l[2]=t=>a(r).grossProfitAncestorQuotaPerc=t),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u63A8\u8350\u4EBA\u989D\u5EA6 \u767E\u5206\u6BD4",clearable:"",onKeyup:f(c,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u63A8\u5E7F-\u5408\u8D62\u5956\u989D\u5EA6(\u6D6E\u52A8) \u767E\u5206\u6BD4",prop:"grossProfitBonusQuotaPerc"},{default:o(()=>[e(u,{modelValue:a(r).grossProfitBonusQuotaPerc,"onUpdate:modelValue":l[3]||(l[3]=t=>a(r).grossProfitBonusQuotaPerc=t),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u5408\u8D62\u5956\u989D\u5EA6(\u6D6E\u52A8) \u767E\u5206\u6BD4",clearable:"",onKeyup:f(c,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u63A8\u5E7F-\u5E73\u53F0\u5206\u6210\u989D\u5EA6(\u6D6E\u52A8) \u767E\u5206\u6BD4",prop:"grossProfitPlatformQuotaPerc"},{default:o(()=>[e(u,{modelValue:a(r).grossProfitPlatformQuotaPerc,"onUpdate:modelValue":l[4]||(l[4]=t=>a(r).grossProfitPlatformQuotaPerc=t),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u5E73\u53F0\u5206\u6210\u989D\u5EA6(\u6D6E\u52A8) \u767E\u5206\u6BD4",clearable:"",onKeyup:f(c,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5206\u6210\u767E\u5206\u6BD4",prop:"divideIntoPerc"},{default:o(()=>[e(u,{modelValue:a(r).divideIntoPerc,"onUpdate:modelValue":l[5]||(l[5]=t=>a(r).divideIntoPerc=t),placeholder:"\u8BF7\u8F93\u5165\u5206\u6210\u767E\u5206\u6BD4",clearable:"",onKeyup:f(c,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[e(T,{modelValue:a(r).createTime,"onUpdate:modelValue":l[6]||(l[6]=t=>a(r).createTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(n,null,{default:o(()=>[e(p,{onClick:c},{default:o(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),e(p,{onClick:I},{default:o(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),g((m(),y(p,{type:"primary",plain:"",onClick:l[7]||(l[7]=t=>A("create"))},{default:o(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),_(" \u65B0\u589E ")]),_:1})),[[b,["distri:order-percentage:create"]]]),g((m(),y(p,{type:"success",plain:"",onClick:S,loading:a(x)},{default:o(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[b,["distri:order-percentage:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(B,null,{default:o(()=>[g((m(),y(N,{data:a(V),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[e(s,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"id"}),e(s,{label:"\u6BDB\u5229 = \u6210\u672C * 0.38... (\u63A8\u5E7F\u8D39\u7528)",align:"center",prop:"grossProfitPerc"}),e(s,{label:"\u63A8\u5E7F-\u7528\u6237\u989D\u5EA6 \u767E\u5206\u6BD4",align:"center",prop:"grossProfitUserQuotaPerc"}),e(s,{label:"\u63A8\u5E7F-\u63A8\u8350\u4EBA\u989D\u5EA6 \u767E\u5206\u6BD4",align:"center",prop:"grossProfitAncestorQuotaPerc"}),e(s,{label:"\u63A8\u5E7F-\u5408\u8D62\u5956\u989D\u5EA6(\u6D6E\u52A8) \u767E\u5206\u6BD4",align:"center",prop:"grossProfitBonusQuotaPerc"}),e(s,{label:"\u63A8\u5E7F-\u5E73\u53F0\u5206\u6210\u989D\u5EA6(\u6D6E\u52A8) \u767E\u5206\u6BD4",align:"center",prop:"grossProfitPlatformQuotaPerc"}),e(s,{label:"\u5206\u6210\u767E\u5206\u6BD4",align:"center",prop:"divideIntoPerc"}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(ie),width:"180px"},null,8,["formatter"]),e(s,{label:"\u64CD\u4F5C",align:"center"},{default:o(t=>[g((m(),y(p,{link:"",type:"primary",onClick:F=>A("update",t.row.id)},{default:o(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["distri:order-percentage:update"]]]),g((m(),y(p,{link:"",type:"danger",onClick:F=>(async H=>{try{await w.delConfirm(),await Q.deleteOrderPercentage(H),w.success(D("common.delSuccess")),await P()}catch{}})(t.row.id)},{default:o(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["distri:order-percentage:delete"]]])]),_:1})]),_:1},8,["data"])),[[Y,a(v)]]),e(O,{total:a(U),page:a(r).pageNo,"onUpdate:page":l[8]||(l[8]=t=>a(r).pageNo=t),limit:a(r).pageSize,"onUpdate:limit":l[9]||(l[9]=t=>a(r).pageSize=t),onPagination:P},null,8,["total","page","limit"])]),_:1}),e(de,{ref_key:"formRef",ref:C,onSuccess:P},null,512)],64)}}})});export{he as __tla,K as default};