瀏覽代碼

车辆提交和调整宽度

Qukaidi 4 年之前
父節點
當前提交
17a31bd584
共有 1 個文件被更改,包括 4 次插入27 次删除
  1. 4 27
      src/views/fleet/sendcar/AddOrUpdate.vue

+ 4 - 27
src/views/fleet/sendcar/AddOrUpdate.vue

@@ -567,7 +567,7 @@
                 </div>
               </div>
               <el-table :data="vehicleList">
-                <el-table-column label="箱型" align="center" prop="cntrId">
+                <el-table-column label="箱型" align="center" prop="cntrId" width="120">
                   <template slot-scope="scope">
                     <el-select
                       v-model="scope.row.cntrId"
@@ -611,7 +611,7 @@
                   label="箱号"
                   align="center"
                   prop="cntrNo"
-                  width="120"
+                  width="200"
                 >
                   <template slot-scope="scope">
                     <el-input
@@ -627,7 +627,7 @@
                   label="车号"
                   align="center"
                   prop="carregNo"
-                  width="130"
+                  width="150"
                 >
                   <template slot-scope="scope">
                     <!-- <el-input
@@ -1738,29 +1738,7 @@ export default {
 
     //单条订单调度提交
     addscarsRow(row) {
-      if (row.id == null) {
-        this.$confirm("车辆存在未保存数据,是否保存?", "提示", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-        })
-          .then(() => {
-            this.submitSave();
-            // if (row.billStatus != 6) {
-            //   this.$set(row, "billStatus", 2);
-            //   this.msgSuccess("保存成功");
-            // } else {
-            //   this.msgSuccess("请勿重复提交");
-            // }
-          })
-          .catch(() => {
-            this.$message({
-              type: "info",
-              message: "已取消保存",
-            });
-          });
-      } else {
-        if (row.billStatus == 5) {
+      if (row.billStatus == 5) {
           singleChangeFtmsorderbillscars(row).then((response) => {
             if (response.code == 200) {
               this.msgSuccess("成功提交");
@@ -1787,7 +1765,6 @@ export default {
         } else {
           this.msgSuccess("请勿重复提交");
         }
-      }
     },
     delscarsRow(index, rows, row) {
       if (row.billStatus != 6 && row.id != null) {