Browse Source

ESLINT规范调整 20221222****重要;前端 马圣毅

mashengyi 2 years ago
parent
commit
ab6c7cfb18
43 changed files with 329 additions and 328 deletions
  1. 2 1
      .eslintrc.js
  2. 1 1
      src/views/Login.vue
  3. 24 24
      src/views/customer/Customer.vue
  4. 1 1
      src/views/customer/custRecMoney.vue
  5. 1 1
      src/views/customer/custRecTime.vue
  6. 3 3
      src/views/customer/customerEtcChangeInfo.vue
  7. 1 1
      src/views/customer/customerRecharge.vue
  8. 1 1
      src/views/customerRechargeMoney/customerRechargeMoney.vue
  9. 6 6
      src/views/manager/paramMagager.vue
  10. 20 20
      src/views/noCar/billway.vue
  11. 2 2
      src/views/noCar/billwayException.vue
  12. 4 4
      src/views/noCar/calculateInfo.vue
  13. 2 2
      src/views/noCar/calculateInfostatis.vue
  14. 5 5
      src/views/noCar/hcInvoice.vue
  15. 29 29
      src/views/noCar/invoice.vue
  16. 6 6
      src/views/noCar/mothaccount.vue
  17. 1 1
      src/views/noCar/nocarRec.vue
  18. 4 4
      src/views/personal/personal.vue
  19. 6 6
      src/views/platform/apply/already.vue
  20. 4 4
      src/views/platform/apply/apply.vue
  21. 6 6
      src/views/platform/apply/packaging.vue
  22. 7 7
      src/views/platform/apply/selfCarTrade.vue
  23. 3 3
      src/views/platform/car/carsuccess.vue
  24. 19 19
      src/views/platform/car/carupload.vue
  25. 9 9
      src/views/platform/carbinding/carbinding.vue
  26. 4 4
      src/views/platform/carbinding/carbindinglist.vue
  27. 9 9
      src/views/platform/check/check.vue
  28. 14 14
      src/views/platform/invoice/invoice.vue
  29. 19 19
      src/views/platform/invoice/list.vue
  30. 6 6
      src/views/platform/waybill/history.vue
  31. 5 5
      src/views/platform/waybill/over.vue
  32. 5 5
      src/views/platform/waybill/waybill.vue
  33. 6 6
      src/views/platform/waybillmanagement/noinvoice.vue
  34. 4 4
      src/views/platform/waybillmanagement/trueinvoice.vue
  35. 14 14
      src/views/platform/waybillmanagement/waybillList.vue
  36. 2 2
      src/views/selfCar/calculateInfo.vue
  37. 19 19
      src/views/selfCar/invoice.vue
  38. 1 1
      src/views/selfCar/selfCarApply.vue
  39. 16 16
      src/views/selfCar/selfCarTrade.vue
  40. 3 3
      src/views/selfCar/selfCarTradeException.vue
  41. 2 2
      src/views/selfCar/selfcarRec.vue
  42. 17 17
      src/views/selfCar/tradeCarApply.vue
  43. 16 16
      src/views/sys/user.vue

+ 2 - 1
.eslintrc.js

