浏览代码

赋值箱型

Qukaidi 4 年之前
父节点
当前提交
a259bf5bcf
共有 1 个文件被更改,包括 8 次插入6 次删除
  1. 8 6
      src/views/fleet/sendcar/AddOrUpdate.vue

+ 8 - 6
src/views/fleet/sendcar/AddOrUpdate.vue

@@ -561,7 +561,7 @@
                     type="primary"
                     icon="el-icon-plus"
                     size="mini"
-                    @click="addRow(vehicleList)"
+                    @click="addRow2(vehicleList)"
                     >添加</el-button
                   >
                 </div>
@@ -572,11 +572,7 @@
                     <el-select
                       v-model="scope.row.cntrId"
                       placeholder="请选择箱型"
-                      :disabled="
-                        scope.row.billStatus == 6 ||
-                        scope.row.billStatus == 3 ||
-                        scope.row.billStatus == 3
-                      "
+                      disabled
                       @change="checkPid(scope.row)"
                     >
                       <el-option
@@ -1556,6 +1552,12 @@ export default {
       tableData.push(obj);
       this.showSure(this.schedulingList);
     },
+      // 添加行
+    addRow2(tableData, event) {
+      var obj = {};
+      tableData.push({cntrId:this.schedulingList[0].cntrId});
+      this.showSure(this.schedulingList);
+    },
     //删除行
     deleteRow(index, rows) {
       rows.splice(index, 1);