index-4a818747.js 7.4 KB

1
  1. import{d as G,y as L,e as $,r as d,P as ee,x as ae,b as le,a4 as oe,o as P,c as te,B as V,f as e,A as t,a,aD as re,a5 as i,k as v,v as se,D as p,C as A,aH as ne,E as m,dA as b,O as Q,F as pe,Q as ce,J as ue,a9 as ie,V as de,I as me,H as fe,K as _e,W as ge,X as ye,Y as he,Z as be,_ as xe,__tla as we}from"./index-286756b9.js";import{_ as Pe,__tla as Ve}from"./ContentWrap-83998678.js";import{_ as ve,__tla as Qe}from"./index-ed6c67a8.js";import{d as Ue,__tla as Ce}from"./formatTime-83e416ef.js";import{d as ke}from"./download-20922b56.js";import{O as Ne,a as z,__tla as Ke}from"./OrderCalcForm-70c8eab8.js";import{u as Ae,__tla as ze}from"./useMessage-084b1e70.js";import{__tla as De}from"./el-card-d3d5a654.js";import{__tla as Ye}from"./index-fb47c94c.js";import{__tla as Oe}from"./Dialog-4c2de357.js";let D,Te=Promise.all([(()=>{try{return we}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Oe}catch{}})()]).then(async()=>{let U,C;U={class:"search-one"},C={style:{"text-align":"right"},class:"search-input"},D=xe(G({name:"OrderCalc",__name:"index",setup(He){const Y=L(),O=$(()=>Y.getMobile),g=d(!1),T=()=>{g.value=!g.value},H=()=>{g.value=!1},M=Ae();ee();const x=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),y=async()=>{x.value=!0;try{const f=await z.getOrderCalcPage(o);k.value=f.list,N.value=f.total}finally{x.value=!1}},s=()=>{o.pageNo=1,y()},S=()=>{K.value.resetFields(),s()},F=d(),I=async()=>{try{await M.exportConfirm(),w.value=!0;const f=await z.exportOrderCalc(o);ke.excel(f,"\u8BA2\u5355\u4EA7\u751F\u6570\u636E\u8BA1\u7B97.xls")}catch{}finally{w.value=!1}};return le(()=>{y()}),(f,r)=>{const h=ce,_=ue,u=ie,c=de,q=me,B=fe,R=_e,Z=ge,n=ye,E=he,J=ve,W=Pe,X=oe("hasPermi"),j=be;return P(),te(pe,null,[V("div",U,[V("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(h,{class:"mr-5px",icon:"ep:search",onClick:s,style:{cursor:"pointer"}})]),append:t(()=>[e(_,{icon:a(re),onClick:T},null,8,["icon"])]),_:1},8,["modelValue"])])]),v(V("div",{class:"searchMore",style:ne({width:a(O)?"88.7%":"96%"})},[e(Z,{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(q,{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(B,null,{default:t(()=>[e(c,null,{default:t(()=>[e(_,{onClick:H},{default:t(()=>[p(" \u6536\u8D77 ")]),_:1}),e(_,{onClick:s},{default:t(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22 ")]),_:1}),e(_,{onClick:S},{default:t(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E ")]),_:1}),v((P(),A(_,{type:"success",plain:"",onClick:I,loading:a(w)},{default:t(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[X,["distri:integral:export"]]])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[se,a(g)]]),e(W,{style:{"margin-top":"10px",padding:"10px"}},{default:t(()=>[v((P(),A(E,{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(Ue),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[j,a(x)]]),e(J,{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:y},null,8,["total","page","limit"])]),_:1}),e(Ne,{ref_key:"formRef",ref:F,onSuccess:y},null,512)],64)}}}),[["__scopeId","data-v-a03f0095"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/ordercalc/index.vue"]])});export{Te as __tla,D as default};