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
|
| <template>
| <el-popover placement="top" title="占位详情" width="750" trigger="click" @show="loadData">
| <template slot="reference">
| <slot name="content"></slot>
| </template>
| <el-table :data="tableData" size="mini" style="width: 100%">
| <el-table-column prop="code" label="单据编号" width="120">
| </el-table-column>
| <el-table-column prop="storageName" label="仓库名称" width="90">
| </el-table-column>
| <el-table-column prop="positionName" label="货位名称" width="100">
| </el-table-column>
| <el-table-column prop="productCode" label="物料编号">
| </el-table-column>
| <el-table-column prop="placeholderStorage" label="占位量" width="60">
| </el-table-column>
| <el-table-column prop="orignHolderStorage" label="原始占位量" width="80">
| </el-table-column>
| <el-table-column prop="createDate" label="占位时间" width="135">
| <template slot-scope="{row}">
| {{ common.formatDate(row.createDate, "YYYY-MM-DD HH:mm:ss") }}
| </template>
| </el-table-column>
| </el-table>
| </el-popover>
| </template>
|
| <script>
| export default {
| name: 'receive-statusflow',
| 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
| debugger
| var url = '/api/common/loadDataList'
| the.initLoading = true
| var params = this.loadOptions
| the.where.className = '销售订单'
| params.where = the.where
| the.common.ajax(
| url,
| params,
| res => {
| the.common.showMsg(res)
| if (res.result) {
| the.tableData = res.data.rows
| }
| the.initLoading = false
| },
| true
| )
| }
| }
| }
| </script>
|
|