Browse Source

添加增项,专业处室显示问题

huahaiyan 6 years ago
parent
commit
1dfa2d81c7

+ 0 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -1000,9 +1000,7 @@ export default {
             this.$refs['winningList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId, this.formDataCert.InStyle)
-            console.log('this.formData.InStyle1', this.formData.InStyle)
             if (this.formData.InStyle == '2' || this.formData.InStyle == '6') {
-              console.log('this.formData.InStyle2', this.formData.InStyle)
               this.allowpre = false
             }
           }).catch(err => {

+ 155 - 158
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -339,26 +339,26 @@
 <script>
   import {
     mapGetters
-  } from 'vuex';
-  import api from '@/api/oilsupplier/supplier';
-  import apiCert from '@/api/oilsupplier/suppliercert';
-  import annapi from '@/api/oilsupplier/annualaudit'
-  import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue';
-  import WfMultiHistory from '@/components/workflow/wfmultihistory.vue';
-  import WfBackHistory from '@/components/workflow/wfbackhistory.vue';
-  import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue';
-  import dataapi from '@/api/oilsupplier/dataentry'
+  } from 'vuex'
+import api from '@/api/oilsupplier/supplier'
+import apiCert from '@/api/oilsupplier/suppliercert'
+import annapi from '@/api/oilsupplier/annualaudit'
+  import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
+import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
+import WfBackHistory from '@/components/workflow/wfbackhistory.vue'
+import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
+import dataapi from '@/api/oilsupplier/dataentry'
 
-  import EquipmentList from '@/components/oilsupplier/equipmentlist';
-  import PerformanceList from '@/components/oilsupplier/performancelist';
-  import PatentList from '@/components/oilsupplier/patentlist';
-  import WinningList from '@/components/oilsupplier/winninglist';
-  import GoodsList from '@/components/oilsupplier/goodslist';
-  import SubfileList from '@/components/oilsupplier/subfilelist';
-  import GoodsInfo from '@/components/oilsupplier/goodsinfo';
-  import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
-  import ChooseAuditor from '@/components/oilsupplier/chooseauditor';
-  import FloatImgBtn from '@/components/floatButton/index'
+  import EquipmentList from '@/components/oilsupplier/equipmentlist'
+import PerformanceList from '@/components/oilsupplier/performancelist'
+import PatentList from '@/components/oilsupplier/patentlist'
+import WinningList from '@/components/oilsupplier/winninglist'
+import GoodsList from '@/components/oilsupplier/goodslist'
+import SubfileList from '@/components/oilsupplier/subfilelist'
+import GoodsInfo from '@/components/oilsupplier/goodsinfo'
+import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
+  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
+import FloatImgBtn from '@/components/floatButton/index'
 
   export default {
     components: {
@@ -394,21 +394,21 @@
           callback()
         }
       }
-    var checkTechnicalNum = (rule, value, callback) => {
+      var checkTechnicalNum = (rule, value, callback) => {
         if (value <= 0) {
           return callback(new Error('技术、管理人员数量必须大于0'))
         } else {
           callback()
         }
       }
-    var checkSkillerTotal = (rule, value, callback) => {
+      var checkSkillerTotal = (rule, value, callback) => {
         if (value <= 0) {
           return callback(new Error('技术工人总数必须大于0'))
         } else {
           callback()
         }
       }
-    return {
+      return {
         allowpre: true,
         totalTab: 3,
         chooseAuditorVisible: false,
@@ -619,23 +619,23 @@
       }
   },
     mounted () {
-      this.serviceId = this.$route.params.opera + '';
-      if (this.$route.query.rtn) {
+      this.serviceId = this.$route.params.opera + ''
+    if (this.$route.query.rtn) {
         this.showReturn = 0
-    }
-      if (this.$route.query.certid) {
-        this.certId = this.$route.query.certid + '';
       }
+      if (this.$route.query.certid) {
+        this.certId = this.$route.query.certid + ''
+    }
       if (this.serviceId !== 'add' && this.serviceId > 0) {
         this.formData.Id = this.serviceId
-    } else {
+      } else {
         this.formData.Id = 0
-    }
+      }
       this.getDictOptions()
-    //this.getorgtreelist();
-    this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
+      // this.getorgtreelist();
+      this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
 
-    if (this.IsCompanyUser && this.serviceId === 'add') {
+      if (this.IsCompanyUser && this.serviceId === 'add') {
         // apiCert
         //   .getEntityByCreatorAndType("01", this.$axios)
         //   .then(res => {
@@ -650,7 +650,7 @@
         this.inputCompany(this.authUser.Profile.Realname)
       } else {
         this.initDatas()
-    }
+      }
       this.isAccess()
       // this.orgtreeChange(this.majorDept)
       this.changeOrgUnit(this.selectDept)
@@ -658,7 +658,7 @@
     methods: {
       nextStep () {
         this.$refs['subfileList'].nextStep()
-    },
+      },
       annaudit () {
         this.annentityForm.supplierId = parseInt(this.serviceId)
         this.annentityForm.SupplierName = this.formData.SupplierName
@@ -667,7 +667,7 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             let annId = res.data.item
-          this.$router.push({
+            this.$router.push({
               path: '/oilsupplier/annualaudit/' + this.serviceId + '/goodsoperation',
               query: {
                 certid: this.certId,
@@ -681,17 +681,16 @@
               type: 'success',
               message: res.data.message
             })
-
-        } else {
+          } else {
             this.$message({
               type: 'warning',
               message: res.data.message
             })
-        }
+          }
         }).catch(err => {
           console.error(err)
         })
-    },
+      },
       qppend () {
         let _this = this
         _this.appendformData.SupplierName = this.formData.SupplierName
@@ -767,18 +766,18 @@
             .then(res => {
               if (res.data) {
                 this.SetFormData(res.data)
-            }
+              }
             })
             .catch(err => {
               console.error(err)
-          })
-      }
+            })
+        }
       },
 
       changeFormData (fdata) {
         if (!this.certId) {
           this.SetFormData(fdata)
-      }
+        }
       },
       SetFormData (fdata) {
         console.log(fdata)
@@ -794,7 +793,7 @@
         this.formData.OperType = fdata.OperType
         if (fdata.Country != '') {
           this.formData.Country = fdata.Country
-      }
+        }
         this.formData.MaunAgent = fdata.MaunAgent
         this.formData.ConstructTeam = fdata.ConstructTeam
         if (fdata.CredentialFlag != null && fdata.CredentialFlag != '') {
@@ -837,9 +836,9 @@
         this.formData.BankCreditRating = fdata.BankCreditRating
         if (fdata.Mobile != null && fdata.Mobile != '') {
           this.formData.Mobile = fdata.Mobile
-      } else{
+        } else {
           this.formData.Mobile = fdata.UserTelephone
-      }
+        }
         this.formData.Telphone = fdata.Telphone
         this.formData.Fax = fdata.Fax
         this.formData.CompanyTel = fdata.CompanyTel
