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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
| <template>
| <el-popover placement="top" title="库存状况详情" width="780" trigger="click" @show="loadData">
| <template slot="reference">
| <slot name="content"></slot>
| </template>
| <el-table :data="tableData" size="mini" style="width: 100%" height="250">
| <el-table-column prop="className" label="类别" width="100">
| </el-table-column>
| <el-table-column prop="storageName" label="仓库名称" width="80">
| </el-table-column>
| <el-table-column prop="positionName" label="货位名称" width="100">
| </el-table-column>
| <el-table-column prop="productCode" label="物料编号" width="120">
| </el-table-column>
| <el-table-column prop="productStorage" label="库存量" width="70">
| </el-table-column>
| <el-table-column prop="produceDate" label="生产日期" width="80">
| <template slot-scope="{ row, col }">
| {{ common.formatDate(row["produceDate"], "YYYY-MM-DD") }}
| </template>
| </el-table-column>
| <el-table-column prop="purchasePrice" label="成本价" width="70">
| </el-table-column>
| <el-table-column prop="purchaseMoney" label="成本额" width="70">
| </el-table-column>
| <el-table-column prop="inStorageDate" label="入库时间" width="135">
| <template slot-scope="{ row, col }">
| {{ common.formatDate(row["inStorageDate"], "YYYY-MM-DD HH:mm:ss") }}
| </template>
| </el-table-column>
| <el-table-column prop="batchNumber" label="批次号" width="135">
| </el-table-column>
| </el-table>
| </el-popover>
| </template>
|
| <script>
| export default {
| name: "detailRole-flow",
| components: {},
| props: {
| // 加载参数
| loadOptions: {
| type: Object,
| required: true,
| default: () => {
| return {
| projectName: "",
| tableView: "",
| idField: "",
| sortName: "",
| where: "",
| pageIndex: 1,
| pageSize: 100
| };
| }
| },
| // 查询条件
| where: {
| type: Object,
| required: true
| }
| },
| data() {
| return {
| tableData: []
| };
| },
| created() {},
| methods: {
| loadData() {
| var the = this;
| var url = "/api/common/loadDataList";
| the.initLoading = true;
| var params = this.loadOptions;
| const userInfo = this.common.getUserInfo();
| params.where = Object.assign(this.where, {
| className: {
| operator: "not",
| value: "拣货下架"
| },
| userProduct_Id: userInfo.userProduct_Id,
| productStorage: {
| operator: ">",
| value: 0
| }
| });
| the.common.ajax(
| url,
| params,
| res => {
| the.common.showMsg(res);
| if (res.result) {
| the.tableData = res.data.rows;
| }
| the.initLoading = false;
| },
| true
| );
| }
| }
| };
| </script>
|
|