index-c6802873.js 7.5 KB

1
  1. import{d as L,y as Z,e as $,r as i,P as ee,x as ae,b as le,a3 as oe,o as V,c as te,B as w,f as e,A as t,a,aC as re,a4 as d,k as v,v as se,D as p,C as A,aG as ne,E as m,dx as b,O as Q,F as pe,_ as ce,J as ue,a8 as de,U as ie,I as me,H as _e,K as fe,V as ge,W as he,X as ye,Y as be,__tla as Pe}from"./index-6e0fa573.js";import{_ as xe,__tla as Ve}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{_ as we,__tla as ve}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{d as Qe,__tla as Ue}from"./formatTime-4408999b.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-278b4820.js";import{u as Ke,__tla as Ae}from"./useMessage-7f978edc.js";import{_ as De}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Oe}from"./el-card-f999e23d.js";import{__tla as Te}from"./index-99c4720b.js";import{__tla as Ye}from"./Dialog-a16029e3.js";let O,Fe=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 Oe}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"},O=De(L({name:"OrderCalc",__name:"index",setup(He){const T=Z(),Y=$(()=>T.getMobile),g=i(!1),F=()=>{g.value=!g.value},H=()=>{g.value=!1},M=Ke();ee();const P=i(!0),k=i([]),N=i(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=i(),x=i(!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()},S=()=>{K.value.resetFields(),s()},z=i(),E=async()=>{try{await M.exportConfirm(),x.value=!0;const _=await D.exportOrderCalc(o);Ce.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=de,c=ie,R=me,B=_e,I=fe,X=ge,n=he,q=ye,G=we,J=xe,W=oe("hasPermi"),j=be;return V(),te(pe,null,[w("div",U,[w("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:d(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:F},null,8,["icon"])]),_:1},8,["modelValue"])])]),v(w("div",{class:"searchMore",style:ne({width:a(Y)?"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:d(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:d(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:d(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:d(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:d(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:d(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:d(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(R,{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(I,null,{default:t(()=>[e(B,null,{default:t(()=>[e(c,null,{default:t(()=>[e(f,{onClick:H},{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:S},{default:t(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E ")]),_:1}),v((V(),A(f,{type:"success",plain:"",onClick:E,loading:a(x)},{default:t(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[W,["distri:integral:export"]]])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[se,a(g)]]),e(J,{style:{"margin-top":"10px",padding:"10px"}},{default:t(()=>[v((V(),A(q,{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"])),[[j,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:z,onSuccess:h},null,512)],64)}}}),[["__scopeId","data-v-0dea697e"]])});export{Fe as __tla,O as default};