@@ -863,18 +862,18 @@
         this.formData.PACNumber = fdata.PACNumber
 
         this.$refs['GoodsInfo'].CityAry = []
-      this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
-      this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
-      this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
-      this.$refs['GoodsInfo'].LinkCityAry = []
-      this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkProvince)
-      this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
-      this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
+        this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
+        this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
+        this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
+        this.$refs['GoodsInfo'].LinkCityAry = []
+        this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkProvince)
+        this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
+        this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
       /* this.$refs['GoodsInfo'].UnitRelationAry = []
         if (this.formData.SpecTypeCode.length > 0) {
           this.$refs['GoodsInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
         } */
-    },
+      },
       // 导出到Word文件
       toWord () {
         let id = this.formData.Id
@@ -947,47 +946,47 @@
           .isCanUpdateSupplier(supplierId, this.$axios)
           .then(res => {
             this.canUpdateSupplier = res.data.code === 0
-        })
+          })
           .catch(err => {
             console.error(err)
-        })
-    },
+          })
+      },
       equipmentdialog () {
         this.$refs['equipmentList'].showDialog()
-    },
+      },
       performancedialog () {
         this.$refs['performanceList'].showDialog()
-    },
+      },
       patentdialog () {
         this.$refs['patentList'].showDialog()
-    },
+      },
       winningdialog () {
         this.$refs['winningList'].showDialog()
-    },
+      },
 
       initDatas () {
         if (this.formData.Id) {
           this.isCanUpdateSupplier(this.formData.Id)
-        api
+          api
             .getEntityAndCert(this.certId, this.$axios)
             .then(res => {
               this.formData = res.data
-            this.formDataCert.WorkerTotal = this.formData.WorkerTotal
-            this.formDataCert.ContractNum = this.formData.ContractNum
-            this.formDataCert.UniversityNum = this.formData.UniversityNum
-            this.formDataCert.TechnicalNum = this.formData.TechnicalNum
-            this.formDataCert.AboveProfNum = this.formData.AboveProfNum
-            this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum
-            this.formDataCert.NationalRegNum = this.formData.NationalRegNum
-            this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
-            this.formDataCert.DesignerTotal = this.formData.DesignerTotal
-            this.formDataCert.SkillerTotal = this.formData.SkillerTotal
-            this.formDataCert.Status = this.formData.Status
-            this.formDataCert.WorkflowId = this.formData.WorkflowId
-            this.formDataCert.InStyle = this.formData.InStyle
-            if (this.formData.Status > 0 || this.formData.Status == -5) {
+              this.formDataCert.WorkerTotal = this.formData.WorkerTotal
+              this.formDataCert.ContractNum = this.formData.ContractNum
+              this.formDataCert.UniversityNum = this.formData.UniversityNum
+              this.formDataCert.TechnicalNum = this.formData.TechnicalNum
+              this.formDataCert.AboveProfNum = this.formData.AboveProfNum
+              this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum
+              this.formDataCert.NationalRegNum = this.formData.NationalRegNum
+              this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
+              this.formDataCert.DesignerTotal = this.formData.DesignerTotal
+              this.formDataCert.SkillerTotal = this.formData.SkillerTotal
+              this.formDataCert.Status = this.formData.Status
+              this.formDataCert.WorkflowId = this.formData.WorkflowId
+              this.formDataCert.InStyle = this.formData.InStyle
+              if (this.formData.Status > 0 || this.formData.Status == -5) {
                 this.add_flat = false
-            }
+              }
               if ((this.formData.Status > 0) && (this.formData.Status != 4)) {
                 this.delete_flat = false
               }
@@ -999,25 +998,25 @@
                 this.$refs['GoodsInfo'].showorhid(this.formData.CredentialFlag)
               }
               this.$refs['GoodsInfo'].CityAry = []
-            this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
-            this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
-            this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
-            this.$refs['GoodsInfo'].LinkCityAry = []
-            this.$refs['GoodsInfo'].LinkCityAry.push(
+              this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
+              this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
+              this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
+              this.$refs['GoodsInfo'].LinkCityAry = []
+              this.$refs['GoodsInfo'].LinkCityAry.push(
                 this.formData.LinkProvince
               )
-            this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
-            this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
-            /* this.$refs['GoodsInfo'].UnitRelationAry = []
+              this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
+              this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
+              /* this.$refs['GoodsInfo'].UnitRelationAry = []
             if (this.formData.SpecTypeCode.length > 0) {
               this.$refs['GoodsInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
             } */
-            this.entrydetail.business = this.certId
-            this.entrydetail.instance = this.formDataCert.WorkflowId
-            this.entrydetail.process = this.formData.ProcessKey
+              this.entrydetail.business = this.certId
+              this.entrydetail.instance = this.formDataCert.WorkflowId
+              this.entrydetail.process = this.formData.ProcessKey
               this.backhistroy.certId = this.certId
-            this.backhistroy.workflowId = this.formDataCert.WorkflowId
-            if (this.certId && this.formDataCert.WorkflowId) {
+              this.backhistroy.workflowId = this.formDataCert.WorkflowId
+              if (this.certId && this.formDataCert.WorkflowId) {
                 // this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
               }
               this.$refs['equipmentList'].getvalue(
@@ -1025,42 +1024,40 @@
                 this.formData.SupplierTypeCode,
                 this.certId
               )
-            this.$refs['performanceList'].getvalue(
+              this.$refs['performanceList'].getvalue(
                 this.formData.Id,
                 this.formData.SupplierTypeCode,
                 this.certId
               )
-            this.$refs['patentList'].getvalue(
+              this.$refs['patentList'].getvalue(
                 this.formData.Id,
                 this.formData.SupplierTypeCode,
                 this.certId
               )
-            this.$refs['winningList'].getvalue(
+              this.$refs['winningList'].getvalue(
                 this.formData.Id,
                 this.formData.SupplierTypeCode,
                 this.certId
               )
-            this.$refs['goodsList'].getvalue(
+              this.$refs['goodsList'].getvalue(
                 this.formData.Id,
                 this.formData.SupplierTypeCode,
                 this.certId
               )
-            this.$refs['subfileList'].getvalue(
+              this.$refs['subfileList'].getvalue(
                 this.formData.Id,
                 this.formData.SupplierTypeCode,
                 this.certId,
                 this.formDataCert.InStyle
               )
-            console.log('this.formData.InStyle1', this.formData.InStyle)
               if (this.formData.InStyle == '2' || this.formData.InStyle == '6') {
-                console.log('this.formData.InStyle2', this.formData.InStyle)
                 this.allowpre = false
               }
             })
             .catch(err => {
               console.error(err)
-          })
-      }
+            })
+        }
       },
       getbuslist () {
         this.$refs['subfileList'].getvalue(
@@ -1069,7 +1066,7 @@
           this.certId,
           this.formDataCert.InStyle
         )
-    },
+      },
       nextTab () {
         if (this.formData.AuditIndex > 0) {
           this.totalTab = 4
@@ -1175,15 +1172,15 @@
 
       auditOrgChang (val) {
         console.log('------val', val)
-        let auditstepcode = 'SECOND_TRIAL';
-        api.getAuditerByFirst(val, auditstepcode, this.$axios)
+        let auditstepcode = 'SECOND_TRIAL'
+      api.getAuditerByFirst(val, auditstepcode, this.$axios)
           .then(res => {
             this.secauditerOptions = res.data.item
           })
           .catch(err => {
             console.error(err)
-        })
-    },
+          })
+      },
       /* getCityList(val) {
          let resultData = JSON.parse(val)
          let countstr = JSON.stringify(resultData.districts[0].districts)
@@ -1252,34 +1249,34 @@
       // 保存信息
       saveCertEntity () {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
-    },
+      },
 
       addEntity () {
-        this.formData.SupplierTypeCode = '01';
-        this.formData.SupplierTypeName = '物资类';
-        api
+        this.formData.SupplierTypeCode = '01'
+      this.formData.SupplierTypeName = '物资类'
+      api
           .addEntity(this.formData, this.$axios)
           .then(res => {
             if (res.data.code === 0) {
               // 保存成功后,初始化数据,变成修改
               this.formData.Id = res.data.item.split('_')[0]
-            this.certId = res.data.item.split('_')[1]
-            this.initDatas()
-            this.$message({
+              this.certId = res.data.item.split('_')[1]
+              this.initDatas()
+              this.$message({
                 type: 'success',
                 message: res.data.message
               })
-          } else {
+            } else {
               this.$message({
                 type: 'warning',
                 message: res.data.message
               })
-          }
+            }
           })
           .catch(err => {
             console.error(err)
-        })
-    },
+          })
+      },
 
       updateEntity () {
         api
@@ -1289,21 +1286,21 @@
               // 更新子表
               // this.updateNumberEntity()
               this.initDatas()
-            this.$message({
+              this.$message({
                 type: 'success',
                 message: res.data.message
               })
-          } else {
+            } else {
               this.$message({
                 type: 'warning',
                 message: res.data.message
               })
-          }
+            }
           })
           .catch(err => {
             console.error(err)
-        })
-    },
+          })
+      },
 
       CheckCompanyBase () {
         if (!this.formData.Id) {
@@ -1311,24 +1308,24 @@
             type: 'error',
             message: '无法保存,请先填写企业基本信息'
           })
-        return false
-      }
+          return false
+        }
         if (!this.certId) {
           this.$message({
             type: 'error',
             message: '准入类别不清晰,无法保存!'
           })
-        return false
-      }
+          return false
+        }
         return true
-    },
+      },
       // 企业人员结构情况
       updateNumberEntity () {
         this.$refs['EntityFormNumber'].validate((valid) => {
           if (valid) {
             if (!this.CheckCompanyBase()) {
               return false
-          }
+            }
             this.formDataCert.InStyle = this.formData.InStyle
             api
               .updateNumberEntity(
@@ -1340,25 +1337,25 @@
                 if (res.data.code === 0) {
                   // 保存成功后,初始化数据,变成修改
                   this.initDatas()
-                this.$message({
+                  this.$message({
                     type: 'success',
                     message: res.data.message
                   })
-              } else {
+                } else {
                   this.$message({
                     type: 'warning',
                     message: res.data.message
                   })
-              }
+                }
               })
               .catch(err => {
                 console.error(err)
-            })
-        } else {
+              })
+          } else {
             return false
           }
         })
-    },
+      },
       selectAuditOrg () {
         console.log('----this.IsCompanyUser', this.IsCompanyUser)
         if (this.IsCompanyUser === 0) {
@@ -1371,13 +1368,13 @@
         this.$refs['chooseAuditor'].getorgtreelist(
           this.formData.SupplierTypeCode
         )
-      this.chooseAuditorVisible = true
-    },
+        this.chooseAuditorVisible = true
+      },
       setAuditer (val, name) {
         this.auditer = val
-      this.auditerName = name
-      this.chooseAuditorVisible = false
-      this.auditOrgChang(this.auditer)
+        this.auditerName = name
+        this.chooseAuditorVisible = false
+        this.auditOrgChang(this.auditer)
       },
       chooseAuditorShowFen () {
         console.log('--this.formData.SupplierTypeCode----', this.formData.SupplierTypeCode)
@@ -1439,12 +1436,12 @@
                 type: 'success',
                 message: res.data.message
               })
-          } else {
+            } else {
               this.$message({
                 type: 'warning',
                 message: res.data.message
               })
-          }
+            }
             this.applyLoading = false
           })
           .catch(err => {
@@ -1480,12 +1477,12 @@
                 type: 'success',
                 message: res.data.message
               })
-          } else {
+            } else {
               this.$message({
                 type: 'warning',
                 message: res.data.message
               })
-          }
+            }
             this.applyLoading = false
           })
           .catch(err => {
@@ -1495,28 +1492,28 @@
 
       jstimehandle (val) {
         if (val === '') {
-          return '----';
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----';
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久';
-        } else {
+          return '----'
+      } else if (val === '0001-01-01T08:00:00+08:00') {
+          return '----'
+      } else if (val === '5000-01-01T23:59:59+08:00') {
+          return '永久'
+      } else {
           val = val.replace('T', ' ')
-        return val.substring(0, 10)
-      }
+          return val.substring(0, 10)
+        }
       },
 
       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
-    }
+        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>

+ 22 - 25
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -387,21 +387,21 @@
           callback()
         }
       }
-    var checkTechnicalNum = (rule, value, callback) => {
+      var checkTechnicalNum = (rule, value, callback) => {
         if (value <= 0) {
           return callback(new Error('技术、管理人员数量必须大于0'))
         } else {
           callback()
         }
       }
-    var checkSkillerTotal = (rule, value, callback) => {
+      var checkSkillerTotal = (rule, value, callback) => {
         if (value <= 0) {
           return callback(new Error('技术工人总数必须大于0'))
         } else {
           callback()
         }
       }
-    return {
+      return {
         allowpre: true,
         totalTab: 3,
         activeName: '0',
@@ -644,7 +644,7 @@
     methods: {
       nextStep () {
         this.$refs['subfileList'].nextStep()
-    },
+      },
       annaudit () {
         this.annentityForm.supplierId = parseInt(this.serviceId)
         this.annentityForm.SupplierName = this.formData.SupplierName
@@ -653,7 +653,7 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             let annId = res.data.item
-          this.$router.push({
+            this.$router.push({
               path: '/oilsupplier/annualaudit/' + this.serviceId + '/operation',
               query: {
                 certid: this.certId,
@@ -667,17 +667,16 @@
               type: 'success',
               message: res.data.message
             })
-
-        } else {
+          } else {
             this.$message({
               type: 'warning',
               message: res.data.message
             })
-        }
+          }
         }).catch(err => {
           console.error(err)
         })
-    },
+      },
       qppend () {
         let _this = this
         _this.appendformData.SupplierName = this.formData.SupplierName
@@ -834,7 +833,7 @@
         this.formData.OperType = fdata.OperType
         if (fdata.Country != '') {
           this.formData.Country = fdata.Country
-      }
+        }
         this.formData.MaunAgent = fdata.MaunAgent
         this.formData.ConstructTeam = fdata.ConstructTeam
         if (fdata.CredentialFlag != null && fdata.CredentialFlag != '') {
@@ -878,9 +877,9 @@
         this.formData.BankCreditRating = fdata.BankCreditRating
         if (fdata.Mobile != null && fdata.Mobile != '') {
           this.formData.Mobile = fdata.Mobile
-      }else {
+        } else {
           this.formData.Mobile = fdata.UserTelephone
-      }
+        }
         this.formData.Telphone = fdata.Telphone
         this.formData.Fax = fdata.Fax
         this.formData.CompanyTel = fdata.CompanyTel
@@ -912,7 +911,7 @@
         this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
         this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
         this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
-        /*this.$refs["TechInfo"].UnitRelationAry = []
+        /* this.$refs["TechInfo"].UnitRelationAry = []
         if (this.formData.SpecTypeCode.length > 0) {
           this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
         } */
@@ -977,7 +976,7 @@
             this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
             this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
             this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
-            /*this.$refs["TechInfo"].UnitRelationAry = []
+            /* this.$refs["TechInfo"].UnitRelationAry = []
 
             if (this.formData.SpecTypeCode.length > 0) {
               this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
@@ -988,7 +987,7 @@
             this.entrydetail.process = this.formData.ProcessKey
             this.backhistroy.certId = this.certId
             this.backhistroy.workflowId = this.formDataCert.WorkflowId
-            /*if (this.certId && this.formDataCert.WorkflowId) {
+            /* if (this.certId && this.formDataCert.WorkflowId) {
               this.$refs['WfHistory'].getHistoryTask() /!* 刷新工作流 *!/
             } */
             this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
@@ -998,9 +997,7 @@
             this.$refs['techList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId, this
               .formDataCert.InStyle)
-            console.log('this.formData.InStyle1', this.formData.InStyle)
             if (this.formData.InStyle == '2' || this.formData.InStyle == '6') {
-              console.log('this.formData.InStyle2', this.formData.InStyle)
               this.allowpre = false
             }
           }).catch(err => {
@@ -1056,16 +1053,16 @@
       },
       auditOrgChang (val) {
         console.log('------val', val)
-        let auditstepcode = 'SECOND_TRIAL';
-        api
+        let auditstepcode = 'SECOND_TRIAL'
+      api
           .getAuditerByFirst(val, auditstepcode, this.$axios)
           .then(res => {
             this.secauditerOptions = res.data.item
           })
           .catch(err => {
             console.error(err)
-        })
-    },
+          })
+      },
       nextTab () {
         if (this.formData.AuditIndex > 0) {
           this.totalTab = 4
@@ -1199,7 +1196,7 @@
               type: 'success',
               message: res.data.message
             })
