index.js 7.23 KB
Newer Older
fukai committed
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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from "~/service/Api"

export default {
	mixins: [commonFunctions],
	methods: {				
		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(`/manager/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": this.model.dnfenc.kehuzh //"35000124690005001"
				},
				header: {
					"jiaoym": "8023"
				}
			};
			this.tableDataList = [];
			const loading = this.loading('正在请求数据');
			Api.post(`/public/jk/8023`, params).then(res => {
				if (res.header.code == 'AAAAAAA') {
					console.log(res.DATA);
					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.tableDataList.push(this.transTableData(res.DATA));
				} else {
					this.$notify.error({
						title: '错误',
						message: '保证金账户查询失败,原因:' + res.header.description
					});
				}
				loading.close();
			});

		},
		
		
		transTableData(tableData) {
			if (!tableData) {
				return;
			}
			let result = tableData;
			if (tableData.jiluzt) {
				result.jiluzt = this.tranSta(tableData.jiluzt);
			}
			if (tableData.kemucc) {
				result.kemucc = this.tranKemucc(tableData.kemucc);
			}
			if (tableData.lilvbh) {
				result.lilvbh = this.tranLilvbh(tableData.lilvbh);
			}
			if (tableData.cunqii) {
				result.cunqii = this.tranCunq(tableData.cunqii);
			}
			if (tableData.cunkzl) {
				result.cunkzl = this.tranCunkzl(tableData.cunkzl);
			}
			return result;
		},
		tranSta(jiluzt) {
			switch (jiluzt) {
				case "0":
					return "正常";
				case "1":
					return "销户";
				case "2":
					return "只收不付冻结";
				case "3":
					return "封闭冻结";
				case "4":
					return "删除";
				case "5":
					return "未使用";
				case "6":
					return "结清";
				case "7":
					return "打印";
				case "8":
					return "碰库";
				case "9":
					return "不动户";
				case "A":
					return "不动户转收益";
				case "B":
					return "死亡户";
				case "C":
					return "报案户";
				case "D":
					return "请与开户行接洽";
				case "E":
					return "不能在他行销记户";
				case "F":
					return "准客户";
				case "G":
					return "未复核";
				case "R":
					return "被当日冲正";
				case "S":
					return "被隔日冲正";
				case "J":
					return "禁用";
				case "Y":
					return "预销户";
				case "Z":
					return "质押冻结";
				case "T":
					return "凭证在途";
				default:
					return "";
			}
		},
		tranKemucc(kemucc) {
			switch (kemucc) {
				case "S":
					return "对私活期";
				case "C":
					return "对公活期";
				case "F":
					return "对私定期";
				case "E":
					return "对公定期";
				case "V":
					return "贷款";
				case "Q":
					return "欠息";
				case "I":
					return "内部账";
				case "O":
					return "表外账";
				case "T":
					return "拆借贴现投资账";
				case "Y":
					return "存放同业主文件";
				default:
					return "";
			}
		},
		tranLilvbh(lilvbh) {
			switch (lilvbh) {
				case "100":
					return "定活两便";
				case "101":
					return "活期储蓄存款";
				case "102":
					return "整存整取定期存款";
				case "103":
					return "零存整取";
				case "105":
					return "存本取息";
				case "106":
					return "通知存款";
				case "107":
					return "大面额定期";
				case "108":
					return "活期对公存款";
				case "109":
					return "公积金存款";
				default:
					return "";
			}
		},
		tranCunq(cunqii) {
			switch (cunqii) {
				case "200":
					return "活期";
				case "201":
					return "一天";
				case "207":
					return "七天";
				case "101":
					return "一月";
				case "103":
					return "三月";
				case "106":
					return "六月";
				case "109":
					return "九月";
				case "001":
					return "一年";
				case "002":
					return "二年";
				case "003":
					return "三年";
				case "005":
					return "五年";
				case "006":
					return "六年";
				case "008":
					return "八年";
				case "010":
					return "十年";
				case "020":
					return "二十年";
				case "000":
					return "自定义";
				default:
					return "";
			}
		},
		tranCunkzl(cunkzl) {
			switch (cunkzl) {
				case "00":
					return "普通活期";
				case "01":
					return "整存整取";
				case "02":
					return "定活两便";
				case "03":
					return "存本取息";
				case "04":
					return "零存整取";
				case "05":
					return "通知存款";
				case "06":
					return "教育储蓄";
				case "07":
					return "整存零取";
				case "08":
					return "凭证式国债";
				case "09":
					return "理财通";
				case "10":
					return "对公活期";
				case "11":
					return "对公整存整取";
				case "12":
					return "对公大额存款";
				case "15":
					return "对公通知存款";
				case "16":
					return "对公大额通知存款";
				case "17":
					return "储寿保";
				case "18":
					return "理财产品";
				case "19":
					return "购汇保证金";
				case "20":
					return "对公结构性存款";
				case "21":
					return "对公存款周计划";
				case "28":
					return "储蓄国债";
				case "29":
					return "黄金理财";
				case "30":
					return "活期宝";
				default:
					return "";
			}
		},
	},
};