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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from "~/service/Api"
export default {
mixins: [commonFunctions],
methods: {
initKehuzh() {
this.accountList = [];
this.operations = [];
var params = {
objinr: this.model.nidgrp.rec.inr,
objtyp: 'NID',
};
const loading = this.loading('正在请求数据');
Api.post(`/business/nitenc/defaultKehuzhN1000`, params).then(res => {
if (res.respCode == SUCCESS) {
console.log(res.data);
if (res.data.length > 0) {
for (let i = 0; i < res.data.length; i++) {
this.accountList.push({
value: res.data[i].acc,
label: res.data[i].acc,
cur: res.data[i].cur
});
}
}
console.log(this.accountList);
if (this.accountList.length >= 1) {
this.model.dnfenc.kehuzh = this.accountList[0].value;
}
} else {
this.$message.error("保证金账户初始化异常:" + res.respMsg);
}
});
loading.close();
},
qicujeGet() {
if (!this.model.dnfenc.yewudh) {
this.$message.warning("请先点击查询按钮,再进行操作!");
return;
}
let params = {
DATA: {
"yewudh": this.model.dnfenc.yewudh
},
header: {
"jiaoym": "C017"
}
};
const loading = this.loading('正在请求数据');
Api.post(`/public/jk/C017`, params).then(res => {
if (res.header.code == 'AAAAAAA') {
console.log(res.DATA);
this.model.dnfenc.qicuje = '0';
if (res.DATA.lstC017.length > 0) {
this.model.dnfenc.qicuje = res.DATA.lstC017[0].qcunje;
}
} else {
this.$notify.error({
title: '错误',
message: '起存金额Get失败,原因:' + res.header.description
});
}
loading.close();
});
},
onDnfencGet() {
let params = {
DATA: {
// "zhangh": "35000124690005001" //this.model.dnfenc.kehuzh
"zhangh": this.model.dnfenc.kehuzh.trim() //"35000124690005001"
},
header: {
"jiaoym": "8023"
}
};
const loading = this.loading('正在请求数据');
this.operations = [];
Api.post(`/public/jk/8023`, params).then(res => {
if (res.header.code == 'AAAAAAA') {
console.log(res.DATA);
let operationsList = [];
this.model.dnfenc.yewudh = res.DATA.yewudh;
this.model.dnfenc.zhqucs = res.DATA.zhqucs;
this.model.dnfenc.zhhuye = res.DATA.zhhuye;
this.model.dnfenc.qixirq = res.DATA.qixirq;
this.model.dnfenc.jiluzt = res.DATA.jiluzt;
this.model.dnfenc.kehzwm = res.DATA.kehzwm;//客户中文名
this.model.dnfenc.zhngjg = res.DATA.zhngjg;//账务机构号
this.model.dnfenc.jixiff = res.DATA.jixiff;//计息方法
this.model.dnfenc.lilvbh = res.DATA.lilvbh;//利率编号
this.model.dnfenc.jishuu = res.DATA.jishuu;//积数
this.model.dnfenc.zuidje = res.DATA.zuidje;//最低金额
this.model.dnfenc.zuigje = res.DATA.zuigje;//最高金额
this.model.dnfenc.kaihrq = res.DATA.kaihrq;//开户日期
this.model.dnfenc.lilvll = res.DATA.lilvll;//利率
this.model.dnfenc.kemucc = res.DATA.kemucc;//科目存储
this.model.dnfenc.huobdh = res.DATA.huobdh;//货币代号
this.model.dnfenc.xiohrq = res.DATA.xiohrq;//销户日期
this.model.dnfenc.ljzqje = res.DATA.ljzqje;//累计支取金额
this.model.dnfenc.kaihje = res.DATA.kaihje;//开户金额
this.model.dnfenc.cunkzl = res.DATA.cunkzl;//存款种类
this.model.dnfenc.cunqii = res.DATA.cunqii;//存期
this.model.dnfenc.daoqrq = res.DATA.daoqrq;//到期日
this.model.dnfenc.youhll = res.DATA.youhll;//优惠利率
this.model.dnfenc.zdzczh = res.DATA.zdzczh;//自动转存账户
this.model.dnfenc.stm8023 = [];
this.model.dnfenc.stm8023.push(res.DATA);
this.$set(this.codes,'tableData',this.model.dnfenc.stm8023);
let dflg;
let len = this.model.dnfenc.kehuzh.trim().length;
if (len == 17) {
dflg = this.model.dnfenc.kehuzh.slice(6, 8)
}
if (len == 21) {
dflg = this.model.dnfenc.kehuzh.slice(10, 12)
}
if (this.model.dnfenc.kehuzh.slice(0, 3) == "ZMQ" || this.model.dnfenc.kehuzh.slice(0, 3) == "NRA") {
dflg = this.model.dnfenc.kehuzh.slice(9, 11)
}
switch (dflg) {
case "81":
operationsList.push({
label: "保证金账户冻结",
value: "A"
});
operationsList.push({
label: "保证金账户解冻",
value: "B"
});
operationsList.push({
label: "定期转活期",
value: "C"
});
break;
default:
operationsList.push({
label: "保证金账户冻结",
value: "A"
});
operationsList.push({
label: "保证金账户解冻",
value: "B"
});
}
this.$set(this.codes, 'operationsList', operationsList);
} else {
this.$notify.error({
title: '错误',
message: '保证金账户查询失败,原因:' + res.header.description
});
}
});
loading.close();
},
},
};