{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\participateRegistration\\component\\bankCard.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\participateRegistration\\component\\bankCard.vue","mtime":1720125638776},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import bank from '@/api/bank.js'\nimport utils from '@/utils.js';\nimport bankCardDialog from \"./bankCardDialog.vue\";\nexport default {\n components: {},\n data: function data() {\n return {\n account: '选择账户',\n name: '',\n code: '',\n balance: [],\n radio: 0,\n activeBalance: 0,\n dialogTitle: '选择账户',\n dialogFormVisible: false,\n paramsArr: [],\n loading: false,\n userBalance: 0,\n //余额\n loadingBtn: false,\n corporateAccounts: {\n bankCard: '9558853100011248469',\n payAccountBank: '中国工商银行股份有限公司重庆解放碑支行',\n collectUnitName: '重庆盛普物资有限公司',\n collectUnitCode: '1575018828683939840'\n },\n //收款账户\n data: {\n payAccountBank: '',\n bankCode: ''\n },\n params: {\n collectAccount: '9558853100011248469',\n // 收款账号\n collectAccountBank: '中国工商银行股份有限公司重庆解放碑支行',\n //收款账号开户行\n collectUnitName: '重庆盛普物资有限公司',\n // 收款单位名称\n payAccount: '',\n //支付账号\n payAccountBank: '',\n //支付账号开户行\n payAmount: '',\n //支付金额\n payTime: '',\n //支付时间\n payUnitCode: '',\n noticeType: 1,\n payUnitName: '',\n //支付单位名称\n payType: 2,\n noticeId: '',\n participationId: ''\n }\n };\n },\n created: function created() {},\n mounted: function mounted() {// this.getBank()\n },\n methods: {\n open: function open(row) {\n console.log(row, 'ppppppppp');\n var sum = 0;\n var noticeId = [];\n var participationId = []; // 在父组件调用打开\n\n this.dialogFormVisible = true;\n this.getBank();\n row.forEach(function (item) {\n sum += item.price;\n noticeId.push(item.noticeId);\n participationId.push(item.id);\n });\n this.params.noticeId = noticeId.toString();\n this.params.participationId = participationId.toString();\n this.params.payAmount = sum;\n },\n getBank: function getBank() {\n var _this = this;\n\n this.loading = true;\n this.$http.post('${portal}/bizRegistrationOrder/v1/getCurrentAccount').then(function (res) {\n if (res.data.state) {\n _this.balance = [];\n _this.activeBalance = 0;\n _this.balance = res.data.value.data;\n\n if (_this.balance.length != 0) {\n _this.params.payAccountBank = _this.balance[0].enterpriseBankOpening;\n _this.params.payAccount = _this.balance[0].enterpriseBankNumber;\n _this.userBalance = _this.balance[0].userBalance;\n\n _this.balance.forEach(function (item, index) {\n if (item.enterpriseBankNumber == '9558853100011248469') {\n _this.balance.splice(index, 1);\n\n return _this.balance;\n }\n });\n }\n } else {\n _this.$message.error(res.data.state);\n }\n\n _this.loading = false;\n });\n },\n handleClose: function handleClose() {\n this.dialogFormVisible = false;\n this.loading = false;\n },\n handleSubmit: function handleSubmit() {\n var _this2 = this;\n\n var moment = require('moment');\n\n this.params.payTime = moment().format('YYYY-MM-DD HH:mm:ss');\n console.log(this.params, 1111111);\n\n if (this.params.payAmount > this.userBalance) {\n this.$confirm('余额不足,是否跳转充值?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this2.$router.push({\n path: '/frontPlat/myApplication/myBalance'\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '已取消'\n });\n });\n } else {\n this.loadingBtn = true;\n this.$http.post('${portal}/bizRegistrationOrder/v1/payByBalance', this.params).then(function (res) {\n console.log(res, 'res');\n\n if (res.data.state) {\n _this2.$message.success(res.data.message);\n\n _this2.dialogFormVisible = false;\n\n _this2.$emit('load');\n }\n\n _this2.loadingBtn = false;\n });\n }\n },\n handelBalance: function handelBalance(item, index) {\n console.log(item, 'item');\n this.activeBalance = index;\n this.userBalance = item.userBalance;\n this.params.payAccountBank = item.enterpriseBankOpening;\n this.params.payAccount = item.enterpriseBankNumber;\n }\n }\n};",null]}