diff --git a/src/views/app/bill/current/current.vue b/src/views/app/bill/current/current.vue index 5bd95ac..c6a2730 100644 --- a/src/views/app/bill/current/current.vue +++ b/src/views/app/bill/current/current.vue @@ -103,12 +103,12 @@ }, { title: "商家营收", - key: "BigDecimal", + key: "totalSettlementAmount", width: 150, }, { title: "平台营收", - key: "BigDecimal", + key: "totalCommissionAmount", width: 150, }, { @@ -118,21 +118,7 @@ align: "center", fixed: "right", render: (h, params) => { - return h("div", [h( - "a", { - on: { - click: () => { - this.findAllRecord(params.row); - }, - }, - }, - "确认" - ), - h("Divider", { - props: { - type: "vertical", - }, - }), + return h("div", [ h( "a", { on: { @@ -142,22 +128,7 @@ }, }, "详情" - ), - h("Divider", { - props: { - type: "vertical", - }, - }), - h( - "a", { - on: { - click: () => { - this.edit(params.row); - }, - }, - }, - "修改" - ), + ) ]); }, }, @@ -178,13 +149,11 @@ }, getTime() { const date = new Date(); - // 获取年份 + // 减去一天的毫秒数(24 * 60 * 60 * 1000),但更稳妥的方式是用 setDate + date.setDate(date.getDate() - 1); const year = date.getFullYear(); - // 获取月份 (getMonth 返回 0-11,所以需要 +1),并补齐0 const month = String(date.getMonth() + 1).padStart(2, '0'); - // 获取日 (getDate),并补齐0 const day = String(date.getDate()).padStart(2, '0'); - // 拼接格式:年-月-日 时:分:秒 return `${year}-${month}-${day}`; }, allSelect(v){