瀏覽代碼

公共样式悬浮层的鼠标经过,军车所有的删除字段

sunyanqiang 3 年之前
父節點
當前提交
fbf2217769

+ 9 - 0
src/api/militaryvehicleManagement/thebusApply.js

@@ -118,4 +118,13 @@ export function chuCarList(query) {
     method: 'get',
     params: query
   })
+}
+
+// 查询可出军车在位列表
+export function zaiweiCar(query) {
+  return request({
+    url: '/militaryvehicleManagement/thebus/zaiweilistlist',
+    method: 'get',
+    params: query
+  })
 }

+ 4 - 0
src/assets/styles/global.css

@@ -968,3 +968,7 @@ margin-right: 34px;
 .shuJuTime { margin-bottom: 10px;
 }
 
+/* 右侧上浮框 */
+::v-deep .el-table .el-table__body .el-table__row.hover-row td {
+  background-color: #004d86;
+}

+ 1 - 1
src/views/militaryvehicleManagement/driver/index.vue

@@ -635,7 +635,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除军车司机设置编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除军车司机的数据项?")
         .then(function () {
           return delDriver(ids);
         })

+ 1 - 1
src/views/militaryvehicleManagement/privateAccessLog/index.vue

@@ -554,7 +554,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除私家车进出查询编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除私家车进出查询的数据项?")
         .then(function () {
           return delPrivateAccessLog(ids);
         })

+ 5 - 1
src/views/militaryvehicleManagement/privateCar/index.vue

@@ -502,7 +502,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除私家车管理编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除私家车管理的数据项?")
         .then(function () {
           return delPrivateCar(ids);
         })
