浏览代码

前端孟祥旭

mxx 4 年之前
父节点
当前提交
7a1ca4cbf5

+ 29 - 31
src/views/tranManagement/tranManagementReceivingFeedback.vue

@@ -6,19 +6,19 @@
         <ws-button
         class="but"
           type="primary"
-          @click="handleAdd()"
+          @click="handlestatus(1)"
           >
           执行中</ws-button
         >
         <ws-button
         class="but"
-          @click="appp()"
+          @click="handlestatus(1)"
           
           >已完成</ws-button
         >
         <ws-button
         class="but"
-          @click="handleEdit()"
+          @click="handlestatus('')"
           
           >全部任务</ws-button
         > 
@@ -154,29 +154,30 @@
       <el-table-column class="table_td" label="接单日期" prop="receivingDate">
         </el-table-column>
         <el-table-column prop="seller" label="操作" width="300">
-          <template slot-scope="scope">
-            <div
-              class="completed"
-              @click="trainSee(scope.row)"
-            >
-            查看
+            <template slot-scope="scope">
+            <div class="record" @click="trainSee(scope.row)">
+              查看
             </div>
-            <div
-              class="putstorage"
-              @click="feedback(scope.row)"
+            <div class="adjustment" @click="feedback(scope.row)"
               v-show="scope.row.tranType == '汽运'"
             >
-            反馈
+              反馈
             </div>
-            </template>
-        </el-table-column>
-        <!-- <el-table-column prop="address" label="操作" width="200">
-          <template slot-scope="scope">
-            <div class="record" @click="record(scope.row)">记录</div>
-            <div class="adjustment" @click="loss(scope.row)">盘损</div>
           </template>
-        </el-table-column> -->
+        </el-table-column>
       </el-table>
+      <div>
+        <!-- 分页 -->
+      <el-pagination
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+        :current-page="currentPage"
+        :page-size="deptCircularPage.pageSize"
+        layout="total, sizes, prev, pager, next, jumper"
+        :total="deptBudgetTotal"
+      >
+      </el-pagination>
+      </div>
     </div>
   </div>
 </template>
