Explorar o código

更改日历,更改车辆审批

sunyanqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
39bfb58a61

+ 59 - 96
src/views/PrintsManage/manage/index.vue

@@ -26,9 +26,6 @@
         />
       </el-form-item>
       <el-form-item>
-        <!-- <el-button type="primary" size="btn" @click="handleQuery"
-          >搜索</el-button
-        > -->
         <el-button size="btr" @click="resetQuery">重置</el-button>
       </el-form-item>
     </el-form>
@@ -44,17 +41,6 @@
           >发送文件</el-button
         >
       </el-col>
-      <!-- <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['PrintsManage:manage:edit']"
-        >修改</el-button>
-      </el-col>-->
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -67,23 +53,36 @@
           >删除</el-button
         >
       </el-col>
-      <!-- <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          :loading="exportLoading"
-          @click="handleExport"
-          v-hasPermi="['PrintsManage:manage:export']"
-        >导出</el-button>
-      </el-col>-->
-      <!-- <right-toolbar
-        :showSearch.sync="showSearch"
-        @queryTable="getList"
-      ></right-toolbar> -->
     </el-row>
 
+    <div class="hezi">
+      <div class="tji">集中文印统计</div>
+      <div style="display: flex; flex-wrap: wrap; padding: 11px 20px">
+        <div
+          style="width: 25%; display: flex; align-items: center; height: 100px"
+          v-for="item in tongJiList"
+          :key="item.name"
+        >
+          <div
+            class="div-l"
+            style="flex: 2; text-align: right; margin-right: 30px"
+          >
+            <span>{{ item.name }}</span>
+          </div>
+          <div
+            class="div-r"
+            style="flex: 1; text-align: right; margin-right: 120px"
+          >
+            <span>
+              <span style="font-size: 25px; margin-right: 18px">
+                {{ item.num }} </span
+              >台
+            </span>
+          </div>
+        </div>
+      </div>
+    </div>
+
     <el-table
       v-loading="loading"
       :header-cell-style="{ background: '#003C69', color: 'white' }"
@@ -313,12 +312,6 @@
               class="text"
             >
             </el-date-picker>
-            <!-- <el-date-picker
-            v-model="form.returnTime"
-            type="date"
-            value-format="yyyy-MM-dd"
-            placeholder="选择日期">
-          </el-date-picker> -->
           </el-form-item>
           <div class="jiben">打印说明</div>
           <el-form-item label prop="explainInfo">
@@ -382,14 +375,6 @@
                 />
               </el-form-item>
               <el-form-item>
-                <!-- <el-button
-                type="primary"
-                icon="el-icon-plus"
-                size="mini"
-                style="padding: 11px 10px 10px 10px"
-                @click="addForms"
-                v-if="i == tomList.length - 1"
-              ></el-button> -->
                 <el-button
                   type="danger"
                   icon="el-icon-close"
@@ -408,33 +393,11 @@
                   placeholder="请输入文件名称"
                 />
               </el-form-item>
-
-              <!-- <el-form-item label="单位ID" prop="unitId">
-          <el-input v-model="form.unitId" placeholder="请输入单位ID" />
-        </el-form-item>-->
-              <!-- <el-form-item label="单位名称" prop="unitName">
-          <el-input v-model="form.unitName" placeholder="请输入单位名称" />
-        </el-form-item>-->
-
-              <!-- <el-form-item label="是否需要归还" prop="isReturn">
-          <el-radio-group v-model="form.isReturn" style="width:200px;" size="mini">
-            <el-radio label="1">归还</el-radio>
-            <el-radio label="0">无需归还</el-radio>
-          </el-radio-group>
-        </el-form-item>-->
               <el-form-item
                 label="是否为彩打"
                 label-width="120px"
                 prop="isPrintColor"
               >
-                <!-- <el-radio-group
-            v-model="item.isPrintColor"
-            style="width: 200px"
-            size="mini"
-          >
-            <el-radio label="1">是</el-radio>
-            <el-radio label="0">否</el-radio>
-          </el-radio-group> -->
                 <el-switch
                   v-model="item.isPrintColor"
                   active-color="#13ce66"
@@ -452,14 +415,6 @@
                 prop="isPrintTwo"
                 style="margin-right: 100px"
               >
-                <!-- <el-radio-group
-                v-model="item.isPrintTwo"
-                style="width: 200px"
-                size="mini"
-              >
-                <el-radio label="1">是</el-radio>
-                <el-radio label="0">否</el-radio>
-              </el-radio-group> -->
                 <el-switch
                   v-model="item.isPrintTwo"
                   active-color="#13ce66"
@@ -471,21 +426,6 @@
                 <span class="greed" v-if="item.isPrintTwo == '1'"></span>
                 <span class="CCC" v-if="item.isPrintTwo == '0'"></span>
               </el-form-item>
