order-dispose-page.vue
2.93 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
<template>
<div class="row-launch">
<table class="itable itable-td-long-text itable-thead-13px">
<thead>
<tr v-on:click="tips()">
<th class="w50">序号{{cname}}</th>
<th class="w80">采购订单</th>
<th class="w70">是否优先</th>
<th class="w100">要求到货日期</th>
<th class="w110">采购单位</th>
<th class="w70">数据类型</th>
<th class="w70">操作人</th>
<th class="w60">品规数</th>
<th class="w60">备注</th>
<th class="w90">操作</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="20">暂无符合条件的记录{{med.supplierpos.length}}</td>
</tr>
<tr v-for="trpo in med.supplierpos">
<td>{{$index+1}}</td>
<td>{{trpo.billno}}</td>
<td>{{trpo.firstflag}}</td>
<td>{{trpo.planenddate}}</td>
<td>{{med.name}}</td>
<td>{{trpo.billtype | billtype}}</td>
<td>{{trpo.operatername}}</td>
<td>{{trpo.countsum}}</td>
<td>{{trpo.memo}}</td>
<td>
<a v-on:click="doTRSupplierBySupplier(trpo.guid)" class="btn-d btn-d-activate">受理</a>
<a v-on:click="goTRDetail(trpo.billno)" class="btn-d btn-d-activate">明细</a>
</td>
</tr>
</tbody>
</table>
<div class="pagination page-line">
<pagination
@page-change="getTrsupplierByMed(med)"
:page-no.sync="med.search.page"
:total-pages.sync="med.search.totalPages"></pagination>
</div>
</div>
</template>
<!--资料变更单-->
<script >
module.exports = {
// 传递的属性值
props: {
// 业务资料类型
medguid: {
type: String,
default: ''
},
},
data: function () {
return {
med:{},
};
},
methods: {
// 获得头部信息
getTrsupplierByMed: function () {
var self = this;
var medguid = self.medguid;
// 设置每组的查询条件
self.med.search = {
search_EQ_billstate:'P02',
search_EQ_medguid:medguid,
pageSize: 5,
page: 1,
totalPages: 0,
};
Ajax.get('/trpo/listTrsupplier', self.med.search)
.then(function (response){
var data = response.data;
if(data.errorCode==0){
// 给每一个对象的属性赋值
// 1.医院的采购订单List
self.med.supplierpos = data.data.list;
// 2.查询分页数据
self.med.search.pageno = data.pageno;
self.med.search.totalPages = data.totalPages;
self.med.search.total = data.total;
}else{
return ;
}
});
},
},
created: function(){
this.getTrsupplierByMed();
}
};
</script>