| | |
| | | methods: { |
| | | handleQuery() { |
| | | this.loading = true; |
| | | this.selectList = []; |
| | | getCusTomterListByCompId(this.objs).then((res) => { |
| | | this.userList = res.data; |
| | | this.loading = false; |
| | |
| | | addPlOrderAndDetail(data).then((res) => { |
| | | this.open2 = false; |
| | | this.$modal.msgSuccess("签到成功"); |
| | | let base64 = res.file; |
| | | this.base64ToBlob({ |
| | | b64data: base64, |
| | | contentType: "application/pdf", |
| | | }).then((res) => { |
| | | this.dialogVisible = true; |
| | | // 转后后的blob对象 |
| | | console.log("blob", res.preview); |
| | | try { |
| | | this.url =res.preview; |
| | | } catch (error) { |
| | | this.url = window.webkitURL.createObjectURL(res.preview); |
| | | } |
| | | }); |
| | | |
| | | if (res.file) { |
| | | let base64 = res.file; |
| | | this.base64ToBlob({ |
| | | b64data: base64, |
| | | contentType: "application/pdf", |
| | | }).then((res) => { |
| | | this.dialogVisible = true; |
| | | // 转后后的blob对象 |
| | | console.log("blob", res.preview); |
| | | try { |
| | | this.url = res.preview; |
| | | } catch (error) { |
| | | this.url = window.webkitURL.createObjectURL(res.preview); |
| | | } |
| | | }); |
| | | } |
| | | this.handleQuery(); |
| | | this.selectList = []; |
| | | }); |