瀏覽代碼

前端sdy

zhongtianhaoyuan 4 年之前
父節點
當前提交
763ee87ca8

+ 13 - 11
src/views/taskManagement/tranManagementTransport.vue

@@ -1,8 +1,16 @@
 <!--运输任务-->
 <!--运输任务-->
 <template>
 <template>
   <div>
   <div>
-    <BaseHeaderLayout :leftSpan="15">
-      <template slot="left">
+    <BaseHeaderLayout :leftSpan="12">
+    <template slot="left">
+        <ws-button class="but" type="primary" @click="handleAdd()"
+        v-hasPermission="
+           `transportationTask.transportation.transportationInfo.add`
+          "
+          >添加</ws-button
+        >
+      </template>
+      <template slot="right">
         <span style="width: 134px; display: inline-block">起点:</span>
         <span style="width: 134px; display: inline-block">起点:</span>
         <el-input
         <el-input
           label="起点"
           label="起点"
@@ -44,14 +52,7 @@
           /></ws-button>
           /></ws-button>
         </div>
         </div>
       </template>
       </template>
-      <template slot="right">
-        <ws-button class="but" type="primary" @click="handleAdd()"
-        v-hasPermission="
-           `transportationTask.transportation.transportationInfo.add`
-          "
-          >添加</ws-button
-        >
-      </template>
+      
     </BaseHeaderLayout>
     </BaseHeaderLayout>
     <div>
     <div>
       <ws-button
       <ws-button
@@ -588,11 +589,12 @@ export default {
   text-align: center;
   text-align: center;
 }
 }
 .findValue.el-input {
 .findValue.el-input {
-  width: 50%;
+  width: 100%;
   margin: 0;
   margin: 0;
 }
 }
 .el-input {
 .el-input {
   margin: 0 10px;
   margin: 0 10px;
+  width: 70%;
 }
 }
 /deep/.search .el-button--small {
 /deep/.search .el-button--small {
   padding: 0;
   padding: 0;

+ 2 - 2
src/views/tranManagement/component/routers/route.js

@@ -75,7 +75,7 @@ const tranManagementRouter = {
     },
     },
     //船运调度详情
     //船运调度详情
     {
     {
-      path: 'shippingDispatching/view',
+      path: 'tshippingDispatching/view',
       component: () =>
       component: () =>
         import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementShippingLook'),
         import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementShippingLook'),
       name: 'tshippingDispatchingview',
       name: 'tshippingDispatchingview',
@@ -312,4 +312,4 @@ const tranManagementRouter = {
     },
     },
   ],
   ],
 };
 };
-export default tranManagementRouter;
+export default tranManagementRouter;  

+ 2 - 24
src/views/tranManagement/tranManagementDriver.vue

@@ -2,10 +2,10 @@
 <template>
 <template>
   <div>
   <div>
     <BaseHeaderLayout :leftSpan="12">
     <BaseHeaderLayout :leftSpan="12">
-      <template slot="right">
+      <template slot="left">
         <ws-button type="primary" @click="handleAdd()">添加</ws-button>
         <ws-button type="primary" @click="handleAdd()">添加</ws-button>
       </template>
       </template>
-      <template slot="left">
+      <template slot="right">
         <span style="display: inline-block; width: 60px; color: #8890b1"
         <span style="display: inline-block; width: 60px; color: #8890b1"
           >城市</span
           >城市</span
         >
         >
@@ -26,7 +26,6 @@
           type="input"
           type="input"
           class="findValue"
           class="findValue"
         ></ws-input>
         ></ws-input>
-
         <ws-button type="primary" @click="handleLook()">
         <ws-button type="primary" @click="handleLook()">
           <img
           <img
             width="14"
             width="14"
@@ -323,26 +322,6 @@
       <p>查看附件</p>
       <p>查看附件</p>
       <img width="100" height="100" :src="accessurl" alt="" />
       <img width="100" height="100" :src="accessurl" alt="" />
     </WinseaContentModal>
     </WinseaContentModal>
