Browse Source

fix style

白承飞 5 years ago
parent
commit
4dcdec274f

+ 2 - 2
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -1176,11 +1176,11 @@ export default {
     }
   },
   methods: {
-     updatemanufacturers () {
+    updatemanufacturers () {
       let _this = this
       if (_this.formData.OperType !== '制造商') {
         let IsManufacturer = 1
-        this.$axios.get('suppliercertsub/updatemanufacturers/'+ _this.formData.Id + '/' + IsManufacturer + '', {}).then(res => {
+        this.$axios.get('suppliercertsub/updatemanufacturers/' + _this.formData.Id + '/' + IsManufacturer + '', {}).then(res => {
           _this.goodsloading = false
           if (res.data.code === 0) {
             _this.$message({

+ 2 - 0
src/dashoo.cn/frontend_web/src/components/oilsupplier/manufacturerlist.vue

@@ -222,10 +222,12 @@ Viewer.setDefaults({
           })
       },
       editManufacturer () {
+        console.log('编辑所代理制造商')
         let _this = this
         _this.ManufacturerForm.SupplierCertId = parseInt(_this.ManufacturerForm.SupplierCertId)
         _this.$axios.put('/manufacturer/editmanufacturer/' + _this.ManufacturerForm.Id, _this.ManufacturerForm)
           .then(res => {
+            console.log('编辑所代理制造商', res.data)
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',

+ 50 - 57
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/goodsedit.vue

@@ -416,7 +416,7 @@
     },
     name: 'oilsupplierEdit',
 
-    data() {
+    data () {
       return {
         firOptions: [],
         loading: false,
@@ -583,7 +583,7 @@
         }
       }
     },
-    created() {
+    created () {
       this.companyid = this.authUser.Profile.Superior
       this.serviceId = this.$route.params.opera + ''
       this.certId = this.$route.query.certid + ''
@@ -628,12 +628,12 @@
             }
             this.shenheForm.AuditorRemark = ''
           }
-        }else {
+        } else {
           if (this.shenheForm.SuccessStatus === 1){
             this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
-          } else{
-              this.textplaceholder = '退回意见不能少于5个字'
-            }
+          } else {
+            this.textplaceholder = '退回意见不能少于5个字'
+          }
         }
       },
       changeOrgUnit (val) {
@@ -644,7 +644,7 @@
           console.error(err)
         })
       },
-      orgtreeChange(val) {
+      orgtreeChange (val) {
         this.userOptions = []
         let deptid = val[val.length - 1]
         let auditstepcode = 'PROF_RECE'
@@ -654,63 +654,61 @@
           console.error(err)
         })
       },
-      equipmentdialog() {
+      equipmentdialog () {
         this.$refs['equipmentList'].showDialog()
       },
-      performancedialog() {
+      performancedialog () {
         this.$refs['performanceList'].showDialog()
       },
-      patentdialog() {
+      patentdialog () {
         this.$refs['patentList'].showDialog()
       },
-      winningdialog() {
+      winningdialog () {
         this.$refs['winningList'].showDialog()
       },
-
-
-      chooseAuditorShow() {
+      chooseAuditorShow () {
         this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
         this.chooseAuditorVisible = true
       },
-      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 () {
-        let auditstepcode = "SECOND_TRIAL";
+        let auditstepcode = 'SECOND_TRIAL'
         api.getAuditerByFirst(this.auditer, auditstepcode, this.$axios)
           .then(res => {
             this.secauditerOptions = res.data.item
           })
           .catch(err => {
-            console.error(err);
-          });
+            console.error(err)
+          })
       },
 
-      initDatas() {
+      initDatas () {
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
             this.formData = res.data
-            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);
-            if (this.formData.CredentialFlag != "") {
-                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.formData.LinkProvince)
+            this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
+            this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
+            if (this.formData.CredentialFlag != '') {
+              this.$refs['GoodsInfo'].showorhid(this.formData.CredentialFlag)
             }
             if (this.formData.Status != 4) {
-                this.delete_flat = false
+              this.delete_flat = false
             }
             if ((this.formData.Status > 0) && (this.formData.Status != 4)) {
               this.delete_flat = false
             }
-            if ((this.formData.Status > 0) &&(this.authUser.Profile.IsCompanyUser==1)) {
+            if ((this.formData.Status > 0) && (this.authUser.Profile.IsCompanyUser == 1)) {
               this.delete_flat = false
             }
             this.formDataCert.WorkerTotal = this.formData.WorkerTotal
@@ -778,7 +776,7 @@
           })
         }
       },
-      isAccess() {
+      isAccess () {
         this.auditBtn = false
         let params = {
           id: this.formData.CertId,
@@ -792,7 +790,7 @@
         })
       },
 
-      getDictOptions() {
+      getDictOptions () {
         let params = {
           status: this.formData.Status,
           majorAduit: this.formData.ThirdAudit
@@ -807,14 +805,12 @@
           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')
           })
@@ -827,9 +823,7 @@
         let params = {
           IsInnerOrganize: 1
         }
-        _this.$axios.get('organizes/listbydeptid', {
-            params
-          })
+        _this.$axios.get('organizes/listbydeptid', {params})
           .then(res => {
             _this.secorgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
           })
@@ -837,7 +831,7 @@
             console.error(err)
           })
       },
-      auditOrgChange() {
+      auditOrgChange () {
         let auditstepcode = ''
         if (this.formData.Status === '1') {
           auditstepcode = 'SECOND_TRIAL'
@@ -859,7 +853,7 @@
         })
       },
       // 保存信息
-      saveEntity() {
+      saveEntity () {
         this.$refs['EntityForm'].validate((valid) => {
           if (valid) {
             // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
@@ -875,11 +869,11 @@
       },
 
       // 保存信息
-      saveCertEntity() {
+      saveCertEntity () {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity() {
+      addEntity () {
         this.formData.SupplierTypeCode = '02'
         this.formData.SupplierTypeName = '物资类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -903,7 +897,7 @@
         })
       },
 
-      updateEntity() {
+      updateEntity () {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -923,7 +917,7 @@
         })
       },
 
-      CheckCompanyBase() {
+      CheckCompanyBase () {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -941,7 +935,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity() {
+      updateNumberEntity () {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -991,11 +985,11 @@
           this.radioChange()
         }
       },
-      allocationBtn() {
+      allocationBtn () {
         this.dialogAllocation = true
       },
       // 审核通过
-      makeSure() {
+      makeSure () {
         if (this.shenheForm.SuccessStatus === 1) {
           if (this.formData.Status == '' || this.formData.Status == '0') {
             if (this.auditer === '') {
@@ -1037,7 +1031,7 @@
               })
               return
             }
-            if (this.inStyle != '2' && this.inStyle != '4' && this.inStyle != '6'){
+            if (this.inStyle != '2' && this.inStyle != '4' && this.inStyle != '6') {
               if (this.userOptions == null || this.userOptions.length === 0) {
                 this.$message({
                   type: 'warning',
@@ -1090,7 +1084,7 @@
         this.checkstatus()
       },
 
-      checkstatus() {
+      checkstatus () {
         let params = this.shenheForm
         let audit = {
           auditer: this.auditer,
@@ -1129,7 +1123,7 @@
         })
       },
 
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -1142,7 +1136,7 @@
         }
       },
 
-      formatDateTime(date) {
+      formatDateTime (date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -1155,7 +1149,6 @@
       }
     }
   }
-
 </script>
 
 <style lang="scss">