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