-    <!-- <WinseaContentModal
-      v-model="accessoryTFs"
-      :title="$t('system.noticeCircular.information')"
-      @on-cancel="handleClose"
-    >
-      <el-upload
-        class="upload-demo"
-        action="https://jsonplaceholder.typicode.com/posts/"
-        :file-list="fileList"
-        list-type="picture"
-        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
-      >
-        <el-button size="small" type="primary">点击上传</el-button>
-        <template #tip>
-          <div class="el-upload__tip">
-            只能上传 jpg/png 文件,且不超过 500kb
-          </div>
-        </template>
-      </el-upload>
-    </WinseaContentModal> -->
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
@@ -353,7 +332,6 @@ import {
   disableDriver,
   disableDriver,
 } from '@/model/transport/index'
 } from '@/model/transport/index'
 import Pagination from '@/components/Pagination'
 import Pagination from '@/components/Pagination'
-// provinceAndCityData省市二级
 import { provinceAndCityData, CodeToText } from 'element-china-area-data'
 import { provinceAndCityData, CodeToText } from 'element-china-area-data'
 import WsUpload from '@/components/WsUpload'
 import WsUpload from '@/components/WsUpload'
 import { dayjs, fmoney, EventBus } from 'base-core-lib'
 import { dayjs, fmoney, EventBus } from 'base-core-lib'

+ 15 - 4
src/views/tranManagement/tranManagementReceivingFeedback.vue

@@ -1,4 +1,4 @@
-//收反馈
+//收反馈
 <template>
 <template>
   <div>
   <div>
     <BaseHeaderLayout :leftSpan="13">
     <BaseHeaderLayout :leftSpan="13">
@@ -12,10 +12,10 @@
       <!-- 接单开始 -->
       <!-- 接单开始 -->
       <template slot="right">
       <template slot="right">
        <div>
        <div>
-          <span style="display: inline-block; width: 239px;color: #8890B1;">接单日期</span>
+          <span style="display: inline-block; width: 60px;color: #8890B1;">接单日期</span>
         </div>
         </div>
         <el-date-picker
         <el-date-picker
-          v-model="deptBudgetList.inOutDate"
+          v-model="inOutDate"
           type="daterange"
           type="daterange"
           align="right"
           align="right"
           unlink-panels
           unlink-panels
@@ -225,6 +225,7 @@ export default {
       deptBudgetList: {},
       deptBudgetList: {},
       historyList: [],
       historyList: [],
       value2:'',
       value2:'',
+      inOutDate:[],
       pickerOptions:[],
       pickerOptions:[],
       pickerBeginDateBefore: {
       pickerBeginDateBefore: {
         disabledDate: (time) => {
         disabledDate: (time) => {
@@ -245,6 +246,9 @@ export default {
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         feedbackFlag: this.feedbackFlag,
         feedbackFlag: this.feedbackFlag,
+         startDate: this.startDate ,
+        endDate:this.endDate,
+        searchKeyWord : this.searchKeyWord
         
         
       })
       })
         .toPromise()
         .toPromise()
@@ -435,6 +439,13 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
+     if (this.inOutDate.length > 0) {
+        this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
+        this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
+      } else {
+        this.startDate = ''
+        this.endDate = ''
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     },
     },
@@ -520,7 +531,7 @@ export default {
 }
 }
 .el-range-editor--small.el-input__inner {
 .el-range-editor--small.el-input__inner {
     height: 32px;
     height: 32px;
-    margin-left: -20%;
+    margin: 0 10px;
 }
 }
 //状态样式
 //状态样式
 .executory,
 .executory,

+ 87 - 139
src/views/tranManagement/tranManagementShipping.vue

@@ -3,26 +3,25 @@
   <div>
   <div>
     <BaseHeaderLayout :leftSpan="12">
     <BaseHeaderLayout :leftSpan="12">
       <template slot="left">
       <template slot="left">
-        <ws-button class="but" @click="statusquery(1)">
-          执行中</ws-button
-        >
+        <ws-button class="but" @click="statusquery(1)"> 执行中</ws-button>
         <ws-button class="but" @click="statusquery(2)">已完成</ws-button>
         <ws-button class="but" @click="statusquery(2)">已完成</ws-button>
         <ws-button class="but" @click="statusquery()">全部任务</ws-button>
         <ws-button class="but" @click="statusquery()">全部任务</ws-button>
       </template>
       </template>
       <!-- 接单开始 -->
       <!-- 接单开始 -->
       <template slot="right">
       <template slot="right">
         <div>
         <div>
