胡半仙 3 years ago
parent
commit
9b289cfd6d
28 changed files with 685 additions and 475 deletions
  1. 1 0
      build/utils.js
  2. 16 1
      src/components/DilCommonUI/packages/table/src/table.vue
  3. 41 15
      src/views/TMS/components/importedMine/addWagonPlease.vue
  4. 7 3
      src/views/TMS/components/importedMine/wagonPlease.vue
  5. 54 32
      src/views/TMS/components/importedShip/addLoadShip.vue
  6. 67 16
      src/views/TMS/components/importedShip/addShipmentInstructions.vue
  7. 53 42
      src/views/TMS/components/importedShip/addUnloadShip.vue
  8. 101 63
      src/views/TMS/components/importedShip/addWaterQuality.vue
  9. 11 7
      src/views/TMS/components/importedShip/bargeShip.vue
  10. 11 7
      src/views/TMS/components/importedShip/loadShip.vue
  11. 10 6
      src/views/TMS/components/importedShip/shipResult.vue
  12. 9 6
      src/views/TMS/components/importedShip/shipmentInstructions.vue
  13. 11 7
      src/views/TMS/components/importedShip/unloadShip.vue
  14. 11 7
      src/views/TMS/components/importedShip/waterQuality.vue
  15. 3 54
      src/views/WMS/app.js
  16. 1 0
      src/views/WMS/components/steel/steel_inbound.vue
  17. 17 9
      src/views/WMS/components/steel/steel_inboundReal.vue
  18. 20 20
      src/views/WMS/components/steel/steel_inboundStatistics.vue
  19. 1 1
      src/views/WMS/components/steel/steel_outboundStatistics.vue
  20. 43 7
      src/views/WMS/components/steel/steel_real.vue
  21. 1 1
      src/views/appoint/components/saleContract/addTransportPrice.vue
  22. 77 97
      src/views/appoint/components/ship/addCargoResult.vue
  23. 66 16
      src/views/appoint/components/ship/addDeliveryNotice.vue
  24. 8 4
      src/views/appoint/components/ship/cargoResult.vue
  25. 7 3
      src/views/appoint/components/ship/deliveryAttorney.vue
  26. 7 3
      src/views/appoint/components/ship/deliveryNotice.vue
  27. 0 3
      src/views/inward/components/truckAppoint/purInwardRequirement.vue
  28. 31 45
      src/views/statisticalReport/components/salesLogisticsStatistics/transportationPerformance.vue

+ 1 - 0
build/utils.js

@@ -20,6 +20,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 
 let devModules = ['index','appoint','WMS'];
 
+
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 16 - 1
src/components/DilCommonUI/packages/table/src/table.vue

@@ -11,6 +11,7 @@
       :cell-class-name="cellClassName"
       :height="height"
       :highlight-current-row="highlightCurrentRow"
+      style="width:100%"
       @sort-change="sortChange"
       @selection-change="selectionChange"
       @filter-change="filterChange"
@@ -244,7 +245,12 @@ export default {
       if(val){
         this.dataRadioId = null;
       }
-    }
+    },
+    // dataTabel: function() {
+    //   this.$nextTick(function() {
+    //     this.$refs.mainTable.setCurrentRow(this.dataTabel[0])
+    //   })
+    // }
   },
   methods: {
     // 刷新表格数据
@@ -266,5 +272,14 @@ export default {
   .el-pagination {
     display: none;
   }
+  
 }
+ /deep/.el-table .success-row {
+    background: #fff !important;
+    color: #f56c6c;
+    height: 44px;
+    line-height: 46px;
+    font-size: 22px;
+    font-weight: 700;
+  }
 </style>

+ 41 - 15
src/views/TMS/components/importedMine/addWagonPlease.vue

@@ -1,19 +1,14 @@
 <template>
   <!-- 新增请作业页面 -->
-  <div id="contractDetails">
-    <page-title>请车作业</page-title>
-    <div class="main">
-      <span class="text">新增请车作业</span>
-      <span class="a"></span>
+  <div class="trainTransport">
+    <page-title>返回</page-title>
+    <div class="form">
+      <div class="form_box">
+          <dil-form :formId="122" v-model="form1" ref="from1"></dil-form>
+      </div>   
     </div>
-    <div class="contractTitle">
-      <div class="form-box">
-        <div class="form-one">
-          <dil-form :formId="122" v-model="form1" ></dil-form>
-        </div>
-      </div>
-    </div>
-    <div class="button-box">
+    <!-- 确定和取消 -->
+    <div class="button_box">
       <el-button @click="onClickCancel">返回</el-button>
       <el-button type="primary" @click="onClickConfirm" >确认</el-button>
     </div>
@@ -91,6 +86,37 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-//@import "@/styles/appoint/contract/ContractInsert.scss";
+<style lang="scss">
+.trainTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .button_box{
+    margin-left: 45%;
+  }
+}
 </style>

+ 7 - 3
src/views/TMS/components/importedMine/wagonPlease.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 请车作业页面 -->
-  <div class="homeworkPath">
+  <div class="trainTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
       <el-button type="primary" class="btn" @click="onclick">
@@ -147,9 +147,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.trainTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 54 - 32
src/views/TMS/components/importedShip/addLoadShip.vue

@@ -1,29 +1,25 @@
 <template>
