Explorar o código

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass

zouzhd %!s(int64=3) %!d(string=hai) anos
pai
achega
0e300cac7b

+ 5 - 7
build/utils.js

@@ -11,14 +11,12 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 
 // 指定开发模式下需要加载的模块(可以做到只加载当前模块,提高开发效率)
 // index模块(登录)为必须,all 为所有
-//   index    销售    采购     规范          质量          生产      车间
-// ['index', 'sales', '  ', 'standard', 'qualityControl', 'produce', 'workshop',
-//    物流         进程     成本   报表          基础配置        系统配置
-//  'logistics', 'process', '   ', 'reportform', 'basicconfig', 'system']
-// let devModules = ['index','RMS','systemConfig','TMS']
+//    登录     合同                       首页       内转     排队   资源   销售                       零星物资
+// ['index','appoint','configManager','homepage','inward','queue','RMS','sale','serviceManager','SporadicManage'
+//       统计报表       组织机构/系统管理 采购  仓储
+//  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 let devModules = ['all'];
-// let devModules = ['index','appoint','sale','RMS']
-// let devModules = ['index','SporadicManage']
+// let devModules = ['index','TMS','statisticalReport','RMS','inward'];
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 1 - 0
config/index.js

@@ -57,6 +57,7 @@ let proxyTable = {
   // 所有数据的请求域名地址
   "/api/v1": {
     target: "http://172.16.33.166:8080",
+    // target: "http://192.168.1.109:8019",
     ws: true,
     pathRewrite: {
       "^/api/v1": "/api/v1"

+ 86 - 89
src/views/RMS/components/addTruckCalculate.vue

@@ -2,32 +2,37 @@
   <!-- 添加汽车衡信息 -->
   <div class="addWagonLoad">
     <PageTitle>返回</PageTitle>
-     <div class="form-box" style="margin-right: 10rem">
-        <dil-form :formId="317" v-model="form1" ref="from1">
-        </dil-form>
+    <div class="form-box" style="margin-right: 10rem">
+      <dil-form :formId="317" v-model="form1" ref="from1"> </dil-form>
     </div>
-  <div class="form-box f1">
-    <el-form :inline="true" :model="formInline" class="demo-form-inline">     
-    </el-form>
-  </div>
-  <div class="inputBox">
-  <el-input :inline="true"
+    <div class="form-box f1">
+      <el-form :inline="true" :model="formInline" class="demo-form-inline">
+      </el-form>
+    </div>
+    <div class="inputBox">
+      <el-input
+        :inline="true"
         placeholder="请输入内容"
         v-model="inputText"
-        clearable>
-    </el-input>
-    <el-button type="primary" class="btn" @click="onclick" :inline="true">
+        clearable
+      >
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick" :inline="true">
         <i class="el-icon-search"></i>物资列表查询
-    </el-button> 
-  </div>
-    
-          <div> <dilTable v-bind.sync="options" @selection-change="selectionChange"></dilTable></div>
+      </el-button>
+    </div>
+
+    <div>
+      <dilTable
+        v-bind.sync="options"
+        @selection-change="selectionChange"
+      ></dilTable>
+    </div>
 
     <div class="button-box">
       <el-button @click="cancel">取消</el-button>
       <el-button type="primary" @click="makeSure">确定</el-button>
     </div>
-          
   </div>
 </template>
 
@@ -38,59 +43,52 @@ export default {
   components: { PageTitle },
   data() {
     return {
-      materialName:"",
+      materialName: "",
       form1: {},
-      checkList:[],
-      inputText:"",
-      options:{
+      checkList: [],
+      inputText: "",
+      options: {
         // first请求数据的地址
         requestUrl: "/api/v1/rms/getMaterialList?apiId=351",
         selectionType: "select",
-         mapList:[]
-        
+        mapList: [],
       },
     };
   },
   mounted() {},
   methods: {
-      selectionChange(selection){
-      this.mapList=selection, 
-      console.log(this.mapList) 
-      this.materialName=this.mapList.materialName
-     
+    selectionChange(selection) {
+      (this.mapList = selection), console.log(this.mapList);
+      this.materialName = this.mapList.materialName;
     },
-    onclick(){
-      this.options.requestUrl="/api/v1/rms/getMaterialList?apiId=351&con=" +this.inputText;
+    onclick() {
+      this.options.requestUrl =
+        "/api/v1/rms/getMaterialList?apiId=351&con=" + this.inputText;
     },
-    
-     makeSure() {
- 
-       console.log(this.form1) 
-       
-       let rmsTruckCalculate={
-         truckCalculateNumber:this.form1.truckCalculateNumber,   
-         truckCalculateId:this.form1.truckCalculateId,
-         truckCalculateLongitude:this.form1.truckCalculateLongitude,
-         truckCalculateLatitude:this.form1.truckCalculateLatitude,
-         calculateType:this.form1.calculateType,
-         };  
-         let map = {
-        mapList:this.mapList,
-        rmsTruckCalculate:rmsTruckCalculate
+
+    makeSure() {
+      console.log(this.form1);
+
+      let rmsTruckCalculate = {
+        truckCalculateNumber: this.form1.truckCalculateNumber,
+        truckCalculateId: this.form1.truckCalculateId,
+        truckCalculateLongitude: this.form1.truckCalculateLongitude,
+        truckCalculateLatitude: this.form1.truckCalculateLatitude,
+        calculateType: this.form1.calculateType,
       };
-         if(
+      let map = {
+        mapList: this.mapList,
+        rmsTruckCalculate: rmsTruckCalculate,
+      };
+      if (
         rmsTruckCalculate.truckCalculateNumber == null ||
         rmsTruckCalculate.truckCalculateLongitude == null ||
         rmsTruckCalculate.truckCalculateLatitude == null ||
-        rmsTruckCalculate.calculateType ==null
-         )this.$message.error("存在空值!");
-         
-       else
-      this.axios
-        .post(
-          "/api/v1/rms/insertTruckCalculate",map
-        )
-        .then((res) => {
+        rmsTruckCalculate.calculateType == null
+      )
+        this.$message.error("存在空值!");
+      else
+        this.axios.post("/api/v1/rms/insertTruckCalculate", map).then((res) => {
           if (res.data.code == 200) {
             this.$message({
               type: "success",
@@ -101,37 +99,36 @@ export default {
           } else {
             this.$message.error("新增失败,可能存在重复!");
           }
-          this.$refs['table'].resetField();
+          this.$refs["table"].resetField();
         });
     },
-   
+
     // 取消
     cancel() {
       this.$router.go(-1);
     },
-    
   },
 };
 </script>
 <style lang='scss' >
- .button-box{
-    display: flex;
-    justify-content: center;
-    .el-button{
-      width: 80px;
-      margin-right: 10px;
-    }
+.button-box {
+  display: flex;
+  justify-content: center;
+  .el-button {
+    width: 80px;
+    margin-right: 10px;
   }
-.inputBox{
+}
+.inputBox {
   display: flex;
   text-align: center;
   align-items: center;
-   margin-top: 2rem;
-   width: 800px;
-  .el-input__inner{
+  margin-top: 2rem;
+  width: 800px;
+  .el-input__inner {
     display: flex;
-  text-align: center;
-  align-items: center;
+    text-align: center;
+    align-items: center;
   }
 }
 .btn-left {
@@ -140,28 +137,28 @@ export default {
 .input {
   margin-left: 90px;
 }
-.label{
+.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{
+  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
+  font-family: Arial, Helvetica, sans-serif;
 }
-.label1{
+.label1 {
   margin-left: 345px;
   margin-bottom: -30px;
   font: bold;
 }
-.common{
+.common {
   font-weight: 700;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
     Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
@@ -169,35 +166,35 @@ export default {
   cursor: default;
   color: #2c3e50;
 }
-.f1{
+.f1 {
   margin-top: -2.5rem;
   margin-left: 25rem;
 }
-.f11{
+.f11 {
   margin-top: -3rem;
   // margin-left: 29rem;
 }
-.f2{
+.f2 {
   margin-top: -2.5rem;
   margin-left: 20.7rem;
 }
-.f3{
+.f3 {
   margin-top: -2.5rem;
   margin-left: 25rem;
 }
-.form-box{
+.form-box {
   display: flex;
   justify-content: center;
-  .el-form-item{
+  .el-form-item {
     display: flex;
     justify-content: center;
-    .el-form-item__label{
+    .el-form-item__label {
       display: flex;
       align-items: center;
     }
-    .el-form-item__content{
-      .el-input{
-        .el-input__inner{
+    .el-form-item__content {
+      .el-input {
+        .el-input__inner {
           width: 250px;
         }
       }

+ 1 - 8
src/views/RMS/components/capacity.vue

@@ -25,13 +25,6 @@
             >
               修改
             </el-button>
-            <!-- <el-button
-              type="text"
-              size="mini"
-              @click="deleteCapacity(scope)"
-            >
-              删除
-            </el-button> -->
           </template>
         </el-table-column>
       </dilTable>
@@ -62,7 +55,7 @@ export default {
   },
   methods:{
     onclick(){
-      this.options.requestUrl = "/api/v1/rms/getCapacityList?apiId=397&carrierSSOId="+ getCookie("userId") +"&con=" +this.textInput;
+      this.options.requestUrl = "/api/v1/rms/getCapacityList?apiId=397&carrierSSOId="+ getCookie("userId") +"&con=" +this.textInput + "&i=" + new Date();
     },
      toInsert() {
       this.$router.push("/addCapacity");

+ 1 - 2
src/views/SporadicManage/components/moreThanMaterialTruck/transportAppoint/addSporadicTransportAppoint.vue

@@ -356,7 +356,7 @@ export default {
           selectionType: "select",
       },
       line: {
-        requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
+        requestUrl: "",
         selectionType: "radio",
       },
       row: {},
@@ -407,7 +407,6 @@ export default {
       }
     },
     drawTable(){
-      console.log('jll')
       this.materialOptions.requestUrl = "/api/v1/uc/selectAllMaterialName?apiId=395&test=1"
       this.selectionList1 = []
       this.table = true

+ 8 - 4
src/views/SporadicManage/components/moreThanMaterialTruck/transportAppoint/transportAppoint.vue

@@ -75,6 +75,9 @@ export default {
     };
   },
   created(){
+      console.log('-----sj');
+      console.log(new Date())
+      console.log('-----sj');
       this.option1.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=0&orderType=15&dispatchStatus=0",
       this.option2.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&sporadicStatus=1"
   },
@@ -95,6 +98,7 @@ export default {
       }
     },
     handleClick(tab, event) {
+      
       console.log(tab, event);
     }, // 下发
     // 下发
@@ -104,8 +108,8 @@ export default {
         .post("/api/v1/ams/issueSporadicOrders", this.maplist)
         .then((res) => {
           if (res.data.code == "200") {
-            this.option1.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=0&orderType=15&dispatchStatus=0&test=1"
-            this.option2.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&sporadicStatus=1"
+            this.option1.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=0&orderType=15&dispatchStatus=0&test=" + new Date();
+            this.option2.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&sporadicStatus=1&test=" + new Date();
             this.$message({
               type: "success",
               message: "下发成功!",
@@ -123,8 +127,8 @@ export default {
         )
         .then((res) => {
           if (res.data.code == "200") {
-            this.option1.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=0&orderType=15&dispatchStatus=0&test=1"
-            this.option2.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&sporadicStatus=1"
+            this.option1.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=0&orderType=15&dispatchStatus=0&test=" + new Date();
+            this.option2.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&sporadicStatus=1&test=" + new Date();
             this.$message({
               type: "success",
               message: "删除成功!",

+ 3 - 1
src/views/SporadicManage/components/moreThanMaterialTruck/transportOrder/addTransportOrder.vue

@@ -151,11 +151,13 @@ export default {
       this.truck.requestUrl =
         "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
         getCookie("userId");
+      this.option.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&dispatchStatus=0&carrierSsoId=" + getCookie("userId");
     } else {
       this.truck.requestUrl =
         "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null;
+      this.option.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&dispatchStatus=0";
     }
-    this.option.requestUrl = "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=15&dispatchStatus=0" ;
+    
   },
   methods: {
     onInput(val){

+ 2 - 2
src/views/SporadicManage/components/sporadicMaterial/transportAppoint/transportAppoint.vue

@@ -62,14 +62,14 @@ export default {
       option1: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=0&orderType=12",
+          "/api/v1/ams/getSporadicOrdersList?apiId=427&issueStatus=0&orderType=12",
         // 控制显示多选列
         selectionType: "select",
       },
       option2: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/ams/getSporadicOrdersList?apiId=384&issueStatus=1&orderType=12",
+          "/api/v1/ams/getSporadicOrdersList?apiId=427&issueStatus=1&orderType=12",
       },
       selection: [],
     };

+ 124 - 76
src/views/SporadicManage/components/sporadicMaterial/transportOrder/transportOrder.vue

@@ -63,51 +63,16 @@
         </el-tab-pane>
         <!-- 已下发 -->
         <el-tab-pane label="已下发" name="first">
-          <dilTable v-bind.sync="first"></dilTable>
+          <dilTable v-bind.sync="first">
+          </dilTable>
         </el-tab-pane>
         <!-- 已接收 -->
         <el-tab-pane label="已接收" name="Received">
-          <dilTable v-bind.sync="Received"></dilTable>
+          <dilTable v-bind.sync="Received">
+          </dilTable>
         </el-tab-pane>
       </el-tabs>
     </div>
-
-    <!-- <el-dialog
-      title="请选择车辆"
-      :visible.sync="dialogVisible"
-      :close-on-click-modal="false"
-      :close-on-press-escape="false"
-      :destroy-on-close="true"
-      width="30%"
-      show-close
-      modal
-      lock-scroll
-    >
-     <el-drawer
-      title="请选择车辆信息"
-      :visible.sync="drawer"
-      :direction="direction"
-      :close-on-press-escape="false"
-      :destroy-on-close="true"
-      :wrapperClosable="false"
-      modal
-      show-close
-    >
-      <div class="drawer_top">
-        <el-input placeholder="请输入内容" v-model="inputText" clearable>
-        </el-input>
-        <el-button type="primary" class="btn" @click="inputClick">
-          <i class="el-icon-search"></i>查询
-        </el-button>
-      </div>
-      <div class="drawer_bottom">
-        <dilTable
-          v-bind.sync="truck"
-          @radio-change="currentRadioChange"
-        ></dilTable>
-      </div>
-    </el-drawer>
-    </el-dialog> -->
     <el-drawer
       title="请选择车辆信息"
       :visible.sync="drawer"
@@ -149,25 +114,33 @@ export default {
       //未下发的表格
       option: {
         requestUrl:
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + '',
+          "" ,
         selectionType: "select",
       },
       //已下发的表格
       first: {
         requestUrl:
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" +'',
+          "" ,
       },
       //车辆信息的表格
       truck: {
-        requestUrl: "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + '',
+        requestUrl: "" ,
         // 控制显示当选列
         selectionType: "radio",
       },
       Received:{
-        requestUrl: "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" +'',
+        requestUrl: "",
       },
+      oldRow:"",
+      oldRowCount:1,
+      oldRow1:"",
+      oldRowCount1:1,
+      oldRow2:"",
+      oldRowCount2:1,
       //物资信息的数据
       tableData: [],
+      tableData1:[],
+      tableData2:[],
       //物资信息的表头
       tableHead: [
         {
@@ -203,14 +176,26 @@ export default {
     };
   },
   created(){
-      this.carrierUserId = getCookie('userId')
-      console.log(this.carrierUserId)
-      this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + this.carrierUserId ,
-      this.first.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" + this.carrierUserId ,
-      this.Received.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" + this.carrierUserId ,
-      this.truck.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.carrierUserId 
+    this.createdLike()
   },
   methods: {
+    createdLike(){
+        if(getCookie("orgCode") == "chengyunshang"){
+        this.truck.requestUrl =
+        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
+        getCookie("userId");
+        this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + getCookie("userId") 
+        this.first.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" + getCookie("userId") 
+        this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + getCookie("userId")
+        this.Received.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" + getCookie("userId") 
+    }else{
+        this.truck.requestUrl =
+        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null ;
+        this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3" 
+        this.first.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4" 
+        this.Received.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5" 
+    }      
+    },
     handleClose(done){
       if(this.capacityId == null){
         done();
@@ -220,13 +205,6 @@ export default {
         done();
       }      
     },
-    onclick(){
-      if(this.input != ''){
-        this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&con="+this.input +"&carrierId=" + getCookie('userId');
-      }else{
-        this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.userCarrierId
-      }     
-    },
     //下发
     Issue() {
       if (this.selectionList.length == 0) {
@@ -248,10 +226,10 @@ export default {
                   message: "下发成功",
                   type: "success",
                 });
-                this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + this.carrierUserId +"&test=1",
-                this.first.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" + this.carrierUserId +"&test=1",
-                this.Received.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" + this.carrierUserId +"&test=1" ,
-                this.truck.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.carrierUserId +"&test=1"
+               this.first.requestUrl = this.first.requestUrl + "&test=1" 
+               this.option.requestUrl = this.option.requestUrl + "&test=1" 
+               this.Received.requestUrl = this.Received.requestUrl + "&test=1" 
+               this.truck.requestUrl = this.truck.requestUrl + "&test=1" 
               }
             });
           }
@@ -272,17 +250,21 @@ export default {
                 message: "添加成功!",
                 type: "success",
               });
+               this.first.requestUrl = this.first.requestUrl + "&test=1" 
+               this.option.requestUrl = this.option.requestUrl + "&test=1" 
+               this.Received.requestUrl = this.Received.requestUrl + "&test=1" 
+               this.truck.requestUrl = this.truck.requestUrl + "&test=1" 
             } else if (this.index == 2) {
               this.$message({
                 message: "修改成功!",
                 type: "success",
               });
+              this.first.requestUrl = this.first.requestUrl + "&test=1" 
+              this.option.requestUrl = this.option.requestUrl + "&test=1" 
+              this.Received.requestUrl = this.Received.requestUrl + "&test=1" 
+              this.truck.requestUrl = this.truck.requestUrl + "&test=1" 
             }
-            this.dialogVisible = false;
-            this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + this.carrierUserId +"&test=1",
-            this.first.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" + this.carrierUserId +"&test=1",
-            this.Received.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" + this.carrierUserId +"&test=1" ,
-            this.truck.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.carrierUserId +"&test=1"
+           
           }
         });
     },
@@ -299,13 +281,9 @@ export default {
     },
     //单选按钮选中的值
     currentRadioChange(row) {
-      this.capacityId = row.carrierId;
+      this.capacityId = row.capacityId;
       this.capacityNumber = row.capacityNumber;
     },
-    //打开模态窗口
-    // onDrawer() {
-    //   this.drawer = true;
-    // },
     //弹出消息窗口
     addTruck(row, index) {
       this.index = index;
@@ -343,15 +321,85 @@ export default {
       this.oldRow = row;
       this.materialDetails(row.orderId);
     },
+    // 查看物资详情
+    detailclick1(row) {
+      console.log(row)
+      // 记录重复点击次数
+      if (this.oldRow1 === row) {
+        this.oldRowCount1 += 1;
+      }
+      // 切换当前详情表
+      this.$refs.table1.toggleRowExpansion(row);
+      // 打开前关闭上一个详情表
+      if (this.oldRow1 != "") {
+        if (this.oldRow1 != row) {
+          if (this.oldRowCount1 % 2 === 1) {
+            this.$refs.table1.toggleRowExpansion(this.oldRow1);
+          } else {
+            this.oldRowCount1 = 1;
+          }
+        } else {
+          this.oldRow1 = null;
+          return;
+        }
+      }
+      // 重置上一个点击对象
+      this.oldRow1 = row;
+      this.axios
+        .post("/api/v1/uc/getOrderMaterialMesByOrderId/" + row.orderId)
+        .then((res) => {
+          if (res.data.code == "200") {
+            this.tableData1 = res.data.data;
+          }
+        });
+
+    },
+    // 查看物资详情
+    detailclick2(row) {
+      // 记录重复点击次数
+      if (this.oldRow2 === row) {
+        this.oldRowCount2 += 1;
+      }
+      // 切换当前详情表
+      this.$refs.table2.toggleRowExpansion(row);
+      // 打开前关闭上一个详情表
+      if (this.oldRow2 != "") {
+        if (this.oldRow2 != row) {
+          if (this.oldRowCount2 % 2 === 1) {
+            this.$refs.table2.toggleRowExpansion(this.oldRow);
+          } else {
+            this.oldRowCount2 = 1;
+          }
+        } else {
+          this.oldRow2 = null;
+          return;
+        }
+      }
+      // 重置上一个点击对象
+      this.oldRow2 = row;
+      this.axios
+        .post("/api/v1/uc/getOrderMaterialMesByOrderId/" + row.orderId)
+        .then((res) => {
+          if (res.data.code == "200") {
+            this.tableData2 = res.data.data;
+          }
+        });
+    },
     //框计算
     onclick() {
-      if (this.activeName == "option") {
-        this.option.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId= &type=2&con=" +
-          this.input;
-      } else {
-        this.first.requestUrl = "con=" + this.input;
+      if(this.inputText != null){
+        if(this.activeName == 'first'){
+        this.first.requestUrl = this.first.requestUrl + "&con=" + this.inputText
+      }else if(this.activeName = 'option'){
+        this.option.requestUrl = this.option.requestUrl + "&con=" + this.inputText
+      }else if(this.activeName = 'Received'){
+        this.Received.requestUrl = this.Received.requestUrl + "&con=" + this.inputText
+      }else{
+        this.truck.requestUrl = this.truck.requestUrl + "&con=" + this.inputText
       }
+      }else{
+        this.createdLike()
+      } 
     },
     //查看当前订单的物资信息
     materialDetails(orderId) {

+ 25 - 32
src/views/TMS/components/purchaseChemicalMaterials/transportationReservation.vue

@@ -95,22 +95,31 @@ export default {
       },
     };
   },
+  watch:{
+    activeName(val){
+      if(val == 'first'){
+        if (getCookie("orgCode") == "chengyunshang") {
+          this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" + getCookie("userId")+"&i="+ new Date();
+        }else{
+          this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" + null + "&i="+ new Date();
+        }
+      }else{
+        if (getCookie("orgCode") == "chengyunshang") {
+          this.option2.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" + getCookie("userId") + "&i="+ new Date();
+        }else{
+          this.option2.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" + null + "&i="+ new Date();
+        }
+      }
+    }
+  },
   created() {
     //判断是否是承运商
     if (getCookie("orgCode") == "chengyunshang") {
-      this.option1.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" +
-        getCookie("userId");
-      this.option2.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" +
-        getCookie("userId");
+      this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" + getCookie("userId");
+      this.option2.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" + getCookie("userId");
     } else {
-      this.option1.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" +
-        null;
-      this.option2.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" +
-        null;
+      this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" + null;
+      this.option2.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" + null;
     }
   },
   methods: {
@@ -118,32 +127,16 @@ export default {
       if (this.activeName == "first") {
         //判断是否是承运商
         if (getCookie("orgCode") == "chengyunshang") {
-          this.option1.requestUrl =
-            "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" +
-            getCookie("userId") +
-            "&con=" +
-            this.input;
+          this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" + getCookie("userId") + "&con=" + this.input;
         } else {
-          this.option1.requestUrl =
-            "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" +
-            null +
-            "&con=" +
-            this.input;
+          this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=2&carrierSSOId=" + null + "&con=" + this.input;
         }
       } else {
         //判断是否是承运商
         if (getCookie("orgCode") == "chengyunshang") {
-          this.option1.requestUrl =
-            "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" +
-            getCookie("userId") +
-            "&con=" +
-            this.input;
+          this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" + getCookie("userId") + "&con=" + this.input;
         } else {
-          this.option1.requestUrl =
-            "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" +
-            null +
-            "&con=" +
-            this.input;
+          this.option1.requestUrl = "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&fuelOrder=2&carrierSSOId=" + null + "&con=" + this.input;
         }
       }
     },

+ 16 - 12
src/views/TMS/components/purchaseChemicalMaterials/transportationReservationAdd.vue

@@ -249,13 +249,6 @@ export default {
       },
     };
   },
-  watch: {
-    drawer(val) {
-      if (!val) {
-        this.input = null;
-      }
-    },
-  },
   created() {
     if (getCookie("orgCode") == "chengyunshang") {
       this.third.requestUrl =
@@ -293,7 +286,6 @@ export default {
               });
               this.form1 = [];
             } else {
-              console.log();
               this.remark = res.data.data.remark;
               this.purchaseOrderId = res.data.data.purchaseOrderId;
               this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
@@ -344,12 +336,24 @@ export default {
       }
     },
     ondrawer(num) {
+      this.input = null;
       this.drawer = true;
       this.a = num;
-      if (num == 2) {
-        this.secend.requestUrl =
-          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
-          this.materialId;
+      if(num == 1){
+        this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&i="+new Date();
+      }else if (num == 2) {
+        this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId +"&i=" +new Date();
+      }else if(num == 3){
+        //判断是否是承运商查询车辆
+        if (getCookie("orgCode") == "chengyunshang") {
+          this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId") + "&i=" + new Date();
+        } else {
+          this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&i="+new Date(); 
+        }
+      }else if(num == 4){
+        this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=347&i=" + new Date();
+      }else if(num == 5){
+        this.option.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
       }
     },
     // 返回

+ 1 - 3
src/views/inward/components/inwardImport/daZhou/addTruckLoad.vue

@@ -44,11 +44,9 @@ export default {
       totalResultIdList: [],
     };
   },
-
   created() {
     this.form.loadTime = new Date();
-  },
-
+  }, 
   methods: {
     selectionChange(val) {
       this.totalResultIdList = []

+ 1 - 2
src/views/sale/components/transport_appointment/directionalDispatch.vue

@@ -21,7 +21,6 @@
         <el-tabs v-model="activeName">
           <el-tab-pane label="未下发" name="first">
             <dilTable v-bind.sync="first" ref="table" @selection-change="selectionChange">
-
               <el-table-column fixed="right" label="操作" width="70">
             <template slot-scope="scope">
               <el-button
@@ -51,7 +50,7 @@
             </el-form>
           </template>
         </el-table-column>
-            </dilTable>
+        </dilTable>
 
           </el-tab-pane>
           <el-tab-pane label="已下发" name="second">