-        <span style="display: inline-block; width: 239px;color: #8890B1;">接单日期</span>
+          <span style="display: inline-block; width: 60px; color: #8890b1"
+            >接单日期</span
+          >
         </div>
         </div>
         <el-date-picker
         <el-date-picker
-          v-model="deptBudgetList.inOutDate"
+          v-model="inOutDate"
           type="daterange"
           type="daterange"
           align="right"
           align="right"
           unlink-panels
           unlink-panels
           range-separator="至"
           range-separator="至"
           start-placeholder="开始日期"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
           end-placeholder="结束日期"
-
         >
         >
         </el-date-picker>
         </el-date-picker>
         <ws-input
         <ws-input
@@ -47,7 +46,6 @@
             src="../../../public/img/sousuo.png"
             src="../../../public/img/sousuo.png"
             alt=""
             alt=""
         /></ws-button>
         /></ws-button>
-       
       </template>
       </template>
     </BaseHeaderLayout>
     </BaseHeaderLayout>
     <div>
     <div>
@@ -57,28 +55,24 @@
         style="width: 100%; margin-top: 20px"
         style="width: 100%; margin-top: 20px"
         height="780"
         height="780"
       >
       >
-        <el-table-column type="index" label="序号" width="80" >
+        <el-table-column type="index" label="序号" width="80">
         </el-table-column>
         </el-table-column>
         <el-table-column class="table_td" prop="processNo" label="运输任务编号">
         <el-table-column class="table_td" prop="processNo" label="运输任务编号">
         </el-table-column>
         </el-table-column>
         <el-table-column class="table_td" prop="goodsName" label="货名">
         <el-table-column class="table_td" prop="goodsName" label="货名">
-
         </el-table-column>
         </el-table-column>
         <el-table-column class="table_td" label="重量(吨)" prop="weight">
         <el-table-column class="table_td" label="重量(吨)" prop="weight">
-         
         </el-table-column>
         </el-table-column>
         <el-table-column class="table_td" label="发货" prop="send">
         <el-table-column class="table_td" label="发货" prop="send">
-          
         </el-table-column>
         </el-table-column>
         <el-table-column class="table_td" label="收货" prop="receive">
         <el-table-column class="table_td" label="收货" prop="receive">
-          
         </el-table-column>
         </el-table-column>
         <el-table-column class="table_td" label="运输周期" prop="tranCycle">
         <el-table-column class="table_td" label="运输周期" prop="tranCycle">
-         <template scope="scope">
-               {{scope.row.deliveryDateStart}} ~ {{scope.row.deliveryDateEnd}}
-             </template>
+          <template scope="scope">
+            {{ scope.row.deliveryDateStart }} ~ {{ scope.row.deliveryDateEnd }}
+          </template>
         </el-table-column>
         </el-table-column>
-      <el-table-column prop="status" label="状态">
+        <el-table-column prop="status" label="状态">
           <template slot-scope="scope">
           <template slot-scope="scope">
             <el-popover
             <el-popover
               placement="left"
               placement="left"
@@ -97,13 +91,20 @@
                     v-if="scope.row.processStatus == '执行中'"
                     v-if="scope.row.processStatus == '执行中'"
                     class="inExecution"
                     class="inExecution"
                   ></span>
                   ></span>
-                  <span v-if="scope.row.processStatus == '已完成'" class="done"></span
+                  <span
+                    v-if="scope.row.processStatus == '已完成'"
+                    class="done"
+                  ></span
                   >{{ scope.row.processStatus }}
                   >{{ scope.row.processStatus }}
                 </span>
                 </span>
               </template>
               </template>
               <div>
               <div>
                 <p style="margin-top: 0; padding-left: 10px">历史记录</p>
                 <p style="margin-top: 0; padding-left: 10px">历史记录</p>
