Browse Source

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

mxx 3 năm trước cách đây
mục cha
commit
ccc6cc70ab
27 tập tin đã thay đổi với 812 bổ sung419 xóa
  1. 1 1
      .env.production
  2. 7 15
      src/views/contractManagement/purchaseContractEdit.vue
  3. 4 1
      src/views/contractManagement/purchaseContractExamine.vue
  4. 1 10
      src/views/contractManagement/salesContract.vue
  5. 2 2
      src/views/contractManagement/salesContractAdd.vue
  6. 14 33
      src/views/contractManagement/salesContractEdit.vue
  7. 95 56
      src/views/contractManagement/salesContractExamine.vue
  8. 3 3
      src/views/login/index.vue
  9. 195 1
      src/views/taskManagement/inOutWarehouseTaskEdit.vue
  10. 24 3
      src/views/taskManagement/moveWarehouseTask.vue
  11. 8 3
      src/views/taskManagement/tranManagementTransport.vue
  12. 116 18
      src/views/taskManagement/tranManagementTransportAdd.vue
  13. 151 14
      src/views/taskManagement/tranManagementTransportEdit.vue
  14. 1 2
      src/views/taskManagement/tranManagementWarehouseInOutTask.vue
  15. 4 0
      src/views/tranManagement/tranManagementReceivingFeedback.vue
  16. 4 0
      src/views/tranManagement/tranManagementShipping.vue
  17. 3 7
      src/views/tranManagement/tranManagementTransporFeedback.vue
  18. 4 0
      src/views/tranManagement/tranManagementTransporHairRespond.vue
  19. 3 3
      src/views/tranManagement/tranManagementTransporTationFire.vue
  20. 14 43
      src/views/tranManagement/tranManagementTransporTrainDetails.vue
  21. 26 64
      src/views/tranManagement/tranManagementTransporTrainNo.vue
  22. 48 52
      src/views/tranManagement/tranManagementVehicle.vue
  23. 5 19
      src/views/tranManagement/tranManagementVehicleDispatching.vue
  24. 25 62
      src/views/tranManagement/tranManagementVehicleLook.vue
  25. 33 3
      src/views/warehouse/warehouseManagementEdit.vue
  26. 3 2
      src/views/warehouse/warehouseManagementList.vue
  27. 18 2
      src/views/warehouse/warehouseManagementLook.vue

+ 1 - 1
.env.production

@@ -4,7 +4,7 @@
 
 
 NODE_ENV = 'production'
 NODE_ENV = 'production'
 # base api
 # base api
-VUE_APP_BASE_API = 'http://47.100.3.209/pb'
+VUE_APP_BASE_API = 'http://api.eliangeyun.com'
 
 
 # 微服务相关接口配置
 # 微服务相关接口配置
 ## 任务消息
 ## 任务消息

+ 7 - 15
src/views/contractManagement/purchaseContractEdit.vue

@@ -349,20 +349,8 @@
               size="small"
               size="small"
             />
             />
           </ws-form-item>
           </ws-form-item>
-          <ws-form-item label="品级" span="1" prop="grade">
-            <ws-select
-              v-model="deptBudgetList.contractGoodsInfo.grade"
-              placeholder=""
-              class="typeselect"
-              @change="selectgrade"
-            >
-              <ws-option
-                v-for="item in gradeList"
-                :key="item.constValue"
-                :label="item.constValue"
-                :value="item.constValue"
-              />
-            </ws-select>
+          <ws-form-item label="品级" span="1" prop="grade" class="readonly">        
+              {{ deptBudgetList.contractGoodsInfo.grade}}
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
           <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
             <ws-input
             <ws-input
@@ -1376,6 +1364,10 @@ export default {
   padding: 0 25px;
   padding: 0 25px;
   border-left: 1px solid #cdd2dc;
   border-left: 1px solid #cdd2dc;
   background: #fafbfc;
   background: #fafbfc;
+  color: #8890B1;
+}
+/deep/.el-form-item.is-success .el-input__inner , /deep/.el-cascader .el-input .el-input__inner, /deep/.el-textarea__inner{
+  color: #8890B1;
 }
 }
 /deep/.ws-info-table .el-form-item .el-form-item__label {
 /deep/.ws-info-table .el-form-item .el-form-item__label {
   width: 140px;
   width: 140px;
@@ -1541,7 +1533,7 @@ export default {
   overflow: scroll;
   overflow: scroll;
   height: 93vh;
   height: 93vh;
 }
 }
-/deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
+/deep/.ws-info-table .el-form-item .el-form-item__label {
   width: 130px;
   width: 130px;
 }
 }
 .el-textarea{
 .el-textarea{

+ 4 - 1
src/views/contractManagement/purchaseContractExamine.vue

@@ -186,8 +186,10 @@
       <div class="remark">
       <div class="remark">
         <h3>备注信息</h3>
         <h3>备注信息</h3>
       </div>
       </div>
+      <div style=" color: #afb5cb;margin-left: 20px;">
       {{ deptBudgetList.remarks }}
       {{ deptBudgetList.remarks }}
-      <img :src="deptBudgetList.addressUrl" alt="" />
+      </div>
+      <!-- <img :src="deptBudgetList.addressUrl" alt="" /> -->
     </ws-form>
     </ws-form>
     <div style="text-align: right; padding: 10px">
     <div style="text-align: right; padding: 10px">
       <el-button
       <el-button
@@ -387,6 +389,7 @@ export default {
   padding: 0 25px;
   padding: 0 25px;
   border-left: 1px solid #cdd2dc;
   border-left: 1px solid #cdd2dc;
   background: #fafbfc;
   background: #fafbfc;
+  color: #afb5cb;
 }
 }
 /deep/.ws-info-table .el-form-item .el-form-item__label {
 /deep/.ws-info-table .el-form-item .el-form-item__label {
   width: 140px;
   width: 140px;

+ 1 - 10
src/views/contractManagement/salesContract.vue

@@ -576,7 +576,6 @@ export default {
       this.dialogViewSpareMoney = false
       this.dialogViewSpareMoney = false
     },
     },
     history(row) {
     history(row) {
-      console.log(row)
       billoperatehis({ id: row.id })
       billoperatehis({ id: row.id })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
@@ -617,20 +616,12 @@ export default {
         type: 'xls',
         type: 'xls',
       })
       })
     },
     },
-    // deletecontract(){},
-    //删除
-
-    approve() {},
-    listQuery() {},
-    total() {},
-    clearfiltQuery() {},
-    selectCrtDuty() {},
 
 
     handleDelete(row) {
     handleDelete(row) {
       var handleDelete = ' '
       var handleDelete = ' '
       if (row.handleDelete == '') {
       if (row.handleDelete == '') {
       }
       }
-      this.$confirm(`此操作永久删除该仓库全部信息,是否确认删除`, {
+      this.$confirm(`删除该合同将同时永久删除合同对应的临时仓库相关数据,是否确定删除?`, {
         cancelButtonText: '取消',
         cancelButtonText: '取消',
         confirmButtonText: '确定',
         confirmButtonText: '确定',
         type: 'warning',
         type: 'warning',

+ 2 - 2
src/views/contractManagement/salesContractAdd.vue

@@ -94,10 +94,10 @@
             class="readonly"
             class="readonly"
           >
           >
             <el-radio v-model="deptBudgetList.deliverType" label="1"
             <el-radio v-model="deptBudgetList.deliverType" label="1"
-              >我方自提</el-radio
+              >我方送货</el-radio
             >
             >
             <el-radio v-model="deptBudgetList.deliverType" label="2"
             <el-radio v-model="deptBudgetList.deliverType" label="2"
-              >对方送货</el-radio
+              >对方自提</el-radio
             >
             >
           </ws-form-item>
           </ws-form-item>
 
 

+ 14 - 33
src/views/contractManagement/salesContractEdit.vue

@@ -337,19 +337,6 @@
         <ws-info-table>
         <ws-info-table>
           <!--货名-->
           <!--货名-->
           <ws-form-item label="货名" span="1" prop="goodsName">
           <ws-form-item label="货名" span="1" prop="goodsName">
-            <!-- <ws-select
-                v-model="deptBudgetList.contractGoodsInfo.goodsName"
-                placeholder=""
-                class="typeselect"
-                @change="selectpackingMethod"
-              >
-                <ws-option
-                  v-for="item in goodnameList"
-                  :key="item.constKey"
-                  :label="item.constValue"
-                  :value="item.constValue"
-                />
-              </ws-select> -->
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.contractGoodsInfo.goodsName }}
               {{ deptBudgetList.contractGoodsInfo.goodsName }}
             </div>
             </div>
@@ -368,19 +355,10 @@
 
 
           <!--品级-->
           <!--品级-->
           <ws-form-item label="品级" span="1" prop="grade">
           <ws-form-item label="品级" span="1" prop="grade">
-            <ws-select
-              v-model="deptBudgetList.contractGoodsInfo.grade"
-              placeholder=""
-              class="typeselect"
-              @change="selectgrade"
-            >
-              <ws-option
-                v-for="item in gradeList"
-                :key="item.constKey"
-                :label="item.constValue"
-                :value="item.constValue"
-              />
-            </ws-select>
+            <div class="unchanged">
+              {{ deptBudgetList.contractGoodsInfo.grade }}
+            </div>
+            <span class="unchangeable">*</span>
           </ws-form-item>
           </ws-form-item>
 
 
           <!--杂质(%)<=-->
           <!--杂质(%)<=-->
@@ -705,6 +683,11 @@ export default {
 
 
           this.selectedOptions1 = tmp1
           this.selectedOptions1 = tmp1
           this.deptBudgetList = response
           this.deptBudgetList = response
+          if (this.deptBudgetList.deliverType == 1) {
+            this.deptBudgetList.deliverType1 = '我方自提'
+          } else if (this.deptBudgetList.deliverType == 2) {
+            this.deptBudgetList.deliverType1 = '对方送货'
+          }
         })
         })
       // 包装方式
       // 包装方式
       packList({ constId: 'CON1' })
       packList({ constId: 'CON1' })
@@ -741,11 +724,6 @@ export default {
       })
       })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
-          if (this.deptBudgetList.deliverType == 1) {
-            this.deptBudgetList.deliverType1 = '我方自提'
-          } else if (this.deptBudgetList.deliverType == 2) {
-            this.deptBudgetList.deliverType1 = '对方送货'
-          }
           this.unitList = response
           this.unitList = response
           let currItem
           let currItem
           this.unitList.forEach((item, index, arr) => {
           this.unitList.forEach((item, index, arr) => {
@@ -754,7 +732,6 @@ export default {
               currItem = item
               currItem = item
             }
             }
           })
           })
-          //
           if (currItem) {
           if (currItem) {
             this.selectContract(currItem.constValue)
             this.selectContract(currItem.constValue)
           }
           }
@@ -1598,5 +1575,9 @@ export default {
   height: 32px;
   height: 32px;
   line-height: 32px;
   line-height: 32px;
 }
 }
-
+/deep/.el-form-item.is-success .el-input__inner,
+/deep/.el-cascader .el-input .el-input__inner,
+/deep/.el-textarea__inner {
+  color: #8890b1;
+}
 </style>
 </style>

+ 95 - 56
src/views/contractManagement/salesContractExamine.vue

@@ -27,7 +27,37 @@
     <div class="state">
     <div class="state">
       <h2>销售合同</h2>
       <h2>销售合同</h2>
       <p>【编号:{{ deptBudgetList.contractNo }}】</p>
       <p>【编号:{{ deptBudgetList.contractNo }}】</p>