@@ -228,6 +229,7 @@ export default {
       size: 10,
       spanArr: [],
       warehouseName: '',
+      deptBudgetTotal: 0,
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       warehouseList: [],
@@ -244,7 +246,6 @@ export default {
     }
   },
   mounted(){
-    console.log(11111)
     this.getList()
   },
   methods: {
@@ -260,12 +261,14 @@ export default {
         .toPromise()
         .then((response) => {
           this.warehouseList = response
+          // this.deptCircularPage.currentPage = response.current
+          // this.deptCircularPage.pageSize = response.size
+          this.deptBudgetTotal = response.total
         })
     },
-    handleAdd(){
-        this.$router.push({
-            path: 'tranManagementReceivingloading',
-        })
+    handlestatus(){
+      this.searchType = status
+      this.getList()
     },
     delivery(item) {
       this.$router.push({
@@ -546,10 +549,5 @@ export default {
     height: 32px;
     margin-left: -20%;
 }
-.completed, .putstorage {
-    display: inline-block;
-    color: #5878e8;
-    padding: 0 4px !important;
-    position: relative;
-}
+ 
 </style>

+ 391 - 395
src/views/tranManagement/tranManagementReceivingloading.vue

@@ -1,4 +1,4 @@
-// 汽运卸车反馈
+// 汽车卸车
 <template>
   <div class="container">
     <el-row>
@@ -22,153 +22,151 @@
       </el-col>
     </el-row>
     <div class="center">
-    <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
-      <div class="basicInformation">
-         <div class="small-title">任务详情</div>
-        <ws-info-table>
-          <!-- 任务编号 -->
-          <ws-form-item label="任务编号" span="1" prop="processNo">
-          {{deptBudgetList.processNo}}
-        </ws-form-item>
-        <!-- 货名 -->
-          <ws-form-item label="货名" span="1" prop="goodsName">
-            {{deptBudgetList.goodsName}}
-        </ws-form-item>
-          <!--重量(吨)-->
-          <ws-form-item label="重量(吨)" span="1" prop="weight">
-          {{deptBudgetList.weight}}
-        </ws-form-item>
-          <!--发货地址-->
-          <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
-            
-            {{deptBudgetList.sendPrivate}}{{deptBudgetList.sendCity}}{{deptBudgetList.sendArea}}
-          </ws-form-item>
-         <!--发货人-->
-          <ws-form-item label="发货人" span="1" prop="sender">
-          
-          {{deptBudgetList.sender}}
-          </ws-form-item>
+      <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
+        <div class="basicInformation">
+          <div class="small-title" style="font-size: 16px">任务详情</div>
+          <ws-info-table>
+            <!-- 任务编号 -->
+            <ws-form-item label="任务编号" span="1" prop="processNo">
+              {{ deptBudgetList.processNo }}
+            </ws-form-item>
+            <!-- 货名 -->
+            <ws-form-item label="货名" span="1">
+              {{ deptBudgetList.goodsName }}
+            </ws-form-item>
+            <!--重量(吨)-->
+            <ws-form-item
+              label="重量(吨)"
+              span="1"
+              prop="tare"
+              class="readonly"
+            >
+              {{ deptBudgetList.weight }}
+            </ws-form-item>
 
-          <!--发货人电话-->
-          <ws-form-item label="发货人电话" span="1" prop="senderPhone">
-            
-            {{deptBudgetList.senderPhone}}
-          </ws-form-item>
-          <!--收货地址-->
-        <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
-            
-             {{deptBudgetList.receivePrivate}}{{deptBudgetList.receiveCity}}{{deptBudgetList.receiveArea}}
-        </ws-form-item>
-         <!--收货人-->
-          <ws-form-item label="收货人" span="1" prop="receiver">
-            {{deptBudgetList.receiver}}
-          </ws-form-item>
+            <!--发货地址-->
+            <ws-form-item label="发货地址" span="1" prop="netWeight">
+              {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
+              }}{{ deptBudgetList.sendArea
+              }}{{ deptBudgetList.sendDetailedAddress }}
+            </ws-form-item>
+            <!--发货人-->
+            <ws-form-item label="发货人" span="1" prop="agent">
+              {{ deptBudgetList.sender }}
+            </ws-form-item>
 
-          <!--收货人电话-->
-          <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
-           
-             {{deptBudgetList.receiverPhone}}
-          </ws-form-item>
-          <!--发货日期-->
-          <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
-          
-          {{deptBudgetList.deliveryDateStart}}
-        </ws-form-item>
-           <!--最晚发货日期-->
-          <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
-          
-          {{deptBudgetList.deliveryDateEnd}}
+            <!--发货人电话-->
+            <ws-form-item label="发货人电话" span="1" prop="agent">
+              {{ deptBudgetList.senderPhone }}
+            </ws-form-item>
+            <!--收货地址-->
+            <ws-form-item label="收货地址" span="1" prop="netWeight">
+              {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
+              }}{{ deptBudgetList.receiveArea
+              }}{{ deptBudgetList.receiveDetailedAddress }}
+            </ws-form-item>
+            <!--收货人-->
+            <ws-form-item label="收货人" span="1" prop="receiver">
+              {{ deptBudgetList.receiver }}
+            </ws-form-item>
+
+            <!--收货人电话-->
+            <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
+              {{ deptBudgetList.receiverPhone }}
+            </ws-form-item>
+            <!--发货日期-->
+            <ws-form-item
+              label="发货日期"
+              span="1"
+              prop="inOutDate"
+              class="deliverydate"
+            >
+              {{ deptBudgetList.deliveryDateStart }}
+            </ws-form-item>
+            <!--最晚发货日期-->
+            <ws-form-item
+              label="最晚发货日期"
+              span="1"
+              prop="inOutDate"
+              class="deliverydate"
+            >
+              {{ deptBudgetList.deliveryDateEnd }}
+            </ws-form-item>
+            <!--合同编号-->
+            <ws-form-item label="合同编号" span="1" prop="contractNo">
+              {{ deptBudgetList.contractNo }}
+            </ws-form-item>
+            <ws-form-item label="运输方式" span="1" prop="contractNo">
+          {{ deptBudgetList.contractNo }}
         </ws-form-item>
-          <!--合同编号-->
-          <ws-form-item label="合同编号" span="1" prop="contractNo">
-            
-            {{deptBudgetList.contractNo}}
-          </ws-form-item>
-          <!-- 运输方式 -->
-          <ws-form-item label="运输方式" span="1" prop="tranType">
-              {{deptBudgetList.tranType}}
-          </ws-form-item>
-        </ws-info-table>
-      
-        <div class="small-title">卸车详情</div>
-        <div class="liaison">
-        <div
-          style="width: 100%"
-          class="flex position"
-          v-for="(item, index) in this.freightspace"
-          :key="index"
-        >
-          <ws-info-table>
-            <div class="catNos" v-show="item.temporaryDriverFlag ==0">司机-{{index+1}}</div>
+          </ws-info-table>
+
+          <div class="small-title" style="font-size: 16px">卸车详情</div>
+
+          <div
+            class="driver position liaison"
+            v-for="(item, index) in deptBudgetList.tranCarInfoList"
+          >
+            <ws-info-table>
+              <div class="catNos" v-show="item.temporaryDriverFlag == 0">司机-{{index+1}}</div>
              <div class="catNos catNosCor" v-show="item.temporaryDriverFlag != 0">司机-{{index+1}}(临)</div>
-            <!--姓名-->
-            <ws-form-item :label="'姓名' + (index + 1)" span="1" prop="driver">
-               <!-- <el-input
-                v-show="item.temporaryDriverFlag != 0"
-                v-model="item.driver"
-                placeholder="请选择姓名"
-                filterable
-                :filter-method="dataFilter"
-                @change="selectstaff"
-              >
-                <el-option
-                  v-for="item in options"
-                  :key="item.value"
-                  :label="item.staffName"
-                  :value="item.staffName"
-                />
-               </el-input>  -->
-               {{item.driver}}
-               <span v-show="item.temporaryDriverFlag == 0">{{item.driver}} </span> 
-                   
+              <!--司机-->
+              <ws-form-item
+              label="姓名:"
+              span="1"
+              prop="driver"
+            >
+              <span v-show="item.temporaryDriverFlag == 0"
+                >
+                {{ item.driver }}
+              </span>
             </ws-form-item>
-            <!--电话-->
-            <ws-form-item label="司机电话" span="1" prop="driverPhone">
-               <!-- <ws-input
-               v-show="item.temporaryDriverFlag != 0"
+              <!--电话-->
+            <ws-form-item label="电话:" span="1" prop="driverPhone">
+              <!-- <ws-input
+                v-show="item.temporaryDriverFlag != 0"
                 v-model="item.driverPhone"
-                placeholder="请输入司机电话"
                 maxlength="20"
                 size="small"
-              />  -->
-              {{item.driverPhone}}
-             <span v-show="item.temporaryDriverFlag == 0">{{item.driverPhone}} </span> 
+              /> -->
+              <span v-show="item.temporaryDriverFlag == 0"
+                >{{ item.driverPhone }}
+              </span>
             </ws-form-item>
-            <!--车牌号-->
-            <ws-form-item label="车牌号" span="1" prop="carNo">
-               <!-- <ws-input
-               v-show="item.temporaryDriverFlag != 0"
+              <!--车牌号-->
+            <ws-form-item label="车牌号" span="1" prop="carNo">
+              <!-- <ws-input
+                v-show="item.temporaryDriverFlag != 0"
                 v-model="item.carNo"
-                placeholder="请输入车牌号"
                 maxlength="20"
                 size="small"
-              />  -->
-              {{item.carNo}}
-             <span v-show="item.temporaryDriverFlag == 0">{{item.carNo}} </span> 
+              /> -->
+              <span v-show="item.temporaryDriverFlag == 0"
+                >{{ item.carNo }}
+              </span>
             </ws-form-item>
-            <!--装车净重-->
-            <ws-form-item label="装车(吨)" span="1" prop="loadNetWeight">
+              <!--装车净重-->
+            <ws-form-item label="装车(吨)" span="1" prop="loadNetWeight">
               <!-- <ws-input
                 v-model="item.loadNetWeight"
-                placeholder="请输入装车净重"
+                placeholder="请输入装车(吨)"
                 maxlength="20"
                 size="small"
               /> -->
-              {{item.lo}}
+              {{item.loadNetWeight}}
             </ws-form-item>
-            <!--卸车净重(吨)-->
-            <ws-form-item label="卸车净重(吨)" span="1" prop="unloadNetWeight">
+              <!--卸车净重(吨)-->
+            <ws-form-item label="卸车净重(吨)" span="1" prop="unloadNetWeight">
               <ws-input
                 v-model="item.unloadNetWeight"
-                placeholder=""
+                placeholder="请输入卸车净重"
                 maxlength="20"
                 size="small"
               />
             </ws-form-item>
-            <!--磅单-->
-            <ws-form-item label="磅单" span="1" prop="loadPoundImg">
+              <!--磅单-->
+            <ws-form-item label="磅单" span="1" prop="loadPoundImg">
               <template slot-scope="scope">
-              
                 <img
                   width="18"
                   height="20"
@@ -181,52 +179,59 @@
                   @click="fujian(scope.row)"
                   alt=""
                 />
-                <span v-show="item.temporaryDriverFlag == 0" >{{item.signStatus}}</span>
+                <div v-show="item.temporaryDriverFlag == 0">
+                  {{ item.signStatus }}
+                </div>
               </template>
             </ws-form-item>
-          </ws-info-table>
+            </ws-info-table>
+            <!-- <span
+              v-show="!item.temporaryDriverFlag"
+              width="22"
+              height="22"
+              class="del"
+              @click="del(index)"
+              src="../../../public/img/del.png"
+              alt=""
+              >×</span
+            > -->
+          </div>
+          <div style="text-align: right; color: #8890b1; font-size: 16px">
+            合计{{ total }}/{{ deptBudgetList.weight }}
+          </div>
+          <!-- <el-button class="add" type="primary" size="small" @click="add()">
+             <img
+                width="22"
+                height="22"
+                @click="add"
+                src="../../../public/img/add.png"
+                alt=""
+              />
+             <div class="spans">添加司机</div>
+            </el-button
+          > -->
+          <div style="text-align: right; padding: 10px">
+            <el-button
+              class="bg-bottom-up"
+              type="primary"
+              size="small"
+              @click="submit()"
+            >提交</el-button
+            >
+          </div>
         </div>
-      </div>
-      </div>
-    </ws-form>
-    <div style="text-align: right; padding: 10px">
-        <el-button
-          class="bg-bottom-up"
-          type="primary"
-          size="small"
-          @click="submit(deptBudgetList)"
-          >提交</el-button
-        >
-      </div>
-      <WinseaContentModal
-      v-model="accessoryTFs"
-      :title="$t('system.noticeCircular.information')"
-      @on-cancel="handleClose"
-    >
-      <p>上传附件</p>
-      <ws-upload
-        ref="upload"
-        table-name="maintain_work_order"
-        oss-key="mainPlan"
-        :comp-id="compId"
-        :file-list="fileList"
-        :appendix-ids="appendixIdsAdd"
-        :vesselId="deptBudgetList.loadPoundImg"
-        :size-limit="size"
-        @uploadSuccess="uploadSuccess"
-        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
-      />
-    </WinseaContentModal>
+      </ws-form>
     </div>
   </div>
-  
 </template>
 <script>
-import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
-import {seeCat, packList, feedback} from '@/model/transport/index'
-import{getstaff}from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
+import {
+  seeCat,
+  packList,
+  feedback
+} from '@/model/transport/index'
 // import { dayjs, fmoney, EventBus } from 'base-core-lib'
 import { dayjs, EventBus } from 'base-core-lib'
 export default {
@@ -245,40 +250,19 @@ export default {
   },
   data() {
     return {
-      //弹出框
-      dialogViewSpareMoney: false,
-      dialogApproveFormVisible: false,
-      // 船舶类型
-      monetaryKey: null,
-      // 表格显示数据
-      tableDate: [],
       // 是否显示
       showType: true,
-      // 年
-      year: '',
-      item:[],
-      shipType:[],
-      tranType: 3,
       deptBudgetTotal: 0,
       currentPage: 1,
       pageSize: 10,
       searchType: 1,
-      searchKeyWord: '',
-      contractType: 2,
       startDate: null,
       endDate: null,
-      goodnameList: {},
+      carList: [],
       // 提交类型
-      submitType: true,
-      storageType: [],
       readonly: true,
       appendixIdsAdd: '',
-      uploadSuccess: {},
       onChange: {},
-      selectedOptions: [],
-        options:[],
-      tranCarInfoList: {},
-        staffList :[],
       gradeList: [],
       rules: {
         netWeight: [
@@ -290,15 +274,6 @@ export default {
           },
         ],
       },
-      fileList:[],
-     freightspace: [
-        {
-          driver: '',
-          driverPhone: '',
-          carNo: '',
-          loadNetWeight: '',
-        },
-      ],
       size: 10,
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
@@ -309,10 +284,9 @@ export default {
       },
       contractList: [],
       deptBudgetList: {
-        warehouseInOutDetail: {},
+        tranCarInfoList: [],
       },
       historyList: [],
-
       pickerBeginDateBefore: {
         disabledDate: (time) => {
           return time.getTime() > Date.now()
@@ -321,119 +295,59 @@ export default {
       accessoryTFs: false,
     }
   },
-  mounted() {
-    this.deptBudgetList.id = this.$route.query.id
+  activated() {
     this.getList()
   },
-//  activated(){
-//    this.loaddata()
-//    this.getList()
-//  },
- computed: {
-    totalStorage: function () {
+  computed: {
+    total: function () {
       var maxStorage = 0
-      for (var i = 0; i < this.freightspace.length; i++) {
-        maxStorage += Number(this.freightspace[i].maxStorage)
+      for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
+        maxStorage += Number(this.deptBudgetList.tranCarInfoList[i].loadWeight)
       }
       return maxStorage
     },
   },
+  mounted() {
+    this.deptBudgetList.id = this.$route.query.id
+    this.getList()
+  },
   methods: {
-   getList() {
-      seeCat({ id: this.deptBudgetList.id })
-        .toPromise()
-        .then((response) => {
-          this.deptBudgetList = response
-          //  this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
-          this.freightspace = response.tranCarInfoList
-          for (var i = 0; i < this.freightspace.length; i++) {
-            if (!this.freightspace[i].loadNetWeight) {
-              this.freightspace[i].loadNetWeight = 0
-            }
-          }
-        })
-    },
-    dataFilter(val) {
-      this.deptBudgetList.personCharge = val
-      if (val) {
-        console.log(val)
-        this.options = this.staffList.filter((item) => {
-          if (
-            !!~item.staffName.indexOf(val) ||
-            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-          ) {
-            return true
-          }
-        })
-      } else {
-        this.options = this.staffList
-      }
-    },
-    selectstaff(e) {
-      for (var i = 0; i < this.staffList.length; i++) {
-        if (this.staffList[i].staffName == e) {
-          this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
-          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
-        }
-      }
-    },
-    // loaddata() {
-    //   dispatchCat({ id: this.deptBudgetList.id  })
-    //     .toPromise()
-    //     .then((response) => {
-    //       this.deptBudgetList = response
-    //         this.freightspace = response.tranCarInfoList
-    //         for (var i = 0; i < this.freightspace.length; i++) {
-    //         if (!this.freightspace[i].loadNetWeight) {
-    //           this.freightspace[i].loadNetWeight = 0
-    //         }
-    //       }
-        //   for(var i = 0; i<this.deptBudgetList.tranCarInfoList.length;i++){
-        //    var num  = this.deptBudgetList.tranCarInfoList[i].positionWeight.split("," )  
-        //    for(var j = 0;j<num.length;j++){
-        //     var num2 = num[j].split("/")
-        //      this.freightspace.push({
-        //        'impurity': num2[i],
-        //        'positionWeight':num2[num2.length-1]
-        //      })
-        //    }
-
-        //   }
-  //   })
-  // },
-  //上传
-    fujian(row) {
-      if (
-        row.receiveAttachmentPath === null ||
-        row.receiveAttachmentPath === ''
-      ) {
-        EventBus.$emit(
-          'warning',
-          this.$t('system.noticeCircular.NoInformation')
-        )
-      } else {
-        this.accessoryTFs = true
-      }
-      this.appendixIdss = row.receiveAttachmentPath
-    },
     //返回按钮
     revert() {
-      this.freightspace=[]
       this.$router.push({ path: 'tranManagementReceivingFeedback' })
     },
-    
-    selectdriver() {},
-    handleChange(value) {
-      this.selectedOptions = value
-    },
-    returnsales() {
-      this.deptBudgetList = {}
-      this.freightspace = {}
-      this.selectedOptions = ''
-      this.$router.push({ path: 'tranManagementReceivingFeedback' })
+    del(index) {
+      if (this.deptBudgetList.tranCarInfoList.length > 1) {
+        this.deptBudgetList.tranCarInfoList.splice(index, 1)
+      }
     },
+    // add() {
+    //   console.log(this.deptBudgetList.tranCarInfoList, 'sasasasas')
+    //   this.deptBudgetList.tranCarInfoList.push({
+    //     driverName: '',
+    //     driverPhone: '',
+    //     carLength: 0,
+    //     carLengthKey: '',
+    //     loadWeight: null,
+    //     carModel: '',
+    //     carModelKey: '',
+    //     carNumber: '',
+    //     disabled: false,
+    //     tranType: '1',
+    //   })
+    // },
+    selectwaterContent() {},
     //提交按钮
-    submit() { 
+    submit() {
+      for(var i = 0 ; i < this.freightspace.length ; i++){
+          if(this.freightspace[i].unloadNetWeight==null){
+            this.$message({
+              message:"卸重不能为空!",
+              type: "warning"
+            })
+            return
+          }
+        }
       this.$confirm(`所有车辆完成卸车任务后,请及时修改任务状态,确定提交卸车信息?`, {
         cancelButtonText: '取消',
         confirmButtonText: '确定',
@@ -442,38 +356,33 @@ export default {
         .then(() => {
           this.$refs.deptBudgetList.validate((valid) => {
             if (valid) {
-              
-            //  for(var i = 0; i < this.freightspace.length; i++){
-            //    var num  = this.freightspace[i].impurity + "/" + this.freightspace[i].positionWeight
-            //    this.arr.push(
-            //      num
-            //    )  
-            //  }
-          
-            this.tranCarInfoList=this.freightspace
-            this.tranCarInfoList.driver = this.deptBudgetList.driver
+              // this.deptBudgetList.totalStorage = this.totalStorage
+              this.tranCarInfoList = this.freightspace
+              this.tranCarInfoList.driver = this.deptBudgetList.driver
               this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
-              this.tranCarInfoList. carNo = this.deptBudgetList.carNo
-              this.tranCarInfoList.loadNetWeight = this.deptBudgetList.loadNetWeigh
-              this.tranCarInfoList.unloadNetWeight = this.deptBudgetList.unloadNetWeight
-              this.tranCarInfoList.loadPoundImg = this.deptBudgetList.loadPoundImg
-              this.tranCarInfoList.tranType = this.deptBudgetList.tranType
-            for(var i = 0 ; i<this.tranCarInfoList.length;i++){
+              this.tranCarInfoList.carNo = this.deptBudgetList.carNo
+              this.tranCarInfoList.loadNetWeight =
+                this.deptBudgetList.loadNetWeight
+              this.tranCarInfoList.tranType = this.tranType
+              this.tranCarInfoList.loadPoundImg =
+                this.deptBudgetList.loadPoundImg
+              // this.tranCarInfoList.boxNo = this.arr.toString()
+              for (var i = 0; i < this.tranCarInfoList.length; i++) {
                 this.tranCarInfoList[i].id = this.freightspace[i].id
-                if(this.tranCarInfoList[i].temporaryDriverFlag !=0){
-                   this.tranCarInfoList[i].temporaryDriverFlag = 1
-                   this.tranCarInfoList[i].tranType = this.tranType
-                 }
-            }
+                if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
+                  this.tranCarInfoList[i].temporaryDriverFlag = 1
+                  this.tranCarInfoList[i].tranType = this.tranType
+                }
+              }
               var tranProcessInfo = {}
-              var tranList = this.tranCarInfoList
               tranProcessInfo.id = this.deptBudgetList.id
               tranProcessInfo.infoId = this.deptBudgetList.infoId
               tranProcessInfo.tranCarInfoList = this.tranCarInfoList
+              // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
               feedback(tranProcessInfo)
                 .toPromise()
                 .then((response) => {
-                  this.$message.success('添加成功')
+                  this.$message.success('提交成功')
                   this.deptBudgetList = {}
                   this.freightspace = {}
                   this.selectedOptions = ''
@@ -491,21 +400,84 @@ export default {
           return false
         })
     },
-    resetForm(deptBudgetList) {
-      this.$refs[deptBudgetList].resetFields()
-    },
+
     handleClose() {
       this.accessoryTFs = false
     },
-    handleSizeChange(val) {
-      console.log(`每页 ${val} 条`)
-      this.pageSize = val
-      this.getList()
+
+   getList() {
+      seeCat({ id: this.deptBudgetList.id })
+        .toPromise()
+        .then((response) => {
+          this.deptBudgetList = response
+          //  this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
+          this.freightspace = response.tranCarInfoList
+          for (var i = 0; i < this.freightspace.length; i++) {
+            if (!this.freightspace[i].loadNetWeight) {
+              this.freightspace[i].loadNetWeight = 0
+            }
+          }
+        })
+   },
+    carchange(val, index) {
+      for (var i = 0; i < this.carList.length; i++) {
+        if (this.carList[i].driverName == val) {
+          this.deptBudgetList.tranCarInfoList[index].driverPhone =
+            this.carList[i].driverPhone
+          arrange({ id: this.carList[i].id })
+            .toPromise()
+            .then((response) => {
+              console.log(this, response)
+              this.deptBudgetList.tranCarInfoList[index].carNo =
+                response.carNumber
+              if (response.carLoad != null) {
+                this.deptBudgetList.tranCarInfoList[index].loadWeight =
+                  response.carLoad
+              } else {
+                this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
+              }
+              this.deptBudgetList.tranCarInfoList[index].carModel =
+                response.carModel
+              this.deptBudgetList.tranCarInfoList[index].carLength =
+                response.carLength
+              this.deptBudgetList.tranCarInfoList[index].carLengthKey =
+                response.carLengthKey
+              this.deptBudgetList.tranCarInfoList[index].carModelKey =
+                response.carModelKey
+            })
+        }
+      }
+    }
+      
     },
-    handleCurrentChange(val) {
-      this.currentPage = val
-      console.log(`当前页: ${val}`)
-      this.getList()
+    phonechange(val, index) {
+      for (var i = 0; i < this.carList.length; i++) {
+        if (this.carList[i].driverPhone == val) {
+          this.deptBudgetList.tranCarInfoList[index].driver =
+            this.carList[i].driver
+          arrange({ id: this.carList[i].id })
+            .toPromise()
+            .then((response) => {
+              console.log(this, response)
+              this.deptBudgetList.tranCarInfoList[index].carNo =
+                response.carNumber
+              if (response.carLoad != null) {
+                this.deptBudgetList.tranCarInfoList[index].loadWeight =
+                  response.carLoad
+              } else {
+                this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
+              }
+              this.deptBudgetList.tranCarInfoList[index].carModel =
+                response.carModel
+              this.deptBudgetList.tranCarInfoList[index].carLength =
+                response.carLength
+              this.deptBudgetList.tranCarInfoList[index].carLengthKey =
+                response.carLengthKey
+              this.deptBudgetList.tranCarInfoList[index].carModelKey =
+                response.carModelKey
+            })
+        }
+      }
     },
     selecttaskType(e) {
       for (var i = 0; i < this.taskTypeList.length; i++) {
@@ -516,8 +488,8 @@ export default {
     },
     approve() {},
     listQuery() {},
-  },
-}
+  }
+
 </script>
 <style lang="scss" scoped>
 /deep/.basicInformation {
@@ -527,6 +499,7 @@ export default {
   .el-form-item {
     width: 33.3333%;
     border: none;
+    height: 50px;
     .el-form-item__label {
       background: transparent;
       border: none;
@@ -563,8 +536,8 @@ export default {
   text-align: right;
   padding: 16px 20px;
 }
-.center{
-  width: 80%;
+.center {
+  width: 90%;
   margin: 0 auto;
 }
 
@@ -593,94 +566,117 @@ export default {
   top: 13px;
   padding: 4px 2px;
 }
-.position{
-  width: 90%;
-}
-.position .siji{
-  width: 16%;
-}
-/deep/.position .ws-info-table .el-form-item .el-form-item__label{
-  width: 40%;
-  text-align: center;
+.position {
+  position: relative;
 }
-.position .zaizhong{
+.position .zaizhong {
   width: 16%;
 }
 //减号
 .del {
-  right: -70px;
-}
-.bot{
-  width: 30%;
-}
-.position .siji {
-  width: 20.5%;
-}
-/deep/.el-form-item {
-  border-right: 0px;
-  border-bottom: 0px;
-}
-/deep/.ws-info-table {
-  border-left: 0px;
-  border-top: 0px;
-}
-.ws-info-table .el-form-item .el-form-item__content {
-  border-right: 0px;
-  border-bottom: 0px;
-  border-left: 0px;
-  border-top: 0px;
+  position: absolute;
+  // right: -38px;
+  top: 9px;
+  cursor: pointer;
+  right: 0;
+  display: inline-block;
+  font-size: 20px;
+  width: 20px;
+  height: 10px;
+  line-height: 0px;
 }
-/deep/.ws-info-table .el-form-item {
-  border-right: 0px;
-  border-bottom: 0px;
-  border-left: 0px;
-  border-top: 0px;
+.driver .el-form-item {
+  width: 16.63%;
 }
 /deep/.ws-info-table .el-form-item .el-form-item__content {
   background: #f5f7fa;
   border-radius: 4px;
-  border: 1px solid #d8dce6;
-  font-family: PingFangSC-Regular, PingFang SC;
-  margin-bottom: 5px;
-  background-color: #fff;
-  font-size: 14px;
-  font-weight: 400;
   color: #8890b1;
-  line-height: 16px;
-}
-/deep/.ws-info-table .el-form-item .el-form-item__label {
-  background-color: #fff;
   font-size: 14px;
-  font-family: PingFangSC-Regular, PingFang SC;
-  font-weight: 400;
-  color: #8890b1;
-  line-height: 16px;
-}
-// .flex .position{
-//   margin-top: 150px;
-//   margin-left: 20px;
-// }
-.position{
-  width: 100%;
 }
-.position .siji{
-  width: 20.6%;
+/deep/.driver .ws-info-table .el-form-item .el-form-item__label {
+  width: 72px;
 }
-//下表格式
 /deep/.liaison .ws-info-table .el-form-item {
-  width: 15%;
-  height: 50px;
+  width: 16.66%;
+  color: #8890b1;
+  font-size: 14px;
+}
+/deep/.ws-info-table .el-form-item {
+ border: none;
+ height: 50px;
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
-  width: 30%;
-  background: #F6F7FC;
+  width: 40%;
+  border: 0px solid #d8dce6;
+  background: #f5f7fa;
+  text-align: center;
 }
-/deep/.liaison .flex {
-  display: contents;
+/deep/.liaison {
+  background: #f5f7fa;
+  border-radius: 4px;
+  border: 0px solid #d8dce6;
+}
+/deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
+  border: none;
+  background: #f5f7fa;
+}
+.catNos {
+  width: 100%;
+  height: 30px;
+  margin-top: 10px;
+  margin-left: 20px;
+  font-size: 14px;
+}
+/deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
+  // border: 0px solid #d8dce6;
+  border-radius: 0px;
+  border-left: none;
+  border-bottom: none;
+  border-top: none;
 }
 /deep/.liaison .ws-info-table{
   background: #F6F7FC;
 border-radius: 4px;
 border: 1px solid #D8DCE6;
+margin-top: 20px;
+}
+//送达/未送达
+.noservice,
+.service {
+  display: inline-block;
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+  padding: 2px;
+  font-size: 12px;
+}
+.noservice {
+  background: #c4cada;
+  color: #ffffff;
+}
+.service {
+  background: #e5f1f7;
+  color: #50cad4;
+}
+//添加司机
+.add {
+  width: 100px;
+  height: 34px;
+  background: #f6f7fb;
+  border-radius: 17px;
+  color: #5473e8;
+  font-size: 14px;
+  border: none;
+}
+.add img {
+  display: inline-block;
+  margin-top: 3px;
+  margin-left: -12px;
+}
+.add .spans {
+  display: table-caption;
+  width: 56px;
+  height: 20px;
+  line-height: 18px;
 }
 </style>

+ 67 - 62
src/views/tranManagement/tranManagementReceivingloadingLook.vue

@@ -95,19 +95,19 @@
         <div
           style="width: 100%"
           class="flex position"
-          v-for="(item, index) in this.freightspace"
-          :key="index"
+          v-for="(item, index) in freightspace"
+          
         >
           <ws-info-table>
             <div class="catNos" v-show="item.temporaryDriverFlag == 0">司机-{{index+1}}</div>
              <div class="catNos catNosCor" v-show="item.temporaryDriverFlag != 0">司机-{{index+1}}(临)</div>
-            <!--司机-->
+            <!--姓名-->
             <ws-form-item label="姓名:" span="1" prop="driver" v-show="freightspace[index].temporaryDriverFlag == 0">
               <span>{{ item.driver }} </span>
             </ws-form-item>
 
             <!--电话-->
-            <ws-form-item label="司机电话" span="1" prop="driverPhone">
+            <ws-form-item label="电话" span="1" prop="driverPhone">
               <span>{{ item.driverPhone }} </span>
             </ws-form-item>
             <!--车牌号-->
@@ -115,11 +115,15 @@
               <span>{{ item.carNo }} </span>
             </ws-form-item>
             <!--装车净重-->
-            <ws-form-item label="装车净重" span="1" prop="loadNetWeight">
+            <ws-form-item label="净重(吨)" span="1" prop="loadNetWeight">
               {{ item.loadNetWeight }}
+            </ws-form-item>
+             <!--卸车重-->
+            <ws-form-item label="卸车净重(吨)" span="1" prop="unloadNetWeight">
+              {{ item.unloadNetWeight }}
             </ws-form-item>
             <!--磅单-->
-            <ws-form-item label="磅单" span="1" prop="loadPoundImg">
+            <ws-form-item label="磅单:" span="1" prop="loadPoundImg">
               <template slot-scope="scope">
                 <img
                   width="18"
@@ -156,7 +160,7 @@
         >关闭</el-button
       >
     </div>
-    <WinseaContentModal
+    <!-- <WinseaContentModal
       v-model="accessoryTFs"
       :title="$t('system.noticeCircular.information')"
       @on-cancel="handleClose"
@@ -174,7 +178,7 @@
         @uploadSuccess="uploadSuccess"
         accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
       />
-    </WinseaContentModal>
+    </WinseaContentModal> -->
   </div>
 </template>
 <script>
@@ -199,8 +203,10 @@ export default {
   },
   data() {
     return {
+      staffList: [],
       deptBudgetList: {
         totalStorage: 0,
+        tranCarInfoList: [],
       },
       options_: regionData,
       heightData: '600px',
@@ -215,6 +221,7 @@ export default {
       listDate: { country: '中国', level: 'country', city: '' },
       citylist: [],
       compId: sessionStorage.getItem('ws-pf_compId'),
+      tranType: 2,
       rules: {
         warehouseName: [
           {
@@ -230,27 +237,24 @@ export default {
           },
         ],
       },
-      tranType: 1,
+      accessoryTFs:[],
+      fileList:[],
+      appendixIdsAdd: '',
       size: 10,
       value1: '',
       unitList: [],
       freightspace: [
-        {
-          driver: '',
-          driverPhone: '',
-          carNo: '',
-          loadNetWeight: '',
-        },
+        // {
+        //   trainNo: '',
+        // },
       ],
       name: '',
+      list: [],
       staffList: [],
       options: [],
       carModel: [],
       tranCarInfoList: {},
-      //上传
-      accessoryTFs: false,
-      fileList: [],
-      appendixIdsAdd: '',
+      arr: [],
     }
   },
   mounted() {
@@ -276,36 +280,36 @@ export default {
       return maxStorage
     },
     label1: function () {
-      //  for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
-      //   if (this.deptBudgetList.tranCarInfoList[i].temporaryDriverFlag == 0) {
-      //     return '司机名称'
-      //   }
-      //   else if (this.deptBudgetList.tranCarInfoList[i].temporaryDriverFlag == 1) {
-      //     // alert(this.deptBudgetList.tranCarInfoList[i].temporaryDriverFlag)
-      //     return '司机名称(临)'
-      //   }
-      //  }
+       for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
+        if (this.deptBudgetList.tranCarInfoList[i].temporaryDriverFlag == 0) {
+          return '司机名称'
+        }
+        else if (this.deptBudgetList.tranCarInfoList[i].temporaryDriverFlag == 1) {
+          // alert(this.deptBudgetList.tranCarInfoList[i].temporaryDriverFlag)
+          return '司机名称(临)'
+        }
+       }
       return "(临)"
 
       // item.temporaryDriverFlag == 0
     },
   },
   methods: {
-    dataFilter(val) {
-      this.deptBudgetList.personCharge = val
-      if (val) {
-        this.options = this.staffList.filter((item) => {
-          if (
-            !!~item.staffName.indexOf(val) ||
-            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-          ) {
-            return true
-          }
-        })
-      } else {
-        this.options = this.staffList
-      }
-    },
+    // dataFilter(val) {
+    //   this.deptBudgetList.personCharge = val
+    //   if (val) {
+    //     this.options = this.staffList.filter((item) => {
+    //       if (
+    //         !!~item.staffName.indexOf(val) ||
+    //         !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+    //       ) {
+    //         return true
+    //       }
+    //     })
+    //   } else {
+    //     this.options = this.staffList
+    //   }
+    // },
     selectstaff(e) {
       for (var i = 0; i < this.staffList.length; i++) {
         if (this.staffList[i].staffName == e) {
@@ -334,11 +338,11 @@ export default {
       this.dialogViewSpareMoney = false
     },
 
-    //下拉司机姓名改变事件
-    selectdriver() {},
-    handleChange(value) {
-      this.selectedOptions = value
-    },
+    // //下拉司机姓名改变事件
+    // selectdriver() {},
+    // handleChange(value) {
+    //   this.selectedOptions = value
+    // },
     returnsales() {
       this.deptBudgetList = {}
       this.freightspace = {}
@@ -371,19 +375,19 @@ export default {
             }
           }
         })
-      //司机姓名下拉
-      getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
-        .toPromise()
-        .then((response) => {
-          this.options = response
-          this.staffList = response
-        })
-      //车型
-      packList({ constId: 'TRAN5' })
-        .toPromise()
-        .then((response) => {
-          this.carModel = response
-        })
+      // //司机姓名下拉
+      // getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
+      //   .toPromise()
+      //   .then((response) => {
+      //     this.options = response
+      //     this.staffList = response
+      //   })
+      // //车型
+      // packList({ constId: 'TRAN5' })
+      //   .toPromise()
+      //   .then((response) => {
+      //     this.carModel = response
+      //   })
     },
     handleExamine() {},
     approve() {},
@@ -746,7 +750,8 @@ export default {
 }
 //联络员及车次
 /deep/.liaison .ws-info-table .el-form-item {
-  width: 20%;
+  width: 16%;
+  height: 50px;
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
   width: 30%;

+ 29 - 33
src/views/tranManagement/tranManagementShipping.vue

@@ -6,19 +6,19 @@
         <ws-button
         class="but"
           type="primary"
-          @click="handleAdd()"
+          @click="handlestatus(1)"
           >
           执行中</ws-button
         >
         <ws-button
         class="but"
-          @click="app()"
+          @click="handlestatus(2)"
           
           >已完成</ws-button
         >
         <ws-button
         class="but"
-          @click="handleEdit()"
+          @click="handlestatus('')"
           
           >全部任务</ws-button
         > 
@@ -146,19 +146,12 @@
         </el-table-column>
         <el-table-column prop="seller" label="操作" width="300">
           <template slot-scope="scope">
-            <div
-              class="record"
-              @click="handleLook(scope.row)"
-              
-            >
+            <ws-button class="completed" @click="handleLook(scope.row)">
               查看
-            </div>
-            <div
-              class="adjustment"
-              @click="shipping(scope.row)"
-            >
+            </ws-button>
+            <ws-button class="putstorage" @click="shipping(scope.row)">
               船次
-            </div>
+            </ws-button>
           </template>
         </el-table-column>
       </el-table>
@@ -170,7 +163,7 @@
         :page-size="deptCircularPage.pageSize"
         layout="total, sizes, prev, pager, next, jumper"
         :total="deptBudgetTotal"
-    >
+      >
       </el-pagination>
     </div>
   </div>
@@ -178,7 +171,6 @@
 <script>
 import {
   getList,
- 
   shippingList,
 } from '@/model/transport/index'
 import { downloadFile } from '@/utils/batchDown'
@@ -271,7 +263,10 @@ export default {
         
       })
     },
-    
+    handlestatus(status){
+      this.searchType = status
+      this.getList()
+    },
     delivery(item) {
       this.$router.push({
         path: 'warehouseManagementDelivery',
@@ -327,22 +322,8 @@ export default {
     //     // },
     //   })
     // },
-    //记录
-    record(item) {
-      this.$router.push({
-        name: 'warehouseManagementRecord',
-        query: {
-          baseId: item.warehouseId,
-          positionId: item.binNumberId,
-          warehouseName: item.warehouseName,
-        },
-        params: {
-          remark: item.remark,
-          binNumber: item.binNumber,
-          capacity: item.capacity,
-        },
-      })
-    },
+    
+    
     //查看
     handleLook(row) {
       this.$router.push({ 
@@ -504,6 +485,7 @@ export default {
         type: 'xls',
       })
     },
+    total(){},
   },
 }
 </script>
@@ -516,6 +498,20 @@ export default {
   width: 62px;
   text-align: right;
 }
+//分页
+.el-pagination {
+  padding: 10px 15px;
+  margin-bottom: 0;
+  text-align: center;
+}
+/deep/.el-pager li.active {
+  color: #5878e8;
+  cursor: default;
+}
+/deep/.el-pager li:hover {
+  color: #5878e8;
+  cursor: default;
+}
 .el-button--primary {
   background-color: #5878e8;
   border-color: #5878e8;

+ 147 - 51
src/views/tranManagement/tranManagementShippingArrangemen.vue

@@ -89,10 +89,9 @@
       
         <div class="small-title">联络员及航次</div>
         <div
-          style="width: 100%"
           class=" position siji"
           v-for='(item,index) in deptBudgetList.tranCarInfoList'
-          :key='index'
+          :key="index+'siji'"
         >
           <ws-info-table>
           <!--姓名-->
@@ -181,53 +180,55 @@
           ></ws-input>
           </ws-form-item>
           </ws-info-table>
-          <div class="aa">
-            <div
-          style="width: 100%"
+        </div>
+         <div
+          style="width: 530px"
           class="xia"
           v-for="(items, index) in freightspace"
           :key="index"
-          v-show="item.shipType=='散船'"
-        >
-        <ws-info-table>
+        > 
+        <ws-info-table> 
           <ws-form-item :label="'仓位号-'+ (index +1 )" span="1" prop="impurity" class="bot" >
-            <ws-input
+            <!-- <ws-input
           v-model="items.impurity"
           placeholder="请输入仓位号"
           size="small"
-          ></ws-input>
+          ></ws-input> -->
+           {{items.impurity}}
           </ws-form-item>
-         
+          
         <ws-form-item label="重量(吨)" span="1" prop="positionWeight" class="bot" >
-          <ws-input
+          <!-- <ws-input
           v-model="items.positionWeight"
           placeholder="请输入装仓重量"
           size="small"
-          ></ws-input>
-        </ws-form-item>
-          <!-- <img
-            width="22"
-            height="22"
-            class="del"
-            @click="del(index)"
-            src="../../../public/img/del.png"
-            alt=""
-          />   -->
-            <span class="del" @click="del(index)">x</span>
+          ></ws-input> -->
+           {{items.positionWeight}}
+         </ws-form-item> 
+           <span
+              width="22"
+              height="22"
+              class="del"
+              @click="del(index)"
+              src="../../../public/img/del.png"
+              alt=""
+             >X</span
+              >
         </ws-info-table> 
+        
       </div> 
-      </div>
-      <div class="aa">
-         <el-button
-          v-show="item.shipType=='散船'"
-          class="add "
-          type="primary"
-          size="small"
+       <div>
+         <el-button class="add bg-bottom" type="primary" size="small" @click="add">
+        <img
+          width="22"
+          height="22"
           @click="add"
-          >添加仓位</el-button
-        >    
-      </div>
-        </div>
+          src="../../../public/img/add.png"
+          alt=""
+        />
+        <div class="spans">添加仓位</div>
+      </el-button>
+      </div>  
       </div>
     </ws-form>
     <div style="text-align: right; padding: 10px">
@@ -417,7 +418,7 @@ export default {
     //返回按钮
     revert() {
       this.freightspace=[]
-      this.$router.push({ path: 'tranManagementShipping' })
+      this.$router.push({ name: 'tranManagementShipping' })
     },
     del(index){
         if(this.freightspace.length > 1 ){
@@ -441,6 +442,71 @@ export default {
     },
     //提交按钮
     submit() { 
+      for(var i =0; i < this.deptBudgetList.tranCarInfoList.length;i++){
+        if (!this.deptBudgetList.tranCarInfoList[i].driver) {
+          this.$message({
+            message:'名字不为空',
+            type:'warning',
+          })
+          return
+        }
+        if (!this.deptBudgetList.tranCarInfoList[i].driverPhone) {
+          this.$message({
+            message:'电话号不为空',
+            type:'warning',
+          })
+          return
+        }
+        if (!this.deptBudgetList.tranCarInfoList[i].sendDateStart) {
+          this.$message({
+            message:'发船时间不能为空',
+            type:'warning'
+          })
+          return
+        }
+        if (!this.deptBudgetList.tranCarInfoList[i].receiveDateEnd) {
+          this.$message({
+            message:'预计到港时间不能为空',
+            type:'warning'
+          })
+          return
+        }
+        if (!this.deptBudgetList.tranCarInfoList[i].shipName) {
+          this.$message({
+            message:'船名不能为空',
+            type:'warning',
+          })
+          return
+        }
+        if (!this.deptBudgetList.tranCarInfoList[i].shipNo) {
+          this.$message({
+            message:'航次不能为空',
+            type:'warning',
+          })
+          return
+        }
+        if (!this.deptBudgetList.tranCarInfoList[i].shipType) {
+          this.$message({
+            message:'类型不能为空',
+            type:'warning'
+          })
+          return
+        }
+        if (
+          new Date(
+            this.deptBudgetList.tranCarInfoList[i].sendDateStart
+          ).getTime() >
+          new Date(
+            this.deptBudgetList.tranCarInfoList[i].receiveDateEnd
+          ).getTime()
+        ) {
+          this.$message({
+            message: '发船时间不能大于最晚到到港时间!',
+            type: 'warning',
+          })
+          return
+        }
+      }
       this.$confirm(`提交成功后,任务将下发给相关人员,是否确定提交?`, {
         cancelButtonText: '取消',
         confirmButtonText: '确定',
@@ -610,8 +676,8 @@ export default {
 //减号
 .del {
   right: -70px;
-  width: 20px;
-  height: 20px;
+  width: 13px;
+  height: 13px;
 }
 .bot{
   width: 30%;
@@ -643,7 +709,7 @@ export default {
   border: 1px solid #d8dce6;
   font-family: PingFangSC-Regular, PingFang SC;
   margin-bottom: 5px;
-  background-color: #fff;
+  // background-color: #fff;
   font-size: 14px;
   font-weight: 400;
   color: #8890b1;
@@ -717,21 +783,51 @@ export default {
   
 // }
 //添加仓位样式
-.add{
-  width: 90px;
-  height: 20px;
+.add {
+  width: 100px;
+  height: 34px;
+  background: #f6f7fb;
+  border-radius: 17px;
+  color: #5473e8;
   font-size: 14px;
-  font-family: PingFangSC-Regular, PingFang SC;
-  font-weight: 400;
-  line-height: 20px;
   border: none;
+  margin-top:8px;
 }
-//
-.xia{
-  width: 600px;
-  height:54px ;
-  // background: #F6F7FC;
-  border-radius: 4px;
-  border: 1px solid #D8DCE6;
+.add img {
+  display: inline-block;
+  margin-top: 3px;
+  margin-left: -12px;
+}
+.add .spans {
+  display: table-caption;
+  width: 56px;
+  height: 20px;
+  line-height: 18px;
+}
+/deep/.xia {
+    width: 500px;
+    height: 54px;
+    border-radius: 4px;
+    border: 1px solid #D8DCE6;
+    margin-top: 10px;
+    width: 462px;
+    height: 54px;
+    background: #F6F7FC;
+    border-radius: 4px;  
 }
+ .basicInformation .ws-info-table {
+    border: none;
+    width: 1000px;
+}
+ .position.siji {
+    background: #F6F7FC;
+    border-radius: 4px;
+    border: 1px solid #D8DCE6;
+    width: 1010px;
+}
+.el-input--small .el-input__inner {
+    border-block-color:  #F6F7FC;
+    background: #F6F7FC;
+}
+
 </style>

+ 28 - 24
src/views/tranManagement/tranManagementShippingLook.vue

@@ -167,7 +167,7 @@
           style="width: 100%"
           class="flex position"
            v-for="(item, index) in deptBudgetList.tranCarInfoList"
-           :key="index.id"
+           
         >
         <ws-info-table>
           <!-- 姓名 -->
@@ -249,8 +249,8 @@
       <div
           style="width: 100%"
           class="flex position"
-         v-for="(item, index) in freightspace"
-         :key="index"
+         v-for="(items, index) in freightspace"
+         :key='index'
         >
      <ws-info-table>
         <ws-form-item :label="'仓位号-'+ (index + 1 )" span="1" prop="impurity" class="bot">
@@ -259,7 +259,7 @@
           placeholder="请输入仓位号"
           size="small"
           ></ws-input> -->
-          {{item.impurity}}
+          {{items.impurity}}
           </ws-form-item>
           <!-- 重量(吨) -->
           <ws-form-item label="重量(吨)" span="1" prop="positionWeight" class="bot">
@@ -268,7 +268,7 @@
           placeholder="请输入装仓重量"
           size="small"
           ></ws-input> -->
-          {{item.positionWeight}}
+          {{items.positionWeight}}
         </ws-form-item>
         
      </ws-info-table>
@@ -310,7 +310,6 @@ import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
 import {shippingList,shippingLook } from '@/model/transport/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
-// import { dayjs, fmoney, EventBus } from 'base-core-lib'
 import { dayjs, EventBus } from 'base-core-lib'
 export default {
   name: 'viewSpareMoney',
@@ -718,26 +717,25 @@ export default {
   border-radius: 4px;
   border: 1px solid #D8DCE6;
 }
-.xia{
-  width:70%;
-  height: 46px;
-  background: #F5F7FA;
-  border-radius: 4px;
-  border: 1px solid #D8DCE6;
-  margin-top: 10px;
-  border: none;
-}
-.xiaxia{
-  width: 70%;
-  height: 46px;
-  background: #F5F7FA;
-  border-radius: 4px;
-  // border: 1px solid #D8DCE6;
-  margin-top: 10px;
-  // border: none;
+// .xia{
+//   width:500px;
+//   // height: 46px;
+//   background: #F5F7FA;
+//   border-radius: 4px;
+//   // border: 1px solid #D8DCE6;
+//   margin-top: 10px;
+//   border: none;
+// }
+.xia {
+    width: 700px;
+    // height: 50px;
+    border-radius: 4px;
+    border: 1px solid #D8DCE6;
+    margin-top: 10px;
+    border: none;
 }
 /deep/.ws-info-table .el-form-item .el-form-item__label {
-    background-color: #f5f7fa;
+    // background-color: #f5f7fa;
     font-size: 14px;
     font-family: PingFangSC-Regular, PingFang SC;
     font-weight: 400;
@@ -750,4 +748,10 @@ export default {
 .el-form {
     height: 1000px;
 }
+.flex {
+    flex-direction: column;
+}
+/deep/.position .ws-info-table .el-form-item .el-form-item__label {
+    background-color: #f5f7fa;
+}
 </style>