| | |
| | | methods: { |
| | | // 打开购买弹窗 |
| | | buyOpen(i) { |
| | | this.$confirm("", this.$t("操作确认"), { |
| | | // this.$confirm("", this.$t("操作确认"), { |
| | | // confirmButtonText: this.$t("qr"), |
| | | // cancelButtonText: this.$t("qx"), |
| | | // }) |
| | | // .then(async () => { |
| | | // // 申购 |
| | | // let opt = { |
| | | // newCode: i.code, |
| | | // applyNums: i.orderNumber, |
| | | // password: i.password, |
| | | // newlistId: i.newlistId, |
| | | // type: i.type, |
| | | // }; |
| | | // let data = await api.getNewAdd(opt); |
| | | |
| | | // if (data.status == 0) { |
| | | // this.$message.success(data.msg); |
| | | // this.init(); // 重新获取列表 |
| | | // } |
| | | // }) |
| | | // .catch(() => {}); |
| | | |
| | | this.$prompt(this.$t("sl"), this.$t("操作确认"), { |
| | | confirmButtonText: this.$t("qr"), |
| | | cancelButtonText: this.$t("qx"), |
| | | }) |
| | | .then(async () => { |
| | | .then(async (val) => { |
| | | // 申购 |
| | | let opt = { |
| | | newCode: i.code, |
| | | applyNums: i.orderNumber, |
| | | applyNums: val.value, |
| | | password: i.password, |
| | | newlistId: i.newlistId, |
| | | type: i.type, |
| | | }; |
| | | |
| | | let data = await api.getNewAdd(opt); |
| | | |
| | | if (data.status == 0) { |