gjy 2 gadi atpakaļ
vecāks
revīzija
a838680d56

+ 1 - 2
src/components/WsUpload/index.vue

@@ -267,7 +267,6 @@ export default {
   },
   mounted() {
     this.getDefaultFiles(this.appendixIds)
-
     const handleChange = this.$refs.elUpload.$refs['upload-inner'].handleChange
     this.$refs.elUpload.$refs['upload-inner'].handleChange = (ev) => {
       this.initFileList = []
@@ -570,7 +569,7 @@ export default {
 
     // 获取文件样式
     getFileClass(file) {
-      const ext = this.getExtName(file.name)
+      const ext = this.getExtName(file.name).toLowerCase()
       return 'ext ' + ext
     },
     // 是否为图片

+ 3 - 1
src/components/pdf/pdf.vue

@@ -37,8 +37,10 @@ export default {
   },
   methods: {
     pdfTask (pdfUrl) {
-      var loadingTask = pdf.createLoadingTask(pdfUrl)
+        let CMAP_URL = 'https://unpkg.com/pdfjs-dist@2.0.943/cmaps/'
+      var loadingTask = pdf.createLoadingTask({url: pdfUrl,withCredentials: false,cMapUrl: CMAP_URL,cMapPacked: true})
       loadingTask.promise.then(pdf => {
+        
         this.pdfUrl = loadingTask
         this.numPages = pdf.numPages
       }).catch((err) => {

+ 1 - 2
src/views/contractManagement/purchaseContract.vue

@@ -845,9 +845,8 @@ export default {
         },
       })
     },
-    async handletransport(row) {
+    handletransport(row) {
   gettask({contractNo:row.contractNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise().then((response) => {
-                console.log(response,111111111111)
         if(!response||response==0){
           this.$message({
             message: '联系内勤创建运输任务',

+ 0 - 1
src/views/profitable/contractprofitsdetails.vue

@@ -191,7 +191,6 @@
       }
     },
     activated() {
-      
       if(this.$route.query.contractNo){
         this.searchKeyWord=this.$route.query.contractNo
       }else{