1 |
- import{d as W,X as Z,J as $,r as d,h as ee,e as ae,k as le,P as oe,o as V,c as te,g as x,f as e,w as t,a,dD as re,Q as i,v,a3 as se,m as p,q as A,at as ne,t as m,as as b,e8 as Q,F as pe,_ as ce,B as ue,U as ie,z as de,A as me,E as _e,i as fe,C as ge,D as he,G as ye,H as be,__tla as Pe}from"./index-73e02845.js";import{_ as we,__tla as Ve}from"./ContentWrap.vue_vue_type_script_setup_true_lang-589371a6.js";import{_ as xe,__tla as ve}from"./index.vue_vue_type_script_setup_true_lang-2534a34f.js";import{d as Qe,__tla as Ue}from"./formatTime-5f7a2be1.js";import{d as Ce}from"./download-20922b56.js";import{_ as ke,O as D,__tla as Ne}from"./OrderCalcForm.vue_vue_type_script_setup_true_lang-8a7058fe.js";import{u as Ke,__tla as Ae}from"./useMessage-1490ad82.js";import{_ as De}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Se}from"./el-card-ada74e7d.js";import{__tla as Te}from"./index-c1a24aa4.js";import{__tla as ze}from"./Dialog-1f04d1b7.js";let S,He=Promise.all([(()=>{try{return Pe}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return ze}catch{}})()]).then(async()=>{let U,C;U={class:"search-one"},C={style:{"text-align":"right"},class:"search-input"},S=De(W({name:"OrderCalc",__name:"index",setup(Me){const T=Z(),z=$(()=>T.getMobile),g=d(!1),H=()=>{g.value=!g.value},M=()=>{g.value=!1},O=Ke();ee();const P=d(!0),k=d([]),N=d(0),o=ae({pageNo:1,pageSize:10,orderNo:void 0,name:void 0,price:void 0,cost:void 0,grossProfitUserQuota:void 0,grossProfitAncestorQuota:void 0,grossProfitPlatformQuota:void 0,createTime:[]}),K=d(),w=d(!1),h=async()=>{P.value=!0;try{const _=await D.getOrderCalcPage(o);k.value=_.list,N.value=_.total}finally{P.value=!1}},s=()=>{o.pageNo=1,h()},Y=()=>{K.value.resetFields(),s()},q=d(),F=async()=>{try{await O.exportConfirm(),w.value=!0;const _=await D.exportOrderCalc(o);Ce.excel(_,"\u8BA2\u5355\u4EA7\u751F\u6570\u636E\u8BA1\u7B97.xls")}catch{}finally{w.value=!1}};return le(()=>{h()}),(_,r)=>{const y=ce,f=ue,u=ie,c=de,J=me,E=_e,R=fe,X=ge,n=he,B=ye,G=xe,I=we,j=oe("hasPermi"),L=be;return V(),te(pe,null,[x("div",U,[x("div",C,[e(u,{modelValue:a(o).name,"onUpdate:modelValue":r[0]||(r[0]=l=>a(o).name=l),placeholder:"\u7528\u6237\u6635\u79F0",clearable:"",onKeyup:i(s,["enter"])},{suffix:t(()=>[e(y,{class:"mr-5px",icon:"ep:search",onClick:s,style:{cursor:"pointer"}})]),append:t(()=>[e(f,{icon:a(re),onClick:H},null,8,["icon"])]),_:1},8,["modelValue"])])]),v(x("div",{class:"searchMore",style:ne({width:a(z)?"88.7%":"96%"})},[e(X,{class:"-mb-15px",model:a(o),ref_key:"queryFormRef",ref:K,inline:!0,"label-width":"100px"},{default:t(()=>[e(c,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderNo"},{default:t(()=>[e(u,{modelValue:a(o).orderNo,"onUpdate:modelValue":r[1]||(r[1]=l=>a(o).orderNo=l),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7528\u6237\u6635\u79F0",prop:"name"},{default:t(()=>[e(u,{modelValue:a(o).name,"onUpdate:modelValue":r[2]||(r[2]=l=>a(o).name=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u552E\u4EF7",prop:"price"},{default:t(()=>[e(u,{modelValue:a(o).price,"onUpdate:modelValue":r[3]||(r[3]=l=>a(o).price=l),placeholder:"\u8BF7\u8F93\u5165\u552E\u4EF7",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u6210\u672C",prop:"cost"},{default:t(()=>[e(u,{modelValue:a(o).cost,"onUpdate:modelValue":r[4]||(r[4]=l=>a(o).cost=l),placeholder:"\u8BF7\u8F93\u5165\u6210\u672C",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7528\u6237\u81EA\u5F97",prop:"grossProfitUserQuota"},{default:t(()=>[e(u,{modelValue:a(o).grossProfitUserQuota,"onUpdate:modelValue":r[5]||(r[5]=l=>a(o).grossProfitUserQuota=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u81EA\u5F97",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u76F4\u63A8\u5956",prop:"grossProfitAncestorQuota"},{default:t(()=>[e(u,{modelValue:a(o).grossProfitAncestorQuota,"onUpdate:modelValue":r[6]||(r[6]=l=>a(o).grossProfitAncestorQuota=l),placeholder:"\u76F4\u63A8\u5956",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u5E73\u53F0\u670D\u52A1\u8D39",prop:"grossProfitPlatformQuota"},{default:t(()=>[e(u,{modelValue:a(o).grossProfitPlatformQuota,"onUpdate:modelValue":r[7]||(r[7]=l=>a(o).grossProfitPlatformQuota=l),placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u670D\u52A1\u8D39",clearable:"",onKeyup:i(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(J,{modelValue:a(o).createTime,"onUpdate:modelValue":r[8]||(r[8]=l=>a(o).createTime=l),"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(R,null,{default:t(()=>[e(E,null,{default:t(()=>[e(c,null,{default:t(()=>[e(f,{onClick:M},{default:t(()=>[p(" \u6536\u8D77 ")]),_:1}),e(f,{onClick:s},{default:t(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22 ")]),_:1}),e(f,{onClick:Y},{default:t(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E ")]),_:1}),v((V(),A(f,{type:"success",plain:"",onClick:F,loading:a(w)},{default:t(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[j,["distri:integral:export"]]])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[se,a(g)]]),e(I,{style:{"margin-top":"10px",padding:"10px"}},{default:t(()=>[v((V(),A(B,{data:a(k),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u8BA2\u5355\u7F16\u53F7",align:"center",prop:"orderNo",width:"200"}),e(n,{label:"\u7528\u6237\u6635\u79F0",align:"center",prop:"nickName"}),e(n,{label:"\u9500\u552E\u4EF7",align:"center",prop:"price"},{default:t(l=>[p(" \uFFE5"+m(a(b)(l.row.price)),1)]),_:1}),e(n,{label:"\u6210\u672C",align:"center",prop:"cost"},{default:t(l=>[p(" \uFFE5"+m(a(b)(l.row.cost)),1)]),_:1}),e(n,{label:"\u63A8\u5E7F\u8D39",align:"center",prop:"cost"},{default:t(l=>[p(" \uFFE5"+m(a(b)(l.row.price)-a(b)(l.row.cost)),1)]),_:1}),e(n,{label:"\u5546\u54C1\u6570\u91CF",align:"center",prop:"productCount"}),e(n,{label:"\u7528\u6237\u81EA\u5F97",align:"center",prop:"grossProfitUserQuota"},{default:t(l=>[p(m(a(Q)(l.row.grossProfitUserQuota)),1)]),_:1}),e(n,{label:"\u76F4\u63A8\u5956",align:"center",prop:"grossProfitAncestorQuota"},{default:t(l=>[p(m(a(Q)(l.row.grossProfitAncestorQuota)),1)]),_:1}),e(n,{label:"\u5E73\u53F0\u670D\u52A1\u8D39",align:"center",prop:"grossProfitPlatformQuota"},{default:t(l=>[p(m(a(Q)(l.row.grossProfitPlatformQuota)),1)]),_:1}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(Qe),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[L,a(P)]]),e(G,{total:a(N),page:a(o).pageNo,"onUpdate:page":r[9]||(r[9]=l=>a(o).pageNo=l),limit:a(o).pageSize,"onUpdate:limit":r[10]||(r[10]=l=>a(o).pageSize=l),onPagination:h},null,8,["total","page","limit"])]),_:1}),e(ke,{ref_key:"formRef",ref:q,onSuccess:h},null,512)],64)}}}),[["__scopeId","data-v-0dea697e"]])});export{He as __tla,S as default};
|