Kaynağa Gözat

bug修改

Signed-off-by: lijunqing <lijunqing@dashoo.cn>
lijunqing 6 yıl önce
ebeveyn
işleme
de1ed73efe

+ 4 - 14
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -338,6 +338,7 @@
         auditbusList: [], // 待审核业务
         organizeOption: [], // 审批部门
         auditerOption: [],
+        userOptions: [],
         addshow: false,
         canUpdateSupplier: true,
         dictData: null,
@@ -485,11 +486,8 @@
       this.WorkflowId = this.$route.query.WorkflowId + ''
       this.getDictOptions()
       this.formData.Id = this.serviceId
-      console.log(this.formData.Id, this.$route.params)
       this.initDatas()
       this.entityForm.Status = this.Status
-      this.backhistroy.certId = this.annualId
-      this.backhistroy.workflowId = this.WorkflowId
       if (this.Status <= 1) {
         this.savebtn = false
         this.canUpdateSupplier = true
@@ -497,7 +495,6 @@
       if (this.Status > 0) {
         this.add_flat = false
       }
-      this.orgtreeChange(this.majorDept)
     },
     methods: {
       getstatus(annid) {
@@ -593,9 +590,6 @@
         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(',')
-        }
       },
 
       CheckCompanyBase() {
@@ -642,11 +636,8 @@
       initDatas() {
         console.log(this.formData.Id, 'this.formData.Id')
         if (this.formData.Id) {
-          console.log('111')
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
-            console.log('222')
             this.formData = res.data
-            console.log("----",this.formData)
             this.formDataCert.WorkerTotal = this.formData.WorkerTotal
             this.formDataCert.ContractNum = this.formData.ContractNum
             this.formDataCert.UniversityNum = this.formData.UniversityNum
@@ -668,9 +659,6 @@
             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.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
@@ -689,6 +677,7 @@
 
       orgtreeChange(val) {
         this.userOptions = []
+        if(val){
         let deptid = val[val.length - 1]
         let auditstepcode = 'PROF_RECE'
         api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
@@ -696,6 +685,7 @@
         }).catch(err => {
           console.error(err)
         })
+        }
       },
 
       auditOrgChang(val) {
@@ -866,7 +856,7 @@
               })
               return
             }
-            if (this.userOptions == null || this.userOptions.length === 0) {
+            if (this.userOptions.length === 0) {
               this.$message({
                 type: 'warning',
                 message: '该专业科室未配置接收人!'