-              <!-- <el-form-item
-                label="是否需归还"
-                label-width="120px"
-                prop="isReturns"
-              >
-                <el-switch
-                  v-model="item.isReturn"
-                  active-color="#13ce66"
-                  inactive-color="#ccc"
-                  active-value="1"
-                >
-                </el-switch>
-                <span class="greed" v-if="item.isReturn == '1'"></span>
-                <span class="CCC" v-if="item.isReturn == '0'"></span>
-              </el-form-item> -->
             </el-form>
           </div>
           <el-form-item style="margin-left: 20px" prop="name">
@@ -998,6 +938,7 @@ import {
   printCode,
   tkbox,
 } from "@/api/PrintsManage/manage";
+import { rizongwenyin } from "@/api/taishi/taishi";
 import { getToken } from "@/utils/auth";
 import Cookies from "js-cookie";
 import axios from "axios";
@@ -1088,10 +1029,6 @@ export default {
       dyform: {},
       // 表单校验
       rules: {
-        // name: [
-        //   // { required: true, message: "发送文件不能为空", trigger: "click" },
-        //   { required: true },
-        // ],
         printRoom: [
           { required: true, message: "打印室不能为空", trigger: "change" },
         ],
@@ -1178,13 +1115,10 @@ export default {
       title1: "",
       // 打印备注
       ramrk: false,
+      tongJiList:[]
     };
   },
   created() {
-    // if (Cookies.get("shuaxin") != "true") {
-    //   window.location.reload();
-    // }
-    // Cookies.set("shuaxin", "true");
     this.getList();
     //级别
     this.getDicts("level").then((response) => {
@@ -1198,6 +1132,11 @@ export default {
     this.getDicts("sys_is").then((response) => {
       this.islist = response.data;
     });
+    //集中文印
+    rizongwenyin().then((res) => {
+      console.log(res);
+      // this.wylist = res.data;
+    });
   },
   mounted() {
     this.roles = Cookies.get("roles");
@@ -2068,4 +2007,28 @@ export default {
 ::v-deep .box1 .el-form-item__label {
   width: 91px !important;
 }
+
+.hezi {
+  margin-bottom: 13px;
+  margin-top: 15px;
+  position: relative;
+  background: rgb(0, 60, 105);
+  color: #fff;
+  font-size: 18px;
+  font-weight: 600;
+}
+
+.tji {
+  width: 176px;
+  height: 36px;
+  text-align: center;
+  line-height: 36px;
+  position: absolute;
+  top: -18px;
+  right: 87px;
+  color: #fff;
+  font-size: 18px;
+  font-weight: 600;
+  background: #004d86;
+}
 </style>

+ 7 - 7
src/views/jobTaskRecord/jobTask/index.vue

@@ -87,7 +87,7 @@
           >删除</el-button
         >
       </el-col> -->
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="warning"
           plain
@@ -97,7 +97,7 @@
           v-hasPermi="['jobTaskRecord:jobTask:export']"
           >导出</el-button
         >
-      </el-col>
+      </el-col> -->
     </el-row>
 
     <el-table
@@ -114,8 +114,8 @@
           }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="任务名称" align="center" prop="workName" />
-      <el-table-column label="任务编号" align="center" prop="workNum" />
+      <el-table-column label="任务名称" align="center" prop="workName" width="200px"/>
+      <!-- <el-table-column label="任务编号" align="center" prop="workNum" /> -->
       <el-table-column label="任务类型" align="center" prop="workType">
       </el-table-column>
       <el-table-column label="任务描述" align="center" prop="workDetail" />
@@ -124,7 +124,7 @@
         label="任务开始时间"
         align="center"
         prop="workStartTime"
-        width="180"
+        width="150"
       >
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.workStartTime, "{y}-{m}-{d}") }}</span>
@@ -134,13 +134,13 @@
         label="任务结束时间"
         align="center"
         prop="workEndTime"
-        width="180"
+        width="150"
       >
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.workEndTime, "{y}-{m}-{d}") }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="任务优先级" align="center" prop="workPriority">
+      <el-table-column label="任务优先级" align="center" prop="workPriority" width="100">
         <template slot-scope="scope">
           <dict-tag
             :options="dict.type.work_priority"

+ 10 - 2
src/views/militaryvehicleManagement/thebusApply/index.vue

