cy
2023-11-22 a7a6b5d7ed7b6e5b96866b24fd1cb7ba3dcc19d1
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: {