石广澎
2023-11-29 20913c80c3f5fc8e533cb92b90e6f20bcd68e032
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
  <win-md :title="setting.title" @close="close" :width="'1200px'">
    <el-row :gutter="20" style="margin-bottom: 20px" type="flex" align="middle">
      <el-col :span="6">盘点单号:{{ formData.businessFormCode }}</el-col>
      <el-col :span="6">盘点任务:{{ formData.businessFormName }}</el-col>
      <el-col :span="6">盘点仓库:{{ formData.warehouseName }}</el-col>
    </el-row>
    <el-table v-loading="loading" :data="formData.formInventoryGoodsList" height="500" :stripe="true" class="the-table">
      <el-table-column prop="goodsTemplateName" label="物品名称"> </el-table-column>
      <el-table-column prop="baseGoodsModelsName" label="型号" align="center"> </el-table-column>
      <el-table-column prop="inventoryCount" label="应盘数量" align="center"></el-table-column>
      <el-table-column prop="realNum" label="实盘数量" align="center"></el-table-column>
      <el-table-column prop="states" label="状态" align="center">
        <template slot-scope="{row}">
          {{row.inventoryResultType}}
        </template>
      </el-table-column>
    </el-table>
  </win-md>
</template>
 
<script>
import winMd from '@/components/win/win-md';
import myButton from '@/components/myButton/myButton';
import {inventoryDetail} from '@/api/stock/inventory';
 
export default {
  components: { winMd, myButton },
  props: {
    setting: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      loading: false,
      formData: {
        businessFormCode: '2023080812',
        businessFormName: '2023年9月盘点单',
        warehouseName: '开封市仓库',
        formInventoryGoodsList: [],
      },
    };
  },
  created() {
    inventoryDetail({ id: this.setting.id }).then((res) => {
      this.formData = res;
    });
  },
  methods: {
    close() {
      this.$emit('close');
    },
    save() {},
  },
};
</script>
 
<style></style>