From 7f177f5915a1dbdf8ad6cd840b4d7408b9f3598f Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期六, 14 九月 2024 15:16:41 +0800 Subject: [PATCH] Merge branch 'master' of http://47.96.225.205:8888/r/operation_pc-v2 --- pages/order/list/_id.vue | 17 ++++++++++++++++- pages/marketing/coupon/activity/index.vue | 1 + pages/marketing/point-mall/goods.vue | 2 +- static/print/custom.css | 4 ++++ components/order/print-list.vue | 14 ++++++-------- pages/order/list/index.vue | 2 +- 6 files changed, 29 insertions(+), 11 deletions(-) diff --git a/components/order/print-list.vue b/components/order/print-list.vue index 2d44324..2e270b4 100644 --- a/components/order/print-list.vue +++ b/components/order/print-list.vue @@ -34,7 +34,7 @@ </el-row> <el-table-print :data="item.items" - :summary-method="getSummaries" + :summary-method="getSummaries.bind(this, item.totalAmount)" show-summary border style="width: 100%" @@ -107,17 +107,15 @@ } } }, - getSummaries(param) { + getSummaries(totalAmount, param) { const { columns, data } = param const sums = [] columns.forEach((column, index) => { if (index === 0) { - sums[index] = - '总扎数合计:' + - data.reduce((total, current) => { - total += current.num - return total - }, 0) + sums[index] = `总扎数合计:${data.reduce((total, current) => { + total += current.num + return total + }, 0)} 总金额:¥${totalAmount}` } else { sums[index] = '' } diff --git a/pages/marketing/coupon/activity/index.vue b/pages/marketing/coupon/activity/index.vue index a8dd591..f534a7a 100644 --- a/pages/marketing/coupon/activity/index.vue +++ b/pages/marketing/coupon/activity/index.vue @@ -57,6 +57,7 @@ { label: '已领取总数', prop: 'getNum', minWidth: 150 }, { label: '剩余未领取总数', prop: 'unGetNum', minWidth: 150 }, { label: '状态', prop: 'statusName', minWidth: 120 }, + { label: '领取渠道', prop: 'getTypeName', minWidth: 120 }, { label: '操作人', prop: 'createByName', minWidth: 120 }, ], // 页面上要到分,后端要传到秒 diff --git a/pages/marketing/point-mall/goods.vue b/pages/marketing/point-mall/goods.vue index e854756..3c7e751 100644 --- a/pages/marketing/point-mall/goods.vue +++ b/pages/marketing/point-mall/goods.vue @@ -126,7 +126,7 @@ extraButtons: [ { text: '上架', - show: (row) => row.status === 'I', + show: (row) => row.status === 'I' && row.stock>0, atClick: async (row) => { try { await this.$elBusUtil.confirm('确定要上架吗?') diff --git a/pages/order/list/_id.vue b/pages/order/list/_id.vue index 7c548e7..dcac6cf 100644 --- a/pages/order/list/_id.vue +++ b/pages/order/list/_id.vue @@ -113,10 +113,25 @@ min-width="120" ></el-table-column> <el-table-column - label="质检扣款(元)" + label="质检退款(元)" prop="deductAmount" min-width="120" ></el-table-column> + <el-table-column + label="补货扣款(元)" + prop="replaceFee" + min-width="120" + ></el-table-column> + <el-table-column + label="降级扣款(元)" + prop="checkFee" + min-width="120" + ></el-table-column> + <el-table-column + label="缺货扣款(元)" + prop="lackFeeSupplier" + min-width="120" + ></el-table-column> <el-table-column label="质检审核" width="220" fixed="right"> <template #default="{ row }"> <el-button diff --git a/pages/order/list/index.vue b/pages/order/list/index.vue index b82b88e..e370220 100644 --- a/pages/order/list/index.vue +++ b/pages/order/list/index.vue @@ -200,7 +200,7 @@ for (const tr of trs) { const tds = tr.querySelectorAll('td') if (tds && tds.length > 0) { - tds[0].colSpan = 7 + tds[0].colSpan = 8 tds[0].style.textAlign = 'center' } } diff --git a/static/print/custom.css b/static/print/custom.css index e339bfa..3d4deb3 100644 --- a/static/print/custom.css +++ b/static/print/custom.css @@ -18,6 +18,10 @@ font-weight: bold; } +.el-table__footer-wrapper td .cell { + white-space: pre-wrap; +} + .area-text { text-align: center; font-size: 18px; -- Gitblit v1.9.3