-  <!-- 船只信息页面 -->
-  <div class="homeworkPath">
-    <page-title>装船作业信息</page-title>
-    <div class="main">
-      <span class="text">装船作业新增</span>
-      <span class="a"></span>
-    </div>
-    <div>
-      <div class="form-box" style="margin-left: 5rem">
-        <el-form ><dil-form :formId="120" v-model="form"></dil-form>
-        <el-button type="primary" @click="makeSure">新增装船作业</el-button></el-form>
+  <!-- 新增装船作业 -->
+  <div class="shipTransport">
+    <page-title>返回</page-title>
+    <!-- 第一部分 -->
+      <div class="top">
+        <el-input placeholder="请输入内容" v-model="input" clearable> </el-input> 
+        <el-button type="primary" class="btn" @click="onclick()">
+          <i class="el-icon-search"></i>查询
+        </el-button>   
+      </div>
+      <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
+      </dilTable>
+    <div class="form">
+      <!-- 第二部分 -->
+      <div class="form_box">
+          <dil-form :formId="120" v-model="form"></dil-form>
       </div>
     </div>
-     <div class="main">
-      <span class="text">选择船只</span>
-      <span class="a"></span>
-    </div>
-     <div class="top">
-      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick()">
-        <i class="el-icon-search"></i>查询
-      </el-button>   
+    <div class="button_box">
+        <el-button type="primary" @click="makeSure">新增装船作业</el-button>
     </div>
-    <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
-    </dilTable>
   </div>
 </template>
 