-        } else {
+          } else {
             this.$message({
               type: 'warning',
               message: res.data.message
@@ -1255,7 +1252,7 @@
             })
           } else {
             return false
-        }
+          }
         })
       },
       selectAuditOrg () {
@@ -1376,12 +1373,12 @@
                 type: 'success',
                 message: res.data.message
               })
-          } else {
+            } else {
               this.$message({
                 type: 'warning',
                 message: res.data.message
               })
-          }
+            }
             this.applyLoading = false
           })
           .catch(err => {

File diff suppressed because it is too large
+ 226 - 221
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue


File diff suppressed because it is too large
+ 227 - 224
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue


+ 228 - 225
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -232,7 +232,7 @@
                 </el-option>
               </el-select>
             </el-form-item>
-            <el-form-item label="专业处室">
+            <el-form-item label="专业处室" v-if="allowpre">
               <el-cascader :options="preorgtreelist" :props="preorgtreeprops" :show-all-levels="false" filterable
                 style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
               </el-cascader>
@@ -336,7 +336,7 @@
   import api2 from '@/api/oilsupplier/supplierappend'
   import apiCert from '@/api/oilsupplier/suppliercert'
   import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-  import WfMultiHistory from "@/components/workflow/wfmultihistory.vue";
+  import WfMultiHistory from '@/components/workflow/wfmultihistory.vue';
   import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
   import setapi from '@/api/oilsupplier/oilclassorgset'
 
@@ -353,7 +353,7 @@
     },
     name: 'oilsuppliercertappendsub',
 
-    data() {
+    data () {
       var CheckSelectedOption = (rule, value, callback) => {
         if (this.selectedOrgList && this.selectedOrgList.length < 1) {
           callback(new Error('请选择推荐单位'))
@@ -376,16 +376,17 @@
         }
       }
       return {
-        newVisible:false,
+        allowpre: true,
+        newVisible: false,
         audithistoryshow: false,
         chooseAuditorVisible: false,
         chooseAuditorVisibleFen: false,
-        orgtreelist: [], //二级单位
+        orgtreelist: [], // 二级单位
         preorgtreelist: [],
         secauditerOptions: [],
-        fushenauditer: '', //复审人员
-        majorDept: [], //专业可是
-        AuditdialogShow: false, //提交审核弹框
+        fushenauditer: '', // 复审人员
+        majorDept: [], // 专业可是
+        AuditdialogShow: false, // 提交审核弹框
         ComAuditdialogShow: false,
         organizeOption: [], // 审批部门
         auditerOption: [], // 审批人
@@ -400,10 +401,10 @@
           children: 'children'
         },
         entrydetail: {
-          process: "",
-          business: "",
-          instance: "",
-          Status: '',
+          process: '',
+          business: '',
+          instance: '',
+          Status: ''
         },
         auditform: {
           FirstAuditName: '',
@@ -421,7 +422,7 @@
         dynamicTableColumns: [],
         flag: '',
         editbtn: true,
-        //资质文件
+        // 资质文件
         SubfileForm: {
           Id: '',
           SupplierId: '',
@@ -438,9 +439,9 @@
           OtherRemark: '',
           Remark: '',
           IsDelete: 0,
-          FileUrlList: [],
+          FileUrlList: []
         },
-         newSubfileForm:{
+        newSubfileForm: {
           Id: '',
           SupplierId: '',
           SupplierTypeCode: '03',
@@ -457,25 +458,25 @@
           OtherRemark: '',
           Remark: '',
           IsDelete: 0,
-          FileUrlList: [],
+          FileUrlList: []
         },
         checkList: [],
         auditer: '',
         auditerName: '',
         FirstAudit: '',
-        keyword: '', //查询关键字
-        supplierList: [], //供应方公司列表
-        supplierOptions: '', //已选择的供应方公司列表
+        keyword: '', // 查询关键字
+        supplierList: [], // 供应方公司列表
+        supplierOptions: '', // 已选择的供应方公司列表
         // serviceType: '', //服务类型()
-        optionsList: [], //增项分类层级列表
-        selectedOptList: [], //已选择的增项分类列表
+        optionsList: [], // 增项分类层级列表
+        selectedOptList: [], // 已选择的增项分类列表
         tytreeprops: {
           value: 'id',
           label: 'Name',
           children: 'children'
         },
-        organizeTreeList: [], //推荐单位层级列表
-        selectedOrgList: [], //已选择的单位列表
+        organizeTreeList: [], // 推荐单位层级列表
+        selectedOrgList: [], // 已选择的单位列表
         organizeTreeProps: {
           value: 'id',
           label: 'Fullname',
@@ -488,44 +489,44 @@
           description: '',
           id: 0
         },
-        //增项信息表
+        // 增项信息表
         formData: {
           Id: '',
           Step: 1,
           Status: '',
           SupplierId: 0,
           SupplierCertId: 0,
-          RecUnitFlag: '', //推荐单位的级联Id标记
-          RecUnitId: '', //推荐单位编码
-          RecUnitName: '', //推荐单位名称
-          AppendType: '', //增项类别(01 物资类,02 基建类,03 技术服务类)
-          Remark: '', //备注
+          RecUnitFlag: '', // 推荐单位的级联Id标记
+          RecUnitId: '', // 推荐单位编码
+          RecUnitName: '', // 推荐单位名称
+          AppendType: '', // 增项类别(01 物资类,02 基建类,03 技术服务类)
+          Remark: '' // 备注
         },
-        dialogVisible: false, //增项分类dialog
+        dialogVisible: false, // 增项分类dialog
         dialogFormData: {
           Id: '',
-          SupplierId: 0, //供方表ID
-          SupplierCertId: 0, //供方证书表ID
-          SupplierCertAppendId: '', //增项信息表ID
-          SubClassId: 3, //分类表主键(物资类或基建类或技术服务类)
-          SortFlag: '', //分类标记
-          Code: '', //分类编码
-          Name: '', //分类名称
-          Remark: '', //备注
+          SupplierId: 0, // 供方表ID
+          SupplierCertId: 0, // 供方证书表ID
+          SupplierCertAppendId: '', // 增项信息表ID
+          SubClassId: 3, // 分类表主键(物资类或基建类或技术服务类)
+          SortFlag: '', // 分类标记
+          Code: '', // 分类编码
+          Name: '', // 分类名称
+          Remark: '' // 备注
         },
-        //列表数据
+        // 列表数据
         entityList: [],
         myentityList: [],
-        //分页参数
+        // 分页参数
         size: 10,
         currentPage: 1,
         currentItemCount: 0,
-        //列表排序
+        // 列表排序
         Column: {
           Order: '',
           Prop: ''
         },
-        //增项表单规则
+        // 增项表单规则
         appendRules: {
           checkSelectedRecUnitName: [{
             required: true,
@@ -536,23 +537,23 @@
             required: true,
             validator: CheckSelectedOption3,
             trigger: 'blur'
-          }],
+          }]
         },
-        //增项分类表单规则
+        // 增项分类表单规则
         sortEntityFormRules: {
           checkSelectedOptList: [{
             required: true,
             validator: CheckSelectedOption2,
             trigger: 'blur'
-          }],
+          }]
         },
-        Id: '', //传的参数
-        editFlag: '', //编辑操作标记
+        Id: '', // 传的参数
+        editFlag: '', // 编辑操作标记
         waituploads: [],
-        IsCompanyUser: '',
+        IsCompanyUser: ''
       }
     },
