haoyahui
2023-11-16 94de1745b4b69eeeb1ac8c5d3508ce87258afc25
admin-web/src/views/stock/accessStock/outbound/detail.vue
@@ -17,28 +17,28 @@
    <el-row :gutter="20" style="margin-top: 20px">
      <el-col :span="8">
        <span>创建人:</span>
        <span>{{ detail.buyerName }}</span>
        <span>{{ detail.operatorName }}</span>
      </el-col>
      <el-col :span="8">
        <span>出库时间:</span>
        <span>{{ detail.incomeTime | formatTime }}</span>
        <span>{{ detail.dealTime | formatTime }}</span>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top: 20px">
    <el-row v-if="detail.procureDoc" :gutter="20" style="margin-top: 20px">
      <el-col class="img-row" :span="24">
        <span>出库手续:</span>
        <div class="img-box"></div>
      </el-col>
    </el-row>
    <div class="goods-card" v-for="(goodsItem, goodsIndex) in detail.procureGoods" :key="goodsIndex">
    <div class="goods-card" v-for="(goodsItem, goodsIndex) in detail.fromOutputGoods" :key="goodsIndex">
      <el-row :gutter="20">
        <el-col :span="8">
          <span>物品分类:</span>
          <span>{{ goodsItem.baseCategoryName }}</span>
          <span>{{ goodsItem.categoryName }}</span>
        </el-col>
        <el-col :span="8">
          <span>物品名称:</span>
          <span>{{ goodsItem.goodsTemplateName }}</span>
          <span>{{ goodsItem.goodsName }}</span>
        </el-col>
      </el-row>
      <el-table :data="goodsItem.models" :stripe="true" style="margin-top: 20px">
@@ -67,7 +67,7 @@
  </win-md>
</template>
<script>
import { procureDetail } from '@/api/stock/procure/purchaseOrder';
import { outputDetail } from '@/api/stock/accessStock';
import winMd from '@/components/win/win-md';
import * as DateFormatter from '@/utils/DateFormatter';
@@ -83,15 +83,14 @@
  data() {
    return {
      detail: {
        baseCategoryName: '',
        categoryName: '',
        businessFormCode: '',
        goodsTemplateName: '',
        goodsName: '',
        agencyId: '',
        agencyName: '',
        states: '',
        createName: '',
        time: '',
        procureGoods: [{}, {}],
        fromOutputGoods: [],
      },
    };
  },
@@ -102,12 +101,14 @@
    },
  },
  created() {
    procureDetail({ id: this.setting.id }).then((res) => {
    outputDetail({ id: this.setting.id }).then((res) => {
      this.detail = res;
    });
  },
  methods: {
    close() {},
    close() {
      this.$emit('close')
    },
  },
};
</script>