From 9834dbff448908d2008d8c52a2544aad00c099b1 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期三, 22 十一月 2023 17:34:26 +0800 Subject: [PATCH] 库存盘点, 异常明细,报废管理 --- admin-web/src/views/stock/accessStock/outbound/detail.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/admin-web/src/views/stock/accessStock/outbound/detail.vue b/admin-web/src/views/stock/accessStock/outbound/detail.vue index 0e6994e..0cd965a 100644 --- a/admin-web/src/views/stock/accessStock/outbound/detail.vue +++ b/admin-web/src/views/stock/accessStock/outbound/detail.vue @@ -1,5 +1,5 @@ <template> - <win-md class="stock-detail" :title="setting.title" @close="close" :width="'800px'"> + <win-md class="stock-detail" :title="setting.title" @close="close" :width="'800px'" :loading="loading"> <el-row :gutter="20"> <el-col :span="8"> <span>鍑哄簱鍗曞彿锛�</span> @@ -59,7 +59,7 @@ </el-table-column> <el-table-column prop="counts" label="閲戦" align="center"> <template slot-scope="scope"> - {{ (scope.row.price * scope.row.counts).toFixed(2) }} + {{ scope.row.price * scope.row.counts | formatPrice}} </template> </el-table-column> </el-table> @@ -82,6 +82,7 @@ }, data() { return { + loading:true, detail: { categoryName: '', businessFormCode: '', @@ -99,10 +100,14 @@ if (!time) return; return DateFormatter.LongToDateTime(time); }, + formatPrice(price) { + return price / 100 + } }, created() { outputDetail({ id: this.setting.id }).then((res) => { this.detail = res; + this.loading = false }); }, methods: { -- Gitblit v1.9.1