distribution-detail.vue
3.62 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
<style>
.province .address-select{
width: 370px !important;
background-color: #fff !important;
}
.province .address-select select{
width: 100px !important;
}
</style>
<template>
<div class="container resource close-left-menu" style="min-height: 490px;">
<div class="pop-banner clearfix">
<!-- <div class="operate-btns">
<a class="fbtn fb-add" v-show="!addrow"
v-on:click="addrow=!addrow">添加</a>
<a href="javascript:void(0)" class="fbtn fb-save"
v-show="addrow" v-on:click="add()">保存</a>
<a href="javascript:;" class="fbtn fb-refresh"
v-on:click="getData('refresh')">刷新</a>
</div>
--> <h3 class="current-module">配送企业清单</h3>
</div>
<!--purchase-plan start-->
<div class="purchase-plan">
<div class="pd-form fast-search-form">
<div class="group-row">
<div class="form-group">
<label for="cn1" class="label label-6em">配送商名称</label>
<div class="control w370">
<input type="text" value="" id="cn1" v-model="search.name">
</div>
</div>
</div>
<div class="group-row">
<div class="form-group">
<label for="cn3" class="label">省份</label>
<div class="control province">
<city :province.sync="search.province"
:city.sync="search.city"
:area.sync="search.area"
:readonly="readonlyFlag"
></city>
</div>
</div>
</div>
<div class="group-row t-right">
<button class="fast-search-form-btn btn-d btn-d-lg btn-d-activate btn-d-circle"
v-on:click="getData('search')"
>查 询</button>
</div>
</div>
<table class="itable itable-bordertop itable-thead-13px">
<thead>
<tr>
<th class="w50">序号</th>
<th class="w100">企业名称</th>
<th class="w100">地区</th>
<th class="w70">联系人</th>
<th class="w90">联系电话</th>
<th class="w140">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="item in list">
<td>{{$index+1}}</td>
<td>{{item.Name}}</td>
<td>{{item.Address}}</td>
<td>{{item.LinkMan}}</td>
<td>{{item.ContactTel}}</td>
<td>
<a class="btn-d btn-d-activate" v-link="{path:'/distributionlDetailList/'+item.GUID}">企业详情</a>
<a class="btn-d btn-d-activate" v-link="{path:'/distributionDetailRelation/'+item.GUID}">委托配送关系</a>
</td>
</tr>
</tbody>
</table>
<pagination
@page-change="getData"
:class="['m-20-0']"
:page-no.sync="search.page"
:total-pages.sync="search.totalPages">
<!-- <em class="page">明细条目数【3】</em> -->
</pagination>
</div>
<!--purchase-plan end-->
</div>
</template>
<script>
module.exports={
data:function(){
return {
list:[
],search:{
pageSize: 20, page: 1, totalPages: 0,name:'',
province:'',city:'',area:''
},
}
},methods:{
getData:function(casetxt){//请求数据
if(casetxt=='search'){
this.search.page=1;
}
Ajax.post('/api/goverment_distribution_findDistributionList',
this.search).then(function(res){
var result=res.data;
if(result.data){
this.$set('list',result.data.list);
this.search.totalPages=result.data.totalPages
}
}.bind(this))
}
},route:{
activate:function(){
this.getData();
}
}
}
</script>