-                <div v-for="(item, index) in historyList" class="flex" :key="index">
+                <div
+                  v-for="(item, index) in historyList"
+                  class="flex"
+                  :key="index"
+                >
                   <div class="vertical-text vertical-text-left">
                   <div class="vertical-text vertical-text-left">
                     {{ item.updateDate }}
                     {{ item.updateDate }}
                   </div>
                   </div>
@@ -129,17 +130,13 @@
               alt=""
               alt=""
             />
             />
           </template>
           </template>
-      </el-table-column>
-      <el-table-column class="table_td" label="接单日期" prop="receivingDate">
+        </el-table-column>
+        <el-table-column class="table_td" label="接单日期" prop="receivingDate">
         </el-table-column>
         </el-table-column>
         <el-table-column prop="seller" label="操作" width="300">
         <el-table-column prop="seller" label="操作" width="300">
           <template slot-scope="scope">
           <template slot-scope="scope">
-            <div class="record" @click="handleLook(scope.row)">
-              查看
-            </div>
-            <div class="adjustment" @click="shipping(scope.row)">
-              船次
-            </div>
+            <div class="record" @click="handleLook(scope.row)">查看</div>
+            <div class="adjustment" @click="shipping(scope.row)">船次</div>
           </template>
           </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
@@ -157,11 +154,7 @@
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
-import {
-  getList,
-  shippingList,
-  alsostate,
-} from '@/model/transport/index'
+import { getList, shippingList, alsostate } from '@/model/transport/index'
 import { downloadFile } from '@/utils/batchDown'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
 import WsUpload from '@/components/WsUpload'
@@ -194,19 +187,18 @@ export default {
       showType: true,
       showType: true,
       // 年
       // 年
       year: '',
       year: '',
-      pickerOptions:{
-        
-      },
+      pickerOptions: {},
       value2: '',
       value2: '',
-      deptBudgetTotal:0,
+      deptBudgetTotal: 0,
       currentPage: 1,
       currentPage: 1,
-      tranTypeKey:3,
+      tranTypeKey: 3,
       pageSize: 10,
       pageSize: 10,
       searchType: 1,
       searchType: 1,
       searchTypeText: '未完成',
       searchTypeText: '未完成',
       searchKeyWord: '',
       searchKeyWord: '',
       contractType: 2,
       contractType: 2,
-      
+      inOutDate: [],
+
       // 提交类型
       // 提交类型
       submitType: true,
       submitType: true,
       size: 10,
       size: 10,
@@ -233,28 +225,27 @@ export default {
     this.showType = this.isShow
     this.showType = this.isShow
   },
   },
   methods: {
   methods: {
-    getList(){
-      console.log(123456)
+    getList() {
       shippingList({
       shippingList({
         compId: sessionStorage.getItem('ws-pf_compId'),
         compId: sessionStorage.getItem('ws-pf_compId'),
-        currentPage:this.currentPage,
-        pageSize:this.pageSize,
-        contractType:this.contractType,
-        tranTypeKey: this.tranTypeKey, 
-        searchType:this.searchType,
-
-      })
-      .toPromise()
-      .then((response)=>{
-        this.warehouseList = response
-        this.deptCircularPage.currentPage = response.current
-        this.deptCircularPage.pageSize = response.size
-        this.deptBudgetTotal = response.total
-        
-        
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+        contractType: this.contractType,
+        tranTypeKey: this.tranTypeKey,
+        searchType: this.searchType,
+        startDate: this.startDate,
+        endDate: this.endDate,
+        searchKeyWord: this.searchKeyWord,
       })
       })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList = response
+          this.deptCircularPage.currentPage = response.current
+          this.deptCircularPage.pageSize = response.size
+          this.deptBudgetTotal = response.total
+        })
     },
     },
-    statusquery(state){
+    statusquery(state) {
       this.searchType = state
       this.searchType = state
       this.getList()
       this.getList()
     },
     },
