1 |
- import{d as q,h as M,r as m,e as R,k as G,P as j,o as f,c as E,f as e,w as t,a,Q as d,m as _,v as y,q as P,F as J,U as L,z as W,A as X,_ as Z,B as $,C as ee,D as ae,G as le,H as oe,__tla as re}from"./index-2eab2d23.js";import{_ as te,__tla as se}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as pe,__tla as ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as ne,__tla as de}from"./formatTime-41155543.js";import{d as ce}from"./download-20922b56.js";import{_ as ie,O as Q,__tla as me}from"./OrderCalcForm.vue_vue_type_script_setup_true_lang-5d090410.js";import{u as fe,__tla as _e}from"./useMessage-171aa63e.js";import{__tla as ge}from"./index-cc63c3c4.js";import{__tla as ye}from"./el-card-c558f0ec.js";import{__tla as Pe}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let D,be=Promise.all([(()=>{try{return re}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return Pe}catch{}})()]).then(async()=>{D=q({name:"OrderCalc",__name:"index",setup(he){const V=fe(),{t:I}=M(),w=m(!0),v=m([]),U=m(0),l=R({pageNo:1,pageSize:10,orderNo:void 0,userId:void 0,price:void 0,cost:void 0,grossProfit:void 0,grossProfitUserQuota:void 0,grossProfitAncestorQuota:void 0,grossProfitBonusQuota:void 0,grossProfitPlatformQuota:void 0,createTime:[]}),C=m(),x=m(!1),g=async()=>{w.value=!0;try{const c=await Q.getOrderCalcPage(l);v.value=c.list,U.value=c.total}finally{w.value=!1}},p=()=>{l.pageNo=1,g()},A=()=>{C.value.resetFields(),p()},k=m(),K=(c,o)=>{k.value.open(c,o)},B=async()=>{try{await V.exportConfirm(),x.value=!0;const c=await Q.exportOrderCalc(l);ce.excel(c,"\u8BA2\u5355\u4EA7\u751F\u6570\u636E\u8BA1\u7B97.xls")}catch{}finally{x.value=!1}};return G(()=>{g()}),(c,o)=>{const n=L,u=W,O=X,b=Z,i=$,S=ee,N=pe,s=ae,T=le,z=te,h=j("hasPermi"),Y=oe;return f(),E(J,null,[e(N,null,{default:t(()=>[e(S,{class:"-mb-15px",model:a(l),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:t(()=>[e(u,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderNo"},{default:t(()=>[e(n,{modelValue:a(l).orderNo,"onUpdate:modelValue":o[0]||(o[0]=r=>a(l).orderNo=r),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u7528\u6237ID",prop:"userId"},{default:t(()=>[e(n,{modelValue:a(l).userId,"onUpdate:modelValue":o[1]||(o[1]=r=>a(l).userId=r),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u552E\u4EF7",prop:"price"},{default:t(()=>[e(n,{modelValue:a(l).price,"onUpdate:modelValue":o[2]||(o[2]=r=>a(l).price=r),placeholder:"\u8BF7\u8F93\u5165\u552E\u4EF7",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u6210\u672C",prop:"cost"},{default:t(()=>[e(n,{modelValue:a(l).cost,"onUpdate:modelValue":o[3]||(o[3]=r=>a(l).cost=r),placeholder:"\u8BF7\u8F93\u5165\u6210\u672C",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u6BDB\u5229 = \u6210\u672C * 0.38... (\u63A8\u5E7F\u8D39\u7528)",prop:"grossProfit"},{default:t(()=>[e(n,{modelValue:a(l).grossProfit,"onUpdate:modelValue":o[4]||(o[4]=r=>a(l).grossProfit=r),placeholder:"\u8BF7\u8F93\u5165\u6BDB\u5229 = \u6210\u672C * 0.38... (\u63A8\u5E7F\u8D39\u7528)",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u63A8\u5E7F-\u7528\u6237\u989D\u5EA6",prop:"grossProfitUserQuota"},{default:t(()=>[e(n,{modelValue:a(l).grossProfitUserQuota,"onUpdate:modelValue":o[5]||(o[5]=r=>a(l).grossProfitUserQuota=r),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u7528\u6237\u989D\u5EA6",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u63A8\u5E7F-\u63A8\u8350\u4EBA\u989D\u5EA6",prop:"grossProfitAncestorQuota"},{default:t(()=>[e(n,{modelValue:a(l).grossProfitAncestorQuota,"onUpdate:modelValue":o[6]||(o[6]=r=>a(l).grossProfitAncestorQuota=r),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u63A8\u8350\u4EBA\u989D\u5EA6",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u63A8\u5E7F-\u5408\u8D62\u5956\u989D\u5EA6(\u6D6E\u52A8)",prop:"grossProfitBonusQuota"},{default:t(()=>[e(n,{modelValue:a(l).grossProfitBonusQuota,"onUpdate:modelValue":o[7]||(o[7]=r=>a(l).grossProfitBonusQuota=r),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u5408\u8D62\u5956\u989D\u5EA6(\u6D6E\u52A8)",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u63A8\u5E7F-\u5E73\u53F0\u5206\u6210\u989D\u5EA6(\u6D6E\u52A8)",prop:"grossProfitPlatformQuota"},{default:t(()=>[e(n,{modelValue:a(l).grossProfitPlatformQuota,"onUpdate:modelValue":o[8]||(o[8]=r=>a(l).grossProfitPlatformQuota=r),placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F-\u5E73\u53F0\u5206\u6210\u989D\u5EA6(\u6D6E\u52A8)",clearable:"",onKeyup:d(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(O,{modelValue:a(l).createTime,"onUpdate:modelValue":o[9]||(o[9]=r=>a(l).createTime=r),"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(u,null,{default:t(()=>[e(i,{onClick:p},{default:t(()=>[e(b,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),e(i,{onClick:A},{default:t(()=>[e(b,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),y((f(),P(i,{type:"primary",plain:"",onClick:o[10]||(o[10]=r=>K("create"))},{default:t(()=>[e(b,{icon:"ep:plus",class:"mr-5px"}),_(" \u65B0\u589E ")]),_:1})),[[h,["distri:order-calc:create"]]]),y((f(),P(i,{type:"success",plain:"",onClick:B,loading:a(x)},{default:t(()=>[e(b,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["distri:order-calc:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(N,null,{default:t(()=>[y((f(),P(T,{data:a(v),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(s,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"id"}),e(s,{label:"\u8BA2\u5355\u7F16\u53F7",align:"center",prop:"orderNo"}),e(s,{label:"\u7528\u6237ID",align:"center",prop:"userId"}),e(s,{label:"\u552E\u4EF7",align:"center",prop:"price"}),e(s,{label:"\u6210\u672C",align:"center",prop:"cost"}),e(s,{label:"\u6BDB\u5229 = \u6210\u672C * 0.38... (\u63A8\u5E7F\u8D39\u7528)",align:"center",prop:"grossProfit"}),e(s,{label:"\u63A8\u5E7F-\u7528\u6237\u989D\u5EA6",align:"center",prop:"grossProfitUserQuota"}),e(s,{label:"\u63A8\u5E7F-\u63A8\u8350\u4EBA\u989D\u5EA6",align:"center",prop:"grossProfitAncestorQuota"}),e(s,{label:"\u63A8\u5E7F-\u5408\u8D62\u5956\u989D\u5EA6(\u6D6E\u52A8)",align:"center",prop:"grossProfitBonusQuota"}),e(s,{label:"\u63A8\u5E7F-\u5E73\u53F0\u5206\u6210\u989D\u5EA6(\u6D6E\u52A8)",align:"center",prop:"grossProfitPlatformQuota"}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(ne),width:"180px"},null,8,["formatter"]),e(s,{label:"\u64CD\u4F5C",align:"center"},{default:t(r=>[y((f(),P(i,{link:"",type:"primary",onClick:F=>K("update",r.row.id)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["distri:order-calc:update"]]]),y((f(),P(i,{link:"",type:"danger",onClick:F=>(async H=>{try{await V.delConfirm(),await Q.deleteOrderCalc(H),V.success(I("common.delSuccess")),await g()}catch{}})(r.row.id)},{default:t(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["distri:order-calc:delete"]]])]),_:1})]),_:1},8,["data"])),[[Y,a(w)]]),e(z,{total:a(U),page:a(l).pageNo,"onUpdate:page":o[11]||(o[11]=r=>a(l).pageNo=r),limit:a(l).pageSize,"onUpdate:limit":o[12]||(o[12]=r=>a(l).pageSize=r),onPagination:g},null,8,["total","page","limit"])]),_:1}),e(ie,{ref_key:"formRef",ref:k,onSuccess:g},null,512)],64)}}})});export{be as __tla,D as default};
|