@@ -1,6 +1,6 @@
 module.exports = {
   //此项是用来告诉eslint找当前配置文件不能往父级查找
-  root: true, 
+  root: true,
   //此项是用来指定eslint解析器的,解析器必须符合规则,babel-eslint解析器是对babel解析器的包装使其与ESLint解析
   parser: 'babel-eslint',
   //此项是用来指定javaScript语言类型和风格,sourceType用来指定js导入的方式,默认是script,此处设置为module,指某块导入方式
@@ -32,6 +32,7 @@ module.exports = {
     "no-alert": "error",  // 禁止alert,conirm等
     "no-debugger": "error",  // 禁止debugger
     "semi": 0,   // 禁止分号
+    "eqeqeq": "off",//
     "no-tabs": "error", // 禁止使用tab
     "no-unreachable": "error", // 当有不能执行到的代码时
     "eol-last": "error", // 文件末尾强制换行

+ 1 - 1
src/views/Login.vue

@@ -43,7 +43,7 @@ export default {
     async handleLogin() {
       const response = await this.$http.post(`auth/login`, this.fromData)
       var {data: { code, msg, data }} = response
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.$message.success(`登录成功`)
         // 将tocken取到
         const token = document.cookie

+ 24 - 24
src/views/customer/Customer.vue

@@ -836,7 +836,7 @@ import XLSX from 'xlsx';
                 });
           },
           httpRequest(data) {
-              const isPFX = data.file.type === 'application/pdf';
+              const isPFX = data.file.type == 'application/pdf';
               const isLt2M = data.file.size / 1024 / 1024 < 10;
 
               if (!isPFX) {
@@ -856,7 +856,7 @@ import XLSX from 'xlsx';
                 this.$refs[formName].validate(async (valid) => {
                 if(valid) {
                   const response = await this.$http.post(`customer/addCustomer`, this.customer);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.addCustomerShow = false;
                     this.$message({
@@ -883,7 +883,7 @@ import XLSX from 'xlsx';
          async customRecharge(){
              this.customerRecharge['customerName'] = this.customer['customerName'];
              const response = await this.$http.post(`customer/customRecharge`, this.customerRecharge);
-                  if(response.data.data === true) {
+                  if(response.data.data == true) {
                     this.loadData();
                     this.accIsclose = false;
                     this.$message({
@@ -899,7 +899,7 @@ import XLSX from 'xlsx';
           },
          async changeStatusM(){
                   const response = await this.$http.post(`customer/updateCustomer`, this.customer);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.changeStatus = false;
                     this.$message({
@@ -920,10 +920,10 @@ import XLSX from 'xlsx';
           async recInfo(recoder){
               this.recVis = true;
             const response = await this.$http.post(`lowerService/customeRecQuery`, {'customerName': recoder.customerName, 'companyName': recoder.companyName});
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.customerRec = response.data.data;
 
-              this.disable = !((this.customerRec.interType === 1) && (this.customerRec.recStatus === 2 || this.customerRec.recStatus === 0));
+              this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2 || this.customerRec.recStatus == 0));
             }
           },
 
@@ -931,9 +931,9 @@ import XLSX from 'xlsx';
               //this.recVis = true;
               this.concatVis = true;
             const response = await this.$http.post(`lowerService/customeRecQuery`, {'customerName': recoder.customerName, 'companyName': recoder.companyName});
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.customerRec = response.data.data;
-              this.disable = !((this.customerRec.interType === 1) && (this.customerRec.recStatus === 2));
+              this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2));
             }
           },
           stopUse(recoder){
@@ -943,7 +943,7 @@ import XLSX from 'xlsx';
                          type: 'warning'
                    }).then(async () => {
                        const response = await this.$http.post('customer/customeRecStop', {'customerName': recoder.customerName, 'companyName': recoder.companyName});
-                       if (response.data.code === 0) {
+                       if (response.data.code == 0) {
                             this.$message({
                                 type: 'success',
                                  message: '停用成功'
@@ -966,7 +966,7 @@ import XLSX from 'xlsx';
                          type: 'warning'
                    }).then(async () => {
                        const response = await this.$http.post('customer/customeRecStart', {'customerName': recoder.customerName, 'companyName': recoder.companyName});
-                       if (response.data.code === 0) {
+                       if (response.data.code == 0) {
                             this.$message({
                                 type: 'success',
                                  message: '启用成功'
@@ -985,7 +985,7 @@ import XLSX from 'xlsx';
            async recInfoList(recoder){
              this.customer.customerName =recoder.customerName;
             const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': recoder.customerName});
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.customeRecQueryListTable = response.data.data;
             }
 
@@ -993,13 +993,13 @@ import XLSX from 'xlsx';
           },
           async queryCustomerRec(){
             const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': this.customer.customerName, 'companyName': this.customer.company});
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.customeRecQueryListTable = response.data.data;
             }
           },
           async carInfo(recoder){
             const response = await this.$http.post(`lowerService/customerCarRecQuery`, {'customerName': recoder.customerName});
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.coustomerCarTable = response.data.data;
             }
 
@@ -1027,7 +1027,7 @@ import XLSX from 'xlsx';
                     });
             }else{
                const response = await this.$http.post(`customer/customeRecQueryUpper`, this.customerRec);
-               if (response.data.code === 0) {
+               if (response.data.code == 0) {
                     this.customerRec = response.data.data;
               }else{
                 this.$message({
@@ -1047,9 +1047,9 @@ import XLSX from 'xlsx';
                                background: 'rgba(0, 0, 0, 0.7)'
                              });
                     const response = await this.$http.post(`customer/customerRecAdd`, this.customerRec);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                   const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': this.customer.customerName});
-                  if (response.data.code === 0) {
+                  if (response.data.code == 0) {
                     this.customeRecQueryListTable = response.data.data;
                   }
                     this.addCustomerRecShow1 = false;
@@ -1074,7 +1074,7 @@ import XLSX from 'xlsx';
           },
           async customerRecConform(){
              const response = await this.$http.post(`customer/customeRec`, this.customerRec);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.recInfoList(this.customerRec)
                     this.changeStatus = false;
@@ -1090,7 +1090,7 @@ import XLSX from 'xlsx';
                   }
           },
           changeRow(id){
-            if(id === 0){
+            if(id == 0){
               this.showEtcFee =true
             }else{
               this.showEtcFee =false
@@ -1098,7 +1098,7 @@ import XLSX from 'xlsx';
          },
           async contractAdd(){
              const response = await this.$http.post(`customer/contractAdd`, this.customerRec);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.recInfoList(this.customerRec)
                     this.changeStatus = false;
@@ -1115,7 +1115,7 @@ import XLSX from 'xlsx';
           },
             async contractStatusFail() {
              const response = await this.$http.post(`customer/contractStatusFail`, this.customerRec);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.recInfoList(this.customerRec)
                     this.changeStatus = false;
@@ -1133,7 +1133,7 @@ import XLSX from 'xlsx';
 
            async contractStatusProcess() {
              const response = await this.$http.post(`customer/contractStatusProcess`, this.customerRec);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.recInfoList(this.customerRec)
                     this.changeStatus = false;
@@ -1150,7 +1150,7 @@ import XLSX from 'xlsx';
           },
            async contractStatusSuccess() {
              const response = await this.$http.post(`customer/contractStatusSuccess`, this.customerRec);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.recInfoList(this.customerRec)
                     this.changeStatus = false;
@@ -1184,7 +1184,7 @@ import XLSX from 'xlsx';
             formData.append('company', this.formCondition.company);
             formData.append('subCompany', this.formCondition.subCompany);
             const response = await this.$http.post(`customer/findCustomer`, formData);
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.coustomerTable = response.data.data.records;
               this.total = response.data.data.total;
             }
@@ -1235,7 +1235,7 @@ import XLSX from 'xlsx';
       //     name + ".xlsx"
       //   );
       // } catch (e) {
-      //   if (typeof console !== "undefined") console.log(e, wbout);
+      //   if (typeof console != "undefined") console.log(e, wbout);
       // }
       // this.current = curr;
       // this.pagesize = pagesize1;

+ 1 - 1
src/views/customer/custRecMoney.vue

@@ -120,7 +120,7 @@ export default {
       formData.append(`moneyLower`, this.formCondition.moneyLower || -1)
       formData.append(`moneyUpper`, this.formCondition.moneyUpper || -1)
       const response = await this.$http.post(`customer/findCustomerMoney`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.customeRecMoneyListTable = response.data.data.records
         this.total = response.data.data.total
       }

+ 1 - 1
src/views/customer/custRecTime.vue

@@ -114,7 +114,7 @@ export default {
       formData.append(`serviceEndTime`, this.formCondition.serviceEndTime)
       formData.append(`companyBelongName`, this.formCondition.companyBelongName)
       const response = await this.$http.post(`customer/findCustomerRecTimeList`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.customeRecTimeListTable = response.data.data.records
         this.total = response.data.data.total
       }

+ 3 - 3
src/views/customer/customerEtcChangeInfo.vue

@@ -111,7 +111,7 @@
             prop="cardId"
             show-overflow-tooltip>
           </el-table-column>
-          
+
         </el-table>
       </template>
       </el-dialog>
@@ -154,7 +154,7 @@ export default {
       formData.append(`companyName`, this.formCondition.companyName)
       formData.append(`customerId`, this.formCondition.customerId)
       const response = await this.$http.post(`customer/customerChangeList`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.customerChangeListTable = response.data.data.records
         this.total = response.data.data.total
       }
@@ -164,7 +164,7 @@ export default {
       const formData = new FormData()
       formData.append(`applyId`, recoder[`applyId`])
       const response = await this.$http.post(`customer/customerChangeInfo`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.customerChangeInfoTable = response.data.data
       } else {
         this.customerChangeInfoTable = []

+ 1 - 1
src/views/customer/customerRecharge.vue

@@ -113,7 +113,7 @@ export default {
       formData.append(`customerName`, this.formCondition.customerName)
       formData.append(`companyName`, this.formCondition.companyName)
       const response = await this.$http.post(`customer/findCustomerRecharge`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.customerRechargeList = response.data.data.records
         this.total = response.data.data.total
       }

+ 1 - 1
src/views/customerRechargeMoney/customerRechargeMoney.vue

@@ -106,7 +106,7 @@ export default {
       formData.append(`rechargeEndTime`, this.rechargeEndTime)
 
       const response = await this.$http.post(`customer/findCustomerRechargeMoney`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.customerRechargeList = response.data.data.records
         this.total = response.data.data.total
       }

+ 6 - 6
src/views/manager/paramMagager.vue

@@ -182,7 +182,7 @@ export default{
       formData.append(`current`, this.current)
       formData.append(`size`, this.pagesize)
       const response = await this.$http.post(`param/page`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -197,7 +197,7 @@ export default{
       formData.append(`paramValue`, this.paramValue)
       formData.append(`paramNote`, this.paramNote)
       const response = await this.$http.post(`param/page`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -208,7 +208,7 @@ export default{
       this.$refs[formName].validate(async(valid) => {
         if (valid) {
           const response = await this.$http.post(`param`, this.formParamList)
-          if (response.data.code === 0) {
+          if (response.data.code == 0) {
             this.loadData()
             this.addParamList = false
             this.$message({
@@ -238,7 +238,7 @@ export default{
     // 修改参数
     async  changeData() {
       const response = await this.$http.post(`param/updateParam`, this.formParamList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.changeParam = false
         this.$message({
@@ -264,7 +264,7 @@ export default{
     // 分页方法
     handleSizeChange(val) {
       this.pagesize = val
-      if (this.userName !== `` || this.company !== ``) {
+      if (this.userName != `` || this.company != ``) {
         this.queryLook()
       } else {
         this.loadData()
@@ -272,7 +272,7 @@ export default{
     },
     handleCurrentChange(val) {
       this.current = val
-      if (this.userName !== `` || this.company !== ``) {
+      if (this.userName != `` || this.company != ``) {
         this.queryLook()
       } else {
         this.loadData()

+ 20 - 20
src/views/noCar/billway.vue

@@ -7,7 +7,7 @@
                   <el-upload  :action="url" :http-request="importExcel" list-type="text" :show-file-list="false" >
                             <el-button  type="primary">导入参数</el-button>
                              <el-select style="margin-left: 120px;" v-model="noCarWayBill.billwayStatus" placeholder="运单状态">
-                               
+
                       <el-option
                         v-for="item in tradeStatus"
                         :key="item.value"
@@ -16,7 +16,7 @@
                       </el-option>
                 </el-select>
                 </el-upload>
- 
+
               </div>
 
               <div class="demo-input-suffix" style="margin-top: 5px;">
@@ -263,7 +263,7 @@ import XLSX from 'xlsx';
             }
 
             const response = await this.$http.post(`noCar/findBillWay`, formData);
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.billWayTable = response.data.data.records;
               this.total = response.data.data.total;
             }
@@ -272,7 +272,7 @@ import XLSX from 'xlsx';
     const file = content.file
     // let file = file.files[0] // 使用传统的input方法需要加上这一步
     const filename = file.name
-    if(!filename||typeof filename!=='string'){
+    if(!filename||typeof filename != 'string'){
       this.$message('格式错误!请重新选择')
      return
     }
@@ -290,12 +290,12 @@ import XLSX from 'xlsx';
         this.xlsxJson = tabJson
         this.fileList = this.xlsxJson[0].sheet
         this.fileList.forEach((item, index, arr) => {
-           if(item['运单编号']!=null && item['运单编号']!=='' && typeof item['运单编号']!=='undefined'){
+           if(item['运单编号']!=null && item['运单编号'] != '' && typeof item['运单编号'] != 'undefined'){
                billNums+= item['运单编号'].trim()+',';
            }
         });
       }
-      if(billNums!==''){
+      if(billNums != ''){
         this.noCarWayBill.billNum =billNums.substring(0, billNums.length-1);
       }
     })
@@ -344,7 +344,7 @@ import XLSX from 'xlsx';
              const formData = new FormData();
             formData.append('noCarWayBillStr', JSON.stringify(this.multipleSelection));
             const response = await this.$http.post(`noCar/updateStatus`, formData);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.$message({
                       type: 'success',
@@ -373,7 +373,7 @@ import XLSX from 'xlsx';
       formData.append('file', this.formUserList.file);
       const response = await this.$http.post(`noCar/batchImportNocarBillWay`, formData);
       var {data: { code, msg, data }} = response;
-      if(code === 0 && msg === '1') {
+      if(code == 0 && msg == '1') {
          this.fullscreenLoading = false;
          this.billWayTable = response.data.data;
          this.total = response.data.data.length;
@@ -387,7 +387,7 @@ import XLSX from 'xlsx';
             var sheet = wb['Sheets']['Sheet1'];
             var replaceTemp = [];
             for(var i in sheet){
-              if(sheet[i]['v'] === '运单费用'){
+              if(sheet[i]['v'] == '运单费用'){
                 replaceTemp.push(i.replace(/[0-9]/g, ''));
                 continue;
               }
@@ -412,7 +412,7 @@ import XLSX from 'xlsx';
                     formData.append(i, this.noCarWayBill[i]);
                 }
                 const response = await this.$http.post(`noCar/findBillWay`, formData);
-                if (response.data.code === 0) {
+                if (response.data.code == 0) {
                 recodes = recodes.concat(response.data.data.records);
                 }
        }
@@ -444,29 +444,29 @@ import XLSX from 'xlsx';
           },
           formatJson (filterVal, jsonData) {
             return jsonData.map(v => filterVal.map((j) => {// eslint-disable-line
-              if(j === 'billwayStatus'){
-                 if(v[j] === 1){
+              if(j == 'billwayStatus'){
+                 if(v[j] == 1){
                    return '未结束';
-                 } else if(v[j] === -2){
+                 } else if(v[j] == -2){
                    return '上传失败';
-                 }else if(v[j] === -3){
+                 }else if(v[j] == -3){
                    return '指令结束上传失败';
-                 }else if(v[j] === 2){
+                 }else if(v[j] == 2){
                    return '开票中';
-                 }else if(v[j] === 3){
+                 }else if(v[j] == 3){
                    return '开票完成';
                  }else {
                    return '超时运单';
                  }
-              }else if(j ==='fee'){
+              }else if(j == 'fee'){
                   return v[j]/100;
-              }else if(j==='hisFlag'){
-                if(v[j] === 0){
+              }else if(j == 'hisFlag'){
+                if(v[j] == 0){
                   return '实时运单';
                 }else{
                   return '历史运单';
                 }
-              }else if( j==='billNum'){
+              }else if( j == 'billNum'){
                  return v[j]+'\t';
               }else{
                 return v[j];

+ 2 - 2
src/views/noCar/billwayException.vue

@@ -241,7 +241,7 @@ import XLSX from 'xlsx';
                 formData.append(i, this.noCarWayBill[i]);
             }
             const response = await this.$http.post(`noCar/findBillWayException`, formData);
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.billWayTable = response.data.data.records;
               this.total = response.data.data.total;
             }
@@ -253,7 +253,7 @@ import XLSX from 'xlsx';
              const formData = new FormData();
             formData.append('noCarWayBillStr', JSON.stringify(this.multipleSelection));
             const response = await this.$http.post(`noCar/updateStatus`, formData);
-                  if(response.data.code === 0) {
+                  if(response.data.code == 0) {
                     this.loadData();
                     this.$message({
                       type: 'success',

+ 4 - 4
src/views/noCar/calculateInfo.vue

@@ -141,7 +141,7 @@ export default {
       formData.append(`calculateTime`, this.formCondition.calculateTime)
       formData.append(`tradeId`, this.formCondition.tradeId)
       const response = await this.$http.post(`noCar/findNocarCalculateInfo`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.calculateInfo = response.data.data.records
         this.total = response.data.data.total
       }
@@ -160,7 +160,7 @@ export default {
       var sheet = wb[`Sheets`][`Sheet1`]
       var replaceTemp = []
       for (var i in sheet) {
-        if (sheet[i][`v`] === `费用`) {
+        if (sheet[i][`v`] == `费用`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }
@@ -186,7 +186,7 @@ export default {
           formData.append(i, this.formCondition[i])
         }
         const response = await this.$http.post(`noCar/findNocarCalculateInfo`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           recodes = recodes.concat(response.data.data.records)
         }
       }
@@ -230,7 +230,7 @@ export default {
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => {
         return filterVal.map((j) => {
-          if (j === `buyerTaxpayerCode`) {
+          if (j == `buyerTaxpayerCode`) {
             return v[j] + `\t`
           }
           return v[j]

+ 2 - 2
src/views/noCar/calculateInfostatis.vue

@@ -94,7 +94,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`noCar/findNocarCalculateInfoStatis`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.calculateInfo = response.data.data
       }
     },
@@ -103,7 +103,7 @@ export default {
       var sheet = wb[`Sheets`][`Sheet1`]
       var replaceTemp = []
       for (var i in sheet) {
-        if (sheet[i][`v`] === `费用个数`) {
+        if (sheet[i][`v`] == `费用个数`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 5 - 5
src/views/noCar/hcInvoice.vue

@@ -116,7 +116,7 @@ export default {
   methods: {
     // 列表展示
     async loadData() {
-      if (this.formCondition.month === null || this.formCondition.month === ``) {
+      if (this.formCondition.month == null || this.formCondition.month == ``) {
         this.$message({
           type: `error`,
           message: `请先选择需要查询的月份`
@@ -132,7 +132,7 @@ export default {
       const response = await this.$http.post(`noCarService/hCVoiceQuery`, this.formCondition)
 
       loading.close()
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.invoiceTable = response.data.data.result
       } else {
         this.$message({
@@ -143,7 +143,7 @@ export default {
     },
     // 列表展示
     async updateData() {
-      if (this.formCondition.month === null || this.formCondition.month === ``) {
+      if (this.formCondition.month == null || this.formCondition.month == ``) {
         this.$message({
           type: `error`,
           message: `请先选择需要查询的月份`
@@ -158,7 +158,7 @@ export default {
       })
       const response = await this.$http.post(`noCarService/hCVoiceUpdate`, this.formCondition)
       loading.close()
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.$message.success(`更新成功`)
       } else {
         this.$message({
@@ -181,7 +181,7 @@ export default {
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `金额`) {
+        if (sheet[i][`v`] == `金额`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 29 - 29
src/views/noCar/invoice.vue

@@ -310,7 +310,7 @@ import XLSX from 'xlsx';
                 formData.append(i, this.formCondition[i]);
             }
             const response = await this.$http.post('noCar/findNocarInvoices', formData);
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.invoiceTable = response.data.data.records;
               this.total = response.data.data.total;
             }
@@ -319,7 +319,7 @@ import XLSX from 'xlsx';
     const file = content.file
     // let file = file.files[0] // 使用传统的input方法需要加上这一步
     const filename = file.name
-    if(!filename||typeof filename !== 'string'){
+    if(!filename||typeof filename != 'string'){
       this.$message('格式错误!请按照模板中格式')
      return
     }
@@ -340,34 +340,34 @@ import XLSX from 'xlsx';
         this.xlsxJson = tabJson;
         this.fileList = this.xlsxJson[0].sheet;
         this.fileList.forEach((item, index, arr) => {
-           if(item['运单编号']!==null && item['运单编号']!=='' && typeof item['运单编号']!=='undefined'){
+           if(item['运单编号'] != null && item['运单编号'] != '' && typeof item['运单编号'] != 'undefined'){
                billNums+= item['运单编号'].trim()+',';
            }
-           if(item['发票号码']!==null && item['发票号码']!=='' && typeof item['发票号码']!=='undefined'){
+           if(item['发票号码'] != null && item['发票号码'] != '' && typeof item['发票号码'] != 'undefined'){
                invoiceNums+= item['发票号码'].trim()+',';
            }else{
              invoiceNums+= '#,';
            }
-            if(item['发票代码']!==null && item['发票代码']!=='' && typeof item['发票代码']!=='undefined'){
+            if(item['发票代码']!=null && item['发票代码']!='' && typeof item['发票代码']!='undefined'){
                invoiceCodes+= item['发票代码'].trim()+',';
            }else{
              invoiceNums+= '#,';
            }
-           if(item['车牌号']!==null && item['车牌号']!=='' && typeof item['车牌号']!=='undefined'){
+           if(item['车牌号']!=null && item['车牌号']!='' && typeof item['车牌号']!='undefined'){
                carNums+= item['车牌号'].trim()+',';
            }
         });
       }
-      if(billNums !== '') {
+      if(billNums != '') {
         this.formCondition.waybillNum =billNums.substring(0, billNums.length-1);
       }
-      if(invoiceNums!==null || invoiceNums!=='') {
+      if(invoiceNums!=null || invoiceNums!='') {
         this.formCondition.invoiceCode =invoiceCodes.substring(0, invoiceCodes.length-1);
       }
-      if(invoiceCodes!=='') {
+      if(invoiceCodes!='') {
          this.formCondition.invoiceNum =invoiceNums.substring(0, invoiceNums.length-1);
       }
-      if(carNums !== null || carNums !== '') {
+      if(carNums != null || carNums != '') {
         this.formCondition.plateNum = carNums.substring(0, carNums.length-1);
       }
     })
@@ -413,7 +413,7 @@ import XLSX from 'xlsx';
        const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50;
        let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf('.')).toLowerCase();
        let AllUpExt = '.xlsx';
-       if (extName !== AllUpExt) {
+       if (extName != AllUpExt) {
           this.$message.error('格式错误!请重新选择');
           return false;
     }
@@ -433,7 +433,7 @@ import XLSX from 'xlsx';
       formData.append('file', this.formUserList.file);
       const response = await this.$http.post(`noCar/batchImportNocarInvoices`, formData);
       var {data: { code, msg, data }} = response;
-      if (code === 0 && msg === '1') {
+      if (code == 0 && msg =='1') {
           loading.close();
          this.invoiceTable = response.data.data;
          this.total = response.data.data.length;
@@ -456,7 +456,7 @@ import XLSX from 'xlsx';
             var replaceTemp = [];
 
             for(var i in sheet) {
-               if(sheet[i]['v'] === '交易金额' || sheet[i]['v'] === '价税合计' || sheet[i]['v'] === '税额' || sheet[i]['v'] === '金额' || sheet[i]['v'] === '税率') {
+               if(sheet[i]['v'] == '交易金额' || sheet[i]['v'] == '价税合计' || sheet[i]['v'] == '税额' || sheet[i]['v'] == '金额' || sheet[i]['v'] == '税率') {
                 replaceTemp.push(i.replace(/[0-9]/g, ''));
                 continue;
               }
@@ -500,7 +500,7 @@ import XLSX from 'xlsx';
     //       name + ".xlsx"
     //     );
     //   } catch (e) {
-    //     if (typeof console !== "undefined") console.log(e, wbout);
+    //     if (typeof console != "undefined") console.log(e, wbout);
     //   }
     //    this.current = curr;
     //   this.pagesize = pagesize1;
@@ -524,7 +524,7 @@ import XLSX from 'xlsx';
                   formData.append(i, this.formCondition[i]);
               }
               const response = await this.$http.post('noCar/findNocarInvoices', formData);
-               if (response.data.code === 0) {
+               if (response.data.code == 0) {
                 recodes = recodes.concat(response.data.data.records);
                 }
             }
@@ -567,37 +567,37 @@ import XLSX from 'xlsx';
           },
           formatJson (filterVal, jsonData) {
             return jsonData.map(v => filterVal.map((j) => {  // eslint-disable-line
-             if(j === 'billStatus'){
-                 if(v[j] === 1){
+             if(j == 'billStatus'){
+                 if(v[j] == 1){
                    return '未结束';
-                 } else if(v[j] === -2){
+                 } else if(v[j] == -2){
                    return '上传失败';
-                 }else if(v[j] === -3){
+                 }else if(v[j] == -3){
                    return '指令结束上传失败';
-                 }else if(v[j] === 2){
+                 }else if(v[j] == 2){
                    return '开票中';
-                 }else if(v[j] === 3){
+                 }else if(v[j] == 3){
                    return '开票完成';
                  }else {
                    return '超时运单';
                  }
-              } else if(j === 'invoiceStatus'){
-                 if(v[j] === 1){
+              } else if(j == 'invoiceStatus'){
+                 if(v[j] == 1){
                    return '待开票';
-                 } else if(v[j] === 2){
+                 } else if(v[j] == 2){
                    return '开票中';
                  }else{
                    return '开票完成';
                  }
-              }else if(j ==='fee'){
+              }else if(j == 'fee'){
                   return v[j]/100;
-              }else if(j ==='totalAmount'){
+              }else if(j == 'totalAmount'){
                   return v[j]/100;
-              }else if(j ==='totalTaxAmount'){
+              }else if(j == 'totalTaxAmount'){
                   return v[j]/100;
-              }else if(j ==='amount'){
+              }else if(j == 'amount'){
                   return v[j]/100;
-              }else if(j==='waybillNum' || j==='invoiceCode' || j==='invoiceNum'){
+              }else if(j == 'waybillNum' || j == 'invoiceCode' || j == 'invoiceNum'){
                  return v[j]+'\t';
               }else{
                   return v[j];

+ 6 - 6
src/views/noCar/mothaccount.vue

@@ -108,7 +108,7 @@ export default {
       this.formCondition[`pageNo`] = this.current
       const response = await this.$http.post(`noCarService/monthAccQuery`, this.formCondition)
 
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.invoiceTable = response.data.data.result
         this.total = response.data.data.totalCount
       } else {
@@ -122,7 +122,7 @@ export default {
       this.formCondition[`pageNo`] = 1
       const response = await this.$http.post(`noCarService/monthAccUpdate`, this.formCondition)
 
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.$message({
           type: `success`,
           message: `更新成功`
@@ -148,7 +148,7 @@ export default {
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `金额`) {
+        if (sheet[i][`v`] == `金额`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }
@@ -166,7 +166,7 @@ export default {
       })
       const response = await this.$http.post(`noCarService/monthAccQueryAll`)
 
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         let recodes = response.data.data
         let time = new Date()
         let year = time.getFullYear()
@@ -190,9 +190,9 @@ export default {
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => {
         return filterVal.map((j) => {
-          if (j === `fee`) {
+          if (j == `fee`) {
             return v[j] / 100
-          } else if (j === `waybillNum` || j === `buyerTaxpayerCode`) {
+          } else if (j == `waybillNum` || j == `buyerTaxpayerCode`) {
             return v[j] + `\t`
           } else {
             return v[j]

+ 1 - 1
src/views/noCar/nocarRec.vue

@@ -162,7 +162,7 @@ export default {
       formData.append(`startTime`, this.startTime)
       formData.append(`businessType`, 2)
       const response = await this.$http.post(`noCar/findCarRec`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.nocarRecCarTable = response.data.data.records
         this.total = response.data.data.total
       }

+ 4 - 4
src/views/personal/personal.vue

@@ -122,7 +122,7 @@ export default{
       this.formupdateList.id = sessionStorage.getItem(`userId`)
       this.formthresholdList.id = sessionStorage.getItem(`userId`)
       const response = await this.$http.get(`user/${this.formUserList.userId}`)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.formUserList = response.data.data
         this.formupdateList.autoUpdate = response.data.data.autoUpdate
       };
@@ -137,7 +137,7 @@ export default{
     async updateInvoiceMessage() {
       this.formupdateList.autoUpdate = this.formupdateList.autoUpdate
       const response = await this.$http.put(`user/auto`, this.formupdateList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.$message({
           type: `success`,
@@ -153,7 +153,7 @@ export default{
     // 修改密码
     async resetPassword() {
       const response = await this.$http.put(`user/restPassword`, this.formList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.changepassword = false
         this.$router.push(`/login`)
@@ -173,7 +173,7 @@ export default{
       this.formthresholdList.id = this.formUserList.id
       this.formthresholdList.threshold = this.formUserList.threshold
       const response = await this.$http.put(`user`, this.formthresholdList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.$message({
           type: `success`,
           message: `修改成功`

+ 6 - 6
src/views/platform/apply/already.vue

@@ -246,14 +246,14 @@ export default{
       formData.append(`plateNum`, this.formList.carNum)
       formData.append(`invoiceMakeTime`, this.formList.invoiceMakeTime)
       const response = await this.$http.post(`selfCar/findSelfCarInvoices`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.usertabletwo = response.data.data.records
         this.total = response.data.data.total
       }
     },
     // 查询已开发票数据
     async queryLook() {
-      if (this.formList.invoiceMakeTime != null && this.formList.invoiceMakeTime !== ``) {
+      if (this.formList.invoiceMakeTime != null && this.formList.invoiceMakeTime != ``) {
         this.formList.startTime = this.formList.invoiceMakeTime[0]
         this.formList.endTime = this.formList.invoiceMakeTime[1]
       }
@@ -265,7 +265,7 @@ export default{
       })
       const response = await this.$http.post(`/selfCar/findSelfcarInvoiceByTime`, this.formList)
       var {data: { code, msg, data }} = response
-      if (code === 0) {
+      if (code == 0) {
         this.$message({
           type: `success`,
           message: `更新成功`
@@ -277,10 +277,10 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
       }
-      if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.formList.companyName = this.companyList[0][`companyName`]
@@ -303,7 +303,7 @@ export default{
       var sheet = wb[`Sheets`][`Sheet1`]
       var replaceTemp = []
       for (var i in sheet) {
-        if (sheet[i][`v`] === `税额(元)` || sheet[i][`v`] === `价税合计(元)` || sheet[i][`v`] === `交易金额(元)`) {
+        if (sheet[i][`v`] == `税额(元)` || sheet[i][`v`] == `价税合计(元)` || sheet[i][`v`] == `交易金额(元)`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 4 - 4
src/views/platform/apply/apply.vue

@@ -115,7 +115,7 @@ export default{
       this.formList.endTime = this.endTime
       const response = await this.$http.post(`/selfCar/getTradeList`, this.formList)
       var {data: { code, msg, data }} = response
-      if (code === 0) {
+      if (code == 0) {
         this.usertabletwo = response.data.data
       } else {
         this.$message.error(msg)
@@ -123,10 +123,10 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
       }
-      if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.companyName = this.companyList[0][`companyName`]
@@ -163,7 +163,7 @@ export default{
       this.formList.carIdStr = this.carIdStr
       const response = await this.$http.post(`/selfCar/applTradeList`, this.formList)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.$message({
           type: `success`,
           message: `开票成功`

+ 6 - 6
src/views/platform/apply/packaging.vue

@@ -94,7 +94,7 @@ export default{
     // 数据加载
     async loadData() {
       //  const response = await this.$http.post(`b2bInvoicePackage/page`, formData);
-      //   if (response.data.code === 0) {
+      //   if (response.data.code == 0) {
       //     this.usertable = response.data.data.records;
       //   }
     },
@@ -102,7 +102,7 @@ export default{
     async applyForTicket() {
       const response = await this.$http.post(`/selfCarService/getSelfCarInvoicePackage`, this.formPackList)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.$message({
           type: `success`,
           message: `发票打包成功`
@@ -114,9 +114,9 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
-      } if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      } if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.formPackList.companyName = this.companyList[0][`companyName`]
@@ -132,7 +132,7 @@ export default{
     // 分页方法
     handleSizeChange(val) {
       this.pagesize = val
-      if (this.companyName !== ``) {
+      if (this.companyName != ``) {
         this.queryLook()
       } else {
         this.loadData()
@@ -140,7 +140,7 @@ export default{
     },
     handleCurrentChange(val) {
       this.current = val
-      if (this.companyName !== ``) {
+      if (this.companyName != ``) {
         this.queryLook()
       } else {
         this.loadData()

+ 7 - 7
src/views/platform/apply/selfCarTrade.vue

@@ -171,7 +171,7 @@ export default {
       })
       const response = await this.$http.post(`selfCar/findTradesUpper`, formData)
 
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.selfcarTrade = response.data.data.records
         this.total = response.data.data.total
       } else {
@@ -188,7 +188,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`selfCar/findTrades`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.selfcarTrade = response.data.data.records
         this.total = response.data.data.total
       }
@@ -199,7 +199,7 @@ export default {
     async update() {
       var loading = null
       const formData = new FormData()
-      if (this.multipleSelection.length === 0) {
+      if (this.multipleSelection.length == 0) {
         loading = this.$loading({
           lock: true,
           text: `全量更新中,速度较慢,请您耐心等待...`,
@@ -211,7 +211,7 @@ export default {
 
       formData.append(`selfCarTradesStr`, JSON.stringify(this.multipleSelection))
       const response = await this.$http.post(`selfCar/updateTrades`, formData)
-      if (this.multipleSelection.length === 0) {
+      if (this.multipleSelection.length == 0) {
         loading.close()
       };
       this.loadData()
@@ -222,9 +222,9 @@ export default {
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
-      } if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      } if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.formCondition.companyName = this.companyList[0][`companyName`]
@@ -244,7 +244,7 @@ export default {
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `交易费用`) {
+        if (sheet[i][`v`] == `交易费用`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 3 - 3
src/views/platform/car/carsuccess.vue

@@ -143,17 +143,17 @@ export default{
       formData.append(`customerName`, this.formUserList.customerName)
       formData.append(`recStatus`, this.formUserList.recStatus)
       const response = await this.$http.post(`noCar/findCarRec`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.usertable = response.data.data.records
         this.total = response.data.data.total
       }
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
       }
-      if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.formUserList.companyName = this.companyList[0][`companyName`]

+ 19 - 19
src/views/platform/car/carupload.vue

@@ -271,13 +271,13 @@ export default{
     async loadData() {
       this.formUserList.userId = sessionStorage.getItem(`userId`)
       this.formUserList.roleId = sessionStorage.getItem(`roleId`)
-      if (this.formUserList.roleId === 1) {
+      if (this.formUserList.roleId == 1) {
         const formData = new FormData()
         formData.append(`current`, this.current)
         formData.append(`size`, this.pagesize)
         formData.append(`type`, 1)
         const response = await this.$http.post(`batch/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertable = response.data.data.records
           this.total = response.data.data.total
@@ -289,7 +289,7 @@ export default{
         formData.append(`userId`, this.formUserList.userId)
         formData.append(`type`, 1)
         const response = await this.$http.post(`batch/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertable = response.data.data.records
           this.total = response.data.data.total
@@ -298,7 +298,7 @@ export default{
     },
     // 查询
     async queryLook() {
-      if (this.formUserList.roleId === 1) {
+      if (this.formUserList.roleId == 1) {
         const formData = new FormData()
         formData.append(`current`, this.current)
         formData.append(`size`, this.pagesize)
@@ -307,7 +307,7 @@ export default{
         formData.append(`userCompany`, this.userCompany)
         formData.append(`batchNumber`, this.batchNumber)
         const response = await this.$http.post(`batch/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertable = response.data.data.records
           this.total = response.data.data.total
@@ -322,7 +322,7 @@ export default{
         formData.append(`userCompany`, this.userCompany)
         formData.append(`batchNumber`, this.batchNumber)
         const response = await this.$http.post(`batch/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertable = response.data.data.records
           this.total = response.data.data.total
@@ -340,7 +340,7 @@ export default{
       const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50
       let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf(`.`)).toLowerCase()
       let AllUpExt = `.xlsx`
-      if (extName !== AllUpExt) {
+      if (extName != AllUpExt) {
         this.$message.error(`格式错误!请重新选择`)
         return false
       }
@@ -362,11 +362,11 @@ export default{
       formData.append(`file`, this.formUserList.file)
       const response = await this.$http.post(`carFreeCarrierRegister/excel`, formData)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.loadData()
         loading.close()
         this.$message.success(`上传成功`)
-      } else if (code === 1 && msg == null && data == null) {
+      } else if (code == 1 && msg == null && data == null) {
         loading.close()
         this.$message.error(`数据存在错误,请检查文件中数据`)
       } else {
@@ -382,13 +382,13 @@ export default{
     },
     // 查看批次数据
     async loadDataCar() {
-      if (this.formUserList.roleId === 1) {
+      if (this.formUserList.roleId == 1) {
         const formData = new FormData()
         formData.append(`current`, this.currenttwo)
         formData.append(`size`, this.pagesizetwo)
         formData.append(`batchId`, this.batchId)
         const response = await this.$http.post(`carFreeCarrierRegister/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertabletwo = response.data.data.records
           this.totaltwo = response.data.data.total
@@ -400,7 +400,7 @@ export default{
         formData.append(`batchId`, this.batchId)
         formData.append(`userId`, this.formUserList.userId)
         const response = await this.$http.post(`carFreeCarrierRegister/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertabletwo = response.data.data.records
           this.totaltwo = response.data.data.total
@@ -409,7 +409,7 @@ export default{
     },
     // 查看(二)
     async queryLookTwo() {
-      if (this.formUserList.roleId === 1) {
+      if (this.formUserList.roleId == 1) {
         const formData = new FormData()
         formData.append(`current`, this.currenttwo)
         formData.append(`size`, this.pagesizetwo)
@@ -418,7 +418,7 @@ export default{
         formData.append(`plateNumber`, this.plateNumber)
         formData.append(`plateColor`, this.plateColor)
         const response = await this.$http.post(`carFreeCarrierRegister/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertabletwo = response.data.data.records
           this.totaltwo = response.data.data.total
@@ -433,7 +433,7 @@ export default{
         formData.append(`plateNumber`, this.plateNumber)
         formData.append(`plateColor`, this.plateColor)
         const response = await this.$http.post(`carFreeCarrierRegister/list`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false
           this.usertabletwo = response.data.data.records
           this.totaltwo = response.data.data.total
@@ -461,7 +461,7 @@ export default{
     // 分页方法
     handleSizeChange(val) {
       this.pagesize = val
-      if (this.userName !== `` || this.userCompany !== `` || this.batchNumber !== ``) {
+      if (this.userName != `` || this.userCompany != `` || this.batchNumber != ``) {
         this.queryLook()
       } else {
         this.loadData()
@@ -469,7 +469,7 @@ export default{
     },
     handleCurrentChange(val) {
       this.current = val
-      if (this.userName !== `` || this.userCompany !== `` || this.batchNumber !== ``) {
+      if (this.userName != `` || this.userCompany != `` || this.batchNumber != ``) {
         this.queryLook()
       } else {
         this.loadData()
@@ -477,7 +477,7 @@ export default{
     },
     handleSize(val) {
       this.pagesizetwo = val
-      if (this.userPhone !== `` || this.plateNumber !== `` || this.plateColor !== ``) {
+      if (this.userPhone != `` || this.plateNumber != `` || this.plateColor != ``) {
         this.queryLookTwo()
       } else {
         this.loadDataCar()
@@ -485,7 +485,7 @@ export default{
     },
     handleCurrent(val) {
       this.currenttwo = val
-      if (this.userPhone !== `` || this.plateNumber !== `` || this.plateColor !== ``) {
+      if (this.userPhone != `` || this.plateNumber != `` || this.plateColor != ``) {
         this.queryLookTwo()
       } else {
         this.loadDataCar()

+ 9 - 9
src/views/platform/carbinding/carbinding.vue

@@ -209,7 +209,7 @@ export default{
       this.formList.cards.push(object)
       const response = await this.$http.post(`/selfCarService/queryEtcInfo`, this.formList)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.usertabletwo = response.data.data
         this.formList.cards = []
       } else {
@@ -223,10 +223,10 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`), 'bussinessType': `0`})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
       }
-      if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.formList.companyName = this.companyList[0][`companyName`]
@@ -241,7 +241,7 @@ export default{
 
       var flag = true
       for (var i = 0; i < len; i++) {
-        if (this.multipleSelection[0].mobile !== this.multipleSelection[i].mobile) {
+        if (this.multipleSelection[0].mobile != this.multipleSelection[i].mobile) {
           flag = false
         } else {
           var object = {};
@@ -249,12 +249,12 @@ export default{
           this.formCodeList.cards.push(object)
         }
       }
-      if (len === 0) {
+      if (len == 0) {
         this.$message.error(`请选择需要绑定的ETC卡`)
       }
-      if (flag === true && len !== 0) {
+      if (flag == true && len != 0) {
         this.binDing = true
-      } else if (len !== 0) {
+      } else if (len != 0) {
         this.$message.error(`请选择相同手机号下的ETC卡`)
       }
     },
@@ -263,7 +263,7 @@ export default{
     async getCode() {
       const response = await this.$http.post(`/selfCarService/customerETCRec`, this.formCodeList)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
 
       } else {
         this.$message.error(msg)
@@ -274,7 +274,7 @@ export default{
       this.formBindingList.mobile = this.formCodeList.mobile
       const response = await this.$http.post(`/selfCarService/customerETCRecValid`, this.formBindingList)
       var {data: { code, msg, data }} = response
-      if (code === 0) {
+      if (code == 0) {
         this.binDing = false
         for (var key in this.formBindingList) {
           this.formBindingList[key] = ``

+ 4 - 4
src/views/platform/carbinding/carbindinglist.vue

@@ -116,7 +116,7 @@ export default{
       formData.append(`carNum`, this.carNum)
       formData.append(`businessType`, 0)
       const response = await this.$http.post(`noCar/findCarRec`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -131,7 +131,7 @@ export default{
       formData.append(`carNum`, this.carNum)
       formData.append(`businessType`, 0)
       const response = await this.$http.post(`noCar/findCarRec`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -139,9 +139,9 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`), 'bussinessType': `0`})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
-      } if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      } if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.formList.companyName = this.companyList[0][`companyName`]

+ 9 - 9
src/views/platform/check/check.vue

@@ -256,13 +256,13 @@
         this.customerName = sessionStorage.getItem(`userName`)
         this.formUserList.customerName = sessionStorage.getItem(`userName`)
         this.formUserList.bussinessType = sessionStorage.getItem(`roleId`)
-        if (this.formUserList.bussinessType === 1) {
+        if (this.formUserList.bussinessType == 1) {
           const formData = new FormData()
           formData.append(`current`, this.current)
           formData.append(`size`, this.pagesize)
           formData.append(`customerName`, this.formUserList.customerName)
           const response = await this.$http.post(`customer/customeRecQueryListByPage`, formData)
-          if (response.data.code === 0) {
+          if (response.data.code == 0) {
             this.loading = false
             this.usertable = response.data.data.records
             this.total = response.data.data.total
@@ -273,7 +273,7 @@
           formData.append(`size`, this.pagesize)
           formData.append(`customerName`, this.formUserList.customerName)
           const response = await this.$http.post(`customer/customeRecQueryListByPage`, formData)
-          if (response.data.code === 0) {
+          if (response.data.code == 0) {
             this.loading = false
             this.usertable = response.data.data.records
             this.total = response.data.data.total
@@ -282,7 +282,7 @@
       },
 
       async queryLook() {
-        if (this.formUserList.bussinessType === 1) {
+        if (this.formUserList.bussinessType == 1) {
           const formData = new FormData()
           formData.append(`current`, this.current)
           formData.append(`size`, this.pagesize)
@@ -291,7 +291,7 @@
           formData.append(`companyReferencenum`, this.companyReferencenum)
           formData.append(`companyName`, this.companyName)
           const response = await this.$http.post(`customer/customeRecQueryListByPage`, formData)
-          if (response.data.code === 0) {
+          if (response.data.code == 0) {
             this.loading = false
             this.usertable = response.data.data.records
             this.total = response.data.data.total
@@ -307,7 +307,7 @@
           formData.append(`companyReferencenum`, this.companyReferencenum)
           formData.append(`companyName`, this.companyName)
           const response = await this.$http.post(`customer/customeRecQueryListByPage`, formData)
-          if (response.data.code === 0) {
+          if (response.data.code == 0) {
             this.loading = false
             this.usertable = response.data.data.records
             this.total = response.data.data.total
@@ -319,7 +319,7 @@
         this.$refs[formName].validate(async(valid) => {
           if (valid) {
             const response = await this.$http.post(`customer/customerRecAdd`, this.formUserList)
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.loadData()
               this.addList = false
               this.$message({
@@ -352,7 +352,7 @@
       // 分页方法
       handleSizeChange(val) {
         this.pagesize = val
-        if (this.customerName !== `` || this.companyLeaderPhone !== `` || this.companyReferencenum !== `` || this.companyName !== ``) {
+        if (this.customerName != `` || this.companyLeaderPhone != `` || this.companyReferencenum != `` || this.companyName != ``) {
           this.queryLook()
         } else {
           this.loadData()
@@ -360,7 +360,7 @@
       },
       handleCurrentChange(val) {
         this.current = val
-        if (this.customerName !== `` || this.companyLeaderPhone !== `` || this.companyReferencenum !== `` || this.companyName !== ``) {
+        if (this.customerName != `` || this.companyLeaderPhone != `` || this.companyReferencenum != `` || this.companyName != ``) {
           this.queryLook()
         } else {
           this.loadData()

+ 14 - 14
src/views/platform/invoice/invoice.vue

@@ -202,13 +202,13 @@ export default{
     async loadData() {
       this.formUserList.userId = sessionStorage.getItem('userId');
       this.formUserList.roleId = sessionStorage.getItem('roleId');
-      if(this.formUserList.roleId === 1) {
+      if(this.formUserList.roleId == 1) {
         const formData = new FormData();
         formData.append('current', this.current);
         formData.append('size', this.pagesize);
         formData.append('type', 4);
         const response = await this.$http.post(`batch/list`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertable = response.data.data.records;
           this.total = response.data.data.total;
@@ -220,7 +220,7 @@ export default{
         formData.append('userId', this.formUserList.userId);
         formData.append('type', 4);
         const response = await this.$http.post(`batch/list`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertable = response.data.data.records;
           this.total = response.data.data.total;
@@ -235,13 +235,13 @@ export default{
     },
     // 查看实时数据
     async loadDataCar() {
-      if(this.formUserList.roleId === 1) {
+      if(this.formUserList.roleId == 1) {
         const formData = new FormData();
         formData.append('current', this.currenttwo);
         formData.append('size', this.pagesizetwo);
         formData.append('batchId', this.batchId);
         const response = await this.$http.post(`numInvoice/list`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertabletwo = response.data.data.records;
           this.totaltwo = response.data.data.total;
@@ -253,7 +253,7 @@ export default{
         formData.append('userId', this.formUserList.userId);
         formData.append('batchId', this.batchId);
         const response = await this.$http.post(`numInvoice/list`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertabletwo = response.data.data.records;
           this.totaltwo = response.data.data.total;
@@ -262,14 +262,14 @@ export default{
     },
     //查询
     async queryLookTwo() {
-      if(this.formUserList.roleId === 1) {
+      if(this.formUserList.roleId == 1) {
         const formData = new FormData();
         formData.append('current', this.currenttwo);
         formData.append('size', this.pagesizetwo);
         formData.append('batchId', this.batchId);
         formData.append('num', this.num);
         const response = await this.$http.post(`numInvoice/list`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertabletwo = response.data.data.records;
           this.totaltwo = response.data.data.total;
@@ -282,7 +282,7 @@ export default{
         formData.append('batchId', this.batchId);
         formData.append('num', this.num);
         const response = await this.$http.post(`numInvoice/list`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertabletwo = response.data.data.records;
           this.totaltwo = response.data.data.total;
@@ -299,7 +299,7 @@ export default{
          const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50;
       let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf('.')).toLowerCase();
        let AllUpExt = '.xlsx';
-       if( extName !== AllUpExt){
+       if( extName != AllUpExt){
           this.$message.error('格式错误!请重新选择');
           return false;
     }
@@ -320,12 +320,12 @@ export default{
       formData.append('file', this.formUserList.file);
       const response = await this.$http.post(`numInvoice/excel`, formData);
       var {data: { code, msg, data }} = response;
-      if(code === 0 && msg === 'success') {
+      if(code == 0 && msg == 'success') {
         this.loadData();
         loading.close();
         this.$message.success('上传成功');
         this.$refs.upload.clearFiles();
-      }else if(code === 1 && msg == null && data == null) {
+      }else if(code == 1 && msg == null && data == null) {
         loading.close();
         this.$message.error('数据存在错误,请检查文件中数据');
       }else {
@@ -352,7 +352,7 @@ export default{
     },
     handleSize(val) {
       this.pagesizetwo = val;
-      if(this.num !== '') {
+      if(this.num != '') {
         this.queryLookTwo();
       }else{
         this.loadDataCar();
@@ -360,7 +360,7 @@ export default{
     },
     handleCurrent(val) {
       this.currenttwo = val;
-      if(this.num !== '') {
+      if(this.num != '') {
         this.queryLookTwo();
       }else{
         this.loadDataCar();

+ 19 - 19
src/views/platform/invoice/list.vue

@@ -342,7 +342,7 @@ export default{
         formData.append('interType', 5);
         formData.append('calculateTime', this.calculateTime);
         const response = await this.$http.post(`noCar/findNocarInvoices`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           this.usertable = response.data.data.records;
           this.total = response.data.data.total;
@@ -362,9 +362,9 @@ export default{
     },
     async initCompanyList(){
             const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem('userName')});
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
               this.companyList = response.data.data;
-            } if(this.companyList == null || typeof this.companyList === 'undefined' || this.companyList === '' || this.companyList.length === 0){
+            } if(this.companyList == null || typeof this.companyList == 'undefined' || this.companyList == '' || this.companyList.length == 0){
                                                     this.companyList = [{'companyName': '.'}];
                                                   }
 
@@ -384,7 +384,7 @@ export default{
           formData.append('invoiceMakeTime', this.invoiceMakeTime);
         formData.append('calculateTime', this.calculateTime);
         const response = await this.$http.post(`noCar/findNocarInvoicesStatic`, formData);
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loading = false;
           var allmeter = response.data.data;
           this.allmeterList = [];
@@ -399,7 +399,7 @@ export default{
             var sheet = wb['Sheets']['Sheet1'];
             var replaceTemp = [];
             for(var i in sheet){
-              if(sheet[i]['v'] === '税额(元)' || sheet[i]['v'] === '价税合计(元)' || sheet[i]['v'] === '交易金额(元)' || sheet[i]['v'] === '税率'){
+              if(sheet[i]['v'] == '税额(元)' || sheet[i]['v'] == '价税合计(元)' || sheet[i]['v'] == '交易金额(元)' || sheet[i]['v'] == '税率'){
                 replaceTemp.push(i.replace(/[0-9]/g, ''));
                 continue;
               }
@@ -473,7 +473,7 @@ export default{
         formData.append('interType', 5);
         formData.append('calculateTime', this.calculateTime);
         const response = await this.$http.post(`noCar/findNocarInvoices`, formData);
-            if (response.data.code === 0) {
+            if (response.data.code == 0) {
                // 设置当前日期
                     let time = new Date();
                     let year = time.getFullYear();
@@ -514,35 +514,35 @@ export default{
           },
           formatJson (filterVal, jsonData) {
             return jsonData.map(v => filterVal.map((j) => {// eslint-disable-line
-             if(j === 'billStatus'){
-                 if(v[j] === 1){
+             if(j == 'billStatus'){
+                 if(v[j] == 1){
                    return '未结束';
-                 } else if(v[j] === -2){
+                 } else if(v[j] == -2){
                    return '上传失败';
-                 }else if(v[j] === -3){
+                 }else if(v[j] == -3){
                    return '指令结束上传失败';
-                 }else if(v[j] === 2){
+                 }else if(v[j] == 2){
                    return '开票中';
-                 }else if(v[j] === 3){
+                 }else if(v[j] == 3){
                    return '开票完成';
                  }else {
                    return '超时运单';
                  }
-              }else if(j === 'invoiceStatus'){
-                 if(v[j] === 1){
+              }else if(j == 'invoiceStatus'){
+                 if(v[j] == 1){
                    return '待开票';
-                 } else if(v[j] === 2){
+                 } else if(v[j] == 2){
                    return '开票中';
                  }else{
                    return '开票完成';
                  }
-              }else if(j ==='fee'){
+              }else if(j == 'fee'){
                   return v[j]/100;
-              }else if(j ==='totalAmount'){
+              }else if(j == 'totalAmount'){
                  return v[j]/100;
-              }else if(j ==='totalTaxAmount'){
+              }else if(j == 'totalTaxAmount'){
                   return v[j]/100;
-              }else if(j ==='amount'){
+              }else if(j == 'amount'){
                  return v[j]/100;
               }else{
                   return v[j];

+ 6 - 6
src/views/platform/waybill/history.vue

@@ -281,7 +281,7 @@ export default{
       formData.append(`batchNumber`, this.batchNum)
       formData.append(`operType`, 3)
       const response = await this.$http.post(`noCar/findBatchList`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -298,7 +298,7 @@ export default{
       const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50
       let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf(`.`)).toLowerCase()
       let AllUpExt = `.xlsx`
-      if (extName !== AllUpExt) {
+      if (extName != AllUpExt) {
         this.$message.error(`格式错误!请上传xlsx的文件`)
         return false
       }
@@ -318,11 +318,11 @@ export default{
       formData.append(`file`, this.formUserList.file)
       const response = await this.$http.post(`noCar/batchImprotHistoryBillWay`, formData)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.loadData()
         loading.close()
         this.$message.success(`上传成功`)
-      } else if (code === 1 && msg == null && data == null) {
+      } else if (code == 1 && msg == null && data == null) {
         loading.close()
         this.$message.error(`数据存在错误,请检查文件中数据,金额是否有空的,时间是否全是时间格式`)
       } else {
@@ -354,7 +354,7 @@ export default{
       formData.append(`taxplayerCode`, this.taxPlayerCode)
       formData.append(`hisFlag`, 1)
       const response = await this.$http.post(`noCar/findImportBillWay`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertabletwo = response.data.data.records
         this.totaltwo = response.data.data.total
@@ -365,7 +365,7 @@ export default{
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `运单费用(元)`) {
+        if (sheet[i][`v`] == `运单费用(元)`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 5 - 5
src/views/platform/waybill/over.vue

@@ -216,7 +216,7 @@ export default{
       formData.append(`batchNumber`, this.batchNumer)
       formData.append(`operType`, 2)
       const response = await this.$http.post(`noCar/findBatchList`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -232,7 +232,7 @@ export default{
       const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50
       let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf(`.`)).toLowerCase()
       let AllUpExt = `.xlsx`
-      if (extName !== AllUpExt) {
+      if (extName != AllUpExt) {
         this.$message.error(`格式错误!请重新选择`)
         return false
       }
@@ -252,11 +252,11 @@ export default{
       formData.append(`file`, this.formUserList.file)
       const response = await this.$http.post(`noCar/batchImprotEndBillWay`, formData)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.loadData()
         loading.close()
         this.$message.success(`上传成功`)
-      } else if (code === 1 && msg == null && data == null) {
+      } else if (code == 1 && msg == null && data == null) {
         loading.close()
         this.$message.error(`数据存在错误,请检查文件中数据,金额是否有空的,时间是否全是时间格式`)
       } else {
@@ -285,7 +285,7 @@ export default{
       formData.append(`billNum`, this.billNum)
       formData.append(`hisFlag`, 0)
       const response = await this.$http.post(`noCar/findImportBillWay`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertabletwo = response.data.data.records
         this.totaltwo = response.data.data.total

+ 5 - 5
src/views/platform/waybill/waybill.vue

@@ -281,7 +281,7 @@ export default{
       formData.append(`batchNumber`, this.batchNum)
       formData.append(`operType`, 1)
       const response = await this.$http.post(`noCar/findBatchList`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -297,7 +297,7 @@ export default{
       const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50
       let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf(`.`)).toLowerCase()
       let AllUpExt = `.xlsx`
-      if (extName !== AllUpExt) {
+      if (extName != AllUpExt) {
         this.$message.error(`格式错误!请重新选择xlsx格式的文件`)
         return false
       }
@@ -317,11 +317,11 @@ export default{
       formData.append(`file`, this.formUserList.file)
       const response = await this.$http.post(`noCar/batchImprotBillWay`, formData)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `success`) {
+      if (code == 0 && msg == `success`) {
         this.loadData()
         loading.close()
         this.$message.success(`上传成功`)
-      } else if (code === 1 && msg == null && data == null) {
+      } else if (code == 1 && msg == null && data == null) {
         loading.close()
         this.$message.error(`数据存在错误,请检查文件中数据,金额是否有空的,时间是否全是时间格式`)
       } else {
@@ -356,7 +356,7 @@ export default{
       formData.append(`taxPlayerCode`, this.taxPlayerCode)
       formData.append(`hisFlag`, 0)
       const response = await this.$http.post(`noCar/findImportBillWay`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertabletwo = response.data.data.records
         this.totaltwo = response.data.data.total

+ 6 - 6
src/views/platform/waybillmanagement/noinvoice.vue

@@ -220,7 +220,7 @@ export default{
       // formData.append('createEndTime', this.createEndTime);
       // formData.append('isSuccess', 1);
       const response = await this.$http.post(`noCar/findBillWay`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertabletwo = response.data.data.records
         this.totaltwo = response.data.data.total
@@ -228,9 +228,9 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
-      } if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      } if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.companyName = this.companyList[0][`companyName`]
@@ -241,7 +241,7 @@ export default{
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `运单费用(元)`) {
+        if (sheet[i][`v`] == `运单费用(元)`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }
@@ -307,7 +307,7 @@ export default{
       const formData = new FormData()
       formData.append(`noCarWayBillStr`, JSON.stringify(this.multipleSelection))
       const response = await this.$http.post(`noCar/updateStatus`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadDataCar()
         this.$message({
           type: `success`,
@@ -328,7 +328,7 @@ export default{
       //   formData.append('userId', this.formList.userId);
       //   formData.append('nums', this.formList.nums);
       // const response = await this.$http.post(`numInvoice/nums`, formData);
-      //   if (response.data.code === 0) {
+      //   if (response.data.code == 0) {
       //     this.$message({
       //       type: 'success',
       //       message: '开票成功'

+ 4 - 4
src/views/platform/waybillmanagement/trueinvoice.vue

@@ -254,7 +254,7 @@ export default{
       // formData.append('createEndTime', this.createEndTime);
       // formData.append('isSuccess', 1);
       const response = await this.$http.post(`noCar/findBillWayCust`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertabletwo = response.data.data.records
         this.totaltwo = response.data.data.total
@@ -262,9 +262,9 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
-      } if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      } if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.companyName = this.companyList[0][`companyName`]
@@ -283,7 +283,7 @@ export default{
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `运单费用(元)`) {
+        if (sheet[i][`v`] == `运单费用(元)`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 14 - 14
src/views/platform/waybillmanagement/waybillList.vue

@@ -248,7 +248,7 @@ export default{
       formData.append(`endEnd`, this.endEnd)
       // formData.append('isSuccess', 1);
       const response = await this.$http.post(`noCar/findBillWayCust`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertabletwo = response.data.data.records
         this.totaltwo = response.data.data.total
@@ -256,9 +256,9 @@ export default{
     },
     async initCompanyList() {
       const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': sessionStorage.getItem(`userName`)})
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.companyList = response.data.data
-      } if (this.companyList == null || typeof this.companyList === `undefined` || this.companyList === `` || this.companyList.length === 0) {
+      } if (this.companyList == null || typeof this.companyList == `undefined` || this.companyList == `` || this.companyList.length == 0) {
         this.companyList = [{'companyName': `.`}]
       }
       this.companyName = this.companyList[0][`companyName`]
@@ -277,7 +277,7 @@ export default{
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `运单费用(元)`) {
+        if (sheet[i][`v`] == `运单费用(元)`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }
@@ -310,7 +310,7 @@ export default{
       formData.append(`endEnd`, this.endEnd)
       // formData.append('isSuccess', 1);
       const response = await this.$http.post(`noCar/findBillWayCust`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         // 设置当前日期
         let time = new Date()
         let year = time.getFullYear()
@@ -338,27 +338,27 @@ export default{
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => {
         return filterVal.map((j) => {
-          if (j === `billwayStatus`) {
-            if (v[j] === 1) {
+          if (j == `billwayStatus`) {
+            if (v[j] == 1) {
               return `未结束`
-            } else if (v[j] === -2) {
+            } else if (v[j] == -2) {
               return `上传失败`
-            } else if (v[j] === -3) {
+            } else if (v[j] == -3) {
               return `指令结束上传失败`
-            } else if (v[j] === 2) {
+            } else if (v[j] == 2) {
               return `开票中`
-            } else if (v[j] === 3) {
+            } else if (v[j] == 3) {
               return `开票完成`
             } else {
               return `超时运单`
             }
-          } else if (j === `hisFlag`) {
-            if (v[j] === 0) {
+          } else if (j == `hisFlag`) {
+            if (v[j] == 0) {
               return `实时运单`
             } else {
               return `历史运单`
             }
-          } else if (j === `fee`) {
+          } else if (j == `fee`) {
             return v[j] / 100
           } else {
             return v[j]

+ 2 - 2
src/views/selfCar/calculateInfo.vue

@@ -122,7 +122,7 @@ export default {
       formData.append(`companyLongName`, this.formCondition.companyLongName)
 
       const response = await this.$http.post(`selfCar/findSelfcarCalculateInfo`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.calculateInfo = response.data.data.records
         this.total = response.data.data.total
       }
@@ -141,7 +141,7 @@ export default {
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `费用`) {
+        if (sheet[i][`v`] == `费用`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }

+ 19 - 19
src/views/selfCar/invoice.vue

@@ -263,7 +263,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`selfCar/findSelfCarInvoices`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.invoiceTable = response.data.data.records
         this.total = response.data.data.total
       }
@@ -272,7 +272,7 @@ export default {
       const file = content.file
       // let file = file.files[0] // 使用传统的input方法需要加上这一步
       const filename = file.name
-      if (!filename || typeof filename !== `string`) {
+      if (!filename || typeof filename != `string`) {
         this.$message(`格式错误!请重新选择`)
         return
       }
@@ -294,13 +294,13 @@ export default {
           var i = 0
           var j = 0
           this.fileList.forEach((item, index, arr) => {
-            if (item[`etc卡号`] !== null && item[`etc卡号`] !== `` && typeof item[`etc卡号`] !== `undefined`) {
+            if (item[`etc卡号`] != null && item[`etc卡号`] != `` && typeof item[`etc卡号`] != `undefined`) {
               etcIds += item[`etc卡号`].trim() + `,`
               i++
             } else {
               etcIds += `#,`
             }
-            if (item[`交易id`] !== null && item[`交易id`] !== `` && typeof item[`交易id`] !== `undefined`) {
+            if (item[`交易id`] != null && item[`交易id`] != `` && typeof item[`交易id`] != `undefined`) {
               tradeIds += item[`交易id`].trim() + `,`
               j++
             } else {
@@ -308,10 +308,10 @@ export default {
             }
           })
         }
-        if (etcIds !== `` && i > 0) {
+        if (etcIds != `` && i > 0) {
           this.formCondition.cardId = etcIds.substring(0, etcIds.length - 1)
         }
-        if (tradeIds !== `` && j > 0) {
+        if (tradeIds != `` && j > 0) {
           this.formCondition.tradeId = tradeIds.substring(0, tradeIds.length - 1)
         }
       })
@@ -359,7 +359,7 @@ export default {
       const isLt50M = this.formUserList.file.size / 1024 / 1024 < 50
       let extName = this.formUserList.file.name.substring(this.formUserList.file.name.lastIndexOf(`.`)).toLowerCase()
       let AllUpExt = `.xlsx`
-      if (extName !== AllUpExt) {
+      if (extName != AllUpExt) {
         this.$message.error(extName + `格式错误!请重新选择xlsx文件`)
         return false
       }
@@ -379,7 +379,7 @@ export default {
       formData.append(`file`, this.formUserList.file)
       const response = await this.$http.post(`selfCar/batchImportSelfcarInvoices`, formData)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `1`) {
+      if (code == 0 && msg == `1`) {
         loading.close()
         this.invoiceTable = response.data.data
         this.total = response.data.data.length
@@ -403,7 +403,7 @@ export default {
       var replaceTemp = []
 
       for (var i in sheet) {
-        if (sheet[i][`v`] === `价税合计` || sheet[i][`v`] === `税额` || sheet[i][`v`] === `金额` || sheet[i][`v`] === `税率` || sheet[i][`v`] === `交易金额`) {
+        if (sheet[i][`v`] == `价税合计` || sheet[i][`v`] == `税额` || sheet[i][`v`] == `金额` || sheet[i][`v`] == `税率` || sheet[i][`v`] == `交易金额`) {
           replaceTemp.push(i.replace(/[0-9]/g, ``))
           continue
         }
@@ -429,7 +429,7 @@ export default {
           formData.append(i, this.formCondition[i])
         }
         const response = await this.$http.post(`selfCar/findSelfCarInvoices`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           recodes = recodes.concat(response.data.data.records)
         }
       }
@@ -471,23 +471,23 @@ export default {
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => {
         return filterVal.map((j) => {
-          if (j === `tradeStatus`) {
-            if (v[j] === 1) {
+          if (j == `tradeStatus`) {
+            if (v[j] == 1) {
               return `待开票`
-            } else if (v[j] === 2) {
+            } else if (v[j] == 2) {
               return `开票中`
-            } else if (v[j] === 3) {
+            } else if (v[j] == 3) {
               return `开票完成`
             }
-          } else if (j === `fee`) {
+          } else if (j == `fee`) {
             return v[j] / 100
-          } else if (j === `totalAmount`) {
+          } else if (j == `totalAmount`) {
             return v[j] / 100
-          } else if (j === `totalTaxAmount`) {
+          } else if (j == `totalTaxAmount`) {
             return v[j] / 100
-          } else if (j === `amount`) {
+          } else if (j == `amount`) {
             return v[j] / 100
-          } else if (j === `sellerTaxpayerCode` || j === `cardId` || j === `invoiceCode` || j === `invoiceNum`) {
+          } else if (j == `sellerTaxpayerCode` || j == `cardId` || j == `invoiceCode` || j == `invoiceNum`) {
             return v[j] + `\t`
           } else {
             return v[j]

+ 1 - 1
src/views/selfCar/selfCarApply.vue

@@ -208,7 +208,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`selfCarService/getSelfCarInvoicesByAppl`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.invoiceTable = response.data.data
       } else {
         this.$message({

+ 16 - 16
src/views/selfCar/selfCarTrade.vue

@@ -178,7 +178,7 @@ export default {
     },
     async update() {
       var loading = null
-      if (this.multipleSelection.length === 0) {
+      if (this.multipleSelection.length == 0) {
         loading = this.$loading({
           lock: true,
           text: `全量更新中,速度较慢,请您耐心等待...`,
@@ -189,7 +189,7 @@ export default {
       const formData = new FormData()
       formData.append(`selfCarTradesStr`, JSON.stringify(this.multipleSelection))
       const response = await this.$http.post(`selfCar/updateTrades`, formData)
-      if (this.multipleSelection.length === 0) {
+      if (this.multipleSelection.length == 0) {
         loading.close()
       };
       this.loadData()
@@ -207,7 +207,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`selfCar/findTrades`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.selfcarTrade = response.data.data.records
         this.total = response.data.data.total
       }
@@ -216,7 +216,7 @@ export default {
       const file = content.file
       // let file = file.files[0] // 使用传统的input方法需要加上这一步
       const filename = file.name
-      if (!filename || typeof filename !== `string`) {
+      if (!filename || typeof filename != `string`) {
         this.$message(`格式错误!请重新选择`)
         return
       }
@@ -238,13 +238,13 @@ export default {
           var i = 0
           var j = 0
           this.fileList.forEach((item, index, arr) => {
-            if (item[`etc卡号`] != null && item[`etc卡号`] !== `` && typeof item[`etc卡号`] !== `undefined`) {
+            if (item[`etc卡号`] != null && item[`etc卡号`] != `` && typeof item[`etc卡号`] != `undefined`) {
               etcIds += item[`etc卡号`].trim() + `,`
               i++
             } else {
               etcIds += `#,`
             }
-            if (item[`交易id`] != null && item[`交易id`] !== `` && typeof item[`交易id`] !== `undefined`) {
+            if (item[`交易id`] != null && item[`交易id`] != `` && typeof item[`交易id`] != `undefined`) {
               tradeIds += item[`交易id`].trim() + `,`
               j++
             } else {
@@ -252,10 +252,10 @@ export default {
             }
           })
         }
-        if (etcIds !== `` && i > 0) {
+        if (etcIds != `` && i > 0) {
           this.formCondition.cardId = etcIds.substring(0, etcIds.length - 1)
         }
-        if (tradeIds !== `` && j > 0) {
+        if (tradeIds != `` && j > 0) {
           this.formCondition.tradeId = tradeIds.substring(0, tradeIds.length - 1)
         }
       })
@@ -307,7 +307,7 @@ export default {
       formData.append(`file`, this.formUserList.file)
       const response = await this.$http.post(`selfCar/batchImportSelfcarTrades`, formData)
       var {data: { code, msg, data }} = response
-      if (code === 0 && msg === `1`) {
+      if (code == 0 && msg == `1`) {
         this.fullscreenLoading = false
         this.invoiceTable = response.data.data
         this.total = response.data.data.length
@@ -383,7 +383,7 @@ export default {
           formData.append(i, this.formCondition[i])
         }
         const response = await this.$http.post(`selfCar/findTrades`, formData)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           recodes = recodes.concat(response.data.data.records)
         }
       }
@@ -426,17 +426,17 @@ export default {
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => {
         return filterVal.map((j) => {
-          if (j === `status`) {
-            if (v[j] === 1) {
+          if (j == `status`) {
+            if (v[j] == 1) {
               return `待开票`
-            } else if (v[j] === 2) {
+            } else if (v[j] == 2) {
               return `开票中`
-            } else if (v[j] === 3) {
+            } else if (v[j] == 3) {
               return `开票完成`
             }
-          } else if (j === `fee`) {
+          } else if (j == `fee`) {
             return v[j] / 100
-          } else if (j === `companyReferencenum` || j === `cardId`) {
+          } else if (j == `companyReferencenum` || j == `cardId`) {
             return v[j] + `\t`
           } else {
             return v[j]

+ 3 - 3
src/views/selfCar/selfCarTradeException.vue

@@ -161,7 +161,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`selfCar/findTrades`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.selfcarTrade = response.data.data.records
         this.total = response.data.data.total
       }
@@ -171,7 +171,7 @@ export default {
     },
     async update() {
       var loading = null
-      if (this.multipleSelection.length === 0) {
+      if (this.multipleSelection.length == 0) {
         loading = this.$loading({
           lock: true,
           text: `全量更新中,速度较慢,请您耐心等待...`,
@@ -180,7 +180,7 @@ export default {
         })
       };
       const response = await this.$http.post(`selfCar/updateTrades`, this.multipleSelection)
-      if (this.multipleSelection.length === 0) {
+      if (this.multipleSelection.length == 0) {
         loading.close()
       };
       this.loadData()

+ 2 - 2
src/views/selfCar/selfcarRec.vue

@@ -184,7 +184,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`noCar/findCarRec`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.selfcarRecCarTable = response.data.data.records
         this.total = response.data.data.total
       }
@@ -200,7 +200,7 @@ export default {
         const request = this.$http.post(`selfCar/selfCarUnBind`, formData)
         request.then(
           (data) => {
-            if (data.data.code === 0) {
+            if (data.data.code == 0) {
               loadData()  // eslint-disable-line
               this.$message({
                 type: `success`,

+ 17 - 17
src/views/selfCar/tradeCarApply.vue

@@ -153,7 +153,7 @@ export default {
         formData.append(i, this.formCondition[i])
       }
       const response = await this.$http.post(`selfCarService/getApplyQueryByTradeIds`, formData);
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.invoiceTable = response.data.data.result;
       } else {
         this.$message({
@@ -166,7 +166,7 @@ export default {
       const file = content.file;
       // let file = file.files[0] // 使用传统的input方法需要加上这一步
       const filename = file.name;
-      if (!filename || typeof filename !== `string`) {
+      if (!filename || typeof filename != `string`) {
         this.$message(`格式错误!请重新选择`);
         return;
       }
@@ -190,21 +190,21 @@ export default {
           var i = 0;
           var j = 0;
           this.fileList.forEach((item, index, arr) => {
-            if (item[`公司编码`] !== null && item[`公司编码`] !== `` && typeof item[`公司编码`] !== `undefined`) {
+            if (item[`公司编码`] != null && item[`公司编码`] != `` && typeof item[`公司编码`] != `undefined`) {
               companyNums += item[`公司编码`].trim() + `,`;
               k++;
             } else {
               companyNums += `#,`;
             }
 
-            if (item[`etc卡号`] !== null && item[`etc卡号`] !== `` && typeof item[`etc卡号`] !== `undefined`) {
+            if (item[`etc卡号`] != null && item[`etc卡号`] != `` && typeof item[`etc卡号`] != `undefined`) {
               etcIds += item[`etc卡号`].trim() + `,`;
               i++;
             } else {
               etcIds += `#,`;
             }
 
-            if (item[`交易id`] !== null && item[`交易id`] !== `` && typeof item[`交易id`] !== `undefined`) {
+            if (item[`交易id`] != null && item[`交易id`] != `` && typeof item[`交易id`] != `undefined`) {
               tradeIds += item[`交易id`].trim() + `,`;
               j++;
             } else {
@@ -212,13 +212,13 @@ export default {
             }
           });
         }
-        if (companyNums !== `` && k > 0) {
+        if (companyNums != `` && k > 0) {
           this.formCondition.companyNum = companyNums.substring(0, companyNums.length - 1);
         }
-        if (etcIds !== `` && i > 0) {
+        if (etcIds !=`` && i > 0) {
           this.formCondition.cardId = etcIds.substring(0, etcIds.length - 1);
         }
-        if (tradeIds !== `` && j > 0) {
+        if (tradeIds != `` && j > 0) {
           this.formCondition.tradeId = tradeIds.substring(0, tradeIds.length - 1);
         }
       });
@@ -288,23 +288,23 @@ export default {
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => {
         return filterVal.map((j) => {
-          if (j === `tradeStatus`) {
-            if (v[j] === 1) {
+          if (j == `tradeStatus`) {
+            if (v[j] == 1) {
               return `待开票`
-            } else if (v[j] === 2) {
+            } else if (v[j] == 2) {
               return `开票中`
-            } else if (v[j] === 3) {
+            } else if (v[j] == 3) {
               return `开票完成`
             }
-          } else if (j === `fee`) {
+          } else if (j == `fee`) {
             return v[j] / 100
-          } else if (j === `totalAmount`) {
+          } else if (j == `totalAmount`) {
             return v[j] / 100
-          } else if (j === `totalTaxAmount`) {
+          } else if (j == `totalTaxAmount`) {
             return v[j] / 100
-          } else if (j === `amount`) {
+          } else if (j == `amount`) {
             return v[j] / 100
-          } else if (j === `sellerTaxpayerCode` || j === `cardId` || j === `invoiceCode` || j === `invoiceNum`) {
+          } else if (j == `sellerTaxpayerCode` || j == `cardId` || j == `invoiceCode` || j == `invoiceNum`) {
             return v[j] + `\t`
           } else {
             return v[j]

+ 16 - 16
src/views/sys/user.vue

@@ -426,7 +426,7 @@ export default{
     // 获取角色状态
     async loadRoleList() {
       const response = await this.$http.post(`role/list`)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.roleList = response.data.data
       }
     },
@@ -442,7 +442,7 @@ export default{
 
     // },
     changeRow(id) {
-      if (id === 0) {
+      if (id == 0) {
         this.showEtcFee = true
       } else {
         this.showEtcFee = false
@@ -452,10 +452,10 @@ export default{
       row.roleId = ``
       row.roleName = `无权限`
       for (var i in data) {
-        if (i === 0) {
+        if (i == 0) {
           row.roleId = data[i]
           for (var j in this.roleList) {
-            if (this.roleList[j][`id`] === data[i]) {
+            if (this.roleList[j][`id`] == data[i]) {
               row.roleName = ``
               row.roleName = this.roleList[j][`roleName`]
             }
@@ -463,14 +463,14 @@ export default{
         } else {
           row.roleId += `,` + data[i]
           for (var j in this.roleList) { // eslint-disable-line
-            if (this.roleList[j][`id`] === data[i]) {
+            if (this.roleList[j][`id`] == data[i]) {
               row.roleName += `,` + this.roleList[j][`roleName`]
             }
           }
         }
       }
       const response = await this.$http.post(`user/updateUser`, row)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
 
       } else {
         this.$message({
@@ -490,7 +490,7 @@ export default{
       formData.append(`current`, this.current)
       formData.append(`size`, this.pagesize)
       const response = await this.$http.post(`user/page`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -504,7 +504,7 @@ export default{
       formData.append(`userName`, this.userName)
       formData.append(`company`, this.company)
       const response = await this.$http.post(`user/page`, formData)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loading = false
         this.usertable = response.data.data.records
         this.total = response.data.data.total
@@ -516,7 +516,7 @@ export default{
         if (valid) {
           this.formUserList.price = this.formUserList.price * 100
           const response = await this.$http.post(`user`, this.formUserList)
-          if (response.data.code === 0) {
+          if (response.data.code == 0) {
             this.loadData()
             this.addUserList = false
             this.$message({
@@ -553,7 +553,7 @@ export default{
     async changeData() {
       this.formUserList.price = this.formUserList.price * 100
       const response = await this.$http.post(`user/updateUser`, this.formUserList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.changeUser = false
         this.$message({
@@ -575,7 +575,7 @@ export default{
         type: `warning`
       }).then(async() => {
         const response = await this.$http.delete(`user/${id}`)
-        if (response.data.code === 0) {
+        if (response.data.code == 0) {
           this.loadData()
           this.$message({
             type: `success`,
@@ -600,7 +600,7 @@ export default{
     // 修改密码
     async resetPassword() {
       const response = await this.$http.put(`user/restPassword`, this.formUserList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.changepassword = false
         this.$message({
@@ -624,7 +624,7 @@ export default{
     async resetMoney() {
       this.formUserList.money = this.formUserList.money * 100
       const response = await this.$http.put(`user/money`, this.formUserList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.changeMoney = false
         this.$message({
@@ -647,7 +647,7 @@ export default{
     // 修改用户状态
     async changeLock() {
       const response = await this.$http.put(`user/lock`, this.formUserList)
-      if (response.data.code === 0) {
+      if (response.data.code == 0) {
         this.loadData()
         this.changelocks = false
         this.$message({
@@ -673,7 +673,7 @@ export default{
     // 分页方法
     handleSizeChange(val) {
       this.pagesize = val
-      if (this.userName !== `` || this.company !== ``) {
+      if (this.userName != `` || this.company != ``) {
         this.queryLook()
       } else {
         this.loadData()
@@ -681,7 +681,7 @@ export default{
     },
     handleCurrentChange(val) {
       this.current = val
-      if (this.userName !== `` || this.company !== ``) {
+      if (this.userName != `` || this.company != ``) {
         this.queryLook()
       } else {
         this.loadData()