added-purchase-sub.vue
2.49 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
<template>
<div class="container resource close-left-menu contaNEW" style="min-height: 809px;">
<div class="order-orderlist-view clearfix purchase-add-plan">
<div class="purchase-add-plan" v-show="fifthStep">
<div class="pap-time-tit">
医院采购计划单【{{hospitalBillTypeVO.billno}}】提交成功!
</div>
<div class="stepok-tips" v-if="hospitalBillTypeVO.supplierBillInfoList.length > 0">
<strong>供应商采购订单</strong>
<div v-for="trsupplierpo in hospitalBillTypeVO.supplierBillInfoList">
<p>【{{trsupplierpo.billno}}】已发送给供应商【{{trsupplierpo.suppliername}}】,品规数【{{trsupplierpo.countsum}}】</p>
</div>
</div>
<div class="stepok-tips" v-if="hospitalBillTypeVO.distrbBillInfoList.length > 0">
<strong>配送商采购订单</strong>
<div v-for="trdistrbpo in hospitalBillTypeVO.distrbBillInfoList">
<p>【{{trdistrbpo.billno}}】已发送给配送商【{{trdistrbpo.distrbname}}】,品规数【{{trsupplierpo.countsum}}】</p>
</div>
</div>
<div class="stepok-tips mt-0">
</div>
<div class="step-btn mt-0">
<a v-link='{"path":"/addedPurchase"}'>继续制订计划单</a>
<a @click='next' style='margin-left:0px;'>查询订单详情</a>
</div>
</div>
</div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
fifthStep:true,
hospitalBillTypeVO:[]
};
},
methods: {
// 检索的商品 选中
goodsData:function(item){
var self = this;
var state=false;
if(self.TrmList==0){
self.TrmList.push(item);
}else{
for(var a=0;a<self.TrmList.length;a++){
if(self.TrmList[a].guid==item.guid){
layer.msg('该商品已存在');
state=true;
}
}
if(!state){
self.TrmList.push(item);
}
}
self.supplierS.push(item.supplierGuid);
self.unique(self.supplierS);
self.$set('state',false)
self.$set('medname','');
self.$set('goodsList',[]);
},
next:function(){
window.sessionStorage.setItem('billno',this.hospitalBillTypeVO.billno);
this.$router.go({'path': '/purchasePlan'});
}
},
route: {
data: function() {
this.$set('hospitalBillTypeVO',JSON.parse(localStorage.getItem('TrmedplanArr')));
},
},
};
</script>