-    created() {
+    created () {
       this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
       // this.serviceType = this.$route.params.opera //获取服务类型
       this.Id = this.$route.query.Id
@@ -561,60 +562,60 @@
         this.getEntityById()
         this.dialogFormData.SupplierCertAppendId = this.Id
       }
-      this.getOrgTreeList() //获取推荐单位层级列表
-      //this.getTechTreeList() //获取技术服务类层级列表
-      this.getSupplierList() //获取供应方公司列表
+      this.getOrgTreeList() // 获取推荐单位层级列表
+      // this.getTechTreeList() //获取技术服务类层级列表
+      this.getSupplierList() // 获取供应方公司列表
       this.getDictOptions()
       this.orgtreeChange(this.majorDept)
       this.initTableHeader()
     },
     methods: {
-        newdeletedata(val) {
-        let _this = this;
-        _this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
-            confirmButtonText: "确定",
-            cancelButtonText: "取消",
-            type: "warning"
-          })
+      newdeletedata (val) {
+        let _this = this
+      _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
             _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
               .then(function (response) {
                 if (response.data.code === 0) {
                   _this.$message({
-                    type: "success",
+                    type: 'success',
                     message: response.data.message
-                  });
-                  _this.getFileList();
-                } else {
+                  })
+                _this.getFileList()
+              } else {
                   _this.$message({
-                    type: "warning",
+                    type: 'warning',
                     message: response.data.message
-                  });
-                }
+                  })
+              }
               })
               .catch(function (error) {
-                console.log(error);
-              });
-          })
-          .catch(() => {});
-      },
-      makeNewSure(){
-          if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-            // 上传附件是否完成判断
-            if (!this.newattachissuccess()) {
-              this.$message.error('有附件未成功上传!不能保存数据')
-              return
-            }
-            this.newgetattachissuccess()
-            this.addSubfile()
-          } else {
-            this.$message({
-              type: 'warning',
-              message: '请上传文件!'
+                console.log(error)
             })
+        })
+          .catch(() => {})
+    },
+      makeNewSure () {
+        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
+          // 上传附件是否完成判断
+          if (!this.newattachissuccess()) {
+            this.$message.error('有附件未成功上传!不能保存数据')
+            return
           }
+          this.newgetattachissuccess()
+          this.addSubfile()
+        } else {
+          this.$message({
+            type: 'warning',
+            message: '请上传文件!'
+          })
+        }
       },
