sunyanqiang 3 سال پیش
والد
کامیت
679a6b5acc
2فایلهای تغییر یافته به همراه14 افزوده شده و 16 حذف شده
  1. 1 1
      src/api/militaryvehicleManagement/thebusApply.js
  2. 13 15
      src/views/militaryvehicleManagement/thebusApply/index.vue

+ 1 - 1
src/api/militaryvehicleManagement/thebusApply.js

@@ -106,7 +106,7 @@ export function exportThebusCar(data) {
 export function exportThebusCha(params) {
   return request({
     url: '/militaryvehicleManagement/thebusApply/lookchuchelist',
-    method: 'post',
+    method: 'get',
     params
   })
 }

+ 13 - 15
src/views/militaryvehicleManagement/thebusApply/index.vue

@@ -7,15 +7,6 @@
       v-show="showSearch"
       label-width="68px"
     >
-      <!-- <el-form-item label="车型" prop="model">
-        <el-input
-          v-model="queryParams.model"
-          placeholder="请输入车型"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item> -->
       <el-form-item prop="unitId">
         <el-input
           v-model="queryParams.unitId"
@@ -926,36 +917,44 @@ export default {
         if (this.form.id != null) {
           if (item.shenpijiedian == "1") {
             this.form.isTongguo = "0";
-            console.log(this.form);
             exportThebusYin(this.form).then((response) => {
+              console.log("营级");
               this.$modal.msgSuccess("审批成功");
               this.opens = false;
               this.getList();
             });
+            return;
           } else if (item.shenpijiedian == "2") {
             this.form.isTongguo = "0";
             exportThebusChu(this.form).then((response) => {
+              console.log("初级");
               this.$modal.msgSuccess("审批成功");
               this.opens = false;
               this.getList();
             });
+            return;
           } else if (item.shenpijiedian == "3") {
             this.form.isTongguo = "0";
             exportThebusOne(this.form).then((response) => {
+              console.log("一级");
               this.$modal.msgSuccess("审批成功");
               this.getList();
               this.opens = false;
             });
+            return;
           } else if (item.shenpijiedian == "4") {
             this.form.isTongguo = "0";
             exportThebusTwo(this.form).then((response) => {
+              console.log("二级");
               this.$modal.msgSuccess("审批成功");
               this.getList();
               this.opens = false;
             });
+            return;
           } else if (item.shenpijiedian == "5") {
             this.form.isTongguo = "0";
             exportThebusThree(this.form).then((response) => {
+              console.log("三级");
               this.$modal.msgSuccess("审批成功");
               this.getList();
               this.opens = false;
@@ -971,39 +970,38 @@ export default {
           if (this.form.id != null) {
             this.thebusApplyList.forEach((item) => {
               if (item.shenpijiedian == "1") {
-                console.log(1);
                 this.form.isTongguo = "1";
                 this.form.unitPeopleRemark = this.form.routes;
                 exportThebusYin(this.form).then((res) => {
                   this.opens = false;
                   this.getList();
                 });
+                return;
               } else if (item.shenpijiedian == "2") {
-                console.log(2);
                 this.form.isTongguo = "1";
                 this.form.chushenRemark = this.form.routes;
                 exportThebusChu(this.form).then((res) => {
                   this.opens = false;
                   this.getList();
                 });
+                return;
               } else if (item.shenpijiedian == "3") {
-                console.log(3);
                 this.form.isTongguo = "1";
                 this.form.peopleoneRemark = this.form.routes;
                 exportThebusOne(this.form).then((res) => {
                   this.opens = false;
                   this.getList();
                 });
+                return;
               } else if (item.shenpijiedian == "4") {
-                console.log(4);
                 this.form.isTongguo = "1";
                 this.form.peopletwoRemark = this.form.routes;
                 exportThebusTwo(this.form).then((res) => {
                   this.opens = false;
                   this.getList();
                 });
+                return;
               } else if (item.shenpijiedian == "5") {
-                console.log(5);
                 this.form.isTongguo = "1";
                 this.form.peoplethreeRemark = this.form.routes;
                 exportThebusThree(this.form).then((res) => {