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
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils";
import Pts from '~/components/business/commonModel/Pts';
export default {
mixins: [commonFunctions],
methods: {
// 索赔余额根据索赔金额改变而改变
changeMaxAmt () {
this.model.gcdgrp.cbs.opn1.amt = this.model.gcdgrp.cbs.max.amt
},
setIfnxtflg(){
this.ifnxtflg="X";
},
// gcdgrp.rec.docprbrol
calcPrb() {
let prbref=this.model.gcdgrp.prb.pts.ref;
switch (this.model.gcdgrp.rec.docprbrol) {
case "ADV":
Utils.copyValueFromVoData(this.model.gcdgrp.prb.pts, this.model.gidgrp.adv.pts);
this.model.gcdgrp.prb.pts.rol = "PRB";
if(prbref==""&&this.model.gidgrp.adv.pts.ref!=""){
this.model.gcdgrp.prb.pts.ref=this.model.gidgrp.adv.pts.ref;
}
else{
this.model.gcdgrp.prb.pts.ref=prbref;
}
break;
case "BEN":
Utils.copyValueFromVoData(this.model.gcdgrp.prb.pts, this.model.gidgrp.ben.pts);
this.model.gcdgrp.prb.pts.rol = "PRB";
this.model.gcdgrp.prb.pts.ref=this.model.gcdgrp.ben.pts.ref;
break;
case "ISS":
Utils.copyValueFromVoData(this.model.gcdgrp.prb.pts, this.model.gidgrp.iss.pts);
this.model.gcdgrp.prb.pts.rol = "PRB";
if(prbref==""&&this.model.gidgrp.iss.pts.ref!=""){
this.model.gcdgrp.prb.pts.ref=this.model.gidgrp.iss.pts.ref;
}
else{
this.model.gcdgrp.prb.pts.ref=prbref;
}
break;
case "ATB":
Utils.copyValueFromVoData(this.model.gcdgrp.prb.pts, this.model.gidgrp.atb.pts);
this.model.gcdgrp.prb.pts.rol = "PRB";
if(prbref==""&&this.model.gidgrp.atb.pts.ref!=""){
this.model.gcdgrp.prb.pts.ref=this.model.gidgrp.atb.pts.ref;
}
else{
this.model.gcdgrp.prb.pts.ref=prbref;
}
break;
case "AT2":
Utils.copyValueFromVoData(this.model.gcdgrp.prb.pts, this.model.gidgrp.at2.pts);
this.model.gcdgrp.prb.pts.rol = "PRB";
if(prbref==""&&this.model.gidgrp.at2.pts.ref!=""){
this.model.gcdgrp.prb.pts.ref=this.model.gidgrp.at2.pts.ref;
}
else{
this.model.gcdgrp.prb.pts.ref=prbref;
}
break;
case "PRB":
this.model.gcdgrp.prb.pts = new Pts().data;
this.model.gcdgrp.prb.pts.rol = "PRB";
this.model.gcdgrp.prb.pts.ref=prbref;
break;
}
},
// gcdgrp.rec.payrol
// APC,BEC,CTR,CTC
calcOth() {
switch (this.model.gcdgrp.rec.payrol) {
case "APL":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.apl.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "APC":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.apc.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "BEC":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.bec.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "CTR":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.ctr.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "CTC":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.ctr.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "ADA":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.ada.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "ADV":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.adv.pts);
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
case "OTH":
this.model.gcdgrp.oth.pts = new Pts().data;
this.model.gcdgrp.oth.pts.rol = "OTH";
break;
}
},
},
};