@@ -288,62 +279,35 @@ export default {
           this.spanArr.push(1)
           this.spanArr.push(1)
           this.pos = 0
           this.pos = 0
         } else {
         } else {
-        //不是第一项时,就根据标识去存储
-        if (data[index].warehouseNumViewList.length > 1) {
-          查找到符合条件的数据时每次要把之前存储的数据+1
-          this.spanArr[this.pos] = data[index].warehouseNumViewList.length
-          this.spanArr.push(0)
-        } else {
-          // 没有符合的数据时,要记住当前的index
-          this.spanArr.push(1)
-          this.pos = index
-        }
+          //不是第一项时,就根据标识去存储
+          if (data[index].warehouseNumViewList.length > 1) {
+            查找到符合条件的数据时每次要把之前存储的数据 + 1
+            this.spanArr[this.pos] = data[index].warehouseNumViewList.length
+            this.spanArr.push(0)
+          } else {
+            // 没有符合的数据时,要记住当前的index
+            this.spanArr.push(1)
+            this.pos = index
+          }
         }
         }
       })
       })
     },
     },
-    //查看//传参
-    // nocomplete(row) {
-    //   this.$router.push({
-    //     path: 'tranManagementVehicleLook',
-        // query: {
-        //   baseId: row.warehouseId,
-        //   positionId: row.binNumberId,
-        //   warehouseName: row.warehouseName,
-        //   binNumber: row.binNumber,
-    //     // },
-    //   })
-    // },
-    
-    
     //查看
     //查看
     handleLook(row) {
     handleLook(row) {
-      this.$router.push({ 
-        name: 'tranManagementShippingLook',
+      this.$router.push({
+        name: 'tshippingDispatchingview',
         query: { id: row.id },
         query: { id: row.id },
-         })
+      })
     },
     },
 
 
     // 派船
     // 派船
-    shipping(row){
-        this.$router.push({
-           name: 'tranManagementShippingArrangemen',
-           query:{
-                 id: row.id , 
-              // infoId:row.infoId,
-              // processId:row.processId,
-              //  driver:row.driver,
-              //  driverType:row.driver,
-              //  driverPhone:row.driverPhone,
-              //  shipNo:row.shipNo,
-              //   loadWeight:row.loadWeight,
-              //   shipName:row.shipName,
-              //   shipType:row.shipType,
-              //   boxNumber:row.boxNumber,
-              //    positionWeight:row.positionWeight,
-              //    sendDateStart:row.sendDateStart,
-              //     receiveDateEnd:row.receiveDateEnd,      
-           }
-           })
+    shipping(row) {
+      this.$router.push({
+        name: 'shippingDispatching',
+        query: {
+          id: row.id,
+        },
+      })
     },
     },
     dateFormat(fmt, date) {
     dateFormat(fmt, date) {
       let ret
       let ret
@@ -450,33 +414,16 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
+      if (this.inOutDate.length > 0) {
+        this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
+        this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
+      } else {
+        this.startDate = ''
+        this.endDate = ''
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     },
     },
-    async exportlist() {
-      const { data } = await export1(
-        {
-          compId: sessionStorage.getItem('ws-pf_compId'),
-          contractType: this.contractType,
-          currentPage: this.currentPage,
-          pageSize: this.pageSize,
-          searchType: this.searchType,
-          searchKeyWord: this.searchKeyWord,
-          startDate: this.startDate,
-          endDate: this.endDate,
-        },
-        {},
-        { responseType: 'blob' }
-      ).toPromise()
-      downloadFile({
-        res: data,
-        fileName: `${
-          this.date.year + (this.date.month ? `-${this.date.month}` : '')
-        }_采购合同`,
-        type: 'xls',
-      })
-    },
-    total(){},
   },
   },
 }
 }
 </script>
 </script>
@@ -558,22 +505,22 @@ export default {
   height: 12px;
   height: 12px;
   background: #e9ecf7;
   background: #e9ecf7;
 }
 }
-.el-row{
-    height: 150px;
+.el-row {
+  height: 150px;
 }
 }
-.base_header_layout .grid-content{
-    margin-top: 80px;
+.base_header_layout .grid-content {
+  margin-top: 80px;
 }
 }
