tianyi 1 week ago
parent
commit
3a365a177a
  1. 43
      src/views/app/bill/current/current.vue

43
src/views/app/bill/current/current.vue

@ -103,12 +103,12 @@
}, },
{ {
title: "商家营收", title: "商家营收",
key: "BigDecimal", key: "totalSettlementAmount",
width: 150, width: 150,
}, },
{ {
title: "平台营收", title: "平台营收",
key: "BigDecimal", key: "totalCommissionAmount",
width: 150, width: 150,
}, },
{ {
@ -118,21 +118,7 @@
align: "center", align: "center",
fixed: "right", fixed: "right",
render: (h, params) => { render: (h, params) => {
return h("div", [h( return h("div", [
"a", {
on: {
click: () => {
this.findAllRecord(params.row);
},
},
},
"确认"
),
h("Divider", {
props: {
type: "vertical",
},
}),
h( h(
"a", { "a", {
on: { on: {
@ -142,22 +128,7 @@
}, },
}, },
"详情" "详情"
), )
h("Divider", {
props: {
type: "vertical",
},
}),
h(
"a", {
on: {
click: () => {
this.edit(params.row);
},
},
},
"修改"
),
]); ]);
}, },
}, },
@ -178,13 +149,11 @@
}, },
getTime() { getTime() {
const date = new Date(); const date = new Date();
// // 24 * 60 * 60 * 1000 setDate
date.setDate(date.getDate() - 1);
const year = date.getFullYear(); const year = date.getFullYear();
// (getMonth 0-11 +1)0
const month = String(date.getMonth() + 1).padStart(2, '0'); const month = String(date.getMonth() + 1).padStart(2, '0');
// (getDate)0
const day = String(date.getDate()).padStart(2, '0'); const day = String(date.getDate()).padStart(2, '0');
// -- ::
return `${year}-${month}-${day}`; return `${year}-${month}-${day}`;
}, },
allSelect(v){ allSelect(v){

Loading…
Cancel
Save