zhangxiaomu 1 rok temu
rodzic
commit
2411fc86b2
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/view/wx-print/index.vue

+ 3 - 2
src/view/wx-print/index.vue

@@ -136,12 +136,13 @@ export default {
           // })
           // })
             //Blob
             //Blob
             hiprintTemplate.toPdf(printData,'单据打印',{isDownload:false,type:''}).then(blob=>{
             hiprintTemplate.toPdf(printData,'单据打印',{isDownload:false,type:''}).then(blob=>{
-              console.log('blob',blob)
+              // console.log('blob',blob)
               // let pdf =this.blobToFile(blob, 'blob.pdf')
               // let pdf =this.blobToFile(blob, 'blob.pdf')
               let pdf = new File([blob], 'blob.pdf', { type: blob.type })
               let pdf = new File([blob], 'blob.pdf', { type: blob.type })
-              console.log('pdf',pdf)
+              // console.log('pdf',pdf)
               let formData = new FormData();
               let formData = new FormData();
               formData.append('file', pdf);
               formData.append('file', pdf);
+              console.log('formData',formData)
               this.excute(this.$service.fileService, `upload?folder=pdf&uuid=${this.$route.query.uuid}`,formData).then(res => {
               this.excute(this.$service.fileService, `upload?folder=pdf&uuid=${this.$route.query.uuid}`,formData).then(res => {
                 console.log('upload-res',res)
                 console.log('upload-res',res)
                 if (res.code === this.$config.SUCCESS_CODE) {
                 if (res.code === this.$config.SUCCESS_CODE) {