import commonFunctions from '~/mixin/commonFunctions.js'; export default { mixins: [commonFunctions], methods: { cptrouChange(e) { if (e === undefined) { return } //this.model.cpdgrp.rec.swftyp = ''; if (this.model.cpdgrp.rec.cptrou == "CIPS") { this.model.cpdgrp.cbs.nom1.cur = 'CNY'; } let swftypList = []; if (this.model.cpdgrp.rec.cptrou == "SWIFT") { var mt103 = new Object(); mt103.label = "MT103"; mt103.value = "103"; swftypList.push(mt103); var mt102Cov = new Object(); mt102Cov.label = "MT202 COV"; mt102Cov.value = "202"; swftypList.push(mt102Cov); var mt202 = new Object(); mt202.label = "MT202"; mt202.value = "200"; swftypList.push(mt202); } else if (this.model.cpdgrp.rec.cptrou == "CIPS") { var cips111 = new Object(); cips111.label = "cips111"; cips111.value = "CIU"; swftypList.push(cips111); var cips112 = new Object(); cips112.label = "cips112"; cips112.value = "CIV"; swftypList.push(cips112); } else if (this.model.cpdgrp.rec.cptrou == "JNWB") { var fxps111 = new Object(); fxps111.label = "FXPS111"; fxps111.value = "111"; swftypList.push(fxps111); var fxps112 = new Object(); fxps112.label = "FXPS112"; fxps112.value = "112"; swftypList.push(fxps112); } else if (this.model.cpdgrp.rec.cptrou == "HNHZ") { var fxps111 = new Object(); fxps111.label = "FXPS111"; fxps111.value = "111"; swftypList.push(fxps111); } this.$set(this.codes, 'swftypList', swftypList); }, } }