zhangyuewww 3 年之前
父节点
当前提交
cbc000cb7e

+ 9 - 0
src/views/tranManagement/tranManagementReceivingloading.vue

@@ -126,6 +126,15 @@
               <!--卸车净重(吨)-->
               <ws-form-item label="卸车净重(吨):" span="1" prop="unloadNetWeight">
                 <ws-input
+                  v-if="item.status == '已送达'" 
+                  v-model="item.unloadNetWeight"
+                  placeholder="请输入卸车净重"
+                  maxlength="20"
+                  :disabled="readonly"
+                  size="small"
+                />
+                 <ws-input
+                  v-else
                   v-model="item.unloadNetWeight"
                   placeholder="请输入卸车净重"
                   maxlength="20"

+ 41 - 31
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -171,6 +171,15 @@
             <!--装车净重-->
             <ws-form-item label="装车净重:" span="1" prop="loadNetWeight">
               <ws-input
+                v-if="item.status == '已装车'||item.status == '已送达'" 
+                :disabled="readonly"
+                v-model="item.loadNetWeight"
+                placeholder="请输入装车净重"
+                maxlength="20"
+                size="small"
+              />
+               <ws-input
+                v-else
                 v-model="item.loadNetWeight"
                 placeholder="请输入装车净重"
                 maxlength="20"
@@ -290,6 +299,7 @@ export default {
       personCharge: [],
       district: null,
       driverList: [],
+      readonly: true,
       listDate: { country: '中国', level: 'country', city: '' },
       citylist: [],
       compId: sessionStorage.getItem('ws-pf_compId'),
@@ -810,23 +820,23 @@ export default {
       display: none;
     }
   }
-  .is-disabled {
-    .el-input__inner:hover {
-      background-color: #fff !important;
-      border: 0;
-    }
-    color: #606266;
-    .el-input__inner {
-      background-color: #fff !important;
-      border: 0;
-      color: #606266;
-    }
-    .el-textarea__inner {
-      background-color: #fff !important;
-      border: 0;
-      color: #606266;
-    }
-  }
+  // .is-disabled {
+  //   .el-input__inner:hover {
+  //     background-color: #fff !important;
+  //     border: 0;
+  //   }
+  //   color: #606266;
+  //   .el-input__inner {
+  //     background-color: #fff !important;
+  //     border: 0;
+  //     color: #606266;
+  //   }
+  //   .el-textarea__inner {
+  //     background-color: #fff !important;
+  //     border: 0;
+  //     color: #606266;
+  //   }
+  // }
 }
 
 // 控制select为只读的时候显示样式
@@ -837,20 +847,20 @@ export default {
     padding: 0px 2px;
   }
 }
-/deep/.is-disabled {
-  .el-input__prefix,
-  .el-input__suffix {
-    display: none;
-  }
-  .el-input__inner {
-    background-color: #fff;
-    border-color: #fff !important;
-    color: #000 !important;
-    font-size: 14px;
-    cursor: text;
-    padding: 0 !important;
-  }
-}
+// /deep/.is-disabled {
+//   .el-input__prefix,
+//   .el-input__suffix {
+//     display: none;
+//   }
+//   .el-input__inner {
+//     background-color: #fff;
+//     border-color: #fff !important;
+//     color: #000 !important;
+//     font-size: 14px;
+//     cursor: text;
+//     padding: 0 !important;
+//   }
+// }
 .winseaview-view {
   padding: 0 0 20px;
 }

+ 6 - 6
src/views/tranManagement/tranManagementVehicleDispatching.vue

@@ -261,17 +261,17 @@
                 prop="carModel"
                 class="siji"
               >
-                <ws-input
-                  v-if="item.status == '未装车'" 
+               <ws-input
+                  v-if="item.status == '已装车'||item.status == '已送达'" 
+                  :disabled="readonly"
                   v-model="item.caseNo"
-                  placeholder="请输入箱号"
                   maxlength="120"
                   size="small"
                 />
                 <ws-input
                   v-else
-                  :disabled="readonly"
                   v-model="item.caseNo"
+                  placeholder="请输入箱号"
                   maxlength="120"
                   size="small"
                 />
@@ -284,9 +284,10 @@
                 class="siji"
               >
                 <ws-input
+                 v-if="item.status == '已装车'||item.status == '已送达'" 
                   v-model="item.titleNo"
                   placeholder="请输入封号"
-                   v-if="item.status == '未装车'" 
+                  :disabled="readonly"
                   maxlength="120"
                   size="small"
                 />
@@ -294,7 +295,6 @@
                   v-model="item.titleNo"
                   placeholder="请输入封号"
                    v-else
-                    :disabled="readonly"
                   maxlength="120"
                   size="small"
                 />