@@ -98,7 +98,7 @@
       :header-cell-style="{ background: '#003C69', color: 'white' }"
     >
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="序号" align="center" prop="id">
+      <el-table-column label="序号" align="center" prop="id" width="50">
         <template scope="scope">
           <span>{{
             (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
@@ -112,7 +112,7 @@
         prop="unitName"
         width="200"
       />
-      <el-table-column label="申请人" align="center" prop="peopleName" />
+      <el-table-column label="申请人" align="center" prop="peopleName" width="150"/>
       <el-table-column label="带车人" align="center" prop="pepelonamed" />
       <!-- <el-table-column
         label="联系方式"
@@ -123,8 +123,16 @@
       <el-table-column
         label="外出路线"
         align="center"
+        prop="route"
+        show-overflow-tooltip
+        width="200"
+      />
+      <el-table-column
+        label="外出事由"
+        align="center"
         prop="cause"
         show-overflow-tooltip
+        width="200"
       />
       <el-table-column
         label="开始时间"

+ 2 - 2
src/views/taishi/index.vue

@@ -5,7 +5,7 @@
         <img src="../../assets/images/返回icon.png" alt />
         <span>主控台</span>
       </div>
-      <div class="title-left1" @click="titlefun1">
+      <!-- <div class="title-left1" @click="titlefun1">
         <img src="../../assets/images/返回icon.png" alt />
         <span> 第一个</span>
       </div>
@@ -20,7 +20,7 @@
       <div class="title-left4" @click="titlefun4">
         <img src="../../assets/images/返回icon.png" alt />
         <span> 第四个</span>
-      </div>
+      </div> -->
       <div class="title-right">
         <span>{{ times }}</span>
       </div>

+ 1 - 1
src/views/workingArrangements/planTask/index.vue

@@ -1745,7 +1745,7 @@ export default {
   border-bottom: 1px solid white !important;
 }
 .el-dialog__body .el-table th.is-leaf {
-  border: 1px solid white !important;
+  border: 1px solid white ;
 }
 /* 下载按钮 */
 .downloadfile {

+ 104 - 50
src/views/workingArrangements/workCalendar/index.vue

@@ -1,5 +1,14 @@
 <template>
   <div class="box">
+    <el-button
+      type="warning"
+      plain
+      icon="el-icon-download"
+      size="mini"
+      @click="handleExports"
+      class="buttons"
+      >导出</el-button
+    >
     <el-calendar id="calendar">
       <template slot="dateCell" slot-scope="{ date, data }">
         <div class="calendar-day">
@@ -7,16 +16,6 @@
         </div>
         <div @click="chooseDay(data.day)">
           <div>
-            <!-- <p v-for="(item,n) in attendanceDetailsData" :key="item.id" style="color: red">
-              <span v-if="item.workStartTime == data.day">
-
-                <span>
-                  {{
-                  item.workDetail
-                  }}
-                </span>
-              </span>
-            </p>-->
             <div
               v-for="(item, n) in attendanceDetailsData2"
               :key="item.workStartTime + n"
@@ -26,7 +25,7 @@
                 v-for="(a, b) in item.data"
                 :key="a.workStartTime + b"
                 v-if="b <= '2'"
-                style="color: red"
+                style="color: #49edf4"
               >
                 {{ a.workDetail }}
               </p>
@@ -45,15 +44,7 @@
       :close-on-click-modal="false"
       @close="closes"
     >
-      <el-button
-        type="warning"
-        plain
-        icon="el-icon-download"
-        size="mini"
-        @click="handleExport"
-        >导出</el-button
-      >
-      <div class="jiben" style="margin-top:30px">任务详情</div>
+      <div class="jiben" style="margin-top: 30px">任务详情</div>
       <el-table
         :data="worktaskplanList"
         :header-cell-style="{ background: '#2a6b9a', color: 'white' }"
@@ -71,16 +62,16 @@
           </template>
         </el-table-column>
         <el-table-column label="任务名称" prop="workName" />
-        <el-table-column label="任务类型" prop="workType" />
+        <el-table-column label="任务类型" prop="workType" width="250" />
         <el-table-column
           label="任务描述"
           prop="workDetail"
           width="100"
           show-overflow-tooltip
         ></el-table-column>
-        <el-table-column label="开始时间" prop="workStartTime" />
-        <el-table-column label="结束时间" prop="workEndTime" />
-        <el-table-column label="任务优先级" prop="taskStatus">
+        <el-table-column label="开始时间" prop="workStartTime" width="150" />
+        <el-table-column label="结束时间" prop="workEndTime" width="150" />
+        <el-table-column label="任务优先级" prop="taskStatus" width="100">
           <template slot-scope="scope">
             <dict-tag
               :options="dict.type.work_priority"
@@ -88,7 +79,7 @@
             />
           </template>
         </el-table-column>
-        <el-table-column label="进度" prop="workRate">
+        <el-table-column label="进度" prop="workRate" width="100">
           <template slot-scope="scope">
             <span v-if="scope.row.workRate">{{ scope.row.workRate }}%</span>
           </template>
@@ -97,14 +88,14 @@
           label="操作"
           align="center"
           class-name="small-padding fixed-width"
-          width="150"
+          width="200"
+          fixed="right"
         >
           <template slot-scope="scope">
             <el-button
               size="btk"
               type="text"
               @click="handleUpdateCha(scope.row)"
-              v-hasPermi="['workingArrangements:worktaskplan:add']"
               >查看</el-button
             >
             <el-button
@@ -306,6 +297,50 @@
         <el-button @click="cancel2">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 导出弹框 -->
+    <el-dialog
+      :title="title"
+      :visible.sync="open5"
+      width="450px"
+      append-to-body
+      class="el-dialog__header jinduchakan"
+      :close-on-click-modal="false"
+    >
+      <el-form
+        ref="queryParamsTime"
+        :model="queryParamsTime"
+        :rules="queryParamsRules"
+        label-width="100px"
+        :inline="true"
+      >
+        <el-form-item label="开始时间" prop="startTime">
+          <el-date-picker
+            placeholder="请选择开始时间"
+            clearable
+            size="small"
+            v-model="queryParamsTime.startTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            style="width: 200px"
+          ></el-date-picker>
+        </el-form-item>
+        <el-form-item label="结束时间" label-width="100px" prop="endTime">
+          <el-date-picker
+            placeholder="请选择结束时间"
+            clearable
+            size="small"
+            v-model="queryParamsTime.endTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+          ></el-date-picker>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="handleExport">导 出</el-button>
+        <el-button @click="cancelDao">取 消</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -313,7 +348,7 @@ import {
   peopleList,
   progressInput,
   queryTask,
-  exportCurrentUserTask
+  exportCurrentUserTask,
 } from "@/api/workingArrangements/workCalendar";
 export default {
   name: "workCalendar",
@@ -363,13 +398,19 @@ export default {
       url: process.env.VUE_APP_BASE_API,
       // 执行人查看进度
       workProgresses: [],
-      form1:{}
+      form1: {},
+      open5: false,
+      queryParamsTime: {},
+      queryParamsRules: {},
     };
   },
   created() {
     this.getList();
   },
   methods: {
+    cancelDao() {
+      this.open5 = false;
+    },
     getList() {
       peopleList().then((res) => {
         this.worktaskplanList = [];
@@ -498,31 +539,30 @@ export default {
       });
       return flag;
     },
-    handleExport(){
-      this.form1.nowDate=this.day
+    // 导出
+    handleExports() {
+      this.queryParamsTime = {};
+      this.open5 = true;
+      this.title = "导出";
+    },
+    handleExport() {
       this.$modal
-            .confirm("是否确认导出数据项?")
-            .then(() => {
-              return exportCurrentUserTask(this.form1);
-            })
-            .then((response) => {
-              this.$download.name(response.msg);
-              this.open = false;
-            })
-            .catch(() => {});
-        }
+        .confirm("是否确认导出数据项?")
+        .then(() => {
+          return exportCurrentUserTask(this.queryParamsTime);
+        })
+        .then((response) => {
+          this.$download.name(response.msg);
+          this.open5 = false;
+        })
+        .catch(() => {});
+    },
   },
 };
 </script>
 
   <style scoped>
 .box {
-  /* min-height: calc(100vh - 85px);
-    width: 100%;
-    overflow: hidden;
-    background-color: #103360;
-    margin: 0;
-    padding: 0; */
 }
 .is-selected {
   color: #1989fa;
@@ -541,7 +581,8 @@ export default {
 ::v-deep .jindu .el-table__cell {
   border: none !important;
 }
-::v-deep .jindu .is-leaf {
+
+::v-deep .jindu .el-dialog__body .el-table th.is-leaf {
   border: none !important;
 }
 ::v-deep .el-calendar {
@@ -550,8 +591,16 @@ export default {
 ::v-deep .el-calendar__title {
   color: #fff;
 }
-::v-deep .el-calendar .el-button--plain {
-  background: #114a80 !important;
+::v-deep .el-calendar .el-button--plain:nth-child(1) {
+  background: #1d96ff !important;
+  color: #fff;
+}
+::v-deep .el-calendar .el-button--plain:nth-child(2) {
+  background: #67c23a !important;
+  color: #fff;
+}
+::v-deep .el-calendar .el-button--plain:nth-child(3) {
+  background: #ff4949 !important;
   color: #fff;
 }
 ::v-deep .el-calendar-table thead th {
@@ -566,4 +615,9 @@ export default {
 ::v-deep .el-calendar-table td.is-selected {
   background: #114a80 !important;
 }
+.buttons {
+  position: absolute;
+  left: 9%;
+  top: 1%;
+}
 </style>