-      <span class="icon">&nbsp;&nbsp;{{ deptBudgetList.status }}</span>
+      <div class="icon">
+        &nbsp;&nbsp;{{ deptBudgetList.status }}
+        <!-- <template slot-scope="scope">
+          <el-popover
+            placement="left"
+            :width="285"
+            trigger="click"
+            visible-arrow="false"
+            @show="history(scope.row)"
+          >
+            <div>
+              <p style="margin-top: 0; padding-left: 10px">操作历史</p>
+              <div v-for="(item, index) in historyList" class="flex">
+                <div class="vertical-text vertical-text-left">
+                  {{ item.updateDate }}
+                </div>
+                <div>
+                  <div class="vertical-circle"></div>
+                  <div
+                    v-if="index != historyList.length - 1"
+                    class="vertical-line"
+                  ></div>
+                </div>
+                <div class="vertical-text">
+                  {{ item.operateUser }}<br />{{ item.dealMsg }}
+                </div>
+              </div>
+            </div>
+          </el-popover>
+        </template>  -->
+      </div>
     </div>
     </div>
     <div class="center">
     <div class="center">
       <ws-form
       <ws-form
@@ -43,7 +73,7 @@
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.contractNo }}
               {{ deptBudgetList.contractNo }}
             </div>
             </div>
-            <span class="unchangeable">*</span>
+            <!-- <span class="unchangeable">*</span> -->
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="运输方式" span="1" prop="shippingType">
           <ws-form-item label="运输方式" span="1" prop="shippingType">
             <div class="unchanged">
             <div class="unchanged">
@@ -54,7 +84,7 @@
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.buyer }}
               {{ deptBudgetList.buyer }}
             </div>
             </div>
-            <span class="unchangeable">*</span>
+            <!-- <span class="unchangeable">*</span> -->
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="结算方式" span="1" prop="settlementMethod">
           <ws-form-item label="结算方式" span="1" prop="settlementMethod">
             <div class="unchanged">
             <div class="unchanged">
@@ -65,7 +95,7 @@
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.seller }}
               {{ deptBudgetList.seller }}
             </div>
             </div>
-            <span class="unchangeable">*</span>
+            <!-- <span class="unchangeable">*</span> -->
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="交货方式" span="1" prop="deliverType">
           <ws-form-item label="交货方式" span="1" prop="deliverType">
             <div class="unchanged">
             <div class="unchanged">
@@ -97,7 +127,7 @@
               {{ deptBudgetList.weight }}
               {{ deptBudgetList.weight }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
-         <ws-form-item
+          <ws-form-item
             label="交货日期(起)"
             label="交货日期(起)"
             span="1"
             span="1"
             prop="deliveryDateStart"
             prop="deliveryDateStart"
@@ -111,7 +141,7 @@
               {{ deptBudgetList.overShort }}
               {{ deptBudgetList.overShort }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
-         <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
+          <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.deliveryDateEnd }}
               {{ deptBudgetList.deliveryDateEnd }}
             </div>
             </div>
@@ -124,9 +154,9 @@
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.unitContractPrice }}
               {{ deptBudgetList.unitContractPrice }}
             </div>
             </div>
-            <span class="unchangeable">*</span>
+            <!-- <span class="unchangeable">*</span> -->
           </ws-form-item>
           </ws-form-item>
-          
+
           <ws-form-item
           <ws-form-item
             label="合同总价(元)"
             label="合同总价(元)"
             span="1"
             span="1"
@@ -136,33 +166,32 @@
               {{ deptBudgetList.totalContractPrice }}
               {{ deptBudgetList.totalContractPrice }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
-          
-          <ws-form-item label="货源所在地区" span="1" >
-            <div class="unchanged">
-                {{deptBudgetList. sourceProvince}}
-                {{deptBudgetList. sourceCity}}
-                {{deptBudgetList. sourceArea}}
 
 
+          <ws-form-item label="货源所在地区" span="1">
+            <div class="unchanged">
+              {{ deptBudgetList.sourceProvince }}
+              {{ deptBudgetList.sourceCity }}
+              {{ deptBudgetList.sourceArea }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
-          
-          <ws-form-item label="货源详细地址" span ="1" prop = "sourceGoods">
-            <div class = "unchanged">
-                {{deptBudgetList.sourceGoods}}
+
+          <ws-form-item label="货源详细地址" span="1" prop="sourceGoods">
+            <div class="unchanged">
+              {{ deptBudgetList.sourceGoods }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
-          
-          <ws-form-item label="交货地所在地区" span="1" >
-              <div class="unchanged">
-                  {{deptBudgetList. deliveryProvince}}
-                  {{deptBudgetList.deliveryCity}}
-                  {{deptBudgetList.deliveryArea}}
-              </div>
+
+          <ws-form-item label="交货地所在地区" span="1">
+            <div class="unchanged">
+              {{ deptBudgetList.deliveryProvince }}
+              {{ deptBudgetList.deliveryCity }}
+              {{ deptBudgetList.deliveryArea }}
+            </div>
           </ws-form-item>
           </ws-form-item>
-          
+
           <ws-form-item label="交货地详细地址" span="1" prop="placeDelivery">
           <ws-form-item label="交货地详细地址" span="1" prop="placeDelivery">
-            <div class = "unchanged">
-                {{deptBudgetList.placeDelivery}}
+            <div class="unchanged">
+              {{ deptBudgetList.placeDelivery }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="签订日期" span="1" prop="signingDate">
           <ws-form-item label="签订日期" span="1" prop="signingDate">
@@ -170,10 +199,14 @@
               {{ deptBudgetList.signingDate }}
               {{ deptBudgetList.signingDate }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
-          
-          <ws-form-item label="最终实际交易量 (吨)" span="1" prop="finalTradingVolume">
+
+          <ws-form-item
+            label="最终实际交易量 (吨)"
+            span="1"
+            prop="finalTradingVolume"
+          >
             <div class="unchanged">
             <div class="unchanged">
-              {{deptBudgetList.finalTradingVolume}}
+              {{ deptBudgetList.finalTradingVolume }}
             </div>
             </div>
           </ws-form-item>
           </ws-form-item>
         </ws-info-table>
         </ws-info-table>
@@ -189,7 +222,7 @@
             <div class="unchanged">
             <div class="unchanged">
               {{ deptBudgetList.contractGoodsInfo.goodsName }}
               {{ deptBudgetList.contractGoodsInfo.goodsName }}
             </div>
             </div>
-            <span class="unchangeable">*</span>
+            <!-- <span class="unchangeable">*</span> -->
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
           <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
             <div class="unchanged">
             <div class="unchanged">
@@ -291,13 +324,11 @@
         </ws-info-table>
         </ws-info-table>
         <div class="remark">
         <div class="remark">
           <h3>备注信息</h3>
           <h3>备注信息</h3>
-          <div class=" beizhu">
-          {{ deptBudgetList.remarks }}
-        </div>
-
+          <div class="beizhu">
+            {{ deptBudgetList.remarks }}
+          </div>
         </div>
         </div>
 
 
-        
         <img :src="deptBudgetList.addressUrl" alt="" />
         <img :src="deptBudgetList.addressUrl" alt="" />
 
 
         <!-- </base-card> -->
         <!-- </base-card> -->
@@ -320,6 +351,7 @@ import {
   packList,
   packList,
   xiala,
   xiala,
   examineList,
   examineList,
+  billoperatehis,
 } from '@/model/contarct/index'
 } from '@/model/contarct/index'
 import { dayjs } from 'base-core-lib'
 import { dayjs } from 'base-core-lib'
 import WsUpload from '@/components/WsUpload'
 import WsUpload from '@/components/WsUpload'
@@ -359,7 +391,7 @@ export default {
       },
       },
       mainReportAdd: {},
       mainReportAdd: {},
       list: {},
       list: {},
-      
+      historyList: [],
     }
     }
   },
   },
 
 
@@ -376,10 +408,10 @@ export default {
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
           this.deptBudgetList = response
           this.deptBudgetList = response
-          if(this.deptBudgetList.deliverType == 1){
-            this.deptBudgetList.deliverType1 = "我方自提"
-          }else if(this.deptBudgetList.deliverType == 2){
-            this.deptBudgetList.deliverType1 = "对方送货" 
+          if (this.deptBudgetList.deliverType == 1) {
+            this.deptBudgetList.deliverType1 = '我方送货'
+          } else if (this.deptBudgetList.deliverType == 2) {
+            this.deptBudgetList.deliverType1 = '对方自提'
           }
           }
         })
         })
       // 包装方式
       // 包装方式
@@ -434,8 +466,15 @@ export default {
     handleClose() {
     handleClose() {
       this.dialogViewSpareMoney = false
       this.dialogViewSpareMoney = false
     },
     },
-    handleExamine() {},
-    approve() {},
+    history(row) {
+      console.log(row, '查看')
+      billoperatehis({ id: row.id })
+        .toPromise()
+        .then((response) => {
+          this.historyList = response
+        })
+    },
+
     returnsales() {
     returnsales() {
       this.$router.push({ path: 'salesContract' })
       this.$router.push({ path: 'salesContract' })
     },
     },
@@ -680,18 +719,18 @@ export default {
 }
 }
 
 
 //*号
 //*号