-.but{
-    margin-top: 150px;
-    margin-left: 110px;
-    }
-.el-input--small .el-input__inner{
-    margin-left: 20px;
+.but {
+  margin-top: 150px;
+  margin-left: 110px;
+}
+.el-input--small .el-input__inner {
+  margin-left: 20px;
 }
 }
 .el-range-editor--small.el-input__inner {
 .el-range-editor--small.el-input__inner {
-    height: 32px;
-    margin-left: -20%;
+  height: 32px;
+  margin: 0 10px;
 }
 }
 //执行样式
 //执行样式
 .executory,
 .executory,
@@ -596,7 +543,8 @@ export default {
 .done {
 .done {
   background: #50cad4;
   background: #50cad4;
 }
 }
-.record, .adjustment{
+.record,
+.adjustment {
   display: inline-block;
   display: inline-block;
   color: #5878e8;
   color: #5878e8;
   padding: 0 4px !important;
   padding: 0 4px !important;

+ 13 - 2
src/views/tranManagement/tranManagementTransporHairRespond.vue

@@ -12,7 +12,7 @@
           >
           >
         </div>
         </div>
         <el-date-picker
         <el-date-picker
-          v-model="deptBudgetList.inOutDate"
+          v-model="inOutDate"
           type="daterange"
           type="daterange"
           align="right"
           align="right"
           unlink-panels
           unlink-panels
@@ -205,6 +205,7 @@ export default {
       size: 10,
       size: 10,
       primary:'1',
       primary:'1',
       spanArr: [],
       spanArr: [],
+      inOutDate:[],
       warehouseName: '',
       warehouseName: '',
       compId: sessionStorage.getItem('ws-pf_compId'),
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
@@ -323,6 +324,9 @@ export default {
         feedbackFlag: this.feedbackFlag,
         feedbackFlag: this.feedbackFlag,
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
+         startDate:this.startDate,
+        endDate:this.endDate,
+        searchKeyWord : this.searchKeyWord,
       })
       })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
@@ -370,6 +374,13 @@ export default {
       }
       }
     },
     },
     find() {
     find() {
+     if (this.inOutDate.length > 0) {
+        this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
+        this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
+      } else {
+        this.startDate = ''
+        this.endDate = ''
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     }
     }
@@ -465,7 +476,7 @@ export default {
 //待完成三按钮
 //待完成三按钮
 .but {
 .but {
   margin-top: 10px;
   margin-top: 10px;
-  margin-left: 10px;
+  margin-left: 110px;
 }
 }
 .el-input--small .el-input__inner {
 .el-input--small .el-input__inner {
   margin-left: 20px;
   margin-left: 20px;

+ 1 - 3
src/views/tranManagement/tranManagementTransporTationFire.vue

@@ -217,7 +217,6 @@ export default {
       pageSize: 10,
       pageSize: 10,
       searchTypeText: '未完成',
       searchTypeText: '未完成',
       searchKeyWord: '',
       searchKeyWord: '',
-      contractType: 2,
       tranTypeKey: 2,
       tranTypeKey: 2,
       // 提交类型
       // 提交类型
       submitType: true,
       submitType: true,
@@ -336,7 +335,6 @@ export default {
     getList() {
     getList() {
       automobileList({
       automobileList({
         compId: sessionStorage.getItem('ws-pf_compId'),
         compId: sessionStorage.getItem('ws-pf_compId'),
-        contractType: this.contractType,
         searchType: this.searchType,
         searchType: this.searchType,
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
@@ -419,7 +417,7 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
-      if (this.inOutDate) {
+      if (this.inOutDate.length > 0) {
         this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
         this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
         this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
         this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
       } else {
       } else {

+ 1 - 1
src/views/tranManagement/tranManagementTransporTrainDetails.vue

@@ -260,7 +260,7 @@ export default {
       this.deptBudgetList = {}
       this.deptBudgetList = {}
       this.freightspace = []
       this.freightspace = []
       this.selectedOptions = ''
       this.selectedOptions = ''
-      this.$router.push({ path: 'tranManagementTransporTationFire' })
+      this.$router.go(-1)
     },
     },
     // confirmPosition() {
     // confirmPosition() {
     //   this.draggable = false
     //   this.draggable = false

+ 0 - 2
src/views/tranManagement/tranManagementTransporTrainNo.vue

@@ -47,12 +47,10 @@
           {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
           {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
           }}{{ deptBudgetList.sendArea }}
           }}{{ deptBudgetList.sendArea }}
         </ws-form-item>
         </ws-form-item>
-
         <!--发货人-->
         <!--发货人-->
         <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
         <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
           {{ deptBudgetList.sender }}
           {{ deptBudgetList.sender }}
         </ws-form-item>
         </ws-form-item>
-
         <!--发货人电话-->
         <!--发货人电话-->
         <ws-form-item
         <ws-form-item
           label="发货人电话"
           label="发货人电话"

+ 15 - 28
src/views/tranManagement/tranManagementVehicle.vue

@@ -12,17 +12,16 @@
       <!-- 接单开始 -->
       <!-- 接单开始 -->
       <template slot="right">
       <template slot="right">
         <div>
         <div>
-          <span style="display: inline-block; width: 300px;color: #8890B1;">接单日期</span>
+          <span style="display: inline-block; width: 60px;color: #8890B1;">接单日期</span>
         </div>
         </div>
         <el-date-picker
         <el-date-picker
-          v-model="deptBudgetList.inOutDate"
+          v-model="inOutDate"
           type="daterange"
           type="daterange"
           align="right"
           align="right"
           unlink-panels
           unlink-panels
           range-separator="至"
           range-separator="至"
           start-placeholder="开始日期"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
           end-placeholder="结束日期"
-
         >
         >
         </el-date-picker>
         </el-date-picker>
         <ws-input
         <ws-input
@@ -193,6 +192,7 @@ export default {
       submitType: true,
       submitType: true,
       size: 10,
       size: 10,
       spanArr: [],
       spanArr: [],
+      inOutDate:[],
       tranTypeKey: '1',
       tranTypeKey: '1',
       warehouseName: '',
       warehouseName: '',
       compId: sessionStorage.getItem('ws-pf_compId'),
       compId: sessionStorage.getItem('ws-pf_compId'),
@@ -319,6 +319,9 @@ export default {
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchType: this.searchType,
         searchType: this.searchType,
+        startDate: this.startDate ,
+       endDate: this.endDate ,
+       searchKeyWord :this.searchKeyWord,
         tranTypeKey: this.tranTypeKey,
         tranTypeKey: this.tranTypeKey,
       })
       })
         .toPromise()
         .toPromise()
@@ -396,32 +399,16 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
+       if (this.inOutDate.length > 0) {
+        this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
+        this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
+      } else {
+        this.startDate = ''
+        this.endDate = ''
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
-    },
-    // async exportlist() {
-    //   const { data } = await export1(
-    //     {
-    //       compId: sessionStorage.getItem('ws-pf_compId'),
-    //       contractType: this.contractType,
-    //       currentPage: this.currentPage,
-    //       pageSize: this.pageSize,
-    //       searchType: this.searchType,
-    //       searchKeyWord: this.searchKeyWord,
-    //       startDate: this.startDate,
-    //       endDate: this.endDate,
-    //     },
-    //     {},
-    //     { responseType: 'blob' }
-    //   ).toPromise()
-    //   downloadFile({
-    //     res: data,
-    //     fileName: `${
-    //       this.date.year + (this.date.month ? `-${this.date.month}` : '')
-    //     }_采购合同`,
-    //     type: 'xls',
-    //   })
-    // },
+    }
   },
   },
 }
 }
 </script>
 </script>
@@ -539,7 +526,7 @@ export default {
 }
 }
 .el-range-editor--small.el-input__inner {
 .el-range-editor--small.el-input__inner {
   height: 32px;
   height: 32px;
-  margin-left: -20%;
+  margin:0 10px;
   
   
 }
 }
 </style>
 </style>

+ 1 - 1
vue.config.js

@@ -143,7 +143,7 @@ module.exports = {
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
         // target: 'http://localhost:8090/',
         // target: 'http://192.168.1.121:8090/',
         // target: 'http://192.168.1.121:8090/',
-        target: 'http://192.168.1.115:8090/',
+        target: 'http://192.168.1.116:8090/',
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://product-server.winsea.com/',
         // target: 'http://product-server.winsea.com/',