@@ -122,18 +118,44 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-.homeworkPath{
-    .main{
-    margin-bottom: 0.125rem;
-  }
-  .button-ins{
-    margin: 0 50rem; 
-    text-align: center
+<style lang='scss'>
+.shipTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
   }
   .top {
-    margin: 0 auto;
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+  .button_box{
+    margin-left: 45%;
   }
 }
 </style>

+ 67 - 16
src/views/TMS/components/importedShip/addShipmentInstructions.vue

@@ -1,28 +1,33 @@
 <template>
   <!-- 装船指令新增页面 -->
-  <div id="endMaintenance">
-    <page-title>装船指令新增</page-title>
-    <el-divider content-position="left">新增指令</el-divider>
-     <div class="form-box" style="margin-right: 10rem">
-        <el-form><dil-form :formId="114" v-model="form1" ref="from1"></dil-form></el-form>
-        <div class="buttonins"><el-button type="primary" @click="onDrawer()">浏览</el-button></div>
+  <div class="shipTransport">
+    <page-title>返回</page-title>
+    <div class="form">
+      <div class="form_box">
+          <dil-form :formId="114" v-model="form1" ref="from1"></dil-form>
       </div>
-      <el-drawer
+      <div class="liulan">
+          <el-button type="primary" class="btn" @click="onDrawer">浏览</el-button>
+      </div>     
+    </div>
+    <!-- 确定和取消 -->
+    <div class="button_box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    <!-- 模态框 -->
+    <el-drawer
       :visible.sync="drawer"
       :direction="direction"
       :before-close="handleClose"
-      size="30%"
+      size="35%"
     >
-      <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px" clearable> </el-input>
+      <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px;width:250px" clearable> </el-input>
       <el-button type="primary" class="btn" @click="onclick()"  style="margin-bottom:15px">
         <i class="el-icon-search"></i>查询
       </el-button>
     <dilTable v-bind.sync="options" @radio-change="currentRadioChange1" ></dilTable>
     </el-drawer>
-    <div class="button-box">
-      <el-button @click="cancel">取消</el-button>
-      <el-button type="primary" @click="makeSure">确定</el-button>
-    </div>
   </div>
 </template>
 
@@ -99,8 +104,54 @@ export default {
 };
 </script>
 
-<style lang="scss" scoped>
-.buttonins{
-  height: auto;
+<style lang="scss">
+.shipTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .liulan{
+      width: 120px;
+      margin-top: 30px;
+      .el-button{
+        width: 100px !important;
+        margin: auto;
+      }
+      .btn{
+        margin-top: 0px;
+      }
+      .btn1{
+        margin-top: 13px;
+      }
+      .btn2{
+        margin-top: 67px;
+      }
+  }
+  .button_box{
+    margin-left: 45%;
+  }
 }
 </style>

+ 53 - 42
src/views/TMS/components/importedShip/addUnloadShip.vue

@@ -1,39 +1,26 @@
 <template>
-  <!-- 船只信息页面 -->
-  <div class="homeworkPath">
-    <page-title>卸船作业信息</page-title>
-    <div class="main">
-      <span class="text">卸船作业新增</span>
-      <span class="a"></span>
-    </div>
-    <div>
-      <div class="form-box" style="margin:0 50rem">
-        <el-form >
+<!-- 新增卸船作业 -->
+  <div class="shipTransport">
+    <page-title>返回</page-title>
+    <!-- 第一部分 -->
+      <div class="top">
+        <el-input placeholder="请输入内容" v-model="input" clearable> </el-input> 
+        <el-button type="primary" class="btn" @click="onclick()">
+          <i class="el-icon-search"></i>查询
+        </el-button>   
+      </div>
+      <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
+      </dilTable>
+    <div class="form">
+      <!-- 第二部分 -->
+      <div class="form_box">
           <dil-form :formId="121" v-model="form"></dil-form>
-          <div style="magin:0 auto">
-              <el-button type="primary" @click="makeSure" >新增卸船作业</el-button>
-          </div>
-          
-        </el-form>
-        
       </div>
     </div>
-  
-    <div class="main">
-      <span class="text">选择船只</span>
-      <span class="a"></span>
+    <div class="button_box">
+        <el-button type="primary" @click="makeSure" >新增卸船作业</el-button>
     </div>
-    <div class="top">
-      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick()">
-        <i class="el-icon-search"></i>查询
-      </el-button>   
-    </div>
-    <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
-    </dilTable>
-    
   </div>
-  
 </template>
 
 <script>
@@ -122,20 +109,44 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
-.homeworkPath {
-  .main{
-    margin-bottom: 0.125rem;
-  }
-  .button-ins{
-    margin: 0 50rem; 
-    text-align: center
+<style lang='scss'>
+.shipTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
   }
   .top {
-    margin: 0 auto;
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+  .button_box{
+    margin-left: 45%;
   }
 }
-
 </style>

+ 101 - 63
src/views/TMS/components/importedShip/addWaterQuality.vue

@@ -1,67 +1,56 @@
 <template>
-  <!-- 船只信息页面 -->
-  <div class="homeworkPath">
-    <page-title>水分质检信息</page-title>
-    <div class="main">
-      <span class="text">水分质检信息新增</span>
-      <span class="a"></span>
+  <!-- 新增水分质检信息 -->
+  <div class="shipTransport">
+    <page-title>返回</page-title>
+    <!-- 第一部分 -->
+      <div class="top">
+        <el-input placeholder="请输入内容" v-model="input" clearable> </el-input> 
+        <el-button type="primary" class="btn" @click="onclick()">
+          <i class="el-icon-search"></i>查询
+        </el-button>   
+      </div>
+      <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
+      </dilTable>
+    <div class="form">
+      <!-- 第二部分 -->
+      <div class="form_box">
+          <dil-form :formId="128" v-model="form"></dil-form>
+      </div>
     </div>
-    <div>
- <div class="form-box" style="margin-left:0 50rem">
-        <el-form ><dil-form :formId="128" v-model="form"></dil-form>
-         <el-form>
-         <el-form-item>
+    <!-- 下方内容 -->
+    <div class="other">
+      <el-form :inline="true">
+        <el-form-item>
           <label class="el-form-item__label" style="width: auto;">含水率</label>
-          <el-input
-        placeholder=""
-        v-model="resultMoistureContent">
-      </el-input>
+        </el-form-item>
+        <el-form-item>
+          <el-input  placeholder="" v-model="resultMoistureContent"></el-input>
         </el-form-item>
          
-          <el-form-item>
+         <el-form-item>
           <label class="el-form-item__label" style="width: auto;">合同水分值</label>
-          <el-input
-        placeholder=""
-        v-model="contractMoistureValue"
-        :disabled="true">
-      </el-input>
         </el-form-item>
-      <el-form-item>
-      <label class="el-form-item__label" style="width: auto;">实装吨位</label>
-      <el-input
-        placeholder=""
-        v-model="realWeight"
-        :disabled="true">
-      </el-input>
-      </el-form-item>
-    <el-form-item>
-    <label class="el-form-item__label" style="width: auto;">水分吨位</label>
-      <el-input
-        placeholder=""
-        v-model="moistureTonnage"
-        :disabled="true">
-      </el-input>
-    </el-form-item>
-      </el-form>
-        <el-button type="primary" @click="makeSure">新增水分质检信息</el-button>
-        </el-form>
-      </div>
+        <el-form-item>
+          <el-input placeholder="" v-model="contractMoistureValue" :disabled="true"></el-input>
+        </el-form-item>
 
-     <div class="main">
-      <span class="text">选择船只</span>
-      <span class="a"></span>
-    </div>
+        <el-form-item>
+          <label class="el-form-item__label" style="width: auto;">实装吨位</label>
+        </el-form-item>
+        <el-form-item>
+          <el-input placeholder="" v-model="realWeight" :disabled="true"></el-input>
+        </el-form-item>
 
-     <div class="top">
-      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick()">
-        <i class="el-icon-search"></i>查询
-      </el-button>   
+        <el-form-item>
+          <label class="el-form-item__label" style="width: auto;">水分吨位</label>
+        </el-form-item>
+        <el-form-item>
+          <el-input placeholder="" v-model="moistureTonnage" :disabled="true"></el-input>
+        </el-form-item>
+      </el-form>
+        <el-button type="primary" @click="makeSure">新增水分质检信息</el-button>
     </div>
-
-    <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
-    </dilTable>
-  </div>
+    
   </div>
 </template>
 
@@ -183,17 +172,66 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath{
-    .main{
-    margin-bottom: 0.125rem;
-  }
-  .button-ins{
-    margin: 0 50rem; 
-    text-align: center
+.shipTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
   }
   .top {
-    margin: 0 auto;
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+  .button_box{
+    margin-left: 45%;
+  }
+  .other{
+    width: 320px;
+      margin-left: 35%;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
   }
 }
 </style>

+ 11 - 7
src/views/TMS/components/importedShip/bargeShip.vue

@@ -1,13 +1,13 @@
 <template>
   <!-- 驳船作业页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick">
-        <i class="el-icon-search"></i>查询
-      </el-button>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
       <el-button type="primary" class="btn" @click="addclick">
-        新增
+        <i class="el-icon-circle-plus-outline"></i>新增
       </el-button>
     </div>
     <dilTable v-bind.sync="option">
@@ -97,9 +97,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 11 - 7
src/views/TMS/components/importedShip/loadShip.vue

@@ -1,13 +1,13 @@
 <template>
   <!-- 装船作业页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick">
-        <i class="el-icon-search"></i>查询
-      </el-button>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
       <el-button type="primary" class="btn" @click="addclick">
-        新增
+        <i class="el-icon-circle-plus-outline"></i>新增
       </el-button>
     </div>
     <dilTable v-bind.sync="option">
@@ -85,9 +85,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 10 - 6
src/views/TMS/components/importedShip/shipResult.vue

@@ -1,11 +1,11 @@
 <template>
   <!-- 水路货物运单页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick">
-        <i class="el-icon-search"></i>查询
-      </el-button>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
     </div>
     <dilTable v-bind.sync="option">
     </dilTable>
@@ -38,9 +38,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 9 - 6
src/views/TMS/components/importedShip/shipmentInstructions.vue

@@ -1,12 +1,13 @@
 <template>
   <!-- 装船指令页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input> 
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
-      <el-button type="primary" @click="btnclick(0)"> 新增 </el-button>
+      <el-button type="primary" @click="btnclick(0)">
+        <i class="el-icon-circle-plus-outline"></i>新增</el-button>
     </div>
     <el-tabs v-model="activeName"  @tab-click="handleClick">
       <!-- 未下发 -->
@@ -44,8 +45,6 @@
         <dilTable v-bind.sync="option2"></dilTable>
       </el-tab-pane>
     </el-tabs>
-      
-    </dilTable>
   </div>
 </template>
 
@@ -141,9 +140,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 11 - 7
src/views/TMS/components/importedShip/unloadShip.vue

@@ -1,13 +1,13 @@
 <template>
   <!-- 卸船作业页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick">
-        <i class="el-icon-search"></i>查询
-      </el-button>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
       <el-button type="primary" class="btn" @click="addclick">
-        新增
+        <i class="el-icon-circle-plus-outline"></i>新增
       </el-button>
     </div>
     <dilTable v-bind.sync="option">
@@ -85,9 +85,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 11 - 7
src/views/TMS/components/importedShip/waterQuality.vue

@@ -1,13 +1,13 @@
 <template>
   <!-- 水分质检页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick">
-        <i class="el-icon-search"></i>查询
-      </el-button>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
       <el-button type="primary" class="btn" @click="addclick">
-        新增
+        <i class="el-icon-circle-plus-outline"></i>新增
       </el-button>
     </div>
     <dilTable v-bind.sync="option">
@@ -85,9 +85,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 3 - 54
src/views/WMS/app.js

@@ -8,10 +8,6 @@ import '@/config/include.js';
 // 通用store
 import store from '@/store/index.js';
 
-// 导出Excel全局组件
-import tableToExcel from '@/components/exportExcel/exportExcel'
-Vue.use(tableToExcel)
-
 // router
 import router from './router/index.js';
 
@@ -19,66 +15,19 @@ import VueApollo from 'vue-apollo'
 
 import apollo from '@/config/apolloConfig.js'
 
+
 // 关闭生产模式下给出的提示
 Vue.config.productionTip = false;
 
-Vue.use(VueApollo)
-
 // 注册表格的全局组件
 import DilCommonUI from "@/components/DilCommonUI";
 Vue.use(DilCommonUI);
 
+Vue.use(VueApollo)
+
 const apolloProvider = new VueApollo({
     defaultClient: apollo
 })
-
- //把时间戳改为正常可读的时间
- export function renderTime(date) {
-  if(date !== null){
-      let dateee = new Date(date).toJSON();
-      return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, " ").replace(/\.[\d]{3}Z/, "");
-  }
-  return null;
-}
-//把毫秒数转换分
-export function getDuration(my_time) {
-  if(my_time !== null){
-      return Math.floor(my_time / 1000 / 60);
-  }
-  return null;
-}
-export function sjTime(orderPlanInTime) {
-  var stringTime = renderTime(orderPlanInTime);
-  var timestamp1 = stringTime.replace(/-/g, "/");
-  return new Date(timestamp1).getTime();
-}
-//验证电话号码
-export function VerifyPhoneNumber(Phone) {
-  var myreg=/^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/;
-  if (!myreg.test(Phone)) {
-      return false;
-  } else {
-      return true;
-  }
-}
-export function isNumber(value) {
-  //验证是否为数字
-  var patrn = /^(-)?\d+(\.\d+)?$/;
-  if (patrn.exec(value) == null || value == "") {
-    return false;
-  } else {
-    return true;
-  }
-}
-export function isIntegerNumber(value) {
-  //验证是否为整数
-  var patrn = /^\+?[1-9][0-9]*$/g;
-  if (patrn.exec(value) == null || value == "") {
-    return false;
-  } else {
-    return true;
-  }
-}
 /* eslint-disable no-new */
 new Vue({
   el: '#app',

+ 1 - 0
src/views/WMS/components/steel/steel_inbound.vue

@@ -52,6 +52,7 @@ export default {
       },
     }
   },
+  
   methods:{
     // inboundDetails(scope){
     //   	this.$router.push("/inboundDetails/" + scope.row.inboundId)

+ 17 - 9
src/views/WMS/components/steel/steel_inboundReal.vue

@@ -1,6 +1,6 @@
 //真实入库作业
 <template>
-  <div class="steel_inbound">
+  <div class="steel_inbound_real">
     <div class="sache">
       <span>入库时间:</span>
       <el-date-picker v-model="startTime" type="datetime" placeholder="选择日期">
@@ -218,13 +218,21 @@ export default {
 }
 </script>
 
-<style lang="scss" scode>
-.steel_inbound{
-  .sache{
-    height: 5rem;
-    display: flex;
-    align-items: center;
-    padding-left: 1.875rem;
+<style lang="scss" scoped>
+  .steel_inbound_real{
+    .sache{
+      display: flex;
+      justify-content: start;
+      align-items: center;
+      line-height: 40px;
+      height: 40px;
+      padding-left: 1.875rem;
+      .el-select {
+      width: 100%;
+      .el-input__inner {
+        width: 150px;
+      }
+    }
+    }
   }
-}
 </style>

+ 20 - 20
src/views/WMS/components/steel/steel_inboundStatistics.vue

@@ -2,12 +2,6 @@
 <template>
   <div class="steel_inboundStatistics">
     <div class="sache">
-      <!-- <el-input
-        placeholder="请输入内容"
-        v-model="inputText"
-        clearable>
-      </el-input>
-       -->
       <span>入库时间:</span>
       <el-date-picker v-model="startTime" type="datetime" placeholder="选择日期">
       </el-date-picker>
@@ -30,7 +24,6 @@
         v-model="input3"
         :disabled="true" class="inputs" style="width:10%">
       </el-input>
-
       <span>生产总重量</span>
       <el-input
         placeholder="请输入内容"
@@ -39,14 +32,7 @@
       </el-input>
     </div>
     <div class="table">
-      <dilTable v-bind.sync="options" @func="func">
-        <!-- <el-table-column fixed="right" label="操作" width="150">
-								<template slot-scope="scope">
-									<el-button type="text" size="mini" @click="inboundDetails(scope)">
-										详情
-									</el-button>
-								</template>
-				</el-table-column> -->
+      <dilTable v-bind.sync="options" @func="func" :rowClassName="rowClassName">
       </dilTable>
     </div>
   </div>
@@ -58,6 +44,12 @@ import { getCookie } from '@/utils/util.js';
 export default {
   data(){
     return{
+      rowClassName({row, rowIndex}) {
+        if (rowIndex === 0) {
+          return 'success-row';
+        }
+        return '';
+      },
       input1: '',
       input2: '',
       input3: '',
@@ -213,11 +205,19 @@ export default {
     display: flex;
     align-items: center;
     padding-left: 1.875rem;
+    .el-select {
+      width: 100%;
+      .el-input__inner {
+        width: 150px;
+      }
+    }
+  }
+  .funcnum {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+
   }
 }
-.inputs el-input is-disabled /deep/ el-input__inner{
-    
-    color: #f80808;
-    background-color: #f80808;
-}
+
 </style>

+ 1 - 1
src/views/WMS/components/steel/steel_outboundStatistics.vue

@@ -43,7 +43,7 @@ export default {
       totalWeight:0,
       option:{
         // first请求数据的地址
-        requestUrl: "/api/v1/wms/getWmsOutboundResultStatistics?apiId=446&warehouseId="+3+"&startTime=null&endTime=null&i=" +new Date()+"&con="+this.textInput,
+        requestUrl: "/api/v1/wms/getWmsOutboundResultStatistics?apiId=446&warehouseId="+3+"&startTime=null&endTime=null&i=" +new Date(),
       },
     }
   },

+ 43 - 7
src/views/WMS/components/steel/steel_real.vue

@@ -8,7 +8,7 @@
 				<i class="el-icon-search"></i>查询
 			</el-button>
 		</div>
-  <dilTable v-bind.sync="option">
+    <dilTable v-bind.sync="option" @func="func" :rowClassName="rowClassName">
       <!-- <el-table-column fixed="right" label="操作" width="110">
         <template slot-scope="scope">
           <el-button @click="demotionClick(scope.row.gridId)" type="text" size="small"
@@ -17,6 +17,9 @@
         </template>
       </el-table-column> -->
     </dilTable>
+    <!-- <dilTable v-bind.sync="options" >
+
+    </dilTable> -->
     </div>
 </template>
 
@@ -25,21 +28,54 @@ export default {
  name:"steel_real",
   data(){
     return {
+      mapList:[],
+      rowClassName({row, rowIndex}) {
+        
+        if (rowIndex === 0) {
+          return 'success-row';
+        }
+        return '';
+      },
       inputText:"",
       option: {
-        requestUrl: "/api/v1/wms/selectGridMaterialList?apiId=167",
-        },
-      };
-    },
+        requestUrl: "/api/v1/wms/selectGridMaterialList?apiId=167&warehouseId="+3,
+      },
+      rowId:''
+    };
+  },
   mounted(){
-
+    
+  },
+  created(){
+    // 查询实时库存中已经超过库龄预警的数据
+    // mapList=this.option1
+    // console.log(this.mapList+"这是第一个")
+    // this.axios.post(
+    //       "/api/v1/wms/getGridMaterialAgeList?warehouseId="+3
+    //     )
+    //     .then((res) => {
+    //       this.mapList = res.data.data
+    //       // console.log(res.data.data)
+    //       // console.log(this.mapList)
+    //     });
   },
   methods:{
+    func(res){
+      // console.log(res)
+      res.list.forEach(e => {
+        console.log(e.status)
+        if(e.status == 0){
+          // 表示这个物资已经达到库龄预警
+          this.rowClassName(e,e.ROW_ID)
+        }
+        // console.log(this.mapList)
+      });
+    },
     demotionClick(gridId){
       this.$router.push("/steel_realDown/" + gridId);
     },
     onClick(){
-      this.option.requestUrl= "/api/v1/wms/selectGridMaterialList?apiId=167&&con="+this.inputText;
+      this.option.requestUrl= "/api/v1/wms/selectGridMaterialList?apiId=167&warehouseId="+3+"&con="+this.inputText;
       console.log(this.inputText)
     }
   },

+ 1 - 1
src/views/appoint/components/saleContract/addTransportPrice.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 添加汽运单价 -->
+  <!-- 添加汽运单价 111-->
   <div class="addTransportPrice">
     <page-title>新增</page-title>
     <div class="form">

+ 77 - 97
src/views/appoint/components/ship/addCargoResult.vue

@@ -1,51 +1,46 @@
 <template>
   <!-- 添加货权转移实绩 -->
-  <div class="addWagonLoad">
-    <PageTitle>返回</PageTitle>
-    <el-divider content-position="left">货权转移</el-divider>
-    <div class="form-box" style="margin-right: 10rem">
-      <dil-form :formId="109" v-model="form1" ref="from1"></dil-form>
+  <div class="shipTransport">
+    <page-title>返回</page-title>
+    <div class="form">
+      <div class="form_box">
+          <dil-form :formId="109" v-model="form1" ref="from1"></dil-form>
+      </div>        
     </div>
-    <div class="form-box f1">
-      <el-form :inline="true" class="demo-form-inline">
-        <el-form-item label="物资">
-          <el-input v-model="materialName" disabled> </el-input>
-        </el-form-item>
-        <el-form-item>
-          <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
-        </el-form-item>
-      </el-form>
+    <!-- 物资 -->
+    <div class="mofrom">
+      <span class="motext">物资</span>
+      <el-input class="moinput" v-model="materialName" disabled> </el-input>
+      <el-button class="mobutton" type="primary" @click="ondrawer(1)">浏览</el-button>
     </div>
-    <div class="form-box f2">
-      <el-form :inline="true" class="demo-form-inline">
-        <el-form-item label="货权转移送达单位">
-          <el-input v-model="cargo" disabled> </el-input>
-        </el-form-item>
-        <el-form-item>
-          <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
-        </el-form-item>
-      </el-form>
+    <!-- 货权转移送达单位 -->
+    <div class="mofrom">
+      <span class="motext">货权转移送达单位</span>
+      <el-input class="moinput" v-model="cargo" disabled> </el-input>
+      <el-button class="mobutton" type="primary" @click="ondrawer(2)">浏览</el-button>
     </div>
-    <div class="form-box f3">
-      <el-form :inline="true" class="demo-form-inline">
-        <el-form-item label="收货人">
-          <el-input v-model="receiver" disabled> </el-input>
-        </el-form-item>
-        <el-form-item>
-          <el-button type="primary" @click="ondrawer(3)">浏览</el-button>
-        </el-form-item>
-      </el-form>
+    <!-- 货权转移送达单位 -->
+    <div class="mofrom">
+      <span class="motext">收货人</span>
+      <el-input class="moinput" v-model="receiver" disabled> </el-input>
+      <el-button class="mobutton" type="primary" @click="ondrawer(3)">浏览</el-button>
     </div>
+    <!-- 确定和取消 -->
+    <div class="button_box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    <!-- 模态框 -->
     <el-drawer
       :visible.sync="drawer"
       :direction="direction"
       :before-close="handleClose"
-      size="30%"
+      size="50%"
     >
       <el-input
         placeholder="请输入内容"
         v-model="input"
-        style="margin-top: 10px; margin-left: 20px"
+        style="margin-top: 10px; margin-left: 20px; width:250px"
         clearable
       >
       </el-input>
@@ -76,10 +71,6 @@
         ></dilTable>
       </div>
     </el-drawer>
-    <div class="button-box">
-      <el-button @click="cancel">取消</el-button>
-      <el-button type="primary" @click="makeSure">确定</el-button>
-    </div>
   </div>
 </template>
 <script>
@@ -196,64 +187,53 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-.form-box {
-  padding: 20px 30px;
-  margin-left: 330px;
-}
-.button-box {
-  padding: 20px 30px;
-  margin-left: 460px;
-}
-.btn-left {
-  margin-left: 470px;
-}
-.input {
-  margin-left: 90px;
-}
-.label {
-  margin-left: 445px;
-  margin-bottom: -30px;
-  font: bold;
-  font-size: 1rem;
-  padding-left: -30px;
-  font-family: Arial, Helvetica, sans-serif;
-  margin-bottom: 20px;
-}
-.label2 {
-  margin-left: 425px;
-  margin-bottom: -30px;
-  font: bold;
-  font-size: 1rem;
-  font-family: Arial, Helvetica, sans-serif;
-}
-.label1 {
-  margin-left: 345px;
-  margin-bottom: -30px;
-  font: bold;
-}
-.common {
-  font-weight: 700;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
-    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-  font-size: 1rem;
-  cursor: default;
-  color: #2c3e50;
-}
-.f1 {
-  margin-top: -2.5rem;
-  margin-left: 26rem;
-}
-.f11 {
-  margin-top: -3rem;
-  // margin-left: 29rem;
-}
-.f2 {
-  margin-top: -2.5rem;
-  margin-left: 20.7rem;
-}
-.f3 {
-  margin-top: -2.5rem;
-  margin-left: 25rem;
+<style lang='scss'>
+.shipTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .mofrom {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-top: 5px;
+    margin-bottom: 20px;
+    .motext{
+      width: 70px;
+    }
+    .moinput{
+      width: 250px;
+    }
+    .mobutton{
+      margin-left: 5px;
+    }
+  }
+  .button_box{
+    margin-left: 45%;
+  }
 }
 </style>

+ 66 - 16
src/views/appoint/components/ship/addDeliveryNotice.vue

@@ -1,28 +1,33 @@
 <template>
   <!-- 添加发货通知 -->
-  <div class="addWagonLoad">
-    <PageTitle>返回</PageTitle>
-    <el-divider content-position="left">发货通知单</el-divider>
-     <div class="form-box" style="margin-right: 10rem">
-       <el-form><dil-form :formId="112" v-model="form1" ref="from1" @change="onchange"></dil-form></el-form>
-       <div class="buttonins"><el-button type="primary" @click="onDrawer">浏览</el-button></div> 
+  <div class="shipTransport">
+    <page-title>返回</page-title>
+    <div class="form">
+      <div class="form_box">
+          <dil-form :formId="112" v-model="form1" ref="from1" @change="onchange"></dil-form>
+      </div>
+      <div class="liulan">
+          <el-button type="primary" class="btn" @click="onDrawer">浏览</el-button>
+      </div>     
     </div>
+    <!-- 确定和取消 -->
+    <div class="button_box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    <!-- 模态框 -->
     <el-drawer
       :visible.sync="drawer"
       :direction="direction"
       :before-close="handleClose"
-      size="30%"
+      size="50%"
     >
-      <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px" clearable> </el-input>
+      <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px;width:250px" clearable> </el-input>
       <el-button type="primary" class="btn" @click="onclick()"  style="margin-bottom:15px">
         <i class="el-icon-search"></i>查询
       </el-button>
     <dilTable v-bind.sync="options" @radio-change="currentRadioChange1" ></dilTable>
     </el-drawer>
-    <div class="button-box">
-      <el-button @click="cancel">取消</el-button>
-      <el-button type="primary" @click="makeSure">确定</el-button>
-    </div>
   </div>
 </template>
 
@@ -121,9 +126,54 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
-.buttonins{
-  height: auto;
+<style lang='scss'>
+.shipTransport{
+  .form{
+    display: flex;
+    .form_box{
+      width: 320px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form{
+        .preview-group{
+          .el-form-item{
+            .el-form-item__label{
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content{
+              .el-select{
+                width: 250px;
+              }
+              .el-input{
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .liulan{
+      width: 120px;
+      margin-top: 30px;
+      .el-button{
+        width: 100px !important;
+        margin: auto;
+      }
+      .btn{
+        margin-top: 0px;
+      }
+      .btn1{
+        margin-top: 13px;
+      }
+      .btn2{
+        margin-top: 67px;
+      }
+  }
+  .button_box{
+    margin-left: 45%;
+  }
 }
 </style>

+ 8 - 4
src/views/appoint/components/ship/cargoResult.vue

@@ -1,6 +1,6 @@
 <template>
-  <!-- 作业路径页面 -->
-  <div class="homeworkPath">
+  <!-- 货权转移页面 -->
+  <div class="shipTransport">
     <div class="top">
      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
  <el-button type="primary" class="btn" @click="onclick">
@@ -84,9 +84,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 1.25rem 1.875rem;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 7 - 3
src/views/appoint/components/ship/deliveryAttorney.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 提货委托页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
       
@@ -182,9 +182,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 20px 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 7 - 3
src/views/appoint/components/ship/deliveryNotice.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 发货通知页面 -->
-  <div class="homeworkPath">
+  <div class="shipTransport">
     <div class="top">
       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
       
@@ -170,9 +170,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+.shipTransport {
   .top {
-    padding: 20px 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
   }
 }
 </style>

+ 0 - 3
src/views/inward/components/truckAppoint/purInwardRequirement.vue

@@ -96,9 +96,6 @@ export default {
   },
   methods: {
     func(res){
-        console.log("-----");
-        console.log(res.list)
-        console.log("-----");
         res.list.forEach(e => {
             if(e.enable == "未启用"){
                this.startStop = "停用"

+ 31 - 45
src/views/statisticalReport/components/salesLogisticsStatistics/transportationPerformance.vue

@@ -2,14 +2,6 @@
   <div class="purchasFuelNewMonitor">
     <div class="frameCalculation">
       <span>计毛时间:</span>
-      <!-- <el-date-picker
-        v-model="Time"
-        :editable="true"
-        type="datetimerange"
-        range-separator="至"
-        start-placeholder="开始日期"
-        end-placeholder="结束日期">
-      </el-date-picker> -->
       <el-date-picker
         v-model="startTime"
         type="datetime"
@@ -41,6 +33,7 @@
 
 <script>
 import { sjTime } from '@/utils/sharedJsFile'
+import { getCookie } from "@/utils/util.js";
 export default {
   data() {
     return {
@@ -49,7 +42,7 @@ export default {
       pageSize:100,
       isKuang:false,
       option: {
-        requestUrl: "/api/v1/tms/getAllSaleReport?apiId=423&startTime=null&endTime=null&i=" +new Date(),
+        requestUrl: "",
       },
       startTime:null,
       endTime:null,
@@ -61,10 +54,19 @@ export default {
     };
   },
   created(){
-      const start = new Date(new Date(new Date().toLocaleDateString()).getTime());
-      var startTime = this.dataFormat(sjTime(start));
-      var endTime = this.dataFormat(sjTime(new Date()));
-      this.tableTitle = startTime + ' 至 ' + endTime;
+    //初始化表头
+    if (getCookie("orgCode") == "chengyunshang") {
+      this.option.requestUrl =
+        "/api/v1/tms/getAllSaleReport?apiId=423&startTime=null&endTime=null&carrierSsoId=" + getCookie("userId") +"&i=" +new Date();
+    } else {
+      this.option.requestUrl =
+        "/api/v1/tms/getAllSaleReport?apiId=423&startTime=null&endTime=null&carrierSsoId=" + null +"&i=" +new Date();
+    }
+    //时间段初始化
+    const start = new Date(new Date(new Date().toLocaleDateString()).getTime());
+    var startTime = this.dataFormat(sjTime(start));
+    var endTime = this.dataFormat(sjTime(new Date()));
+    this.tableTitle = startTime + ' 至 ' + endTime;
   },
   methods: {
     refresh(){
@@ -82,10 +84,6 @@ export default {
       // this.totalCapacity = res.total;
       this.isKuang = false;
     },
-    // requestQuery(q){
-    //   //调用获取总净重方法
-    //   this.calculationTotalNumber(q);
-    // },
     onclick() {
       let startTime = null;
       let endTime = null;
@@ -94,42 +92,30 @@ export default {
         endTime = sjTime(this.endTime);
         //修改报表名称
         this.tableTitle = this.dataFormat(startTime) + ' 至 ' + this.dataFormat(endTime);
-        this.option.requestUrl = "/api/v1/tms/getAllSaleReport?apiId=423&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
+        //加上时间重置表头
+        if (getCookie("orgCode") == "chengyunshang") {
+          this.option.requestUrl =
+            "/api/v1/tms/getAllSaleReport?apiId=423&startTime=" + startTime + "&endTime=" + endTime + "&carrierSsoId=" + getCookie("userId") +"&i=" +new Date();
+        } else {
+          this.option.requestUrl =
+            "/api/v1/tms/getAllSaleReport?apiId=423&startTime=" + startTime + "&endTime=" + endTime + "&carrierSsoId=" + null +"&i=" +new Date();
+        }
       }else{
         if(this.startTime){
           startTime = sjTime(this.startTime);
         }else if(this.endTime){
           endTime = sjTime(this.endTime);
         }
-        this.option.requestUrl = "/api/v1/tms/getAllSaleReport?apiId=423&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
+        //加上时间重置表头
+        if (getCookie("orgCode") == "chengyunshang") {
+          this.option.requestUrl =
+            "/api/v1/tms/getAllSaleReport?apiId=423&startTime=" + startTime + "&endTime=" + endTime + "&carrierSsoId=" + getCookie("userId") +"&i=" +new Date();
+        } else {
+          this.option.requestUrl =
+            "/api/v1/tms/getAllSaleReport?apiId=423&startTime=" + startTime + "&endTime=" + endTime + "&carrierSsoId=" + null +"&i=" +new Date();
+        }
       }
     },
-    // //获取当前条件下的总净重
-    // calculationTotalNumber(dataRequestQuery){
-    //   //初始化时间
-    //   let startTime = null;
-    //   let endTime = null;
-    //   if(this.Time != null){
-    //     startTime = sjTime(this.Time[0]);
-    //     endTime = sjTime(this.Time[1]);
-    //   }
-    //   //放入子组件筛选的值
-    //   let mapValue = undefined;
-    //       for (const key in dataRequestQuery) {
-         
-    //         const val = dataRequestQuery[key];
-    //         if (val||val==0) {
-             
-    //           if (!mapValue) mapValue = {};
-            
-    //           mapValue[key] = val;
-    //         }
-    //       }
-    //   this.axios.post("/api/v1/tms/getAllSaleReportTotal?startTime=" + startTime +"&endTime="+ endTime +"&i=" +new Date(),mapValue)
-    //   .then((res) => {
-    //       this.totalNumber = res.data.data;
-    //     });  
-    // },
     //格式化日期
     dataFormat(value){
       let date = new Date(value);