2
3
baichengfei 5 жил өмнө
parent
commit
9294d205bd

+ 14 - 14
src/dashoo.cn/frontend_web/src/components/oilsupplier/auditfilelist.vue

@@ -12,17 +12,17 @@
       <!-- <el-table-column prop="NeedFileCode" label="分类编码" show-overflow-tooltip></el-table-column> -->
       <el-table-column prop="FileUrlList" label="文件名称" show-overflow-tooltip>
         <template slot-scope="scope">
- 
+
             <!-- <el-link :href="'http://'+fileurlcut(scope.row.FileUrl)" target="_blank" type="primary">{{scope.row.FileName}}</el-link> -->
-            
+
               <viewer :images="scope.row.FileUrlList">
                     <div  v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
-                    
+
                       <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary"
-                        v-if="scope.row.FileUrl==''?false:imgFormat(scope.row.FileUrl, index)" 
+                        v-if="scope.row.FileUrl==''?false:imgFormat(scope.row.FileUrl, index)"
                       >
                       {{scope.row.FileName.split('$')[index]}}</el-link>
-                      <img 
+                      <img
                         v-if="scope.row.FileUrl==''?false:!imgFormat(scope.row.FileUrl, index)"
                         class="photoStyle" alt=""
                         :src="'http://'+fileurlcut(scope.row.FileUrl, index)"
@@ -210,20 +210,20 @@
     },
     methods: {
 
-      imgFormat(val,index){
-        if(val !=null && val != undefined && val !=''){
+      imgFormat (val, index) {
+        if (val != null && val != undefined && val != '') {
           let fileurlall = val.split('$')[index]
           let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
+          if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+            let Format = fileurl[1].split('.')
+            if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+              let pictureFormat = Format[1]
+              if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                return false
               }
             }
           }
-          return true;
+          return true
         }
       },
       initData () {

+ 14 - 14
src/dashoo.cn/frontend_web/src/components/oilsupplier/subfilelist2.vue

@@ -272,28 +272,28 @@
           })
         }
       },
-      imgFormat(val,index){
-        if(val !=null && val != undefined && val !=''){
+      imgFormat (val, index) {
+        if (val != null && val != undefined && val != '') {
           let fileurlall = val.split('$')[index]
           let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
+          if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+            let Format = fileurl[1].split('.')
+            if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+              let pictureFormat = Format[1]
+              if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                return false
               }
             }
           }
-          return true;
+          return true
         }
       },
-      handleRemove(file, fileList) {
-        console.log(file, fileList);
+      handleRemove (file, fileList) {
+        console.log(file, fileList)
       },
-      handlePictureCardPreview(file) {
-        this.dialogImageUrl = file.url;
-        this.dialogVisible = true;
+      handlePictureCardPreview (file) {
+        this.dialogImageUrl = file.url
+        this.dialogVisible = true
       },
       pickerchange () {
         console.log(this.SubfileForm.EffectDate)

+ 9 - 10
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -1890,21 +1890,20 @@ import apiCert from '@/api/oilsupplier/suppliercert'
       lineheight (list) {
         return list * 23 + ''
       },
-       imgFormat(val,index){
-         console.log(val)
-        if(val !=null && val != undefined && val !=''){
+      imgFormat (val, index) {
+        if (val != null && val != undefined && val != '') {
           let fileurlall = val.split('$')[index]
           let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
+          if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+            let Format = fileurl[1].split('.')
+            if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+              let pictureFormat = Format[1]
+              if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                return false
               }
             }
           }
-          return true;
+          return true
         }
       },
       fileurlcut (val, index) {

+ 56 - 77
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/auditoperation.vue

@@ -469,7 +469,7 @@
                     <a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
                        class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
                   </div> -->
-                  
+
                    <viewer :images="scope.row.FileUrlList">
                     <div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
                       <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary"
@@ -1445,24 +1445,23 @@
           console.log(err)
         })
       },
-      imgFormat(val,index){
-         console.log(val)
-        if(val !=null && val != undefined && val !=''){
+      imgFormat (val, index) {
+        if (val != null && val != undefined && val != '') {
           let fileurlall = val.split('$')[index]
           let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
+          if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+            let Format = fileurl[1].split('.')
+            if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+              let pictureFormat = Format[1]
+              if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                return false
               }
             }
           }
-          return true;
+          return true
         }
       },
-      fileurlcut(val, index) {
+      fileurlcut (val, index) {
         let fileurlall = val.split('$')[index]
         let fileurl = fileurlall.split('|')
         let retUrl = fileurl[0]
@@ -1473,7 +1472,7 @@
         }
         return retUrl
       },