-.unchangeable {
-  position: absolute;
-  width: 9px;
-  height: 22px;
-  font-size: 16px;
-  font-family: PingFangSC-Medium, PingFang SC;
-  font-weight: 500;
-  color: #ff2727;
-  line-height: 22px;
-  display: inline-block;
-  right: 14px;
-}
+// .unchangeable {
+//   position: absolute;
+//   width: 9px;
+//   height: 22px;
+//   font-size: 16px;
+//   font-family: PingFangSC-Medium, PingFang SC;
+//   font-weight: 500;
+//   color: #ff2727;
+//   line-height: 22px;
+//   display: inline-block;
+//   right: 14px;
+// }
 /deep/.el-input,
 /deep/.el-input,
 /deep/.el-date-editor {
 /deep/.el-date-editor {
   font-size: 13px;
   font-size: 13px;

+ 3 - 3
src/views/login/index.vue

@@ -262,7 +262,7 @@
               <el-row>
               <el-row>
                 <div class="remember-information">
                 <div class="remember-information">
                   <el-checkbox v-model="rememberMe" class="fl">
                   <el-checkbox v-model="rememberMe" class="fl">
-                    <span style="color: #fff">{{
+                    <span>{{
                       $t('login.rememberPwd')
                       $t('login.rememberPwd')
                     }}</span>
                     }}</span>
                   </el-checkbox>
                   </el-checkbox>
@@ -337,9 +337,9 @@
             </el-form>
             </el-form>
             <div class="make-easier">
             <div class="make-easier">
               <p>{{ $t('common.makeEasier') }}</p>
               <p>{{ $t('common.makeEasier') }}</p>
-              <BaseLink @click="goBackstage" :underline="false" type="primary">
+              <!-- <BaseLink @click="goBackstage" :underline="false" type="primary">
                 &nbsp;&nbsp;{{ $t('common.goBackstage') }}
                 &nbsp;&nbsp;{{ $t('common.goBackstage') }}
-              </BaseLink>
+              </BaseLink> -->
             </div>
             </div>
           </div>
           </div>
         </div>
         </div>

+ 195 - 1
src/views/taskManagement/inOutWarehouseTaskEdit.vue

@@ -31,7 +31,7 @@
         </span>
         </span>
       </div>
       </div>
       <div class="nav2"></div>
       <div class="nav2"></div>
-      <div v-if="dataList.taskTypeKey != 2" class="center1">
+      <div v-if="dataList.taskTypeKey != 2&&dataList.taskTypeKey != 4" class="center1">
         <!--出库=-->
         <!--出库=-->
         <div class="small-title">
         <div class="small-title">
           <img
           <img
@@ -419,6 +419,200 @@
           </el-form-item>
           </el-form-item>
         </el-form>
         </el-form>
       </div>
       </div>
+      <div v-if="dataList.taskTypeKey == 4" class="center1">
+        <!--出库=-->
+        <div class="small-title">
+          <img
+            style="position: relative; top: 40px; left: -22px;"
+            width="19"
+            height="19"
+            src="../../../public/img/cangku.png"
+            alt
+          />
+          <h3>出库任务({{ dataList.inOutTaskNo }} )</h3>
+        </div>
+        <el-form ref="dataList" :model="dataList" label-width="140px">
+          <!-- 仓库名 -->
+          <el-form-item label="仓库名">
+            <!-- <el-select
+              disabled
+              v-model="dataList.warehouseName"
+              placeholder="请选择仓库名"
+              class="typeselect"
+            >-->
+            <el-option
+              v-for="item in warehouseNameList"
+              :key="item.constKey"
+              :label="item.warehouseName"
+              :value="item.warehouseName"
+            />
+            {{dataList.warehouseName}}
+            <!-- </el-select> -->
+          </el-form-item>
+          <!-- 出库类型 -->
+          <el-form-item label="出库类型">
+            <!-- <el-select
+              disabled
+              v-model="dataList.inOutType"
+              placeholder="请选择出库类型"
+              class="typeselect"
+            >-->
+            <el-option
+              v-for="item in storageType"
+              :key="item.constKey"
+              v-if="
+                  (dataList.taskTypeKey == 1 &&
+                    item.constValue != '移库出库') ||
+                  (dataList.taskTypeKey == 3 &&
+                    item.constValue == '移库出库') ||
+                  (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
+                "
+              :label="item.constValue"
+              :value="item.constValue"
+            />
+            {{dataList.inOutType}}
+            <!-- </el-select> -->
+          </el-form-item>
+          <!-- 合同编号 -->
+          <el-form-item label="合同编号">
+            <!-- <el-select
+              disabled
+              v-model="dataList.contractNo"
+              placeholder="请输入合同编号"
+              class="typeselect"
+            >-->
+            <el-option
+              v-for="item in contractNoList"
+              :key="item.constKey"
+              :label="item.contractNo"
+              :value="item.contractNo"
+            ></el-option>
+            {{dataList.contractNo}}
+            <!-- </el-select> -->
+          </el-form-item>
+          <!-- 货名 -->
+          <el-form-item label="货名" class="huom">
+            <!-- <el-select
+              disabled
+              v-model="dataList.goodsName"
+              placeholder="货名"
+              class="huom"
+            >-->
+            <el-option
+              v-for="item in goodnameList"
+              :key="item.constKey"
+              :label="item.constValue"
+              :value="item.constValue"
+            ></el-option>
+            {{dataList.goodsName}}
+            <!-- </el-select> -->
+          </el-form-item>
+          <!--重量(吨)-->
+          <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
+            <!-- <el-input
+              disabled
+              v-model="dataList.weight"
+              placeholder="请输入重量"
+              maxlength="120"
+               class="huom"
+            />-->
+            {{dataList.weight}}
+          </el-form-item>
+          <!-- 品级 -->
+          <el-form-item label="品级">
+            <!-- <el-select
+              v-model="dataList.grade"
+              placeholder=""
+              class="typeselect"
+              disabled
+            >-->
+            <el-option
+              v-for="item in gradeList"
+              :key="item.constKey"
+              :label="item.constValue"
+              :value="item.constValue"
+            />
+            {{dataList.grade}}
+            <!-- </el-select> -->
+          </el-form-item>
+          <!--容重(克/升)>=-->
+          <el-form-item label="容重(克/升)>=">
+            <!-- <el-input
+              disabled
+              v-model="dataList.bulkDensity"
+              placeholder="请输入容重"
+              maxlength="120"
+              size="small"
+              class="huom"
+            />-->
+            {{dataList.bulkDensity}}
+          </el-form-item>
+          <!--水分(%)<=-->
+          <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
+            <!-- <el-input
+              disabled
+              v-model="dataList.waterContent"
+              placeholder="请输入水分占比"
+              maxlength="120"
+              size="small"
+              class="huom"
+            />-->
+            {{dataList.waterContent}}
+          </el-form-item>
+          <!--单价(元/吨)-->
+          <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
+            <!-- <el-input
+              disabled
+              v-model="dataList.unitPrice"
+              placeholder="请输入单价"
+              maxlength="120"
+              size="small"
+              class="huom"
+            />-->
+            {{dataList.unitPrice}}
+          </el-form-item>
+          <!--预计出库日期-->
+          <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
+            <!-- <el-date-picker
+              disabled
+              v-model="dataList.predictDate"
+              type="date"
+              placeholder="请选择预计出库日期"
+              value-format="yyyy-MM-dd"
+            />-->
+            {{dataList.predictDate}}
+          </el-form-item>
+          <!--经办人-->
+          <el-form-item label="出库经办人">
+            <!-- <el-select
+              disabled
+              v-model="dataList.agent"
+              placeholder="请选择经办人"
+              filterable
+              :filter-method="dataFilter"
+            >-->
+            {{dataList.agent}}
+            <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
+            />
+            <!-- </el-select> -->
+          </el-form-item>
+          <!--业务描述=-->
+          <el-form-item label="业务描述">
+            <!-- <el-input
+              disabled
+              v-model="dataList.businessDescribe"
+              placeholder="请输入业务描述,不超过150字"
+              maxlength="150"
+              size="small"
+            />-->
+            {{dataList.businessDescribe}}
+          </el-form-item>
+        </el-form>
+      </div>
     </div>
     </div>
     <!-- 提交 -->
     <!-- 提交 -->
     <div style="text-align: right; padding: 10px" class="center">
     <div style="text-align: right; padding: 10px" class="center">

+ 24 - 3
src/views/taskManagement/moveWarehouseTask.vue

@@ -36,7 +36,7 @@
               vertical-align: text-top;
               vertical-align: text-top;
               position: relative;
               position: relative;
               top: 0px;
               top: 0px;
-              left: -1px;
+              left: -5px;
             "
             "
             src="../../../public/img/sousuo.png"
             src="../../../public/img/sousuo.png"
             alt=""
             alt=""
@@ -71,6 +71,27 @@
         <el-table-column prop="weightIn" label="入库量(吨)">
         <el-table-column prop="weightIn" label="入库量(吨)">
         </el-table-column>
         </el-table-column>
         <el-table-column prop="stockReturnCount" label="退库量(吨)">
         <el-table-column prop="stockReturnCount" label="退库量(吨)">
+           <template slot-scope="scope">
+              <el-popover
+                placement="top"
+                :width="160"
+                trigger="hover"
+                visible-arrow="false"
+             
+              >
+                <template>
+                  <span slot="reference">
+                     <!-- <span class="executory"> -->
+                      {{ scope.row.stockReturnCount }}
+                    <!-- </span>  -->
+                  </span>
+                </template>
+                <div v-for="(item,index) in scope.row.inOutWarehouseTaskList" :key="index">
+                  <span style="margin-left:6px;">{{ item.warehouseName }}</span>
+                  <span style="margin-left:20px;">{{ item.weight }}吨</span>
+                </div>
+              </el-popover>
+            </template>
         </el-table-column>
         </el-table-column>
         <el-table-column prop="transportLoss" label="运输损耗(吨)">
         <el-table-column prop="transportLoss" label="运输损耗(吨)">
            <template scope="scope">
            <template scope="scope">
@@ -135,9 +156,9 @@
             />
             />
           </template>
           </template>
         </el-table-column>
         </el-table-column>
-        <el-table-column prop="establishDate" label="发布时间">
+        <el-table-column prop="establishDate" label="发布时间" width="150">
         </el-table-column>
         </el-table-column>
-        <el-table-column prop="seller" label="详情" width="200">
+        <el-table-column prop="seller" label="详情" >
           <template slot-scope="scope">
           <template slot-scope="scope">
              <div
              <div
               class="record"
               class="record"

+ 8 - 3
src/views/taskManagement/tranManagementTransport.vue

@@ -41,9 +41,9 @@
           />
           />
         </ws-select>
         </ws-select>
         <span style="width: 142px; display: inline-block;color: #8890B1;">起点:</span>
         <span style="width: 142px; display: inline-block;color: #8890B1;">起点:</span>
-        <el-input label="起点" placeholder="请输入起点" clearable maxlength="200" type="input"></el-input>
+        <el-input label="起点" placeholder="请输入起点" clearable maxlength="200" type="input" v-model="start"></el-input>
         <span style="width: 142px; display: inline-block;color: #8890B1;">终点:</span>
         <span style="width: 142px; display: inline-block;color: #8890B1;">终点:</span>
-        <el-input label="终点" placeholder="请输入终点" clearable maxlength="200" type="input"></el-input>
+        <el-input label="终点" placeholder="请输入终点" clearable maxlength="200" type="input" v-model="end"></el-input>
         <el-input
         <el-input
           v-model="searchKeyWord"
           v-model="searchKeyWord"
           placeholder="可按合同编号或运输任务编号查找"
           placeholder="可按合同编号或运输任务编号查找"
@@ -96,7 +96,8 @@
             }}{{ scope.row.startArea }}{{ scope.row.startDetailedAddress }}
             }}{{ scope.row.startArea }}{{ scope.row.startDetailedAddress }}
           </template>
           </template>
         </el-table-column>
         </el-table-column>
-        <el-table-column prop="currentTransferAddress" class="table_td" label="当前中转"></el-table-column>
+        <el-table-column prop="currentTransferAddress" class="table_td" label="当前中转">
+        </el-table-column>
         <el-table-column prop="end" class="table_td" label="终点">
         <el-table-column prop="end" class="table_td" label="终点">
           <template slot-scope="scope">
           <template slot-scope="scope">
             {{ scope.row.endPrivate }}{{ scope.row.endCity
             {{ scope.row.endPrivate }}{{ scope.row.endCity
@@ -245,6 +246,8 @@ export default {
         { value: '已完成', type: 2 },
         { value: '已完成', type: 2 },
         { value: '全部任务', type: 3 },
         { value: '全部任务', type: 3 },
       ],
       ],
+      start:'',
+      end:'',
     }
     }
   },
   },
   activated() {
   activated() {
@@ -288,6 +291,8 @@ export default {
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchType: this.searchType,
         searchType: this.searchType,
+        start:this.start,
+        end:this.end,
         searchKeyWord: this.searchKeyWord,
         searchKeyWord: this.searchKeyWord,
         
         
       })
       })

+ 116 - 18
src/views/taskManagement/tranManagementTransportAdd.vue

@@ -118,7 +118,7 @@
           label="始发地详细地址"
           label="始发地详细地址"
           span="1"
           span="1"
           prop="startDetailedAddress"
           prop="startDetailedAddress"
-          class="bg-right start-address"
+         
         >
         >
           <el-input
           <el-input
             v-model="deptBudgetList.startDetailedAddress"
             v-model="deptBudgetList.startDetailedAddress"
@@ -175,7 +175,7 @@
         <div class="check-box">
         <div class="check-box">
           <span class="check-box">运输方式</span>
           <span class="check-box">运输方式</span>
           <el-checkbox-group v-model="checkList" prop="tranType">
           <el-checkbox-group v-model="checkList" prop="tranType">
-            <el-checkbox label="汽运"></el-checkbox>
+            <el-checkbox label="汽运" checked></el-checkbox>
             <el-checkbox label="火运"></el-checkbox>
             <el-checkbox label="火运"></el-checkbox>
             <el-checkbox label="船运"></el-checkbox>
             <el-checkbox label="船运"></el-checkbox>
           </el-checkbox-group>
           </el-checkbox-group>
@@ -416,7 +416,8 @@ export default {
       value1: '',
       value1: '',
       unitList: [],
       unitList: [],
       name: '',
       name: '',
-      age: ''
+      age: '',
+      number:2,
     }
     }
   },
   },
   activated() {
   activated() {
@@ -454,6 +455,7 @@ export default {
           this.selectedOptions=tmp
           this.selectedOptions=tmp
           this.deptBudgetList.tranProcessInfoList[0].selectedOptions=tmp
           this.deptBudgetList.tranProcessInfoList[0].selectedOptions=tmp
           this.deptBudgetList.startDetailedAddress=this.warehouseList[i].detailedAddress
           this.deptBudgetList.startDetailedAddress=this.warehouseList[i].detailedAddress
+          this.deptBudgetList.tranProcessInfoList[0].sendDetailedAddress = this.warehouseList[i].detailedAddress
         }
         }
       }
       }
     },
     },