-      addSubfile() {
+      addSubfile () {
         let _this = this
         _this.newSubfileForm.SupplierId = parseInt(this.SupplierId)
         _this.$axios.post('/supplierfile/addsubfile/', _this.newSubfileForm)
@@ -622,7 +623,7 @@
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
               this.newVisible = false
               this.getFileList()
@@ -638,15 +639,15 @@
             console.error(err)
           })
       },
-      initTableHeader() {
-          setapi.initTsTableHeader(this.$axios).then(res => {
-            this.dynamicTableColumns = res.data.items
-          })
+      initTableHeader () {
+        setapi.initTsTableHeader(this.$axios).then(res => {
+          this.dynamicTableColumns = res.data.items
+        })
       },
-      showDialog1(){
+      showDialog1 () {
         this.newVisible = true
       },
-      newattachissuccess() {
+      newattachissuccess () {
         if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
           for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
             if (this.$refs.newrefuploadattach.uploadFiles[i].status !== 'success') {
@@ -656,7 +657,7 @@
         }
         return true
       },
-       newgetattachissuccess() {
+      newgetattachissuccess () {
         this.newSubfileForm.FileUrl = ''
         this.newSubfileForm.FileName = ''
         if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
@@ -673,7 +674,7 @@
           }
         }
       },
-      orgtreeChange(val) {
+      orgtreeChange (val) {
         this.userOptions = []
         let deptid = val[val.length - 1]
         let auditstepcode = 'PROF_RECE'
@@ -683,15 +684,15 @@
           console.error(err)
         })
       },
-      //获取推荐单位列表
-      getOrgTreeList() {
+      // 获取推荐单位列表
+      getOrgTreeList () {
         let _this = this
         let params = {
           IsInnerOrganize: this.organizeform.IsInnerOrganize
         }
         _this.$axios.get('organizes/orgalllist', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.organizeTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
             if (_this.authUser.Profile.IsCompanyUser === 0) {
@@ -705,11 +706,11 @@
           })
       },
 
-      //获取供应方公司列表
-      getSupplierList() {
+      // 获取供应方公司列表
+      getSupplierList () {
         let _this = this
         let params = {
-          SuppTypeCode: '03',
+          SuppTypeCode: '03'
         }
         _this.$axios.get('/suppliercertappend/getsupplier', {params})
           .then(res => {
@@ -719,12 +720,12 @@
             console.error(err)
           })
       },
-      chooseAuditorShow() {
+      chooseAuditorShow () {
         this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
         this.chooseAuditorVisible = true
       },
 
-      //获取技术服务类层级列表
+      // 获取技术服务类层级列表
       // getTechTreeList() {
       //   let _this = this
       //   this.$axios.get('technologyservice/businesslist', {})
@@ -737,25 +738,25 @@
       //     })
       // },
 
-      //获取SupplierId和SupplierCertId
-      getInfo(vId) { //这个vId也就是value值
+      // 获取SupplierId和SupplierCertId
+      getInfo (vId) { // 这个vId也就是value值
         let obj = {}
         obj = this.supplierList.find((item) => {
-          return item.SupplierId === vId; //筛选出匹配数据
-        })
+          return item.SupplierId === vId //筛选出匹配数据
+      })
         this.formData.SupplierId = parseInt(obj.SupplierId)
         this.formData.SupplierCertId = parseInt(obj.SupplierCertId)
       },
 
-      //获取分类级联Id
-      getCode(item) {
+      // 获取分类级联Id
+      getCode (item) {
         let sortFlagStr = item.toString()
         this.dialogFormData.SortFlag = sortFlagStr
-        this.getCodeById(item[item.length - 1]) //根据分类Id获取Code
+        this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
       },
 
-      //根据分类Id获取Code
-      getCodeById(Id) {
+      // 根据分类Id获取Code
+      getCodeById (Id) {
         let _this = this
         this.$axios.get('technologyservice/getcode/' + Id, {})
           .then(res => {
@@ -766,28 +767,31 @@
           })
       },
 
-      //获取推荐单位级联Id
-      getCode2(item) {
+      // 获取推荐单位级联Id
+      getCode2 (item) {
         let codeStr = item.toString()
         this.formData.RecUnitFlag = codeStr
       },
 
-      //审批历史
-      auhistory() {
+      // 审批历史
+      auhistory () {
         this.audithistoryshow = true
       },
 
-      //获取需要修改的增项信息
-      getEntityById() {
+      // 获取需要修改的增项信息
+      getEntityById () {
         let _this = this
         api2.getEntityById(_this.Id, _this.$axios).then(res => {
           _this.formData = res.data
           this.entrydetail.process = this.formData.ProcessKey
           this.entrydetail.business = _this.Id
-          this.entrydetail.instance = this.formData.WorkFlowId;
-          this.entrydetail.Status = this.formData.Status
+          this.entrydetail.instance = this.formData.WorkFlowId
+        this.entrydetail.Status = this.formData.Status
+          if (this.formData.InStyle == '2' || this.formData.InStyle == '6') {
+            this.allowpre = false
+          }
           this.getFileList()
-          //显示公司名
+          // 显示公司名
           _this.supplierOptions = _this.formData.SupplierId.toString()
           _this.getSortList()
           _this.getMySortList()
@@ -795,8 +799,8 @@
           console.error(err)
         })
       },
-      //获取资质文件
-      getFileList() {
+      // 获取资质文件
+      getFileList () {
         this.SupplierId = this.formData.SupplierId
         this.SupplierTypeCode = this.formData.AppendType
         let _this = this
@@ -804,11 +808,11 @@
           SupplierId: this.SupplierId,
           SupplierTypeCode: this.SupplierTypeCode,
           _currentPage: 1,
-          _size: 1000,
+          _size: 1000
         }
         _this.$axios.get('supplierfile/filelistall', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.subfileList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
@@ -820,7 +824,7 @@
             console.error(err)
           })
       },
-      makesure() {
+      makesure () {
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
           // 上传附件是否完成判断
           if (!this.attachissuccess()) {
@@ -833,7 +837,7 @@
           this.editSubfile()
         }
       },
-      editSubfile() {
+      editSubfile () {
         let _this = this
         _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
         _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
@@ -842,7 +846,7 @@
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
               this.visible = false
               this.getFileList()
@@ -858,12 +862,12 @@
             console.error(err)
           })
       },
-      fileurlcut(val, index) {
+      fileurlcut (val, index) {
         let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split("|")
+        let fileurl = fileurlall.split('|')
         return fileurl[0]
       },
-      openDialog(val) {
+      openDialog (val) {
         this.SubfileForm.Id = val.Id
         this.SubfileForm.SupplierId = val.SupplierId
         this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
@@ -886,8 +890,8 @@
         this.SubfileForm.IsDelete = val.IsDelete
         this.visible = true
       },
-      //文档列表
-      getwendanginfo(iUrl) {
+      // 文档列表
+      getwendanginfo (iUrl) {
         let _this = this
         _this.doclist = []
         let exArr = iUrl.split('|')
@@ -897,12 +901,12 @@
         }
         _this.doclist.push(params)
       },
-      beforeAvatarUpload(file) {
+      beforeAvatarUpload (file) {
         /*let isLt512K = file.size / 1024 < 512
         if (isLt512K) {
           this.$message.error('上传文件大小不能小于 512KB!')
           return false
-        }*/
+        } */
         let isLt50m = file.size / 1024 / 1024 / 5 < 1
         if (!isLt50m) {
           this.$message.error('上传文件大小不能超过 5MB!')
@@ -910,7 +914,7 @@
         }
         return true
       },
-      uploadrequest(option) {
+      uploadrequest (option) {
         let _this = this
         if (process.client) {
           const myDomain = window.location.host
@@ -953,7 +957,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') {
@@ -963,7 +967,7 @@
         }
         return true
       },
-      getattachissuccess() {
+      getattachissuccess () {
         this.SubfileForm.FileUrl = ''
         this.SubfileForm.FileName = ''
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
@@ -980,11 +984,11 @@
           }
         }
       },
-      clickachment(url, uid) {
+      clickachment (url, uid) {
         window.open(`http://${url}`)
       },
-      //保存增项信息
-      saveEntity() {
+      // 保存增项信息
+      saveEntity () {
         let _this = this
         this.$refs['EntityForm'].validate((valid) => {
           if (valid) {
@@ -999,8 +1003,8 @@
         })
       },
 
-      //更新增项信息
-      updateData() {
+      // 更新增项信息
+      updateData () {
         this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
         let _this = this
         api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
@@ -1009,21 +1013,21 @@
             this.$message({
               type: 'success',
               message: res.data.message
-            });
-          } else {
+            })
+        } else {
             this.$message({
               type: 'warning',
               message: res.data.message
-            });
-          }
+            })
+        }
         }).catch(err => {
           console.error(err)
         })
       },
 
-      //获取增项分类表
-      getSortList() {
-        //分页及列表条件
+      // 获取增项分类表
+      getSortList () {
+        // 分页及列表条件
         let params = {
           // _currentPage: this.currentPage,
           // _size: this.size,
@@ -1031,20 +1035,20 @@
           // Prop: this.Column.Prop,
           SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
           SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType,
-        };
+          SupTypeCode: this.formData.AppendType
+        }
 
-        //访问接口
-        api.getList(params, this.$axios).then(res => {
+      //访问接口
+      api.getList(params, this.$axios).then(res => {
           this.entityList = res.data.item
           // this.currentItemCount = res.data.currentItemCount
         }).catch(err => {
           console.error(err)
         })
       },
-      //获取增项分类表
-      getMySortList() {
-        //分页及列表条件
+      // 获取增项分类表
+      getMySortList () {
+        // 分页及列表条件
         let params = {
           // _currentPage: this.currentPage,
           // _size: this.size,
@@ -1052,11 +1056,11 @@
           // Prop: this.Column.Prop,
           SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
           SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType,
-        };
+          SupTypeCode: this.formData.AppendType
+        }
 
-        //访问接口
-        api.getMyList(params, this.$axios).then(res => {
+      //访问接口
+      api.getMyList(params, this.$axios).then(res => {
           this.myentityList = res.data.item
           // this.currentItemCount = res.data.currentItemCount
         }).catch(err => {
@@ -1064,8 +1068,8 @@
         })
       },
 
-      //添加增项信息
-      addAppend() {
+      // 添加增项信息
+      addAppend () {
         this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
         let _this = this
         _this.formData.AppendType = '03'
@@ -1073,12 +1077,12 @@
           .then(res => {
             if (res.data.code === 0) {
               this.entityList = res.data.item
-              this.dialogFormData.SupplierCertAppendId = res.data.info //接收插入数据后返回的Id
+              this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
               this.Id = res.data.info
               this.getEntityById()
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
             } else {
               _this.$message({
@@ -1092,13 +1096,13 @@
           })
       },
 
-      //添加增项分类
-      addSortData() {
+      // 添加增项分类
+      addSortData () {
         let _this = this
-        //先判断是否保存了增项信息
+        // 先判断是否保存了增项信息
         if (this.checkAppendSave()) {
           _this.dialogVisible = true
-          _this.selectedOptList = [] //置空,防止先修改再添加时的已选分类信息保留
+          _this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
           _this.dialogFormData.Id = ''
           _this.dialogFormData.SortFlag = ''
           _this.dialogFormData.Code = ''
@@ -1107,13 +1111,13 @@
         this.getorgtreelist()
       },
 
-      //取消
-      cancelOption() {
+      // 取消
+      cancelOption () {
         this.dialogVisible = false
       },
 
-      //确定
-      ensureOption() {
+      // 确定
+      ensureOption () {
         let arr = []
         let val = this.$refs.orgmanagetree.getCheckedNodes()
         this.checkList = []
@@ -1128,8 +1132,8 @@
         this.addSortAppend()
       },
 
-      //判断是否保存了增项信息
-      checkAppendSave() {
+      // 判断是否保存了增项信息
+      checkAppendSave () {
         if (this.dialogFormData.SupplierCertAppendId == '' && this.editFlag == null) {
           this.$message({
             type: 'error',
@@ -1140,8 +1144,8 @@
         return true
       },
 
-      //添加增项分类信息
-      addSortAppend() {
+      // 添加增项分类信息
+      addSortAppend () {
         let _this = this
         let params = {
           SupplierId: parseInt(this.formData.SupplierId),
@@ -1149,7 +1153,7 @@
           SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
           SupplierTypeCode: '03',
           Remark: this.dialogFormData.Remark,
-          Type:"2"
+          Type: '2'
         }
         if (_this.checkList.length > 0) {
           params = Object.assign(params, {
@@ -1167,11 +1171,11 @@
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
-              //关闭dialog
+              // 关闭dialog
               _this.dialogVisible = false
-              //更新增项分类表
+              // 更新增项分类表
               _this.getEntityById()
             } else {
               _this.$message({
@@ -1185,14 +1189,14 @@
           })
       },
 
-      //删除增项分类信息
-      deleteData(Id) {
+      // 删除增项分类信息
+      deleteData (Id) {
         let _this = this
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
             _this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
               .then(function (response) {
@@ -1216,57 +1220,57 @@
           .catch(() => {})
       },
 
-      selectAuditOrg() {
+      selectAuditOrg () {
         this.dialogVisible = true
       },
-      setAuditer(val, name) {
+      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';
         suppapi
           .getAuditerByFirst(val, auditstepcode, this.$axios)
           .then(res => {
             this.secauditerOptions = res.data.item
           })
           .catch(err => {
-            console.error(err);
-          });
-      },
-      chooseAuditorShowFen() {
-        console.log("--this.formData.SupplierTypeCode----", this.formData.SupplierTypeCode)
+            console.error(err)
+        })
+    },
+      chooseAuditorShowFen () {
+        console.log('--this.formData.SupplierTypeCode----', this.formData.SupplierTypeCode)
         this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
         this.chooseAuditorVisibleFen = true
       },
-      setAuditerFen(val, name) {
+      setAuditerFen (val, name) {
         this.auditer = val
         this.auditerName = name
         this.chooseAuditorVisibleFen = false
       },
 
-      //提交审批
-      AuditEntity() {
-        if (this.auditer === "") {
+      // 提交审批
+      AuditEntity () {
+        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
         }
         if (this.majorDept.length === 0) {
           this.$message({
-            type: "warning",
-            message: "请选择专业处室!"
+            type: 'warning',
+            message: '请选择专业处室!'
           })
           return
         }
@@ -1303,11 +1307,11 @@
         })
       },
 
-      SubpEntity() {
-        if (this.auditer === "") {
+      SubpEntity () {
+        if (this.auditer === '') {
           this.$message({
-            type: "warning",
-            message: "请选择分办人!"
+            type: 'warning',
+            message: '请选择分办人!'
           })
           return
         }
@@ -1335,18 +1339,18 @@
         })
       },
 
-      showDialog() {
+      showDialog () {
         this.getorgtreelist()
         this.techDialog = true
       },
-      getorgtreelist() {
+      getorgtreelist () {
         let _this = this
         let params = {
           keyword: _this.keyword
         }
         this.$axios.get('technologyservice/techbuslist', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
           })
@@ -1355,7 +1359,7 @@
           })
       },
 
-      getDictOptions() {
+      getDictOptions () {
         let params = {
           status: this.formData.Status,
           majorAduit: this.formData.ThirdAudit
@@ -1369,8 +1373,8 @@
         })
       },
 
-      //列表排序功能
-      orderby(column) {
+      // 列表排序功能
+      orderby (column) {
         if (column.order == 'ascending') {
           this.Column.Order = 'asc'
         } else if (column.order == 'descending') {
@@ -1378,18 +1382,18 @@
         }
         this.Column.Prop = column.prop
       },
-      //分页功能
-      handleCurrentChange(value) {
+      // 分页功能
+      handleCurrentChange (value) {
         this.currentPage = value
         this.getSortList()
       },
-      handleSizeChange(value) {
+      handleSizeChange (value) {
         this.size = value
         this.currentPage = 1
         this.getSortList()
       },
 
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -1400,10 +1404,9 @@
           val = val.replace('T', ' ')
           return val.substring(0, 10)
         }
-      },
+      }
     }
   }
-
 </script>
 <style lang='scss'>
   .attach-uploader .el-upload {

Some files were not shown because too many files changed in this diff