Explorar o código

前端: 年审审批时获取人员结构信息

baichengfei %!s(int64=5) %!d(string=hai) anos
pai
achega
0e5505520d

+ 12 - 12
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/auditoperation.vue

@@ -2128,18 +2128,18 @@ export default {
         if (this.formData.Id) {
           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.WorkerTotal = res.data.WorkerTotal
+            this.formDataCert.ContractNum = res.data.ContractNum
+            this.formDataCert.UniversityNum = res.data.UniversityNum
+            this.formDataCert.TechnicalNum = res.data.TechnicalNum
+            this.formDataCert.AboveProfNum = res.data.AboveProfNum
+            this.formDataCert.MiddleProfNum = res.data.MiddleProfNum
+            this.formDataCert.NationalRegNum = res.data.NationalRegNum
+            this.formDataCert.NationalCertTotal = res.data.NationalCertTotal
+            this.formDataCert.DesignerTotal = res.data.DesignerTotal
+            this.formDataCert.SkillerTotal = res.data.SkillerTotal
+            this.formDataCert.Status = res.data.Status
+            this.formDataCert.WorkflowId = res.data.WorkflowId
             // this.$refs['TechInfo'].CityAry = []
             // this.$refs['TechInfo'].CityAry.push(this.formData.Province)
             // this.$refs['TechInfo'].CityAry.push(this.formData.City)

+ 26 - 28
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/annualfistaudit.vue

@@ -293,33 +293,32 @@ export default {
       },
       supplierchange (value) {
         let obj = {}
-      obj = this.selectsupplierlist.find((item) => {
+        obj = this.selectsupplierlist.find((item) => {
           return item.Id === value
-      })
-      this.entityForm.SupplierName = obj.Realname
+        })
+        this.entityForm.SupplierName = obj.Realname
       },
       addAnnualAudit () {
         api.addEntity(this.entityForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.entityForm.Id = res.data.item
-          this.initDatas()
-          this.addshow = false
+            this.initDatas()
+            this.addshow = false
             this.$message({
               type: 'success',
               message: res.data.message
             })
-
-        } else {
+          } else {
             this.$message({
               type: 'warning',
               message: res.data.message
             })
-        }
+          }
         }).catch(err => {
           console.error(err)
         })
-    },
+      },
       addaudit () {
         this.addshow = true
       },
@@ -377,15 +376,15 @@ export default {
       },
       clearSearch () {
         Object.assign(this.searchForm, this.searchFormReset)
-      //this.searchForm = this.searchFormReset;
-      this.CreateOn = ''
+        // this.searchForm = this.searchFormReset;
+        this.CreateOn = ''
         this.initDatas()
       },
       handleSearch () {
         this.currentPage = 1
-      this.dialogVisible = false
-      this.initDatas()
-    },
+        this.dialogVisible = false
+        this.initDatas()
+      },
       handleCurrentChange (value) {
         this.currentPage = value
         this.initDatas()
@@ -399,21 +398,20 @@ export default {
         api.deleteEntity(row.Id, this.$axios).then(res => {
           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)
         })
-    },
+      },
 
       getvalues (val) {
         this.entrydetail.business = val.Id
@@ -453,15 +451,15 @@ export default {
 
       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>

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/goodsindex.vue

@@ -461,7 +461,7 @@
                 })
               } else if (res.data.code === -3) {
                 console.log('年审申请4444')
-                this.$confirm(res.data.message )
+                this.$confirm(res.data.message)
                   .then(_ => {
                     // this.addannualdirect()
                   })
@@ -532,7 +532,7 @@
                 })
               } else if (res.data.code === -3) {
                 console.log('年审审批2222')
-                this.$confirm(res.data.message )
+                this.$confirm(res.data.message)
                   .then(_ => {
                     // this.addannualdirect()
                   })

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

@@ -1496,7 +1496,7 @@ export default {
       api.getDictListByStatus(params, this.$axios).then(res => {
         this.dictData = res.data.items
         this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
-        var selectID = res.data.items['Register'].CheckUnitId;
+        var selectID = res.data.items['Register'].CheckUnitId
         var item = res.data.items['UnitOrgList'].find(n => n.Id == selectID)
         var list = res.data.items['UnitOrgList'].filter(n => n.Id != selectID)
 
@@ -1918,7 +1918,7 @@ export default {
         SupplierTypeCode: '01',
         Type: '1',
         IsManufacturer: 2,
-        CertSubStatus: '-1',
+        CertSubStatus: '-1'
       }
       params = Object.assign(params, {
         CheckList: _this.goodsList
@@ -1929,13 +1929,13 @@ export default {
           if (res.data[0].Code === '0') {
             this.$notify({
               title: '提示',
-              message: res.data[0].CertFileName +'!',
+              message: res.data[0].CertFileName + '!',
               type: 'warning'
             })
           } else {
             this.$notify({
               title: '提示',
-              message: '请上传'+ res.data[0].CertFileName +'!',
+              message: '请上传' + res.data[0].CertFileName + '!',
               type: 'warning'
             })
           }