1 |
- import{d as q,z as M,r as c,f as j,x as G,Q as J,o as m,c as Q,i as e,w as r,a as l,R as f,m as y,B as _,j as g,F as E,V as L,G as O,p as W,_ as X,q as Z,H as $,I as ee,J as ae,K as le}from"./index-03f5d926.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang-e704331b.js";import{_ as te}from"./ContentWrap.vue_vue_type_script_setup_true_lang-48ba01fb.js";import{d as re}from"./formatTime-f911d219.js";import{d as de}from"./download-20922b56.js";import{_ as ne,D as v}from"./DailyBillForm.vue_vue_type_script_setup_true_lang-bc53208e.js";import{u as pe}from"./useMessage-2e335eca.js";import"./index-662200b7.js";import"./el-card-0ac51a7f.js";import"./Dialog-05c67d4e.js";import"./_plugin-vue_export-helper-1b428a4d.js";const ie=q({name:"DailyBill",__name:"index",setup(ue){const w=pe(),{t:T}=M(),x=c(!0),D=c([]),C=c(0),o=j({pageNo:1,pageSize:10,amount:void 0,receivedAmount:void 0,orderCount:void 0,shopId:void 0,merchantId:void 0,orderIds:void 0,createTime:[]}),k=c(),V=c(!1),b=async()=>{x.value=!0;try{const i=await v.getDailyBillPage(o);D.value=i.list,C.value=i.total}finally{x.value=!1}},n=()=>{o.pageNo=1,b()},A=()=>{k.value.resetFields(),n()},U=c(),K=(i,a)=>{U.value.open(i,a)},S=async()=>{try{await w.exportConfirm(),V.value=!0;const i=await v.exportDailyBill(o);de.excel(i,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{V.value=!1}};return G(()=>{b()}),(i,a)=>{const u=L,p=O,z=W,h=X,s=Z,N=$,B=te,d=ee,Y=ae,F=oe,I=J("hasPermi"),H=le;return m(),Q(E,null,[e(B,null,{default:r(()=>[e(N,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:r(()=>[e(p,{label:"\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",prop:"amount"},{default:r(()=>[e(u,{modelValue:l(o).amount,"onUpdate:modelValue":a[0]||(a[0]=t=>l(o).amount=t),placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",clearable:"",onKeyup:f(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u786E\u6536\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",prop:"receivedAmount"},{default:r(()=>[e(u,{modelValue:l(o).receivedAmount,"onUpdate:modelValue":a[1]||(a[1]=t=>l(o).receivedAmount=t),placeholder:"\u8BF7\u8F93\u5165\u786E\u6536\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",clearable:"",onKeyup:f(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8BA2\u5355\u6570\uFF0C\u9ED8\u8BA4\u4E3A0",prop:"orderCount"},{default:r(()=>[e(u,{modelValue:l(o).orderCount,"onUpdate:modelValue":a[2]||(a[2]=t=>l(o).orderCount=t),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u6570\uFF0C\u9ED8\u8BA4\u4E3A0",clearable:"",onKeyup:f(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5E97\u94FAID",prop:"shopId"},{default:r(()=>[e(u,{modelValue:l(o).shopId,"onUpdate:modelValue":a[3]||(a[3]=t=>l(o).shopId=t),placeholder:"\u8BF7\u8F93\u5165\u5E97\u94FAID",clearable:"",onKeyup:f(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5546\u6237ID",prop:"merchantId"},{default:r(()=>[e(u,{modelValue:l(o).merchantId,"onUpdate:modelValue":a[4]||(a[4]=t=>l(o).merchantId=t),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237ID",clearable:"",onKeyup:f(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8BA2\u5355ID\u5217\u8868\uFF0C\u6587\u672C\u7C7B\u578B",prop:"orderIds"},{default:r(()=>[e(u,{modelValue:l(o).orderIds,"onUpdate:modelValue":a[5]||(a[5]=t=>l(o).orderIds=t),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355ID\u5217\u8868\uFF0C\u6587\u672C\u7C7B\u578B",clearable:"",onKeyup:f(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[e(z,{modelValue:l(o).createTime,"onUpdate:modelValue":a[6]||(a[6]=t=>l(o).createTime=t),"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(p,null,{default:r(()=>[e(s,{onClick:n},{default:r(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),a[10]||(a[10]=y(" \u641C\u7D22"))]),_:1}),e(s,{onClick:A},{default:r(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),a[11]||(a[11]=y(" \u91CD\u7F6E"))]),_:1}),_((m(),g(s,{type:"primary",plain:"",onClick:a[7]||(a[7]=t=>K("create"))},{default:r(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),a[12]||(a[12]=y(" \u65B0\u589E "))]),_:1})),[[I,["trade:daily-bill:create"]]]),_((m(),g(s,{type:"success",plain:"",onClick:S,loading:l(V)},{default:r(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),a[13]||(a[13]=y(" \u5BFC\u51FA "))]),_:1},8,["loading"])),[[I,["trade:daily-bill:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(B,null,{default:r(()=>[_((m(),g(Y,{data:l(D),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[e(d,{label:"\u8D26\u5355\u7F16\u53F7",align:"center",prop:"id"}),e(d,{label:"\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",align:"center",prop:"amount"}),e(d,{label:"\u786E\u6536\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",align:"center",prop:"receivedAmount"}),e(d,{label:"\u8BA2\u5355\u6570\uFF0C\u9ED8\u8BA4\u4E3A0",align:"center",prop:"orderCount"}),e(d,{label:"\u5E97\u94FAID",align:"center",prop:"shopId"}),e(d,{label:"\u5546\u6237ID",align:"center",prop:"merchantId"}),e(d,{label:"\u8BA2\u5355ID\u5217\u8868\uFF0C\u6587\u672C\u7C7B\u578B",align:"center",prop:"orderIds"}),e(d,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(re),width:"180px"},null,8,["formatter"]),e(d,{label:"\u64CD\u4F5C",align:"center"},{default:r(t=>[_((m(),g(s,{link:"",type:"primary",onClick:P=>K("update",t.row.id)},{default:r(()=>a[14]||(a[14]=[y(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[I,["trade:daily-bill:update"]]]),_((m(),g(s,{link:"",type:"danger",onClick:P=>(async R=>{try{await w.delConfirm(),await v.deleteDailyBill(R),w.success(T("common.delSuccess")),await b()}catch{}})(t.row.id)},{default:r(()=>a[15]||(a[15]=[y(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[I,["trade:daily-bill:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,l(x)]]),e(F,{total:l(C),page:l(o).pageNo,"onUpdate:page":a[8]||(a[8]=t=>l(o).pageNo=t),limit:l(o).pageSize,"onUpdate:limit":a[9]||(a[9]=t=>l(o).pageSize=t),onPagination:b},null,8,["total","page","limit"])]),_:1}),e(ne,{ref_key:"formRef",ref:U,onSuccess:b},null,512)],64)}}});export{ie as default};
|