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
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: {
//索赔编号
queryOwnref() {
let params = this.model.gcdgrp.rec
if (!this.model.gcdgrp.ben.pts.ptainr) {
return
}
let ptainr = this.model.gcdgrp.ben.pts.ptainr;
const loading = this.loading();
Api.post(`/business/ref/gcd?ptaInr=${ptainr}`, params).then(res => {
if (res.respCode == SUCCESS) {
loading.close();
this.model.gcdgrp.rec.ownref = res.data;
}
}).catch(() => {
loading.close();
});
},
setIfnxtflg() {
this.ifnxtflg = "X";
},
calcPrb() {
let prbref = this.model.gcdgrp.prb.pts.ref;
switch (this.model.gcdgrp.rec.docprbrol) {
case "BEN":
Utils.copyValueFromVoData(this.model.gcdgrp.prb.pts, this.model.gidgrp.ben.pts);
this.model.gcdgrp.prb.pts.rol = "PRB";
if (prbref == "" && this.model.gcdgrp.ben.pts.ref != "") {
this.model.gcdgrp.prb.pts.ref = this.model.gcdgrp.ben.pts.ref;
} else {
this.model.gcdgrp.prb.pts.ref = prbref;
}
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
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 "ISS":
Utils.copyValueFromVoData(this.model.gcdgrp.oth.pts, this.model.gidgrp.iss.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;
}
},
// gcdgrp.rec.nam
// gcdgrp.cbs.max.cur
// gcdgrp.cbs.max.amt
// gcdgrp.apl.pts.nam
calcName() {
this.model.gcdgrp.rec.nam = this.model.gcdgrp.cbs.max.cur + " " + this.model.gcdgrp.cbs.max.amt + " " + this.model.gcdgrp.apl.pts.nam;
this.model.gcdgrp.rec.nam = this.model.gcdgrp.rec.nam.slice(0, 40);
},
clearPresentdet() {
if (this.model.gcdgrp.rec.demstat != "INCP") {
this.model.gcdgrp.blk.presentdet = "";
}
},
setNxtflg() {
if (this.model.extpay == true) {
this.model.nxtflg = "FP";
} else {
this.model.nxtflg = "SN";
}
},
setNewexpdatAndNxtflg() {
if (this.model.extpay !== true) {
this.model.gcdgrp.rec.newexpdat = "";
this.model.gcdgrp.rec.expludat = "";
}
if (this.ifnxtflg === "") {
this.setNxtflg();
}
}
}
}