ShipOutHeaderList.vue
4.74 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<template>
<a-card :bordered="false">
<!-- 查询区域-END -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="收件人">
<a-input placeholder="请输入收件人" v-model="queryParam.recipient"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="手机号">
<a-input placeholder="请输入手机号" v-model="queryParam.phone"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="queryReceipt" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- 操作按钮区域 -->
<!-- table区域-begin -->
<a-card
style="margin-top: 24px"
:bordered="false"
title="标准列表">
<a-list size="large" :pagination="false">
<a-list-item :key="index" v-for="(item, index) in data">
<a-list-item-meta :description="item.description">
<!-- <a-avatar slot="avatar" size="large" shape="square" :src="item.avatar"/>-->
<a slot="title">{{ item.title }}</a>
</a-list-item-meta>
<div slot="actions">
<a @click="toFinsh(item.id)">点击收货</a>
</div>
<div class="list-content">
<div class="list-content-item">
<span>快递单号</span>
<p>{{ item.code }}</p>
</div>
<div class="list-content-item">
<span>收件人</span>
<p>{{ item.owner }}</p>
</div>
<div class="list-content-item">
<span>发货时间</span>
<p>{{ item.startAt }}</p>
</div>
<!-- <div class="list-content-item">-->
<!-- <a-progress :percent="item.progress.value" :status="!item.progress.status ? null : item.progress.status" style="width: 180px" />-->
<!-- </div>-->
</div>
</a-list-item>
</a-list>
</a-card>
<ship-details-list ref="deailsFrom"></ship-details-list>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import HeadInfo from '@/components/tools/HeadInfo'
import {getAction} from '@/api/manage'
import ShipDetailsList from "./modules/ShipDetailsList";
export default {
name: 'ShipHeaderList',
mixins:[JeecgListMixin],
components: {
ShipDetailsList, HeadInfo
},
data () {
return {
description: '发货到现场头表管理页面',
expandedRowKeys: [],
url: {
list: "/ship/shipHeader/list",
delete: "1",
finish: "/ship/shipHeader/finish",
deleteBatch: "/ship/shipHeader/deleteBatch",
exportXlsUrl: "/ship/shipHeader/exportXls",
importExcelUrl: "ship/shipHeader/importExcel",
},
data:[],
dictOptions:{},
superFieldList:[],
}
},
created() {
},
computed: {
},
methods: {
toFinsh(headId){
this.$refs.deailsFrom.edit(headId)
},
initDictConfig(){
},
queryReceipt(){
let params = {
'recipient': this.queryParam.recipient,
'phone': this.queryParam.phone
}
this.loading = true;
getAction(this.url.list, params).then((res) => {
if (res.success) {
this.data=[];
var json={};
for (let i in res.result.records) {
json.title = res.result.records[i].workno;
json.id = res.result.records[i].id;
//json.avatar = res.result.records[i].name;
json.owner = res.result.records[i].recipient;
json.startAt = res.result.records[i].arrivalTime;
json.code = res.result.records[i].code;
this.data.push(json);
}
}
if(res.code===510){
this.$message.warning(res.message)
}
this.loading = false;
})
}
}
}
</script>
<style lang="less" scoped>
.ant-avatar-lg {
width: 48px;
height: 48px;
line-height: 48px;
}
.list-content-item {
color: rgba(0, 0, 0, .45);
display: inline-block;
vertical-align: middle;
font-size: 14px;
margin-left: 40px;
span {
line-height: 20px;
}
p {
margin-top: 4px;
margin-bottom: 0;
line-height: 22px;
}
}
</style>