Explorar el Código

fix code style

白承飞 hace 5 años
padre
commit
82c563c3ff

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

@@ -697,7 +697,7 @@
         <el-button style="float: right; padding: 3px 10px"
                    type="text"
                    @click="manufacturerdialog"
-                   v-if="formData.Status <= '0'"
+                   v-if="parseInt(formData.Status) <= 0"
                    :disabled="!certId"
         >添加</el-button>
       </div>

+ 57 - 62
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/basisedit.vue

@@ -403,7 +403,7 @@
     },
     name: 'oilsupplierEdit',
 
-    data() {
+    data () {
       return {
         firOptions: [],
         loading: false,
@@ -425,16 +425,16 @@
         secorgtreelist: [],
         inStyle: '',
         auditerName: '',
-        fushenauditer: '', //复审人员
+        fushenauditer: '', // 复审人员
         majorDept: [100000000, 100000128, 100000151],
         allorgunitOptions: [],
         selectDept: 100000151,
         auditform: {
-          FirstAuditName: "",
-          SecondAudit: "",
-          ThirdAudit: "",
-          CertId: "",
-          AuditRemark: ""
+          FirstAuditName: '',
+          SecondAudit: '',
+          ThirdAudit: '',
+          CertId: '',
+          AuditRemark: ''
         },
         serviceId: '',
         certId: '',
@@ -445,7 +445,7 @@
         dialogMakeSure2: false,
         dialogAllocation: false,
         add_flat: false,
-        delete_flat:true,
+        delete_flat: true,
         aduitlabel: '审核人',
         auditer: '',
         auditTitle: '审批',
@@ -613,12 +613,12 @@
             }
             this.shenheForm.AuditorRemark = ''
           }
-        }else {
+        } else {
           if (this.shenheForm.SuccessStatus === 1){
             this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
-          } else{
-              this.textplaceholder = '退回意见不能少于5个字'
-            }
+          } else {
+            this.textplaceholder = '退回意见不能少于5个字'
+          }
         }
       },
       changeOrgUnit (val) {
@@ -629,33 +629,33 @@
           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()
       },
 
-      initDatas() {
+      initDatas () {
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
             this.formData = res.data
-            this.$refs["BasisInfo"].CityAry = [];
-            this.$refs["BasisInfo"].CityAry.push(this.formData.Province);
-            this.$refs["BasisInfo"].CityAry.push(this.formData.City);
-            this.$refs["BasisInfo"].CityAry.push(this.formData.Street);
-            this.$refs["BasisInfo"].LinkCityAry = [];
-            this.$refs["BasisInfo"].LinkCityAry.push(this.formData.LinkProvince);
-            this.$refs["BasisInfo"].LinkCityAry.push(this.formData.LinkCity);
-            this.$refs["BasisInfo"].LinkCityAry.push(this.formData.LinkStreet);
-            if (this.formData.CredentialFlag != "") {
-                this.$refs["BasisInfo"].showorhid(this.formData.CredentialFlag)
+            this.$refs['BasisInfo'].CityAry = []
+            this.$refs['BasisInfo'].CityAry.push(this.formData.Province)
+            this.$refs['BasisInfo'].CityAry.push(this.formData.City)
+            this.$refs['BasisInfo'].CityAry.push(this.formData.Street)
+            this.$refs['BasisInfo'].LinkCityAry = []
+            this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkProvince)
+            this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkCity)
+            this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkStreet)
+            if (this.formData.CredentialFlag != '') {
+              this.$refs['BasisInfo'].showorhid(this.formData.CredentialFlag)
             }
             if (this.formData.Status != 4) {
               this.delete_flat = false
@@ -663,7 +663,7 @@
             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
@@ -735,29 +735,29 @@
           })
         }
       },
-      chooseAuditorShow() {
-        this.$refs["chooseAuditor"].getorgtreelist(
+      chooseAuditorShow () {
+        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;
+      setAuditer (val, name) {
+        this.auditer = val
+        this.auditerName = name
+        this.chooseAuditorVisible = false
         // this.auditOrgChang(this.auditer)
       },
-      auditOrgChang() {
-        let auditstepcode = "SECOND_TRIAL";
+      auditOrgChang () {
+        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)
+          })
       },
-      isAccess() {
+      isAccess () {
         this.auditBtn = false
         let params = {
           id: this.formData.CertId,
@@ -771,7 +771,7 @@
         })
       },
 
-      getDictOptions() {
+      getDictOptions () {
         let params = {
           status: this.formData.Status,
           majorAduit: this.formData.ThirdAudit
@@ -787,14 +787,12 @@
         })
       },
 
-      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')
           })
@@ -802,14 +800,12 @@
             console.error(err)
           })
       },
-      getorgtreelistbydeptid() {
+      getorgtreelistbydeptid () {
         let _this = this
         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')
           })
@@ -817,7 +813,7 @@
             console.error(err)
           })
       },
-      auditOrgChange(val) {
+      auditOrgChange (val) {
         let auditstepcode = ''
         if (this.formData.Status === '1') {
           auditstepcode = 'SECOND_TRIAL'
@@ -827,7 +823,7 @@
           return
         }
         // let deplist = []
-        // deplist = this.companyid.split(",")
+        // deplist = this.companyid.split(',')
         // let deptid = deplist[deplist.length - 1]
         // console.log(deptid)
         // this.auditerOptions = []
@@ -839,10 +835,10 @@
         })
       },
       // 保存信息
-      saveEntity() {
+      saveEntity () {
         this.$refs['EntityForm'].validate((valid) => {
           if (valid) {
-            // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
+            // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + ''
             if (!this.formData.Id) {
               this.addEntity()
             } else {
@@ -855,11 +851,11 @@
       },
 
       // 保存信息
-      saveCertEntity() {
+      saveCertEntity () {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity() {
+      addEntity () {
         this.formData.SupplierTypeCode = '02'
         this.formData.SupplierTypeName = '基建类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -883,7 +879,7 @@
         })
       },
 
-      updateEntity() {
+      updateEntity () {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -903,7 +899,7 @@
         })
       },
 
-      CheckCompanyBase() {
+      CheckCompanyBase () {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -921,7 +917,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity() {
+      updateNumberEntity () {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -1110,7 +1106,7 @@
         })
       },
 
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -1123,7 +1119,7 @@
         }
       },
 
-      formatDateTime(date) {
+      formatDateTime (date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -1136,7 +1132,6 @@
       }
     }
   }
-
 </script>
 
 <style lang="scss">