@@ -484,6 +486,13 @@ export default {
     },
     },
     engflagchange(e){
     engflagchange(e){
       this.endflag=e
       this.endflag=e
+      if(this.endflag){
+        this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].selectedOptions1 = this.selectedOptions1
+        this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].receiveDetailedAddress = this.deptBudgetList.endDetailedAddress
+      }else{
+         this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].selectedOptions1 = []
+         this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].receiveDetailedAddress = ''
+      }
     },
     },
     // 获取当前年月日
     // 获取当前年月日
     getdate() {
     getdate() {
@@ -569,9 +578,8 @@ export default {
       this.dialogViewSpareMoney = false
       this.dialogViewSpareMoney = false
     },
     },
     add(index) {
     add(index) {
-      console.log(index)
       this.deptBudgetList.tranProcessInfoList.push({
       this.deptBudgetList.tranProcessInfoList.push({
-        processNo: this.deptBudgetList.taskNo+'-'+(index+2),
+        processNo: this.deptBudgetList.taskNo+'-'+(this.number),
         tranType: '汽运',
         tranType: '汽运',
         tranTypeKey: '1',
         tranTypeKey: '1',
         deliveryDateStart: '',
         deliveryDateStart: '',
@@ -593,6 +601,7 @@ export default {
         receiverPhone: '',
         receiverPhone: '',
         endFlag: '0'
         endFlag: '0'
       })
       })
+      this.number++
     },
     },
     del(index) {
     del(index) {
       if (this.deptBudgetList.tranProcessInfoList.length > 1) {
       if (this.deptBudgetList.tranProcessInfoList.length > 1) {
@@ -686,13 +695,90 @@ export default {
     onChange(files) {
     onChange(files) {
       this.fileNum = files
       this.fileNum = files
       this.$refs.upload.handleSaveBill().then(res => {
       this.$refs.upload.handleSaveBill().then(res => {
-        console.log(files)
       })
       })
     },
     },
 
 
     submit() {
     submit() {
       this.$refs.deptBudgetList.validate(valid => {
       this.$refs.deptBudgetList.validate(valid => {
         if (valid) {
         if (valid) {
+          if (!this.deptBudgetList.taskNo) {
+          this.$message({
+            message: '任务编号不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+          if (!this.deptBudgetList.taskType) {
+          this.$message({
+            message: '任务类型不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.contractNo) {
+          this.$message({
+            message: '合同编号/移库任务编号不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.goodsName) {
+          this.$message({
+            message: '货名不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+           if (!this.deptBudgetList.weight) {
+          this.$message({
+            message: '重量(吨)不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.sendWarehouse) {
+          this.$message({
+            message: '发货仓库不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.selectedOptions.length <= 0) {
+          this.$message({
+            message: '始发地不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+      
+         if (!this.deptBudgetList.startDetailedAddress) {
+          this.$message({
+            message: '始发地详细地址不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.selectedOptions1.length <= 0) {
+          this.$message({
+            message: '终到地不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.endDetailedAddress) {
+          this.$message({
+            message: '终到地详细地址不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+          if(this.checkList.length <= 0){
+             this.$message({
+                message: '运输方式多选框不能为空!',
+                type: 'warning',
+              })
+              return
+          }
           for (
           for (
             var i = 0;
             var i = 0;
             i < this.deptBudgetList.tranProcessInfoList.length;
             i < this.deptBudgetList.tranProcessInfoList.length;
@@ -709,56 +795,56 @@ export default {
               ).getTime()
               ).getTime()
             ) {
             ) {
               this.$message({
               this.$message({
-                message: '发货日期不能大于最晚到货日期',
+                message: '发货日期不能大于最晚到货日期',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
               this.$message({
               this.$message({
-                message:'发货日期不能为空',
+                message:'发货日期不能为空',
                 type:'warning'
                 type:'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
               this.$message({
               this.$message({
-                message:'最晚到货日期不能为空',
+                message:'最晚到货日期不能为空',
                 type:'warning'
                 type:'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
             if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
               this.$message({
               this.$message({
-                message: '重量不能为空',
+                message: '重量不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
             if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
               this.$message({
               this.$message({
-                message: '发货人不能为空',
+                message: '发货人不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
             if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
               this.$message({
               this.$message({
-                message: '发货人电话不能为空',
+                message: '发货人电话不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
             if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
               this.$message({
               this.$message({
-                message: '收货人不能为空',
+                message: '收货人不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
             if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
               this.$message({
               this.$message({
-                message: '收货人电话不能为空',
+                message: '收货人电话不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
@@ -767,7 +853,7 @@ export default {
               !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
               !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
             ) {
             ) {
               this.$message({
               this.$message({
-                message: '收获详细地址不能为空',
+                message: '收获详细地址不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
@@ -776,7 +862,7 @@ export default {
               !this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress
               !this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress
             ) {
             ) {
               this.$message({
               this.$message({
-                message: '发货详细地址不能为空',
+                message: '发货详细地址不能为空',
                 type: 'warning'
                 type: 'warning'
               })
               })
               return
               return
@@ -786,11 +872,23 @@ export default {
 
 
           this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
           this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
           this.deptBudgetList.tranType = this.checkList.toString()
           this.deptBudgetList.tranType = this.checkList.toString()
+           this.deptBudgetList.startPrivate = CodeToText[this.selectedOptions[0]]
+        this.deptBudgetList.startCity = CodeToText[this.selectedOptions[1]]
+         this.deptBudgetList.startArea = CodeToText[this.selectedOptions[2]]
+          
           for(var i = 0 ; i < this.deptBudgetList.tranProcessInfoList.length ; i++){
           for(var i = 0 ; i < this.deptBudgetList.tranProcessInfoList.length ; i++){
+
             this.deptBudgetList.tranProcessInfoList[i].sort = i
             this.deptBudgetList.tranProcessInfoList[i].sort = i
+            //  this.deptBudgetList.tranProcessInfoList[i].sendPrivate = CodeToText[this.selectedOptions[0]]
+            // this.deptBudgetList.tranProcessInfoList[i].sendCity = CodeToText[this.selectedOptions[1]]
+            //  this.deptBudgetList.tranProcessInfoList[i].sendArea = CodeToText[this.selectedOptions[2]]
+            // this.deptBudgetList.tranProcessInfoList[i].receivePrivate = CodeToText[this.selectedOptions1[0]]
+            // this.deptBudgetList.tranProcessInfoList[i].receiveCity = CodeToText[this.selectedOptions1[1]]
+            //  this.deptBudgetList.tranProcessInfoList[i].receiveArea = CodeToText[this.selectedOptions1[2]]
 
 
           }
           }
-          console.log(this.deptBudgetList.tranProcessInfoList,"数组111")
+          console.log(this.deptBudgetList,"添加对象")
+         
           addtrantask(this.deptBudgetList)
           addtrantask(this.deptBudgetList)
             .toPromise()
             .toPromise()
             .then(response => {
             .then(response => {
@@ -857,7 +955,7 @@ export default {
 
 
   height: 50px;
   height: 50px;
 }
 }
-/deep/.position .el-select {
+/deep/.position .el-select, /deep/.el-select {
   width: 100%;
   width: 100%;
 }
 }
 /deep/.position .ws-info-table .el-form-item .el-form-item__label,
 /deep/.position .ws-info-table .el-form-item .el-form-item__label,

+ 151 - 14
src/views/taskManagement/tranManagementTransportEdit.vue

@@ -99,6 +99,7 @@
             v-model="deptBudgetList.sendWarehouse"
             v-model="deptBudgetList.sendWarehouse"
             placeholder="选择仓库"
             placeholder="选择仓库"
             class="typeselect"
             class="typeselect"
+            @change="sendWarehousechange"
           >
           >
             <el-option
             <el-option
               v-for="item in warehouseList"
               v-for="item in warehouseList"
@@ -183,7 +184,7 @@
         <div class="check-box">
         <div class="check-box">
           <span class="check-box">运输方式</span>
           <span class="check-box">运输方式</span>
           <el-checkbox-group v-model="checkList" prop="tranType">
           <el-checkbox-group v-model="checkList" prop="tranType">
-            <el-checkbox label="汽运"></el-checkbox>
+            <el-checkbox label="汽运" checked></el-checkbox>
             <el-checkbox label="火运"></el-checkbox>
             <el-checkbox label="火运"></el-checkbox>
             <el-checkbox label="船运"></el-checkbox>
             <el-checkbox label="船运"></el-checkbox>
           </el-checkbox-group>
           </el-checkbox-group>
@@ -419,10 +420,13 @@ export default {
       taskwayList: [],
       taskwayList: [],
       name: '',
       name: '',
       age: '',
       age: '',
+      weight: 0,
+      number:2,
     }
     }
   },
   },
   activated() {
   activated() {
     this.loaddata()
     this.loaddata()
+    
     this.showType = this.isShow
     this.showType = this.isShow
   },
   },
   computed: {
   computed: {
@@ -439,6 +443,29 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
+    sendWarehousechange(e) {
+      for (let i = 0; i < this.warehouseList.length; i++) {
+        if (this.warehouseList[i].warehouseName == e) {
+          var tmp = []
+          tmp[0] = TextToCode[this.warehouseList[i].warehousePrivate].code
+          tmp[1] =
+            TextToCode[this.warehouseList[i].warehousePrivate][
+              this.warehouseList[i].warehouseCity
+            ].code
+          tmp[2] =
+            TextToCode[this.warehouseList[i].warehousePrivate][
+              this.warehouseList[i].warehouseCity
+            ][this.warehouseList[i].warehouseArea].code
+          this.selectedOptions = tmp
+          this.deptBudgetList.tranProcessInfoList[0].selectedOptions = tmp
+          this.deptBudgetList.startDetailedAddress =
+            this.warehouseList[i].detailedAddress
+          this.deptBudgetList.tranProcessInfoList[0].sendDetailedAddress =
+            this.warehouseList[i].detailedAddress
+        }
+      }
+    },
+
     warehouseTypechange() {
     warehouseTypechange() {
       getwarehousename({
       getwarehousename({
         compId: this.compId,
         compId: this.compId,
@@ -454,11 +481,28 @@ export default {
     },
     },
     engflagchange(e) {
     engflagchange(e) {
       this.endflag = e
       this.endflag = e
+      if (this.endflag) {
+        this.deptBudgetList.tranProcessInfoList[
+          this.deptBudgetList.tranProcessInfoList.length - 1
+        ].selectedOptions1 = this.selectedOptions1
+        this.deptBudgetList.tranProcessInfoList[
+          this.deptBudgetList.tranProcessInfoList.length - 1
+        ].receiveDetailedAddress = this.deptBudgetList.endDetailedAddress
+      } else {
+        this.deptBudgetList.tranProcessInfoList[
+          this.deptBudgetList.tranProcessInfoList.length - 1
+        ].selectedOptions1 = []
+        this.deptBudgetList.tranProcessInfoList[
+          this.deptBudgetList.tranProcessInfoList.length - 1
+        ].receiveDetailedAddress = ''
+      }
     },
     },
     loaddata() {
     loaddata() {
       examinetran({ id: this.$route.query.id })
       examinetran({ id: this.$route.query.id })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
+          this.deptBudgetList = response
+          this.number = response.tranProcessInfoList.length+1
           if (
           if (
             response.startPrivate != null &&
             response.startPrivate != null &&
             response.startCity != null &&
             response.startCity != null &&
@@ -525,9 +569,9 @@ export default {
                 ][response.tranProcessInfoList[i].receiveArea].code
                 ][response.tranProcessInfoList[i].receiveArea].code
               response.tranProcessInfoList[i].selectedOptions1 = tmp3
               response.tranProcessInfoList[i].selectedOptions1 = tmp3
             }
             }
+            this.weight = response.weight
           }
           }
           this.checkList = response.tranType.split(',')
           this.checkList = response.tranType.split(',')
-          this.deptBudgetList = response
         })
         })
       // 货名
       // 货名
       packList({ constId: 'CON2' })
       packList({ constId: 'CON2' })
@@ -591,11 +635,13 @@ export default {
     },
     },
     add() {
     add() {
       this.deptBudgetList.tranProcessInfoList.push({
       this.deptBudgetList.tranProcessInfoList.push({
+          processNo: this.deptBudgetList.taskNo+(this.number),
+        sort:0,
         tranType: '汽运',
         tranType: '汽运',
         tranTypeKey: '1',
         tranTypeKey: '1',
         deliveryDateStart: '',
         deliveryDateStart: '',
         deliveryDateEnd: '',
         deliveryDateEnd: '',
-        weight: '13',
+        weight: this.weight,
         selectedOptions: [],
         selectedOptions: [],
         selectedOptions1: [],
         selectedOptions1: [],
         sendPrivate: '',
         sendPrivate: '',
@@ -611,6 +657,7 @@ export default {
         senderPhone: '',
         senderPhone: '',
         receiverPhone: '',
         receiverPhone: '',
       })
       })
+      this.number++
     },
     },
     del(index) {
     del(index) {
       if (this.deptBudgetList.tranProcessInfoList.length > 1) {
       if (this.deptBudgetList.tranProcessInfoList.length > 1) {
@@ -651,6 +698,84 @@ export default {
     submit() {
     submit() {
       this.$refs.deptBudgetList.validate((valid) => {
       this.$refs.deptBudgetList.validate((valid) => {
         if (valid) {
         if (valid) {
+          if (!this.deptBudgetList.taskNo) {
+          this.$message({
+            message: '任务编号不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+          if (!this.deptBudgetList.taskType) {
+          this.$message({
+            message: '任务类型不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.contractNo) {
+          this.$message({
+            message: '合同编号/移库任务编号不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.goodsName) {
+          this.$message({
+            message: '货名不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+           if (!this.deptBudgetList.weight) {
+          this.$message({
+            message: '重量(吨)不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.sendWarehouse) {
+          this.$message({
+            message: '发货仓库不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.selectedOptions.length <= 0) {
+          this.$message({
+            message: '始发地不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+      
+         if (!this.deptBudgetList.startDetailedAddress) {
+          this.$message({
+            message: '始发地详细地址不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.selectedOptions1.length <= 0) {
+          this.$message({
+            message: '终到地不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+         if (!this.deptBudgetList.endDetailedAddress) {
+          this.$message({
+            message: '终到地详细地址不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+          if (this.checkList.length <= 0) {
+            this.$message({
+              message: '运输方式多选框不能为空!',
+              type: 'warning',
+            })
+            return
+          }
           for (
           for (
             var i = 0;
             var i = 0;
             i < this.deptBudgetList.tranProcessInfoList.length;
             i < this.deptBudgetList.tranProcessInfoList.length;
@@ -667,56 +792,56 @@ export default {
               ).getTime()
               ).getTime()
             ) {
             ) {
               this.$message({
               this.$message({
-                message: '发货日期不能大于最晚到货日期',
+                message: '发货日期不能大于最晚到货日期',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
               this.$message({
               this.$message({
-                message: '发货日期不能为空',
+                message: '发货日期不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
             if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
               this.$message({
               this.$message({
-                message: '最晚到货日期不能为空',
+                message: '最晚到货日期不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
             if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
               this.$message({
               this.$message({
-                message: '重量不能为空',
+                message: '重量不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
             if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
               this.$message({
               this.$message({
-                message: '发货人不能为空',
+                message: '发货人不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
             if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
               this.$message({
               this.$message({
-                message: '发货人电话不能为空',
+                message: '发货人电话不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
             if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
               this.$message({
               this.$message({
-                message: '收货人不能为空',
+                message: '收货人不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
             }
             }
             if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
             if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
               this.$message({
               this.$message({
-                message: '收货人电话不能为空',
+                message: '收货人电话不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
@@ -725,7 +850,7 @@ export default {
               !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
               !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
             ) {
             ) {
               this.$message({
               this.$message({
-                message: '收获详细地址不能为空',
+                message: '收获详细地址不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
@@ -734,7 +859,7 @@ export default {
               !this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress
               !this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress
             ) {
             ) {
               this.$message({
               this.$message({
-                message: '发货详细地址不能为空',
+                message: '发货详细地址不能为空',
                 type: 'warning',
                 type: 'warning',
               })
               })
               return
               return
@@ -742,6 +867,18 @@ export default {
           }
           }
           this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
           this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
           this.deptBudgetList.tranType = this.checkList.toString()
           this.deptBudgetList.tranType = this.checkList.toString()
+          this.deptBudgetList.startPrivate = CodeToText[this.selectedOptions[0]]
+        this.deptBudgetList.startCity = CodeToText[this.selectedOptions[1]]
+         this.deptBudgetList.startArea = CodeToText[this.selectedOptions[2]]
+        //  for(var i = 0; i< this.deptBudgetList.tranProcessInfoList.length ; i++){
+        //     this.deptBudgetList.tranProcessInfoList[i].sort = i
+        //    this.deptBudgetList.tranProcessInfoList[i].sendPrivate = CodeToText[this.selectedOptions[0]]
+        //     this.deptBudgetList.tranProcessInfoList[i].sendCity = CodeToText[this.selectedOptions[1]]
+        //      this.deptBudgetList.tranProcessInfoList[i].sendArea = CodeToText[this.selectedOptions[2]]
+        //     this.deptBudgetList.tranProcessInfoList[i].receivePrivate = CodeToText[this.selectedOptions1[0]]
+        //     this.deptBudgetList.tranProcessInfoList[i].receiveCity = CodeToText[this.selectedOptions1[1]]
+        //      this.deptBudgetList.tranProcessInfoList[i].receiveArea = CodeToText[this.selectedOptions1[2]]
+        //  }
           edittran(this.deptBudgetList)
           edittran(this.deptBudgetList)
             .toPromise()
             .toPromise()
             .then((response) => {
             .then((response) => {
@@ -915,7 +1052,7 @@ export default {
   height: 73vh;
   height: 73vh;
   overflow: scroll;
   overflow: scroll;
 }
 }
-.el-cascader{
+.el-cascader {
   width: 100%;
   width: 100%;
 }
 }
 </style>
 </style>

+ 1 - 2
src/views/taskManagement/tranManagementWarehouseInOutTask.vue

@@ -632,8 +632,7 @@ export default {
   margin-left: 766px;
   margin-left: 766px;
 }
 }
 .el-pagination {
 .el-pagination {
-  margin-bottom: 20px;
-  margin-left: 40%;
+ text-align: center;
 }
 }
 .winseaview-main {
 .winseaview-main {
   background: #e8ecf6;
   background: #e8ecf6;

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

@@ -463,6 +463,9 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
+      if(this.inOutDate != null){
+
+      
      if (this.inOutDate.length > 0) {
      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])
@@ -470,6 +473,7 @@ export default {
         this.startDate = ''
         this.startDate = ''
         this.endDate = ''
         this.endDate = ''
       }
       }
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     },
     },

+ 4 - 0
src/views/tranManagement/tranManagementShipping.vue

@@ -423,6 +423,9 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
+      if(this.inOutDate != null){
+
+ 
       if (this.inOutDate.length > 0) {
       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])
@@ -430,6 +433,7 @@ export default {
         this.startDate = ''
         this.startDate = ''
         this.endDate = ''
         this.endDate = ''
       }
       }
+           }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     },
     },

+ 3 - 7
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -155,7 +155,6 @@
                 >{{ item.driverPhone }}
                 >{{ item.driverPhone }}
               </span>
               </span>
             </ws-form-item>
             </ws-form-item>
-             <el-divider direction="vertical" class="line"></el-divider>
             <!--车牌号-->
             <!--车牌号-->
             <ws-form-item label="车牌号:" span="1" prop="carNo">
             <ws-form-item label="车牌号:" span="1" prop="carNo">
               <ws-input
               <ws-input
@@ -169,7 +168,6 @@
                 >{{ item.carNo }}
                 >{{ item.carNo }}
               </span>
               </span>
             </ws-form-item>
             </ws-form-item>
-             <el-divider direction="vertical" class="line"></el-divider>
             <!--装车净重-->
             <!--装车净重-->
             <ws-form-item label="装车净重:" span="1" prop="loadNetWeight">
             <ws-form-item label="装车净重:" span="1" prop="loadNetWeight">
               <ws-input
               <ws-input
@@ -179,7 +177,6 @@
                 size="small"
                 size="small"
               />
               />
             </ws-form-item>
             </ws-form-item>
-             <el-divider direction="vertical" class="line"></el-divider>
             <!--磅单-->
             <!--磅单-->
             <ws-form-item label="磅单:" span="1" prop="loadPoundImg">
             <ws-form-item label="磅单:" span="1" prop="loadPoundImg">
               <template slot-scope="scope">
               <template slot-scope="scope">
@@ -959,10 +956,10 @@ export default {
 }
 }
 //联络员及车次
 //联络员及车次
 /deep/.liaison .ws-info-table .el-form-item {
 /deep/.liaison .ws-info-table .el-form-item {
-  width: 18%;
+  width: 20%;
 }
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
-  width: 41%;
+  width: 35%;
   background: #f6f7fc;
   background: #f6f7fc;
 }
 }
 /deep/.liaison .flex {
 /deep/.liaison .flex {
@@ -1009,7 +1006,6 @@ export default {
   border-radius: 3px;
   border-radius: 3px;
   border: 1px solid #5473e8;
   border: 1px solid #5473e8;
   padding: 0 3px;
   padding: 0 3px;
-  margin-left: 90px;
   color: #ffffff;
   color: #ffffff;
   background: #c4cada;
   background: #c4cada;
   line-height: 24px;
   line-height: 24px;
@@ -1021,7 +1017,7 @@ export default {
   border-radius: 3px;
   border-radius: 3px;
   border: 1px solid #5473e8;
   border: 1px solid #5473e8;
   padding: 0 3px;
   padding: 0 3px;
-  margin-left: 90px;
+  margin-left: 18px;
   color: #5473E8;
   color: #5473E8;
   line-height: 24px;
   line-height: 24px;
 }
 }

+ 4 - 0
src/views/tranManagement/tranManagementTransporHairRespond.vue

@@ -410,6 +410,9 @@ export default {
       }
       }
     },
     },
     find() {
     find() {
+      if(this.inOutDate != null){
+
+      
      if (this.inOutDate.length > 0) {
      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])
@@ -417,6 +420,7 @@ export default {
         this.startDate = ''
         this.startDate = ''
         this.endDate = ''
         this.endDate = ''
       }
       }
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     }
     }

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

@@ -45,8 +45,6 @@
           type="input"
           type="input"
           class="findValue"
           class="findValue"
         ></ws-input>
         ></ws-input>
-
-        <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
         <ws-button class="find" type="primary" @click="find()"
         <ws-button class="find" type="primary" @click="find()"
           ><img
           ><img
             width="16"
             width="16"
@@ -426,13 +424,15 @@ export default {
         })
         })
     },
     },
     find() {
     find() {
-      if (this.inOutDate.length > 0) {
+      if(this.inOutDate != null){
+      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 {
         this.startDate = ''
         this.startDate = ''
         this.endDate = ''
         this.endDate = ''
       }
       }
+      }
       this.currentPage = 1
       this.currentPage = 1
       this.getList()
       this.getList()
     },
     },

+ 14 - 43
src/views/tranManagement/tranManagementTransporTrainDetails.vue

@@ -99,22 +99,22 @@
           <ws-form-item label="姓名:" span="1" prop="driver">
           <ws-form-item label="姓名:" span="1" prop="driver">
             {{ item.driver }}
             {{ item.driver }}
           </ws-form-item>
           </ws-form-item>
-         
+
           <!--电话-->
           <!--电话-->
           <ws-form-item label="电话:" span="1" prop="driverPhone">
           <ws-form-item label="电话:" span="1" prop="driverPhone">
             {{ item.driverPhone }}
             {{ item.driverPhone }}
           </ws-form-item>
           </ws-form-item>
-        
+
           <!--发车日期-->
           <!--发车日期-->
           <ws-form-item label="发车日期:" span="1" prop="sendDateStart">
           <ws-form-item label="发车日期:" span="1" prop="sendDateStart">
             {{ item.sendDateStart }}
             {{ item.sendDateStart }}
           </ws-form-item>
           </ws-form-item>
-          
+
           <!--到站日期-->
           <!--到站日期-->
           <ws-form-item label="到站日期:" span="1" prop="receiveDateEnd">
           <ws-form-item label="到站日期:" span="1" prop="receiveDateEnd">
             {{ item.receiveDateEnd }}
             {{ item.receiveDateEnd }}
           </ws-form-item>
           </ws-form-item>
-          
+
           <!--车型-->
           <!--车型-->
           <ws-form-item label="车型:" span="1" prop="carModel">
           <ws-form-item label="车型:" span="1" prop="carModel">
             {{ item.carModel }}
             {{ item.carModel }}
@@ -174,24 +174,15 @@ export default {
   },
   },
   data() {
   data() {
     return {
     return {
-      staffList: [],
       deptBudgetList: {
       deptBudgetList: {
         totalStorage: 0,
         totalStorage: 0,
         tranCarInfoList: [],
         tranCarInfoList: [],
       },
       },
       options_: regionData,
       options_: regionData,
-      heightData: '600px',
-      zoom: 7,
       selectedOptions: [],
       selectedOptions: [],
       center: [116.244694, 39.517344],
       center: [116.244694, 39.517344],
-      window: '',
-      radio: 1,
-      personCharge: [],
-      district: null,
-      driverList: [],
       listDate: { country: '中国', level: 'country', city: '' },
       listDate: { country: '中国', level: 'country', city: '' },
       citylist: [],
       citylist: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
       tranType: 2,
       tranType: 2,
       rules: {
       rules: {
         warehouseName: [
         warehouseName: [
@@ -208,15 +199,9 @@ export default {
           },
           },
         ],
         ],
       },
       },
-      appendixIdsAdd: '',
       size: 10,
       size: 10,
-      value1: '',
       unitList: [],
       unitList: [],
-      freightspace: [
-        // {
-        //   trainNo: '',
-        // },
-      ],
+      freightspace: [],
       name: '',
       name: '',
       list: [],
       list: [],
       staffList: [],
       staffList: [],
@@ -226,7 +211,6 @@ export default {
       arr: [],
       arr: [],
     }
     }
   },
   },
-
   activated() {
   activated() {
     this.deptBudgetList.id = this.$route.query.id
     this.deptBudgetList.id = this.$route.query.id
     this.getList()
     this.getList()
@@ -241,22 +225,14 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
-    marker: function (item) {
-      this.deptBudgetList.warehousePositioning =
-        item.lnglat.lat + ',' + item.lnglat.lng
-    },
-    selectedAddress(e) {
-      this.deptBudgetList.warehousePositioning =
-        e.center.lat + ',' + e.center.lng
-    },
     confirmPositioncity() {
     confirmPositioncity() {
       this.listDate.level = 'city'
       this.listDate.level = 'city'
       this.listDate.country = this.name
       this.listDate.country = this.name
     },
     },
     // 关闭 dialog时 处理文件url 初始化upload组件
     // 关闭 dialog时 处理文件url 初始化upload组件
-    handleClose() {
-      this.dialogViewSpareMoney = false
-    },
+    // handleClose() {
+    //   this.dialogViewSpareMoney = false
+    // },
     handleChange(value) {
     handleChange(value) {
       this.selectedOptions = value
       this.selectedOptions = value
     },
     },
@@ -283,24 +259,19 @@ export default {
         .then((response) => {
         .then((response) => {
           this.deptBudgetList = response
           this.deptBudgetList = response
           this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
           this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
-          if (this.deptBudgetList.tranCarInfoList.length > 0) {      
+          if (this.deptBudgetList.tranCarInfoList.length > 0) {
             if (response.tranCarInfoList[0].boxNo) {
             if (response.tranCarInfoList[0].boxNo) {
               this.list = response.tranCarInfoList[0].boxNo.split(',')
               this.list = response.tranCarInfoList[0].boxNo.split(',')
               for (var i = 0; i < this.list.length; i++) {
               for (var i = 0; i < this.list.length; i++) {
                 var num = this.list[i]
                 var num = this.list[i]
                 this.freightspace.push({
                 this.freightspace.push({
-                  'trainNo': num,
+                  trainNo: num,
                 })
                 })
               }
               }
             }
             }
           }
           }
         })
         })
     },
     },
-    handleExamine() {},
-    approve() {},
-    // returnsales() {
-    //   this.$router.push({ path: 'purchaseContract' })
-    // },
     selectChapterTwo(e) {
     selectChapterTwo(e) {
       for (var i = 0; i < this.ChapterTwoList.length; i++) {
       for (var i = 0; i < this.ChapterTwoList.length; i++) {
         if (this.ChapterTwoList[i].constValue == e) {
         if (this.ChapterTwoList[i].constValue == e) {
@@ -657,7 +628,7 @@ export default {
   color: #8890b1;
   color: #8890b1;
   padding: 0 25px;
   padding: 0 25px;
   border-left: 1px solid transparent;
   border-left: 1px solid transparent;
-  background: #F5F7FA;
+  background: #f5f7fa;
 }
 }
 /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
 /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
   border: 0px;
   border: 0px;
@@ -681,8 +652,8 @@ export default {
   border: 1px solid #d8dce6;
   border: 1px solid #d8dce6;
 }
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
-border-right: 1px solid #D8DCE6;
-padding: 0px;
-border-radius: 0px;
+  border-right: 1px solid #d8dce6;
+  padding: 0px;
+  border-radius: 0px;
 }
 }
 </style>
 </style>

+ 26 - 64
src/views/tranManagement/tranManagementTransporTrainNo.vue

@@ -21,7 +21,6 @@
         >
         >
       </el-col>
       </el-col>
     </el-row>
     </el-row>
-
     <ws-form
     <ws-form
       class="position"
       class="position"
       ref="deptBudgetList"
       ref="deptBudgetList"
@@ -90,7 +89,7 @@
       <div
       <div
         class="liaison"
         class="liaison"
         v-for="(item, index) in deptBudgetList.tranCarInfoList"
         v-for="(item, index) in deptBudgetList.tranCarInfoList"
-        :key='index'
+        :key="index"
       >
       >
         <ws-info-table>
         <ws-info-table>
           <!--姓名-->
           <!--姓名-->
@@ -139,13 +138,12 @@
               value-format="yyyy-MM-dd"
               value-format="yyyy-MM-dd"
             />
             />
           </ws-form-item>
           </ws-form-item>
-           <!--车型-->
+          <!--车型-->
           <ws-form-item label="车型" span="1" prop="carModel">
           <ws-form-item label="车型" span="1" prop="carModel">
             <el-select
             <el-select
               v-model="item.carModel"
               v-model="item.carModel"
               placeholder="请选择车型"
               placeholder="请选择车型"
               filterable
               filterable
-        
             >
             >
               <el-option
               <el-option
                 v-for="items in carModel"
                 v-for="items in carModel"
@@ -189,17 +187,10 @@
         </ws-info-table>
         </ws-info-table>
       </div>
       </div>
       <el-button class="add bg-bottom" type="primary" size="small" @click="add">
       <el-button class="add bg-bottom" type="primary" size="small" @click="add">
-        <img
-          width="22"
-          height="22"
-          @click="add"
-          src="../../../public/img/add.png"
-          alt=""
-        />
+        <img width="22" height="22" src="../../../public/img/add.png" alt="" />
         <div class="spans">添加车厢</div>
         <div class="spans">添加车厢</div>
       </el-button>
       </el-button>
     </ws-form>
     </ws-form>
-
     <!-- 提交 -->
     <!-- 提交 -->
     <div style="text-align: right; padding: 10px" class="center">
     <div style="text-align: right; padding: 10px" class="center">
       <el-button
       <el-button
@@ -238,18 +229,12 @@ export default {
         totalStorage: 0,
         totalStorage: 0,
       },
       },
       options_: regionData,
       options_: regionData,
-      heightData: '600px',
-      zoom: 7,
       selectedOptions: [],
       selectedOptions: [],
       center: [116.244694, 39.517344],
       center: [116.244694, 39.517344],
-      window: '',
-      radio: 1,
       personCharge: [],
       personCharge: [],
-      district: null,
       driverList: [],
       driverList: [],
       listDate: { country: '中国', level: 'country', city: '' },
       listDate: { country: '中国', level: 'country', city: '' },
       citylist: [],
       citylist: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
       tranType: 2,
       tranType: 2,
       rules: {
       rules: {
         warehouseName: [
         warehouseName: [
@@ -266,9 +251,7 @@ export default {
           },
           },
         ],
         ],
       },
       },
-      appendixIdsAdd: '',
       size: 10,
       size: 10,
-      value1: '',
       unitList: [],
       unitList: [],
       freightspace: [],
       freightspace: [],
       name: '',
       name: '',
@@ -319,10 +302,6 @@ export default {
         }
         }
       }
       }
     },
     },
-    marker: function (item) {
-      this.deptBudgetList.warehousePositioning =
-        item.lnglat.lat + ',' + item.lnglat.lng
-    },
     selectedAddress(e) {
     selectedAddress(e) {
       this.deptBudgetList.warehousePositioning =
       this.deptBudgetList.warehousePositioning =
         e.center.lat + ',' + e.center.lng
         e.center.lat + ',' + e.center.lng
@@ -332,9 +311,9 @@ export default {
       this.listDate.country = this.name
       this.listDate.country = this.name
     },
     },
     // 关闭 dialog时 处理文件url 初始化upload组件
     // 关闭 dialog时 处理文件url 初始化upload组件
-    handleClose() {
-      this.dialogViewSpareMoney = false
-    },
+    // handleClose() {
+    //   this.dialogViewSpareMoney = false
+    // },
     add() {
     add() {
       this.freightspace.push({
       this.freightspace.push({
         trainNo: '',
         trainNo: '',
@@ -346,7 +325,6 @@ export default {
       }
       }
     },
     },
     //下拉司机姓名改变事件
     //下拉司机姓名改变事件
-    selectdriver() {},
     handleChange(value) {
     handleChange(value) {
       this.selectedOptions = value
       this.selectedOptions = value
     },
     },
@@ -356,9 +334,6 @@ export default {
       this.selectedOptions = ''
       this.selectedOptions = ''
       this.$router.go(-1)
       this.$router.go(-1)
     },
     },
-    // confirmPosition() {
-    //   this.draggable = false
-    // },
     // 上传附件
     // 上传附件
     uploadSuccess(data, files, url) {
     uploadSuccess(data, files, url) {
       console.log(data, files, url)
       console.log(data, files, url)
@@ -477,10 +452,6 @@ export default {
           return false
           return false
         })
         })
     },
     },
-    resetForm(deptBudgetList) {
-      this.$refs[deptBudgetList].resetFields()
-    },
-
     getList() {
     getList() {
       seeCat({ id: this.deptBudgetList.id })
       seeCat({ id: this.deptBudgetList.id })
         .toPromise()
         .toPromise()
@@ -507,7 +478,7 @@ export default {
               },
               },
             ]
             ]
           }
           }
-          if (!this.deptBudgetList.tranCarInfoList[0].boxNo ) {
+          if (!this.deptBudgetList.tranCarInfoList[0].boxNo) {
             this.freightspace = [
             this.freightspace = [
               {
               {
                 trainNo: '',
                 trainNo: '',
@@ -530,11 +501,6 @@ export default {
           this.carModel = response
           this.carModel = response
         })
         })
     },
     },
-    handleExamine() {},
-    approve() {},
-    // returnsales() {
-    //   this.$router.push({ path: 'purchaseContract' })
-    // },
     selectChapterTwo(e) {
     selectChapterTwo(e) {
       for (var i = 0; i < this.ChapterTwoList.length; i++) {
       for (var i = 0; i < this.ChapterTwoList.length; i++) {
         if (this.ChapterTwoList[i].constValue == e) {
         if (this.ChapterTwoList[i].constValue == e) {
@@ -653,11 +619,6 @@ export default {
 .el-col {
 .el-col {
   background: #f6f7fc;
   background: #f6f7fc;
 }
 }
-/deep/.ws-info-table .el-form-item .el-form-item__content {
-  padding: 0 25px;
-  border-left: 1px solid transparent;
-  background: #fff;
-}
 /deep/.ws-info-table .el-form-item .el-form-item__label {
 /deep/.ws-info-table .el-form-item .el-form-item__label {
   width: 100px;
   width: 100px;
   text-align: center;
   text-align: center;
@@ -837,18 +798,7 @@ export default {
   border: none;
   border: none;
   height: 50px;
   height: 50px;
 }
 }
-/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 {
 /deep/.ws-info-table .el-form-item .el-form-item__label {
   background-color: #fff;
   background-color: #fff;
   font-size: 14px;
   font-size: 14px;
@@ -856,11 +806,7 @@ export default {
   color: #8890b1;
   color: #8890b1;
   line-height: 16px;
   line-height: 16px;
 }
 }
-/deep/.ws-info-table .el-form-item .el-form-item__content {
-  background: #f5f7fa;
-  border-radius: 4px;
-  border: 1px solid #d8dce6;
-}
+
 /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
 /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
   border: 0px;
   border: 0px;
 }
 }
@@ -869,7 +815,7 @@ export default {
   width: 20%;
   width: 20%;
 }
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
-  width: 30%;
+  width: 40%;
   border: 0px solid #d8dce6;
   border: 0px solid #d8dce6;
   background: #f5f7fa;
   background: #f5f7fa;
 }
 }
@@ -884,6 +830,7 @@ export default {
 }
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
   border: none;
   border: none;
+  border-radius: 0px;
 }
 }
 .add {
 .add {
   width: 100px;
   width: 100px;
@@ -915,4 +862,19 @@ export default {
   border-radius: 10px;
   border-radius: 10px;
   right: 20px;
   right: 20px;
 }
 }
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+  margin-bottom: 5px;
+  background-color: #fff;
+  font-size: 14px;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+  padding: 0 25px;
+  background: #f6f7fc;
+}
+/deep/.liaison .ws-info-table .el-form-item .el-form-item__content{
+  padding: 0px;
+}
 </style>
 </style>

+ 48 - 52
src/views/tranManagement/tranManagementVehicle.vue

@@ -235,9 +235,6 @@ export default {
     }
     }
   },
   },
   activated() {
   activated() {
-    //cg.viewBudget
-    //cg.viewSpareMoney
-    // this.getVesselData();
     this.getList()
     this.getList()
     this.showType = this.isShow
     this.showType = this.isShow
   },
   },
@@ -251,37 +248,37 @@ export default {
         },
         },
       })
       })
     },
     },
-    getSpanArr(data) {
-      let that = this
+    // getSpanArr(data) {
+    //   let that = this
 
 
-      //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
+    //   //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
 
 
-      that.spanArr = []
+    //   that.spanArr = []
 
 
-      that.pos = 0
+    //   that.pos = 0
 
 
-      //遍历数据
+    //   //遍历数据
 
 
-      data.forEach((item, index) => {
-        //判断是否是第一项
+    //   data.forEach((item, index) => {
+    //     //判断是否是第一项
 
 
-        // if (index === 0) {
-        //   this.spanArr.push(1)
-        //   this.pos = 0
-        // } 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 (index === 0) {
+    //     //   this.spanArr.push(1)
+    //     //   this.pos = 0
+    //     // } 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
+    //     }
+    //     // }
+    //   })
+    // },
     //查看//传参
     //查看//传参
     nocomplete(row) {
     nocomplete(row) {
       this.$router.push({
       this.$router.push({
@@ -329,7 +326,6 @@ export default {
     changestatus(state){
     changestatus(state){
       this.searchType = state
       this.searchType = state
       this.getList()
       this.getList()
-
     },
     },
     getList() {
     getList() {
       automobileList({
       automobileList({
@@ -388,30 +384,30 @@ export default {
         }
         }
       }
       }
     },
     },
-    fujian(row) {
-      if (
-        row.receiveAttachmentPath === null ||
-        row.receiveAttachmentPath === ''
-      ) {
-        EventBus.$emit(
-          'warning',
-          this.$t('system.noticeCircular.NoInformation')
-        )
-      } else {
-        this.accessoryTFs = true
-      }
-      this.appendixIdss = row.receiveAttachmentPath
-    },
-    handleExamine(row) {
-      this.$router.push({
-        name: 'salesContractExamine',
-        query: { id: row.id },
-      })
-    },
+    // fujian(row) {
+    //   if (
+    //     row.receiveAttachmentPath === null ||
+    //     row.receiveAttachmentPath === ''
+    //   ) {
+    //     EventBus.$emit(
+    //       'warning',
+    //       this.$t('system.noticeCircular.NoInformation')
+    //     )
+    //   } else {
+    //     this.accessoryTFs = true
+    //   }
+    //   this.appendixIdss = row.receiveAttachmentPath
+    // },
+    // handleExamine(row) {
+    //   this.$router.push({
+    //     name: 'salesContractExamine',
+    //     query: { id: row.id },
+    //   })
+    // },
     // 关闭 dialog时 处理文件url 初始化upload组件
     // 关闭 dialog时 处理文件url 初始化upload组件
-    handleCloe() {
-      this.dialogViewSpareMoney = false
-    },
+    // handleCloe() {
+    //   this.dialogViewSpareMoney = false
+    // },
     history(row) {
     history(row) {
       billoperatehis({ id: row.id })
       billoperatehis({ id: row.id })
         .toPromise()
         .toPromise()

+ 5 - 19
src/views/tranManagement/tranManagementVehicleDispatching.vue

@@ -186,7 +186,7 @@
                 <ws-input
                 <ws-input
                   :disabled="readonly"
                   :disabled="readonly"
                   v-model="item.carNo"
                   v-model="item.carNo"
-                  placeholder=""
+                  placeholder="请输入车牌号"
                   maxlength="120"
                   maxlength="120"
                   size="small"
                   size="small"
                 />
                 />
@@ -223,7 +223,7 @@
               </ws-form-item>
               </ws-form-item>
               <!--载重吨-->
               <!--载重吨-->
               <ws-form-item
               <ws-form-item
-                label="载重(吨):"
+                label="载重(吨):"
                 span="1"
                 span="1"
                 prop="loadWeight"
                 prop="loadWeight"
                 class="siji zaizhong"
                 class="siji zaizhong"
@@ -312,9 +312,6 @@ export default {
       carList: [],
       carList: [],
       // 提交类型
       // 提交类型
       readonly: true,
       readonly: true,
-      appendixIdsAdd: '',
-      onChange: {},
-      gradeList: [],
       rules: {
       rules: {
         netWeight: [
         netWeight: [
           {
           {
@@ -327,17 +324,13 @@ export default {
       },
       },
       size: 10,
       size: 10,
       compId: sessionStorage.getItem('ws-pf_compId'),
       compId: sessionStorage.getItem('ws-pf_compId'),
-      deptCircularPage: {},
-      packtypeList: {},
       date: {
       date: {
         year: dayjs().format('YYYY'),
         year: dayjs().format('YYYY'),
         month: dayjs().format('MM'),
         month: dayjs().format('MM'),
       },
       },
-      contractList: [],
       deptBudgetList: {
       deptBudgetList: {
         tranCarInfoList: [],
         tranCarInfoList: [],
       },
       },
-      historyList: [],
       pickerBeginDateBefore: {
       pickerBeginDateBefore: {
         disabledDate: (time) => {
         disabledDate: (time) => {
           return time.getTime() > Date.now()
           return time.getTime() > Date.now()
@@ -534,15 +527,6 @@ export default {
         }
         }
       }
       }
     },
     },
-    // selecttaskType(e) {
-    //   for (var i = 0; i < this.taskTypeList.length; i++) {
-    //     if (this.taskTypeList[i].value == e) {
-    //       this.searchType = this.taskTypeList[i].type
-    //     }
-    //   }
-    // },
-    // approve() {},
-    // listQuery() {},
   },
   },
 }
 }
 </script>
 </script>
@@ -650,6 +634,7 @@ export default {
   border-radius: 4px;
   border-radius: 4px;
   color: #8890b1;
   color: #8890b1;
   font-size: 14px;
   font-size: 14px;
+  padding: 0 25px;
 }
 }
 /deep/.driver .ws-info-table .el-form-item .el-form-item__label {
 /deep/.driver .ws-info-table .el-form-item .el-form-item__label {
   width: 72px;
   width: 72px;
@@ -664,7 +649,7 @@ export default {
   height: 50px;
   height: 50px;
 }
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
-  width: 40%;
+  width: 50%;
   border: 0px solid #d8dce6;
   border: 0px solid #d8dce6;
   background: #f5f7fa;
   background: #f5f7fa;
   text-align: center;
   text-align: center;
@@ -677,6 +662,7 @@ export default {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
   border: none;
   border: none;
   background: #f5f7fa;
   background: #f5f7fa;
+  padding: 0px;
 }
 }
 .catNos {
 .catNos {
   width: 100%;
   width: 100%;

+ 25 - 62
src/views/tranManagement/tranManagementVehicleLook.vue

@@ -22,7 +22,6 @@
         </el-button>
         </el-button>
       </el-col>
       </el-col>
     </el-row>
     </el-row>
-
     <ws-form ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
     <ws-form ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
       <div class="small-title" style="font-size: 16px">任务详情</div>
       <div class="small-title" style="font-size: 16px">任务详情</div>
       <ws-info-table>
       <ws-info-table>
@@ -105,7 +104,6 @@
           <ws-form-item label="姓名:" span="1" prop="driver">{{
           <ws-form-item label="姓名:" span="1" prop="driver">{{
             item.driver
             item.driver
           }}</ws-form-item>
           }}</ws-form-item>
-          <!-- <el-divider direction="vertical" class="line"></el-divider> -->
           <ws-form-item
           <ws-form-item
             class="phone"
             class="phone"
             label="电话:"
             label="电话:"
@@ -113,51 +111,44 @@
             prop="driverPhone"
             prop="driverPhone"
             >{{ item.driverPhone }}</ws-form-item
             >{{ item.driverPhone }}</ws-form-item
           >
           >
-          <!-- <el-divider direction="vertical" class="line"></el-divider> -->
           <ws-form-item label="车牌号:" span="1" prop="carNo">
           <ws-form-item label="车牌号:" span="1" prop="carNo">
             <template slot-scope="scope">
             <template slot-scope="scope">
-            <el-popover
-              placement="top"
-              :width="160"
-              trigger="hover"
-              visible-arrow="false"
-              @show="hover(scope.row)"
-            >
-              <template>
-                <span slot="reference">
-                  <span
-                    class="executory"
-                  >
-                  {{ item.carNo }}
+              <el-popover
+                placement="top"
+                :width="160"
+                trigger="hover"
+                visible-arrow="false"
+                @show="hover(scope.row)"
+              >
+                <template>
+                  <span slot="reference">
+                    <span class="executory">
+                      {{ item.carNo }}
+                    </span>
                   </span>
                   </span>
-                </span>
-              </template>
-              <div>
+                </template>
+                <div>
                   <span>车型:</span>
                   <span>车型:</span>
-                  <span>{{item.carModel }}</span>
-                  <br>
+                  <span>{{ item.carModel }}</span>
+                  <br />
                   <span>车长(米):</span>
                   <span>车长(米):</span>
-                  <span>{{item.carLength}}</span>
-                  <br>
-                   <span>载重(吨):</span>
-                  <span>{{item.loadWeight}}</span>
-              </div>
-            </el-popover>
-          </template>
+                  <span>{{ item.carLength }}</span>
+                  <br />
+                  <span>载重(吨):</span>
+                  <span>{{ item.loadWeight }}</span>
+                </div>
+              </el-popover>
+            </template>
           </ws-form-item>
           </ws-form-item>
-          <!-- <el-divider direction="vertical" class="line"></el-divider> -->
           <ws-form-item label="装车(吨):" span="1" prop="loadNetWeight">{{
           <ws-form-item label="装车(吨):" span="1" prop="loadNetWeight">{{
             item.loadNetWeight
             item.loadNetWeight
           }}</ws-form-item>
           }}</ws-form-item>
-          <!-- <el-divider direction="vertical" class="line"></el-divider> -->
           <ws-form-item label="卸车(吨):" span="1" prop="unloadNetWeight">{{
           <ws-form-item label="卸车(吨):" span="1" prop="unloadNetWeight">{{
             item.unloadNetWeight
             item.unloadNetWeight
           }}</ws-form-item>
           }}</ws-form-item>
-          <!-- <el-divider direction="vertical" class="line"></el-divider> -->
           <ws-form-item label="损耗(吨):" span="1" prop="loss">{{
           <ws-form-item label="损耗(吨):" span="1" prop="loss">{{
             item.loss
             item.loss
           }}</ws-form-item>
           }}</ws-form-item>
-          <!-- <el-divider direction="vertical" class="line"></el-divider> -->
           <ws-form-item
           <ws-form-item
             label="合同:"
             label="合同:"
             span="1"
             span="1"
@@ -182,7 +173,6 @@
 import Pagination from '@/components/Pagination'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
 import WsUpload from '@/components/WsUpload'
 import { seeCat } from '@/model/transport/index'
 import { seeCat } from '@/model/transport/index'
-// import { dayjs, fmoney, EventBus } from 'base-core-lib'
 import { dayjs } from 'base-core-lib'
 import { dayjs } from 'base-core-lib'
 export default {
 export default {
   name: 'viewSpareMoney',
   name: 'viewSpareMoney',
@@ -191,34 +181,22 @@ export default {
     Pagination,
     Pagination,
   },
   },
   watch: {
   watch: {
-    // vesselId(val) {
-    //   this.getList()
-    // },
     isShow(val) {
     isShow(val) {
       this.showType = val
       this.showType = val
     },
     },
   },
   },
   data() {
   data() {
     return {
     return {
-      //弹出框
-      dialogViewSpareMoney: false,
-      dialogApproveFormVisible: false,
-      // 船舶类型
-      monetaryKey: null,
-      // 表格显示数据
-      tableDate: [],
       // 是否显示
       // 是否显示
       showType: true,
       showType: true,
       // 年
       // 年
       year: '',
       year: '',
-      deptBudgetTotal: 0,
       currentPage: 1,
       currentPage: 1,
       pageSize: 10,
       pageSize: 10,
       searchType: 1,
       searchType: 1,
       startDate: null,
       startDate: null,
       endDate: null,
       endDate: null,
-      // 提交类型
-      submitType: true,
+
       readonly: true,
       readonly: true,
       rules: {
       rules: {
         netWeight: [
         netWeight: [
@@ -231,7 +209,6 @@ export default {
         ],
         ],
       },
       },
       size: 10,
       size: 10,
-      compId: sessionStorage.getItem('ws-pf_compId'),
       date: {
       date: {
         year: dayjs().format('YYYY'),
         year: dayjs().format('YYYY'),
         month: dayjs().format('MM'),
         month: dayjs().format('MM'),
@@ -282,15 +259,6 @@ export default {
           this.deptBudgetList = response
           this.deptBudgetList = response
         })
         })
     },
     },
-    handleExamine(row) {
-      this.$router.push({
-        name: 'salesContractExamine',
-        query: { id: row.id },
-      })
-    },
-    //删除
-    approve() {},
-    listQuery() {},
   },
   },
 }
 }
 </script>
 </script>
@@ -459,7 +427,7 @@ export default {
   margin-left: 15px;
   margin-left: 15px;
 }
 }
 /deep/.driver .ws-info-table .el-form-item .el-form-item__content {
 /deep/.driver .ws-info-table .el-form-item .el-form-item__content {
-   border-right: 1px solid #D8DCE6;
+  border-right: 1px solid #d8dce6;
   background: #f6f7fb;
   background: #f6f7fb;
   font-size: 14px;
   font-size: 14px;
   color: #8890b1;
   color: #8890b1;
@@ -487,9 +455,4 @@ export default {
 /deep/.driver.ws-info-table .el-form-item .el-form-item__content {
 /deep/.driver.ws-info-table .el-form-item .el-form-item__content {
   border: none;
   border: none;
 }
 }
-.line {
-  height: 26px;
-  margin-top: 6px;
-  left: -14px;
-}
 </style>
 </style>

+ 33 - 3
src/views/warehouse/warehouseManagementEdit.vue

@@ -177,8 +177,9 @@
         <ws-upload
         <ws-upload
           v-if="warehouseType == 1"
           v-if="warehouseType == 1"
           ref="upload"
           ref="upload"
-          table-name="maintain_work_order"
+          table-name="warehouseEdit"
           oss-key="mainPlan"
           oss-key="mainPlan"
+          :file-list="fileList"
           :comp-id="compId"
           :comp-id="compId"
           :appendix-ids="appendixIdsAdd"
           :appendix-ids="appendixIdsAdd"
           :vesselId="deptBudgetList.addressUrl"
           :vesselId="deptBudgetList.addressUrl"
@@ -207,6 +208,7 @@
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
+import { getFileList, saveFiles } from '@/model/upload'
 import {
 import {
   xiala,
   xiala,
   billoperatehis,
   billoperatehis,
@@ -238,6 +240,8 @@ export default {
   },
   },
   data() {
   data() {
     return {
     return {
+      
+      fileList: [],
       //弹出框
       //弹出框
       dialogViewSpareMoney: false,
       dialogViewSpareMoney: false,
       dialogApproveFormVisible: false,
       dialogApproveFormVisible: false,
@@ -362,7 +366,8 @@ export default {
         e.center.lat + ',' + e.center.lng
         e.center.lat + ',' + e.center.lng
     },
     },
     uploadSuccess(data, files, url) {
     uploadSuccess(data, files, url) {
-      console.log(data, files, url)
+      this.fileList = files
+      console.log('uploadSuccess ',data, files, url)
     },
     },
     onChange(files) {
     onChange(files) {
       this.fileNum = files
       this.fileNum = files
@@ -479,9 +484,21 @@ export default {
             ].code
             ].code
           this.selectedOptions = tmp
           this.selectedOptions = tmp
           this.deptBudgetList = response
           this.deptBudgetList = response
+          if(this.deptBudgetList.addressUrl){
+            this.fileList =  this._getFileList(this.deptBudgetList.addressUrl)
+          }
         })
         })
     },
     },
-
+    // 传入appendixIds 从服务器获取文件列表信息
+    _getFileList (appendixIds) {
+      return new Promise(async next => {
+        try {
+          next(await getFileList({ appendixIds }).toPromise() || [])
+        } catch (error) {
+          next()
+        }
+      })
+    },
     //提交
     //提交
     submit() {
     submit() {
       if (!this.deptBudgetList.warehouseName) {
       if (!this.deptBudgetList.warehouseName) {
@@ -610,6 +627,19 @@ export default {
           return false
           return false
         }
         }
       })
       })
+      new Promise((resolve, reject) => {
+        const newAppendixs = this.fileList
+        const params = { newAppendixs}
+        saveFiles(params)
+          .toPromise()
+          .then(res => {
+            resolve(res.join())
+          })
+          .catch(err => {
+            EventBus.$emit('error', this.$t('showMessage.saveFilesError'))
+            reject()
+          })
+      })
     },
     },
 
 
     // 关闭 dialog时 处理文件url 初始化upload组件
     // 关闭 dialog时 处理文件url 初始化upload组件

+ 3 - 2
src/views/warehouse/warehouseManagementList.vue

@@ -74,9 +74,9 @@
         style="width: 100%; margin-top: 20px"
         style="width: 100%; margin-top: 20px"
         height="780"
         height="780"
       >
       >
-        <el-table-column prop="warehouseName" label="仓库名" width="80">
+        <el-table-column prop="warehouseName" label="仓库名" >
         </el-table-column>
         </el-table-column>
-        <el-table-column prop="binNumber" label="仓位编号" width="80">
+        <el-table-column prop="binNumber" label="仓位编号" >
         </el-table-column>
         </el-table-column>
         <el-table-column prop="capacity" label="容量(吨)">
         <el-table-column prop="capacity" label="容量(吨)">
           <template slot-scope="scope">
           <template slot-scope="scope">
@@ -722,4 +722,5 @@ export default {
     font-weight: 700;
     font-weight: 700;
     margin-bottom: 20px;
     margin-bottom: 20px;
 }
 }
+
 </style>
 </style>

+ 18 - 2
src/views/warehouse/warehouseManagementLook.vue

@@ -89,7 +89,10 @@
           </ws-form-item>
           </ws-form-item>
         </ws-info-table>
         </ws-info-table>
 
 
-        <div v-for="item in deptBudgetList.warehousePositionInfoList">
+        <div
+          v-for="(item, index) in deptBudgetList.warehousePositionInfoList"
+          :key="index"
+        >
           <ws-info-table>
           <ws-info-table>
             <!--仓位编号-->
             <!--仓位编号-->
             <ws-form-item
             <ws-form-item
@@ -231,6 +234,7 @@ export default {
       this.deptBudgetList = {}
       this.deptBudgetList = {}
     },
     },
     warehouseTypechange() {
     warehouseTypechange() {
+      this.deptBudgetList = {}
       this.loaddata()
       this.loaddata()
     },
     },
     dateFormat(fmt, date) {
     dateFormat(fmt, date) {
@@ -339,12 +343,23 @@ export default {
   width: 62px;
   width: 62px;
   text-align: right;
   text-align: right;
 }
 }
+// /deep/.cangno{
+//    width: 16.67%;
+// }
+// /deep/.cangno  .el-form-item .el-form-item__label{
+//   width: 40%;
+// }
+
 /deep/.el-form-item {
 /deep/.el-form-item {
   width: 33.33%;
   width: 33.33%;
 }
 }
 .forlist {
 .forlist {
   width: 16.67%;
   width: 16.67%;
 }
 }
+/deep/.forlist .el-form-item__label {
+  width: 60% !important;
+}
+
 //文字基本信息
 //文字基本信息
 .center h3 {
 .center h3 {
   margin-left: 42px;
   margin-left: 42px;
@@ -385,10 +400,11 @@ export default {
 /deep/.ws-info-table .el-form-item .el-form-item__label {
 /deep/.ws-info-table .el-form-item .el-form-item__label {
   background-color: #fff;
   background-color: #fff;
   font-size: 14px;
   font-size: 14px;
-  font-family: PingFangSC-Regular, PingFang SC;
   font-weight: 400;
   font-weight: 400;
   color: #8890b1;
   color: #8890b1;
   line-height: 16px;
   line-height: 16px;
+  width: 30%;
+  text-align: center;
 }
 }
 //多选框
 //多选框
 /deep/.el-input__inner {
 /deep/.el-input__inner {