@@ -678,4 +678,8 @@ export default {
 ::v-deep input:-moz-placeholder {
   color: #bdbdbd4f !important;
 }
+/* 文本域提示文字颜色 */
+::v-deep ::-webkit-input-placeholder {
+  color: #bdbdbd4f !important;
+}
 </style>

+ 21 - 3
src/views/militaryvehicleManagement/thebus/index.vue

@@ -277,7 +277,12 @@
         prop="vehiclemodel"
         :formatter="vehicleModel"
       />
-      <el-table-column label="车辆负责人" align="center" prop="peopleName" />
+      <el-table-column
+        label="车辆负责人"
+        align="center"
+        prop="peopleName"
+        width="120"
+      />
       <el-table-column label="所属单位" align="center" prop="unitName" />
       <el-table-column
         label="联系方式"
@@ -309,7 +314,12 @@
         prop="isListing"
         :formatter="licensePlate"
       />
-      <el-table-column label="固定座位数" align="center" prop="seatCount" />
+      <el-table-column
+        label="固定座位数"
+        align="center"
+        prop="seatCount"
+        width="120"
+      />
       <!-- <el-table-column label="创建时间" align="center" prop="createtime" /> -->
       <!-- <el-table-column
         label="车位号"
@@ -329,6 +339,7 @@
         align="center"
         class-name="small-padding fixed-width"
         width="150"
+        fixed="right"
       >
         <template slot-scope="scope">
           <el-button
@@ -768,7 +779,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除军车管理编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除军车管理的数据项?")
         .then(function () {
           return delThebus(ids);
         })
@@ -948,4 +959,11 @@ export default {
 ::v-deep input:-moz-placeholder {
   color: #bdbdbd4f !important;
 }
+::v-deep .el-table .el-table__body .el-table__row.hover-row td {
+  background-color: #004d86;
+}
+/* 文本域提示文字颜色 */
+::v-deep ::-webkit-input-placeholder {
+  color: #bdbdbd4f !important;
+}
 </style>

+ 1 - 1
src/views/militaryvehicleManagement/thebusAccessLog/index.vue

@@ -476,7 +476,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除军车进出查询编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除军车进出查询的数据项?")
         .then(function () {
           return delThebusAccessLog(ids);
         })

+ 33 - 11
src/views/militaryvehicleManagement/thebusApply/index.vue

@@ -295,7 +295,7 @@
               >特殊审批</el-button
             >
           </div>
-          <div v-if="scope.row.status == '1' && scope.row.isTeShu != '1'">
+          <div v-if="scope.row.status == '1' && scope.row.isCaoZuo == '0'">
             <!-- 1 -->
             <el-button
               size="btc"
@@ -329,7 +329,8 @@
               type="text"
               v-if="
                 scope.row.peopleoneState == '1' &&
-                scope.row.shenpijiedian == '3'
+                scope.row.shenpijiedian == '3' &&
+                scope.row.yingjicaozuoren == 'oneji'
               "
               @click="handleShenPi(scope.row)"
               v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
@@ -341,7 +342,8 @@
               type="text"
               v-if="
                 scope.row.peopletwoState == '1' &&
-                scope.row.shenpijiedian == '4'
+                scope.row.shenpijiedian == '4' &&
+                scope.row.yingjicaozuoren == 'twoji'
               "
               @click="handleShenPi(scope.row)"
               v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
@@ -353,7 +355,8 @@
               type="text"
               v-if="
                 scope.row.peoplethreeState == '1' &&
-                scope.row.shenpijiedian == '5'
+                scope.row.shenpijiedian == '5' &&
+                scope.row.yingjicaozuoren == 'threeji'
               "
               @click="handleShenPi(scope.row)"
               v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
@@ -494,6 +497,7 @@
             v-model="form.peopleoneName"
             placeholder="请输入一级审批人"
             class="input_xiala"
+            readonly
           />
         </el-form-item>
         <el-form-item label="二级审批人" prop="people2Id">
@@ -501,6 +505,7 @@
             v-model="form.peopletwoName"
             placeholder="请输入二级审批人"
             class="input_xiala"
+            readonly
           />
         </el-form-item>
         <el-form-item label="三级审批人" prop="people3Id">
@@ -508,6 +513,7 @@
             v-model="form.peoplethreeName"
             placeholder="请输入三级审批人"
             class="input_xiala"
+            readonly
           />
         </el-form-item>
         <div class="jiben">出车路线</div>
@@ -630,18 +636,21 @@
           <el-input
             v-model="form.peopleoneName"
             placeholder="请输入一级审批人"
+            readonly
           />
         </el-form-item>
         <el-form-item label="二级审批人" prop="people2Id">
           <el-input
             v-model="form.peopletwoName"
             placeholder="请输入二级审批人"
+            readonly
           />
         </el-form-item>
         <el-form-item label="三级审批人" prop="people3Id">
           <el-input
             v-model="form.peoplethreeName"
             placeholder="请输入三级审批人"
+            readonly
           />
         </el-form-item>
         <div class="jiben">出车路线</div>
@@ -1189,16 +1198,24 @@ export default {
     },
     // 选择审批模板触发
     shenPiThemplate(data) {
-      this.form.peopleoneName = data.oneshenpirenname;
-      this.form.peopletwoName = data.twoshenpirenname;
-      this.form.peoplethreeName = data.threeshenpirenname;
-      this.form.peopleoneId = data.onshenpirenid;
-      this.form.peopletwoId = data.twoshenpirenid;
-      this.form.peoplethreeId = data.threeshenpirenid;
+      console.log(data);
+      this.$set(this.form, "peopleoneName", data.oneshenpirenname);
+      this.$set(this.form, "peopletwoName", data.twoshenpirenname);
+      this.$set(this.form, "peoplethreeName", data.threeshenpirenname);
+      this.$set(this.form, "peopleoneId", data.onshenpirenid);
+      this.$set(this.form, "peopletwoId", data.twoshenpirenid);
+      this.$set(this.form, "peoplethreeId", data.threeshenpirenid);
+      // this.form.peopleoneName = data.oneshenpirenname;
+      // this.form.peopletwoName = data.twoshenpirenname;
+      // this.form.peoplethreeName = data.threeshenpirenname;
+      // this.form.peopleoneId = data.onshenpirenid;
+      // this.form.peopletwoId = data.twoshenpirenid;
+      // this.form.peoplethreeId = data.threeshenpirenid;
     },
     // 获取审批模板列表
     getShenPi() {
       listThebusConfig().then((response) => {
+        console.log();
         this.shenPi = response.rows;
       });
     },
@@ -1353,7 +1370,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除用车申请编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除用车申请的数据项?")
         .then(function () {
           return delThebusApply(ids);
         })
@@ -1537,5 +1554,10 @@ export default {
 ::v-deep .el-table .el-table__body .el-table__row.hover-row td {
   background-color: #004d86;
 }
+/* 文本域提示文字颜色 */
+::v-deep ::-webkit-input-placeholder {
+  color: #bdbdbd4f !important;
+}
+/* 悬浮层 */
 </style>
 

+ 4 - 6
src/views/militaryvehicleManagement/thebusConfig/index.vue

@@ -124,9 +124,8 @@
       >
         <template slot-scope="scope">
           <el-button
-            size="mini"
+            size="btu"
             type="text"
-            icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['militaryvehicleManagement:thebusConfig:edit']"
             >修改</el-button
@@ -134,7 +133,6 @@
           <el-button
             size="btd"
             type="text"
-            icon="el-icon-delete"
             @click="handleDelete(scope.row)"
             v-hasPermi="['militaryvehicleManagement:thebusConfig:remove']"
             >删除</el-button
@@ -239,7 +237,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
+        <el-button @click="cancel">取消</el-button>
       </div>
     </el-dialog>
     <!-- 修改军车管理设置 -->
@@ -312,7 +310,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
+        <el-button @click="cancel">重置</el-button>
       </div>
     </el-dialog>
   </div>
@@ -507,7 +505,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除军车管理设置编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除军车管理的数据项?")
         .then(function () {
           return delThebusConfig(ids);
         })

+ 32 - 32
src/views/militaryvehicleManagement/thebusList/index.vue

@@ -97,6 +97,7 @@
             >出车</el-button
           >
           <el-button
+            v-else
             size="btc"
             type="text"
             @click="singles(scope.row)"
@@ -162,9 +163,9 @@
         </el-form-item>
         <div class="box3">
           <el-form v-for="(item1, e) in checkShop" :key="e">
-            <el-form-item label="" prop="onshenpirenid">
+            <el-form-item label="" prop="bdglThebusId">
               <el-select
-                v-model="item1.vehiclemodel"
+                v-model="item1.bdglThebusId"
                 placeholder="请选择车辆车牌"
                 filterable
               >
@@ -188,7 +189,7 @@
                   v-for="(item, i) in driverList"
                   :key="i"
                   :label="item.peopleName"
-                  :value="item.peopleId"
+                  :value="item.id"
                 >
                 </el-option>
               </el-select>
@@ -258,7 +259,7 @@
         <div class="box4">
           <table border="1">
             <tr align="center" class="tr">
-              <td width="220" height="40">牌型号</td>
+              <td width="220" height="40">牌型号</td>
               <td width="220" height="40">号牌号码</td>
               <td width="220" height="40">司机</td>
               <td width="220" height="40">司机联系方式</td>
@@ -269,26 +270,17 @@
               v-for="(item, i) in chaCarLists"
               :key="i"
             >
-              <td width="220" height="40">{{ item.vehiclemodel }}</td>
+              <td width="220" height="40">
+                <template>
+                  {{ names }}
+                </template>
+              </td>
               <td width="220" height="40">{{ item.vehiclenumber }}</td>
-              <td width="220" height="40">{{ item.driverId }}</td>
+              <td width="220" height="40">{{ item.driverName }}</td>
               <td width="220" height="40">{{ item.driverPhone }}</td>
             </tr>
           </table>
         </div>
-
-        <!-- <el-form-item label="型号" prop="cause">
-          <el-input v-model="forms.cause" />
-        </el-form-item>
-        <el-form-item label="号牌号码" prop="cause">
-          <el-input v-model="forms.cause" />
-        </el-form-item>
-        <el-form-item label="司机" prop="cause">
-          <el-input v-model="forms.cause" />
-        </el-form-item>
-        <el-form-item label="司机联系方式" prop="cause">
-          <el-input v-model="forms.cause" />
-        </el-form-item> -->
       </el-form>
     </el-dialog>
   </div>
@@ -302,13 +294,13 @@ import {
   exportThebusApply,
   exportThebusCar,
   exportThebusCha,
-  chuCarList,
+  zaiweiCar,
 } from "@/api/militaryvehicleManagement/thebusApply";
 // 查询字典
 import { getDicts } from "@/api/system/dict/data";
 import { listDriver } from "@/api/militaryvehicleManagement/driver";
 import { getAll } from "@/api/grassrootsregistration/bdglmeeting";
-import { listThebus } from "@/api/militaryvehicleManagement/thebus";
+// import {} from "@/api/militaryvehicleManagement/thebus";
 export default {
   name: "ThebusApply",
   data() {
@@ -365,13 +357,29 @@ export default {
       chaCarLists: [],
       // 出车获取车辆列表
       chucarlist: [],
+      // 车牌型号的保存
+      names: "",
     };
   },
   created() {
     this.getList();
     this.getSuo();
+    getDicts("brand").then((response) => {
+      this.brand = response.data;
+    });
   },
   methods: {
+    // 翻译车牌型号
+    car(value) {
+      console.log(value, 1);
+      this.brand.map((item) => {
+        if (item.dictValue == value) {
+          this.names = item.dictLabel;
+        }
+        console.log(this.names);
+        // return this.names;
+      });
+    },
     chuche(data) {
       console.log(data);
     },
@@ -387,9 +395,8 @@ export default {
       exportThebusCha(this.form).then((res) => {
         this.forms = res.data;
         this.opens = true;
-        console.log(res.data);
-
         this.chaCarLists = res.data.bdglDepartureInfos;
+        this.car(this.chaCarLists[0].vehiclemodel);
       });
     },
     // 获取司机
@@ -400,13 +407,10 @@ export default {
     },
     // 获取车辆型号
     getCar() {
-      listThebus().then((res) => {
+      zaiweiCar().then((res) => {
         this.chucarlist = res.rows;
         console.log(res);
       });
-      // getDicts("brand").then((response) => {
-      //   this.brand = response.data;
-      // });
     },
 
     // 删除对话框查铺
@@ -425,7 +429,6 @@ export default {
     getList() {
       this.loading = true;
       listThebusApply(this.queryParams).then((response) => {
-        console.log(response);
         this.thebusApplyList = response.rows;
         this.total = response.total;
         this.loading = false;
@@ -460,7 +463,6 @@ export default {
     },
     /** 出车按钮操作 */
     handleAdd(row) {
-      console.log(row);
       this.form.id = row.id;
       this.form = row;
       this.getCar();
@@ -484,8 +486,6 @@ export default {
     submitForm() {
       this.form.bdglDepartureInfos = this.checkShop;
       this.form.outstatus = "1";
-      console.log(this.form);
-      console.log(this.form.checkShop);
       exportThebusCar(this.form).then((response) => {
         this.$modal.msgSuccess("新增成功");
         this.open = false;
@@ -496,7 +496,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除用车申请编号为"' + ids + '"的数据项?')
+        .confirm("是否确认删除用车申请的数据项?")
         .then(function () {
           return delThebusApply(ids);
         })