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
|
| <template>
| <el-popover placement="right-start" title="运单记录" width="600" trigger="click" @show="loadData">
| <template slot="reference">
| <slot name="content"></slot>
| </template>
| <el-table :data="tableData" size="mini" style="width: 100%;height:400px; overflow: auto;">
| <el-table-column prop="wayBillCode" label="运单编号" width="130">
| </el-table-column>
| <el-table-column prop="portName" label="口岸" width="100">
| </el-table-column>
| <el-table-column prop="expressCorpName" label="国内快递" width="80">
| </el-table-column>
| <el-table-column prop="orderStatus" label="订单状态" width="150">
| </el-table-column>
| <el-table-column prop="billingAddress" label="发件地址">
| </el-table-column>
| <!-- <el-table-column prop="CreateDate" label="创建时间" width="135">
| </el-table-column> -->
| </el-table>
| </el-popover>
| </template>
|
| <script>
| export default {
| name: 'receive-waybillhistory',
| components: {},
| props: {
| // 加载参数
| loadOptions: {
| type: Object,
| required: true,
| default: () => {
| return {
| projectName: '',
| tableView: '',
| idField: '',
| sortName: '',
| where: '',
| pageIndex: 1,
| pageSize: 100
| }
| }
| },
| // 查询条件
| where: {
| type: String,
| required: true
| }
| },
| data() {
| return {
| tableData: []
| }
| },
| created() {},
| methods: {
| loadData() {
| var the = this
| debugger
| var url = '/api/common/loadDataList'
| the.initLoading = true
| var params = this.loadOptions
| 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>
|
| <style scoped>
| .el-popover {
| height: 200px;
| overflow: auto;
| }
| </style>
|
|