-      getAccessCardNo() {
+      getAccessCardNo () {
         api.GeAccessCardNo(this.SuppId, this.$axios)
           .then(res => {
             this.AccessCardNolist = res.data.items;
@@ -1490,10 +1489,10 @@
             }
           })
           .catch(err => {
-            console.error(err);
-          });
+            console.error(err)
+          })
       },
-      getfilelist1() {
+      getfilelist1 () {
         let _this = this
         const params = {
           SupplierId: this.SuppId,
@@ -1502,26 +1501,22 @@
           _currentPage: this.currentPageProject,
           _size: this.sizeProject
         }
-        _this.$axios.get('qualchange/auditfilelist', {
-            params
-          })
+        _this.$axios.get('qualchange/auditfilelist', {params})
           .then(res => {
             _this.subfileList1 = res.data.items
             _this.currentItemCountProject = res.data.currentItemCount
             for (let idx in _this.subfileList1) {
               _this.subfileList1[idx].FileUrlList = _this.subfileList1[idx].FileUrl.split('$')
-
             }
             for (let idx1 in _this.subfileList1) {
               _this.subfileList1[idx1].OldFileUrlList = _this.subfileList1[idx1].OldFileUrl.split('$')
-
             }
           })
           .catch(err => {
             console.error(err)
           })
       },
-      bfdataformat(val) {
+      bfdataformat (val) {
         if (val.SelectItem == 'SpecTypeCode') {
           if (val.BeChangeInfo == '1') {
             return '一般外部'
@@ -1563,8 +1558,8 @@
           return val.BeChangeInfo
         }
       },
-      dataformat(val) {
-        //debugger
+      dataformat (val) {
+        // debugger
         if (val.SelectItem == 'SpecTypeCode') {
           if (val.ChangeInfo == '1') {
             return '一般外部'
@@ -1606,7 +1601,7 @@
           return val.ChangeInfo
         }
       },
-      getbusList1() {
+      getbusList1 () {
         let _this = this
         const params = {
           SupplierId: this.SuppId,
@@ -1614,9 +1609,7 @@
           _currentPage: 1,
           _size: 1000
         }
-        this.$axios.get('suppliercertsub/list', {
-            params
-          })
+        this.$axios.get('suppliercertsub/list', {params})
           .then(res => {
             _this.businessList1 = res.data.items
           })
@@ -1624,35 +1617,31 @@
             console.error(err)
           })
       },
-      getfilelist2() {
+      getfilelist2 () {
         let _this = this
         const params = {
           SupplierId: this.SuppId,
           SupplierTypeCode: '02',
           MInfoId: this.infoId,
           _currentPage: 1,
-          _size: 1000,
+          _size: 1000
         }
-        _this.$axios.get('qualchange/auditfilelist', {
-            params
-          })
+        _this.$axios.get('qualchange/auditfilelist', {params})
           .then(res => {
             _this.subfileList2 = res.data.items
             _this.currentItemCount = res.data.currentItemCount
             for (let idx in _this.subfileList2) {
               _this.subfileList2[idx].FileUrlList = _this.subfileList2[idx].FileUrl.split('$')
-
             }
             for (let idx1 in _this.subfileList2) {
               _this.subfileList2[idx1].OldFileUrlList = _this.subfileList2[idx1].OldFileUrl.split('$')
-
             }
           })
           .catch(err => {
             console.error(err)
           })
       },
-      getbusList2() {
+      getbusList2 () {
         let _this = this
         const params = {
           SupplierId: this.SuppId,
@@ -1660,9 +1649,7 @@
           _currentPage: 1,
           _size: 1000
         }
-        this.$axios.get('suppliercertsub/list', {
-            params
-          })
+        this.$axios.get('suppliercertsub/list', {params})
           .then(res => {
             _this.businessList2 = res.data.items
           })
@@ -1670,7 +1657,7 @@
             console.error(err)
           })
       },
-      getfilelist3() {
+      getfilelist3 () {
         let _this = this
         const params = {
           SupplierId: this.SuppId,
@@ -1679,26 +1666,22 @@
           _currentPage: 1,
           _size: 1000,
         }
-        _this.$axios.get('qualchange/auditfilelist', {
-            params
-          })
+        _this.$axios.get('qualchange/auditfilelist', {params})
           .then(res => {
             _this.subfileList3 = res.data.items
             _this.currentItemCount = res.data.currentItemCount
             for (let idx in _this.subfileList3) {
               _this.subfileList3[idx].FileUrlList = _this.subfileList3[idx].FileUrl.split('$')
-
             }
             for (let idx1 in _this.subfileList3) {
               _this.subfileList3[idx1].OldFileUrlList = _this.subfileList3[idx1].OldFileUrl.split('$')
-
             }
           })
           .catch(err => {
             console.error(err)
           })
       },
-      getbusList3() {
+      getbusList3 () {
         let _this = this
         const params = {
           SupplierId: this.SuppId,
@@ -1706,9 +1689,7 @@
           _currentPage: 1,
           _size: 1000
         }
-        this.$axios.get('suppliercertsub/list', {
-            params
-          })
+        this.$axios.get('suppliercertsub/list', {params})
           .then(res => {
             _this.businessList3 = res.data.items
           })
@@ -1727,7 +1708,7 @@
       //   }
 
       // },
-      getDictOptions() {
+      getDictOptions () {
         let params = {
           status: this.formData.Status,
           majorAduit: this.formData.ThirdAudit
@@ -1755,13 +1736,13 @@
           console.error(err)
         })
       },
-      getCityList(val) {
+      getCityList (val) {
         let resultData = JSON.parse(val)
         let countstr = JSON.stringify(resultData.districts[0].districts)
         countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
         this.countryoptions = JSON.parse(countstr)
       },
-      getCountryList(val) {
+      getCountryList (val) {
         let tmpJson = JSON.parse(val)
         this.countryListOptions = []
         for (let idx in tmpJson) {
@@ -1773,12 +1754,11 @@
           })
         }
       },
-      radioChange() {
+      radioChange () {
         if (this.shenheForm.SuccessStatus === 1) {
-
-          if(this.InfoStatus == '5'){
+          if (this.InfoStatus == '5') {
             this.textplaceholder = ''
-          }else{
+          } else {
             this.textplaceholder = '请填写审核意见'
           }
         } else {
@@ -1786,7 +1766,7 @@
         }
       },
 
-      auditget() {
+      auditget () {
         this.auditerOption = []
         api.getAuditer(this.$axios).then(res => {
           this.auditerOption = res.data.item
@@ -1794,16 +1774,16 @@
           console.error(err)
         })
       },
-      //提交信息变更审核
-      submitInfoChange() {
+      // 提交信息变更审核
+      submitInfoChange () {
         this.commitshow = true
       },
-      //审批历史
-      auhistory() {
+      // 审批历史
+      auhistory () {
         this.audithistoryshow = true
       },
-      //审核通过
-      makeSure() {
+      // 审核通过
+      makeSure () {
         if (this.shenheForm.SuccessStatus === 1) {
           if (this.shenheForm.AuditorRemark.trim().length < 1 && this.InfoStatus && this.InfoStatus !== '3' && this.InfoStatus !== '5') {
             this.$message({
@@ -1830,7 +1810,7 @@
         }
         this.infoChangeAuditLaw()
       },
-      infoChangeAuditLaw() {
+      infoChangeAuditLaw () {
         this.shenheForm.InfoId = parseInt(this.infoId)
         this.shenheForm.SuppId = parseInt(this.SuppId)
         this.btnloading = true
@@ -1855,7 +1835,7 @@
           console.error(err)
         })
       },
-      getCityList(val) {
+      getCityList (val) {
         let resultData = JSON.parse(val)
         let countstr = JSON.stringify(resultData.districts[0].districts)
         countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
@@ -1871,7 +1851,7 @@
         this.currentPageProject = value
         this.getfilelist1()
       },
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -1886,20 +1866,19 @@
         }
       },
 
-      formatDateTime(date) {
-        var y = date.getFullYear();
-        var m = date.getMonth() + 1;
-        m = m < 10 ? ('0' + m) : m;
-        var d = date.getDate();
-        d = d < 10 ? ('0' + d) : d;
-        var h = date.getHours();
-        var minute = date.getMinutes();
-        minute = minute < 10 ? ('0' + minute) : minute;
-        return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
+      formatDateTime (date) {
+        var y = date.getFullYear()
+        var m = date.getMonth() + 1
+        m = m < 10 ? ('0' + m) : m
+        var d = date.getDate()
+        d = d < 10 ? ('0' + d) : d
+        var h = date.getHours()
+        var minute = date.getMinutes()
+        minute = minute < 10 ? ('0' + minute) : minute
+        return y + '-' + m + '-' + d + ' ' + h + ':' + minute
       }
     }
   }
-
 </script>
 <style lang="scss">
   .modified-form-input {

+ 12 - 16
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -595,7 +595,7 @@
               <el-table-column prop="FileUrlList" label="变更后文件" show-overflow-tooltip>
                 <template slot-scope="scope">
 
-                  
+
                   <el-row align="middle">
                       <el-col :span="20">
                         <viewer :images="scope.row.FileUrlList">
@@ -907,17 +907,14 @@
   import fileapi from '@/api/oilsupplier/supplierfile'
   import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
   import setapi from '@/api/oilsupplier/oilclassorgset'
-
-    // v-viewer
-  import Vue from 'vue';
+  // v-viewer
+  import Vue from 'vue'
   import Viewer from 'v-viewer'
   import 'viewerjs/dist/viewer.css'
   Vue.use(Viewer)
   Viewer.setDefaults({
     Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
   })
-
-
   export default {
     components: {
       WfMultiHistory,
@@ -1855,21 +1852,20 @@
       itemsshow () {
         this.myitemsshow = true
       },
-      imgFormat(val,index){
-         console.log(val)
-        if(val !=null && val != undefined && val !=''){
+      imgFormat (val, index) {
+        if (val != null && val != undefined && val != '') {
           let fileurlall = val.split('$')[index]
           let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
+          if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+            let Format = fileurl[1].split('.')
+            if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+              let pictureFormat = Format[1]
+              if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                return false
               }
             }
           }
-          return true;
+          return true
         }
       },
       fileurlcut (val, index) {

+ 58 - 69
src/dashoo.cn/frontend_web/src/pages/oilsupplier/qualchange/_opera/operation.vue

@@ -64,8 +64,8 @@
               <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
                 class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
             </div> -->
-          
-          
+
+
           </template>
           <!-- <template slot-scope="scope">
             <a :href="'http://'+fileurlcut(scope.row.OldFileUrl+'')" target="_blank" class="buttonText">
@@ -204,15 +204,13 @@
   // import uploadajax from '../../assets/js/uploadajax.js'
 
 // v-viewer
-  import Vue from 'vue';
+  import Vue from 'vue'
   import Viewer from 'v-viewer'
   import 'viewerjs/dist/viewer.css'
   Vue.use(Viewer)
   Viewer.setDefaults({
     Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
   })
-
-
   export default {
     computed: {
       ...mapGetters({
@@ -230,9 +228,9 @@
     // },
     name: 'oiltechnologyserviceEdit',
 
-    data() {
+    data () {
       return {
-        secauditerOptions:[],
+        secauditerOptions: [],
         yasuoname: '',
         audithistoryshow: false,
         backhistroy: {
@@ -245,7 +243,7 @@
         fushenauditer: '',
         auditer: '',
         auditerName: '',
-        businessList: [], //准入业务
+        businessList: [], // 准入业务
         serviceId: '',
         certId: '',
         classId: '',
@@ -303,11 +301,11 @@
         QualStatus: '',
         butnab: false,
         commitshow: false,
-        auditerOption: [],
+        auditerOption: []
       }
     },
-    created() {
-      this.serviceId = this.$route.params.opera;
+    created () {
+      this.serviceId = this.$route.params.opera
       if (this.$route.query.certid) {
         this.certId = this.$route.query.certid + ''
       }
@@ -328,41 +326,35 @@
       this.getbusList()
     },
     methods: {
-      initData() {
+      initData () {
         let _this = this
         const params = {
           SupplierId: this.SupplierId,
           SupplierTypeCode: this.SupplierTypeCode,
           _currentPage: 1,
-          _size: 1000,
+          _size: 1000
         }
-        _this.$axios.get('qualchange/filelist', {
-            params
-          })
+        _this.$axios.get('qualchange/filelist', {params})
           .then(res => {
             _this.subfileList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
             for (let idx in _this.subfileList) {
               _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
-
             }
             for (let idx1 in _this.subfileList) {
               _this.subfileList[idx1].OldFileUrlList = _this.subfileList[idx1].OldFileUrl.split('$')
-
             }
           })
           .catch(err => {
             console.error(err)
           })
       },
-      getorgtreelist() {
+      getorgtreelist () {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
-        _this.$axios.get('organizes/orgalllist', {
-            params
-          })
+        _this.$axios.get('organizes/orgalllist', {params})
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
           })
@@ -370,18 +362,18 @@
             console.error(err)
           })
       },
-      getDictOptions() {
+      getDictOptions () {
         fileapi.getDictList(this.$axios).then(res => {
           this.yasuoname = res.data.items['YaSuoName']
         }).catch(err => {
           console.error(err)
         })
       },
-      //审批历史
-      auhistory() {
+      // 审批历史
+      auhistory () {
         this.audithistoryshow = true
       },
-      getbusList() {
+      getbusList () {
         let _this = this
         const params = {
           SupplierCertId: this.SupplierCertId,
@@ -389,9 +381,7 @@
           _currentPage: 1,
           _size: 1000
         }
-        this.$axios.get('suppliercertsub/list', {
-            params
-          })
+        this.$axios.get('suppliercertsub/list', {params})
           .then(res => {
             _this.businessList = res.data.items
           })
@@ -399,8 +389,8 @@
             console.error(err)
           })
       },
-      //保存修改
-      makesure() {
+      // 保存修改
+      makesure () {
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
           // 上传附件是否完成判断
           if (!this.attachissuccess()) {
@@ -413,7 +403,7 @@
           this.editqualchange()
         }
       },
-      editqualchange() {
+      editqualchange () {
         let _this = this
         _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
         _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
@@ -423,7 +413,7 @@
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
               this.visible = false
               this.initData()
@@ -439,7 +429,7 @@
             console.error(err)
           })
       },
-      openDialog(val) {
+      openDialog (val) {
         this.Title = '资质变更'
         this.SubfileForm.Id = val.Id
         this.SubfileForm.SupplierId = val.SupplierId
@@ -465,8 +455,8 @@
         this.SubfileForm.IsDelete = val.IsDelete
         this.visible = true
       },
-      //文档列表
-      getwendanginfo(iUrl) {
+      // 文档列表
+      getwendanginfo (iUrl) {
         let _this = this
         _this.doclist = []
         let exArr = iUrl.split('|')
@@ -477,7 +467,7 @@
         _this.doclist.push(params)
       },
 
-      beforeAvatarUpload(file) {
+      beforeAvatarUpload (file) {
         let isLt512K = file.size / 1024 < 512
         if (isLt512K) {
           this.$message.error('上传文件大小不能小于 512KB!')
@@ -502,7 +492,7 @@
           return true
         }
       },
-      uploadrequest(option) {
+      uploadrequest (option) {
         let _this = this
         if (process.client) {
           const myDomain = window.location.host
@@ -571,7 +561,7 @@
       //     })
       // },
       // 判断附件是否上传成功
-      attachissuccess() {
+      attachissuccess () {
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
           for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
             if (this.$refs.refuploadattach.uploadFiles[i].status !== 'success') {
@@ -581,7 +571,7 @@
         }
         return true
       },
-      getattachissuccess() {
+      getattachissuccess () {
         this.SubfileForm.FileUrl = ''
         this.SubfileForm.FileName = ''
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
@@ -598,22 +588,22 @@
           }
         }
       },
-      submitqualChange() {
+      submitqualChange () {
         this.getorgtreelist()
         this.commitshow = true
       },
-      addQualChangeAudit() {
-        if (this.auditer === "") {
+      addQualChangeAudit () {
+        if (this.auditer === '') {
           this.$message({
-            type: "warning",
-            message: "请选择初审人!"
+            type: 'warning',
+            message: '请选择初审人!'
           })
           return
         }
-        if (this.fushenauditer === "") {
+        if (this.fushenauditer === '') {
           this.$message({
-            type: "warning",
-            message: "请选择复审人!"
+            type: 'warning',
+            message: '请选择复审人!'
           })
           return
         }
@@ -639,46 +629,45 @@
           console.error(err)
         })
       },
-      setAuditer(val, name) {
-        this.auditer = val;
-        this.auditerName = name;
-        this.chooseAuditorVisible = false;
+      setAuditer (val, name) {
+        this.auditer = val
+        this.auditerName = name
+        this.chooseAuditorVisible = false
         this.auditOrgChang(this.auditer)
       },
-      auditOrgChang(val) {
-        let auditstepcode = "SECOND_TRIAL";
+      auditOrgChang (val) {
+        let auditstepcode = 'SECOND_TRIAL'
         supplierapi.getAuditerByFirst(val, auditstepcode, this.$axios)
           .then(res => {
             this.secauditerOptions = res.data.item
           })
           .catch(err => {
-            console.error(err);
-          });
+            console.error(err)
+          })
       },
-      chooseAuditorShow() {
+      chooseAuditorShow () {
         this.$refs['chooseAuditor'].getorgtreelist()
         this.chooseAuditorVisible = true
       },
-      imgFormat(val,index){
-         console.log(val)
-        if(val !=null && val != undefined && val !=''){
+      imgFormat (val, index) {
+        if (val != null && val != undefined && val != '') {
           let fileurlall = val.split('$')[index]
           let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
+          if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+            let Format = fileurl[1].split('.')
+            if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+              let pictureFormat = Format[1]
+              if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                return false
               }
             }
           }
-          return true;
+          return true
         }
       },
-      fileurlcut(val, index) {
+      fileurlcut (val, index) {
         let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split("|")
+        let fileurl = fileurlall.split('|')
         return fileurl[0]
       },