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