Bläddra i källkod

用车审批流程修改,上传文件类型修改

lamphua 10 månader sedan
förälder
incheckning
79dd744cf2
26 ändrade filer med 10986 tillägg och 507 borttagningar
  1. 3
    1
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarApprovalController.java
  2. 28
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java
  3. 8
    4
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml
  4. 10825
    428
      oa-back/sql/sql.sql
  5. 1
    1
      oa-ui/src/components/FileUpload/index.vue
  6. 7
    1
      oa-ui/src/components/preview/index.vue
  7. 1
    1
      oa-ui/src/views/flowable/form/business/brandForm.vue
  8. 4
    4
      oa-ui/src/views/flowable/form/business/contractForm.vue
  9. 4
    4
      oa-ui/src/views/flowable/form/business/subContract.vue
  10. 2
    2
      oa-ui/src/views/flowable/form/finance/borrowForm.vue
  11. 2
    2
      oa-ui/src/views/flowable/form/finance/depositForm.vue
  12. 33
    30
      oa-ui/src/views/flowable/form/oa/carForm.vue
  13. 5
    5
      oa-ui/src/views/flowable/form/projectProcess/addproject.vue
  14. 1
    1
      oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue
  15. 3
    3
      oa-ui/src/views/flowable/form/settleForm.vue
  16. 1
    1
      oa-ui/src/views/flowable/form/technicalForm.vue
  17. 3
    3
      oa-ui/src/views/flowable/form/technicalPlan.vue
  18. 1
    1
      oa-ui/src/views/oa/car/approval.vue
  19. 2
    2
      oa-ui/src/views/oa/car/detail.vue
  20. 1
    1
      oa-ui/src/views/oa/car/expense.vue
  21. 42
    3
      oa-ui/src/views/oa/car/index.vue
  22. 1
    1
      oa-ui/src/views/oa/car/scrap.vue
  23. 2
    2
      oa-ui/src/views/oa/device/detail.vue
  24. 1
    1
      oa-ui/src/views/oa/device/expense.vue
  25. 1
    1
      oa-ui/src/views/oa/device/scrap.vue
  26. 4
    4
      oa-ui/src/views/oa/tender/index.vue

+ 3
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarApprovalController.java Visa fil

@@ -171,10 +171,12 @@ public class CmcCarApprovalController extends BaseController
171 171
         }
172 172
         if (formDataJson.getJSONArray("cars").size() > 0 && formDataJson.getJSONArray("drivers").size() > 0) {
173 173
             cmcCarApproval.setDispatcher(getLoginUser().getUserId());
174
+            cmcCarApproval.setKilometers(formDataJson.getString("kilometers"));
175
+            cmcCarApproval.setReturnDate(formDataJson.getDate("returnDate"));
174 176
             String carString = formDataJson.getString("cars").substring(1, formDataJson.getString("cars").length() - 1);
175 177
             cmcCarApproval.setCars(carString);
176 178
             cmcCarApproval.setDrivers(formDataJson.getString("drivers").substring(1, formDataJson.getString("drivers").length() - 1));
177
-            if (!formDataJson.getString("projectId").equals("")) {
179
+            if (formDataJson.getString("projectId") != null && !formDataJson.getString("projectId").equals("")) {
178 180
                 CmcProject cmcProject = new CmcProject();
179 181
                 cmcProject.setProjectId(formDataJson.getString("projectId"));
180 182
                 CmcProject project = cmcProjectService.selectCmcProjectByProjectId(cmcProject.getProjectId());

+ 28
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java Visa fil

@@ -170,6 +170,15 @@ public class CmcCarApproval extends BaseEntity
170 170
     @Excel(name = "派车审批时间", width = 30, dateFormat = "yyyy-MM-dd")
171 171
     private Date dispatchTime;
172 172
 
173
+    /** 返回时间 */
174
+    @JsonFormat(pattern = "yyyy-MM-dd")
175
+    @Excel(name = "返回时间", width = 30, dateFormat = "yyyy-MM-dd")
176
+    private Date returnDate;
177
+
178
+    /** 行驶公里数 */
179
+    @Excel(name = "行驶公里数")
180
+    private String kilometers;
181
+
173 182
     private SysUser applierUser;
174 183
 
175 184
     private SysUser deptUser;
@@ -590,6 +599,25 @@ public class CmcCarApproval extends BaseEntity
590 599
         return dispatchTime;
591 600
     }
592 601
 
602
+    public void setReturnDate(Date returnDate)
603
+    {
604
+        this.returnDate = returnDate;
605
+    }
606
+
607
+    public Date getReturnDate()
608
+    {
609
+        return returnDate;
610
+    }
611
+    public void setKilometers(String kilometers)
612
+    {
613
+        this.kilometers = kilometers;
614
+    }
615
+
616
+    public String getKilometers()
617
+    {
618
+        return kilometers;
619
+    }
620
+
593 621
     @Override
594 622
     public String toString() {
595 623
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 8
- 4
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml Visa fil

@@ -35,6 +35,8 @@
35 35
         <result property="gmTime"    column="gm_time"    />
36 36
         <result property="dszTime"    column="dsz_time"    />
37 37
         <result property="dispatchTime"    column="dispatch_time"    />
38
+        <result property="returnDate"    column="return_date"    />
39
+        <result property="kilometers"    column="kilometers"    />
38 40
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
39 41
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
40 42
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
@@ -97,7 +99,7 @@
97 99
                ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.end_date, ca.days, ca.dept_user_id, u1.nick_name as dept_nick_name, ca.dept_comment, ca.manager_user_id,
98 100
                u2.nick_name as manager_nick_name, ca.manager_comment, ca.car_usage, ca.union_user_id, u3.nick_name as union_nick_name, ca.union_comment, ca.gm_user_id, u4.nick_name as gm_nick_name,
99 101
                ca.dsz_user_id, u5.nick_name as dsz_nick_name, ca.gm_comment, ca.dsz_comment, ca.dispatcher, u6.nick_name as dispatch_nick_name, ca.dispatch_comment, ca.estimate_cost, ca.dept_time,
100
-               ca.manager_time, ca.union_time, ca.gm_time, ca.dsz_time, ca.dispatch_time from cmc_car_approval as ca
102
+               ca.manager_time, ca.union_time, ca.gm_time, ca.dsz_time, ca.dispatch_time, ca.return_date, ca.kilometers from cmc_car_approval as ca
101 103
             left join sys_user as u on u.user_id = ca.applier
102 104
             left join sys_user as u1 on u1.user_id = ca.dept_user_id
103 105
             left join sys_user as u2 on u2.user_id = ca.manager_user_id
@@ -136,7 +138,7 @@
136 138
             <if test="dispatchComment != null  and dispatchComment != ''"> and ca.dispatch_comment = #{dispatchComment}</if>
137 139
             <if test="estimateCost != null "> and ca.estimate_cost = #{estimateCost}</if>
138 140
         </where>
139
-        order by ca.apply_date asc
141
+        order by ca.apply_date desc
140 142
     </select>
141 143
 
142 144
     <select id="selectCmcCarApprovalByCarApplyId" parameterType="String" resultMap="CmcCarApprovalResult">
@@ -236,8 +238,10 @@
236 238
             <if test="managerTime != null ">manager_time = #{managerTime},</if>
237 239
             <if test="unionTime != null ">union_time = #{unionTime},</if>
238 240
             <if test="gmTime != null ">gm_time = #{gmTime},</if>
239
-            <if test="dszTime != null ">dsz_time = #{dszTime}</if>
240
-            <if test="dispatchTime != null ">dispatch_time = #{dispatchTime}</if>
241
+            <if test="dszTime != null ">dsz_time = #{dszTime},</if>
242
+            <if test="dispatchTime != null ">dispatch_time = #{dispatchTime},</if>
243
+            <if test="returnDate != null ">return_date = #{returnDate},</if>
244
+            <if test="kilometers != null ">kilometers = #{kilometers},</if>
241 245
         </trim>
242 246
         where car_apply_id = #{carApplyId}
243 247
     </update>

+ 10825
- 428
oa-back/sql/sql.sql
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
oa-ui/src/components/FileUpload/index.vue Visa fil

@@ -3,7 +3,7 @@
3 3
     <el-upload :action="uploadFileUrl" :data="additionalData" :before-upload="handleBeforeUpload" :file-list="fileList"
4 4
       :limit="limit" :on-error="handleUploadError" :on-exceed="handleExceed" :on-success="handleUploadSuccess"
5 5
       :show-file-list="false" :headers="headers" class="upload-file-uploader" ref="fileUpload"
6
-      accept=".doc,.docx,.xls,.xlsx,.pdf">
6
+      accept=".doc,.docx,.xls,.xlsx,.pdf,.rar,.zip">
7 7
       <!-- 上传按钮 -->
8 8
       <el-button size="mini" type="primary" :disabled="disabled">选取文件</el-button>
9 9
       <!-- 上传提示 -->

+ 7
- 1
oa-ui/src/components/preview/index.vue Visa fil

@@ -1,9 +1,15 @@
1
+<!--
2
+ * @Author: wrh
3
+ * @Date: 2024-06-04 18:18:09
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-22 12:34:21
6
+-->
1 7
 <template>
2 8
   <div v-loading="loading">
3 9
     <vue-office-docx :src="url" v-if="fileType == 'docx'" />
4 10
     <vue-office-excel :src="url" v-if="fileType == 'xlsx'" />
5 11
     <vue-office-pdf :src="url" v-if="fileType == 'pdf'"></vue-office-pdf>
6
-    <div v-if="fileType == 'doc' || fileType == 'xls'">
12
+    <div v-if="fileType == 'doc' || fileType == 'xls' || fileType == 'zip' || fileType == 'rar'">
7 13
       <el-empty :image-size="200" :description="'抱歉,' + fileType + '类型文件不支持在线预览,请下载到本地查看'">
8 14
         <el-link type="primary" :href="url" :underline="false" target="_blank">
9 15
           <span>立即下载</span>

+ 1
- 1
oa-ui/src/views/flowable/form/business/brandForm.vue Visa fil

@@ -31,7 +31,7 @@
31 31
           </el-form-item>
32 32
           <el-form-item label="审核文件" prop="approvalDocument">
33 33
             <FileUpload v-if="formTotal == 0" :disabled="taskName != '支付申请'" :limit="1" :filePathName="'品牌项目支付/审核文件'"
34
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getBrandPath"></FileUpload>
34
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getBrandPath"></FileUpload>
35 35
             <div v-if="formTotal == 1">
36 36
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.approvalDocument}`)">
37 37
                 {{ getFileName(form.approvalDocument) }}

+ 4
- 4
oa-ui/src/views/flowable/form/business/contractForm.vue Visa fil

@@ -77,7 +77,7 @@
77 77
           </el-row>
78 78
           <el-form-item label="合同文件" prop="contractDocument">
79 79
             <FileUpload v-if="taskName == '合同拟稿'" :disabled="taskName != '合同拟稿'" ref="contractFile" :limit="1"
80
-              :filePathName="'承接合同/合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getContractPath">
80
+              :filePathName="'承接合同/合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getContractPath">
81 81
             </FileUpload>
82 82
             <div v-if="form.contractDocument && taskName != '合同拟稿'">
83 83
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.contractDocument}`)">
@@ -246,7 +246,7 @@
246 246
                   <FileUpload v-if="comment.document == '' || comment.document == null" ref="hs" :limit="1"
247 247
                     :filePathName="'承接合同/线上会审意见'"
248 248
                     :disabled="taskName != '线上会审' || (taskName == '线上会审' && comment.userId != userId)"
249
-                    :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setCommentDocument">
249
+                    :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setCommentDocument">
250 250
                   </FileUpload>
251 251
 
252 252
                   <!-- <el-input v-model="comment.document" clearable
@@ -325,7 +325,7 @@
325 325
                 <td colspan="5">
326 326
                   <FileUpload :disabled="taskName != '会议评审'"
327 327
                     v-if="meetingForm.document == '' || meetingForm.document == null" ref="meetingDocument" :limit="1"
328
-                    :filePathName="'承接合同/会议评审意见'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
328
+                    :filePathName="'承接合同/会议评审意见'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
329 329
                     @input="getMeetingPath"></FileUpload>
330 330
                   <div v-if="meetingForm.document != '' && meetingForm.document != null">
331 331
                     <file-item :document="meetingForm.document"></file-item>
@@ -403,7 +403,7 @@
403 403
           <el-form-item label="签订扫描件" prop="signScan">
404 404
             <!-- <el-input v-model="form.signScan" placeholder="请输入签订扫描件" :disabled="taskName != '合同签订'" /> -->
405 405
             <FileUpload :disabled="taskName != '合同签订'" v-if="form.signScan == null || form.signScan == ''"
406
-              ref="contractFile" :limit="1" :filePathName="'承接合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
406
+              ref="contractFile" :limit="1" :filePathName="'承接合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
407 407
               @input="getSignScanPath">
408 408
             </FileUpload>
409 409
             <div v-if="form.signScan && taskName != '合同签订'">

+ 4
- 4
oa-ui/src/views/flowable/form/business/subContract.vue Visa fil

@@ -76,7 +76,7 @@
76 76
             <el-col :span="16" :xs="24">
77 77
               <el-form-item label="合同文件" prop="contractDocument">
78 78
                 <FileUpload v-if="formTotal == 0" :disabled="taskName != '合同拟稿'" ref="contractFile" :limit="1"
79
-                  :filePathName="'分包合同/合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getContractPath">
79
+                  :filePathName="'分包合同/合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getContractPath">
80 80
                 </FileUpload>
81 81
                 <div v-if="taskName != '合同拟稿' && form.contractDocument">
82 82
                   <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.contractDocument}`)">
@@ -251,7 +251,7 @@
251 251
                   <FileUpload v-if="comment.document == '' || comment.document == null" ref="hs" :limit="1"
252 252
                     :filePathName="'分包合同/线上会审意见'"
253 253
                     :disabled="taskName != '线上会审' || (taskName == '线上会审' && comment.userId != userId)"
254
-                    :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setCommentDocument">
254
+                    :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setCommentDocument">
255 255
                   </FileUpload>
256 256
                   <div v-if="comment.document != '' && comment.document != null">
257 257
                     <transition-group class="upload-file-list el-upload-list el-upload-list--text"
@@ -325,7 +325,7 @@
325 325
                 <td colspan="5" style="text-align:left;">
326 326
                   <FileUpload v-if="meetingForm.document == null || meetingForm.document == ''" ref="contractFile"
327 327
                     :limit="1" :filePathName="'分包合同/会议评审意见'" :disabled="taskName != '会议评审'"
328
-                    :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getMeetingPath"></FileUpload>
328
+                    :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getMeetingPath"></FileUpload>
329 329
                   <div v-if="meetingForm.document != null && meetingForm.document != ''">
330 330
                     <file-item :document="meetingForm.document"></file-item>
331 331
                   </div>
@@ -398,7 +398,7 @@
398 398
           </el-form-item>
399 399
           <el-form-item label="签订扫描件" prop="signScan">
400 400
             <FileUpload :disabled="taskName != '合同签订'" v-if="form.signScan == null || form.signScan == ''" :limit="1"
401
-              :filePathName="'分包合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getSignScanPath">
401
+              :filePathName="'分包合同文件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getSignScanPath">
402 402
             </FileUpload>
403 403
             <div v-if="form.signScan && taskName != '合同签订'">
404 404
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.signScan}`)">

+ 2
- 2
oa-ui/src/views/flowable/form/finance/borrowForm.vue Visa fil

@@ -144,7 +144,7 @@
144 144
           </el-form-item>
145 145
           <el-form-item label="附件上传" prop="borrowDocument">
146 146
             <FileUpload v-if="form.borrowDocument == null || form.borrowDocument == ''" :disabled="taskName != '借款申请'"
147
-              :limit="1" :filePathName="'借款/申请附件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
147
+              :limit="1" :filePathName="'借款/申请附件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
148 148
               @input="getBorrowPath"></FileUpload>
149 149
             <div v-if="form.borrowDocument && taskName != '借款申请'">
150 150
               <!-- <file-item :document="form.borrowDocument"></file-item> -->
@@ -247,7 +247,7 @@
247 247
           <el-divider></el-divider>
248 248
           <el-form-item label="支付凭证" prop="lendDocument">
249 249
             <FileUpload v-if="taskName == '财务处理'" :disabled="taskName != '财务处理'" :limit="1" :filePathName="'借款/支付凭证'"
250
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getLendPath">
250
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getLendPath">
251 251
             </FileUpload>
252 252
             <div v-if="form.lendDocument && taskName != '财务处理'">
253 253
               <!-- <file-item :document="form.lendDocument"></file-item> -->

+ 2
- 2
oa-ui/src/views/flowable/form/finance/depositForm.vue Visa fil

@@ -102,7 +102,7 @@
102 102
           </el-form-item>
103 103
           <el-form-item label="相关附件" prop="applyDocument">
104 104
             <FileUpload v-if="form.applyDocument == null || form.applyDocument == ''" :disabled="taskName != '保证金申请'"
105
-              :limit="1" :filePathName="'保证金/申请附件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
105
+              :limit="1" :filePathName="'保证金/申请附件'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
106 106
               @input="getApplyPath"></FileUpload>
107 107
             <div v-if="form.applyDocument && taskName != '保证金申请'">
108 108
               <!-- <file-item :document="form.applyDocument"></file-item> -->
@@ -147,7 +147,7 @@
147 147
           <el-divider></el-divider>
148 148
           <el-form-item label="汇款凭证" prop="remitDocument">
149 149
             <FileUpload v-if="taskName == '财务处理'" :disabled="taskName != '财务处理'" :limit="1" :filePathName="'保证金/汇款凭证'"
150
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getRemitPath"></FileUpload>
150
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getRemitPath"></FileUpload>
151 151
             <div v-if="form.remitDocument && taskName != '财务处理'">
152 152
               <!-- <file-item :document="form.remitDocument"></file-item> -->
153 153
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.remitDocument}`)">

+ 33
- 30
oa-ui/src/views/flowable/form/oa/carForm.vue Visa fil

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-29 11:44:28
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-17 17:29:24
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-22 17:57:05
6 6
 -->
7 7
 
8 8
 <template>
@@ -179,12 +179,12 @@
179 179
               </el-form-item>
180 180
               <el-row>
181 181
                 <el-col :span="6" :xs="24" :offset="12">
182
-                  <el-form-item label="签名:" label-width="120px" v-if="showFormItem('总经理审核签名')">
182
+                  <el-form-item label="签名:" label-width="120px" v-if="showFormItem('董事长审核签名')">
183 183
                     <span class="auditor"> {{ form.dszUser ? form.dszUser.nickName : dszUser }} </span>
184 184
                   </el-form-item>
185 185
                 </el-col>
186 186
                 <el-col :span="6">
187
-                  <el-form-item label="日期:" label-width="120px" v-if="showFormItem('总经理审核签名')">
187
+                  <el-form-item label="日期:" label-width="120px" v-if="showFormItem('董事长审核签名')">
188 188
                     <span> {{ form.dszTime ? form.dszTime : dszTime }} </span>
189 189
                   </el-form-item>
190 190
                 </el-col>
@@ -198,12 +198,12 @@
198 198
               </el-form-item>
199 199
               <el-row>
200 200
                 <el-col :span="6" :xs="24" :offset="12">
201
-                  <el-form-item label="签名:" label-width="120px" v-if="taskName == '安排用车' || taskName == '申请确认'">
201
+                  <el-form-item label="签名:" label-width="120px" v-if="taskName == '安排用车'">
202 202
                     <span class="auditor"> {{ form.dispatchUser ? form.dispatchUser.nickName : dispatchUser }} </span>
203 203
                   </el-form-item>
204 204
                 </el-col>
205 205
                 <el-col :span="6">
206
-                  <el-form-item label="日期:" label-width="120px" v-if="taskName == '安排用车' || taskName == '申请确认'">
206
+                  <el-form-item label="日期:" label-width="120px" v-if="taskName == '安排用车'">
207 207
                     <span> {{ form.dispatchTime ? form.dispatchTime : dispatchTime }} </span>
208 208
                   </el-form-item>
209 209
                 </el-col>
@@ -227,13 +227,26 @@
227 227
                   </el-option>
228 228
                 </el-select>
229 229
               </el-form-item>
230
+              <el-row>
231
+                <el-col :span="12" :xs="24">
232
+                  <el-form-item label="返回日期" prop="returnDate">
233
+                    <el-date-picker v-model="form.returnDate" clearable type="date" value-format="yyyy-MM-dd" placeholder="选择日期" :disabled="taskName != '安排用车'">
234
+                    </el-date-picker>
235
+                  </el-form-item>
236
+                </el-col>
237
+                <el-col :span="12" :xs="24">
238
+                  <el-form-item label="行驶公里:" prop="kilometers" label-width="120px">
239
+                    <el-input placeholder="请输入行驶公里" v-model="form.kilometers" style="width: 200px;" :disabled="taskName != '安排用车'"/>
240
+                    <span> 公里</span>
241
+                  </el-form-item>
242
+                </el-col>
243
+              </el-row>
230 244
             </el-form>
231 245
             <el-row style="text-align: center;" v-if="taskName == '用车申请'">
232 246
               <el-button type="primary" @click="submit">提交申请</el-button>
233 247
             </el-row>
234 248
             <el-row style="text-align: center;" v-else>
235
-              <el-button type="primary" :disabled="taskName == ''" @click="completeApply">{{ taskName == '申请确认' ? "确认" :
236
-    "完成审批" }}</el-button>
249
+              <el-button type="primary" v-if="taskName" @click="completeApply">完成审批</el-button>
237 250
             </el-row>
238 251
           </div>
239 252
         </el-card>
@@ -322,7 +335,7 @@ export default {
322 335
       this.dispatchUser = this.$store.getters.name;
323 336
       this.dispatchTime = parseTime(new Date(), '{y}-{m}-{d}')
324 337
     }
325
-    this.dept = this.$store.getters.deptId;
338
+    this.dept = this.$store.getters.deptId;    
326 339
     this.getProjectList();
327 340
     this.getCarList();
328 341
     this.getDriverList();
@@ -603,7 +616,7 @@ export default {
603 616
             this.$emit('goBack')
604 617
           })
605 618
         });
606
-      } else if (this.taskName == '安排用车' || this.taskName == '申请确认') {
619
+      } else if (this.taskName == '安排用车') {
607 620
         complete(this.taskForm).then(response => {
608 621
           this.$modal.msgSuccess(response.msg);
609 622
           this.$emit('goBack')
@@ -722,35 +735,25 @@ export default {
722 735
     showFormItem(name) {
723 736
       let isShow = false;
724 737
       if (name == '部门审核')
725
-        isShow = (this.dept > 102 && this.taskName == '用车申请') || (this.taskName == '部门审核' || this.taskName == '分管审核') || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.deptUserId != null)
726
-          || (this.dept > 102 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
738
+        isShow = (this.dept > 102 && this.taskName == '用车申请') || (this.taskName == '部门审核' || this.taskName == '分管审核') || ((this.taskName == '安排用车' || this.taskName == '') && this.form.deptUserId != null);
727 739
       else if (name == '分管审核')
728
-        isShow = (this.dept > 102 && this.taskName == '用车申请') || (this.taskName == '部门审核' || this.taskName == '分管审核') || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.managerUserId != null)
729
-          || (this.dept > 102 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
740
+        isShow = (this.dept > 102 && this.taskName == '用车申请') || (this.taskName == '部门审核' || this.taskName == '分管审核') || ((this.taskName == '安排用车' || this.taskName == '') && this.form.managerUserId != null);
730 741
       else if (name == '党工团审核')
731
-        isShow = (this.dept == 0 && this.taskName == '用车申请') || this.taskName == '党工团审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.unionUserId != null)
732
-          || (this.dept == 0 && this.taskName == '' && (this.form.carUsage == 2 || this.form.carUsage == 3 || this.form.carUsage == 4));
742
+        isShow = (this.dept == 0 && this.taskName == '用车申请') || this.taskName == '党工团审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.unionUserId != null);
733 743
       else if (name == '总经理审核')
734
-        isShow = (this.dept == 102 && this.taskName == '用车申请') || this.taskName == '总经理审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.gmUserId != null)
735
-          || (this.dept == 102 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
744
+        isShow = (this.dept == 102 && this.taskName == '用车申请') || this.taskName == '总经理审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.gmUserId != null);
736 745
       else if (name == '董事长审核')
737
-        isShow = (this.dept == 101 && this.taskName == '用车申请') || this.taskName == '董事长审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.gmUserId != null)
738
-          || (this.dept == 101 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
746
+        isShow = (this.dept == 101 && this.taskName == '用车申请') || this.taskName == '董事长审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.dszUserId != null);
739 747
       else if (name == '部门审核签名')
740
-        isShow = (this.taskName == '部门审核' || this.taskName == '分管审核') || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.deptUserId != null)
741
-          || (this.dept > 102 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
748
+        isShow = (this.taskName == '部门审核' || this.taskName == '分管审核') || ((this.taskName == '安排用车' || this.taskName == '') && this.form.deptUserId != null);
742 749
       else if (name == '分管审核签名')
743
-        isShow = this.taskName == '分管审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.managerUserId != null)
744
-          || (this.dept > 102 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
750
+        isShow = this.taskName == '分管审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.managerUserId != null);
745 751
       else if (name == '党工团审核签名')
746
-        isShow = this.taskName == '党工团审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.unionUserId != null)
747
-          || (this.dept == 0 && this.taskName == '' && (this.form.carUsage == 2 || this.form.carUsage == 3 || this.form.carUsage == 4));
752
+        isShow = this.taskName == '党工团审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.unionUserId != null);
748 753
       else if (name == '总经理审核签名')
749
-        isShow = this.taskName == '总经理审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.gmUserId != null)
750
-          || (this.dept == 102 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
754
+        isShow = this.taskName == '总经理审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.gmUserId != null);
751 755
       else if (name == '董事长审核签名')
752
-        isShow = this.taskName == '董事长审核' || ((this.taskName == '安排用车' || this.taskName == '申请确认') && this.form.gmUserId != null)
753
-          || (this.dept == 101 && this.taskName == '' && (this.form.carUsage == '0' || this.form.carUsage == '1'));
756
+        isShow = this.taskName == '董事长审核' || ((this.taskName == '安排用车' || this.taskName == '') && this.form.dszUserId != null);
754 757
       return isShow;
755 758
     },
756 759
   },

+ 5
- 5
oa-ui/src/views/flowable/form/projectProcess/addproject.vue Visa fil

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-18 11:00:04
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-16 11:06:07
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-22 12:39:12
6 6
 -->
7 7
 <template>
8 8
   <div class="project-wrapper">
@@ -59,7 +59,7 @@
59 59
           </el-link>
60 60
         </div>
61 61
         <FileUpload v-if="$route.query.taskName == '项目登记'" ref="orz" :limit="1" :filePathName="'项目任务书'"
62
-          :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setProjectDocument">
62
+          :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setProjectDocument">
63 63
         </FileUpload>
64 64
       </el-form-item>
65 65
       <el-form-item label="资料提交要求:" prop="projectRequest">
@@ -165,8 +165,8 @@ export default {
165 165
         partyAId: [{ required: true, message: "请选择甲方单位", trigger: "change" }],
166 166
         contactPerson: [{ required: true, message: "请输入联系人", trigger: "blur" }],
167 167
         telephone: [{ required: true, message: "请输入联系人联系方式", trigger: "blur" }],
168
-        projectRequest: [{ required: true, message: "请输入资料提交要求", trigger: "blur" }],
169
-        taskDocument: [{ required: true, message: "请上传任务书", trigger: "blur" }]
168
+        // projectRequest: [{ required: true, message: "请输入资料提交要求", trigger: "blur" }],
169
+        // taskDocument: [{ required: true, message: "请上传任务书", trigger: "blur" }]
170 170
       },
171 171
       workList: [
172 172
         {

+ 1
- 1
oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue Visa fil

@@ -70,7 +70,7 @@
70 70
               </el-link>
71 71
             </div>
72 72
             <FileUpload v-if="taskName == '项目安排'" ref="orz" :limit="1" :filePathName="'组织交底文件'"
73
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setOrganizeDocument">
73
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setOrganizeDocument">
74 74
             </FileUpload>
75 75
           </el-form-item>
76 76
         </el-col>

+ 3
- 3
oa-ui/src/views/flowable/form/settleForm.vue Visa fil

@@ -79,7 +79,7 @@
79 79
           </el-row>
80 80
           <el-form-item label="原始上报数据" prop="">
81 81
             <FileUpload v-if="taskName == '结算发起'" :limit="1" :filePathName="'项目结算/原始数据'"
82
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setSettleDocument">
82
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setSettleDocument">
83 83
             </FileUpload>
84 84
             <div v-if="form.settleDocument" class="upload-list">
85 85
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.settleDocument}`)">
@@ -93,7 +93,7 @@
93 93
           </el-form-item>
94 94
           <el-form-item label="经营发展部审核结算单" prop="">
95 95
             <FileUpload v-if="taskName == '经营发展部校核'" :limit="1" :filePathName="'项目结算/经营发展部审核结算单'"
96
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setModifyDocument">
96
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setModifyDocument">
97 97
             </FileUpload>
98 98
             <div v-if="form.modifyDocument" class="upload-list">
99 99
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.modifyDocument}`)">
@@ -107,7 +107,7 @@
107 107
           </el-form-item>
108 108
           <el-form-item label="分管领导审核结算单" prop="">
109 109
             <FileUpload v-if="taskName == '分管审核'" :limit="1" :filePathName="'项目结算/分管领导审核结算单'"
110
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="setFinalDocument">
110
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="setFinalDocument">
111 111
             </FileUpload>
112 112
             <div v-if="form.finalDocument" class="upload-list">
113 113
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.finalDocument}`)">

+ 1
- 1
oa-ui/src/views/flowable/form/technicalForm.vue Visa fil

@@ -33,7 +33,7 @@
33 33
           </el-form-item>
34 34
           <el-form-item label="附件" prop="document">
35 35
             <FileUpload v-if="taskName == '技术交底'" ref="bsFile" :limit="1" :filePathName="'技术交底'"
36
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getTechnicalDoc"></FileUpload>
36
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getTechnicalDoc"></FileUpload>
37 37
             <div v-if="form.document && taskName != '技术交底'">
38 38
               <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.document}`)">
39 39
                 {{ getFileName(form.document) }}

+ 3
- 3
oa-ui/src/views/flowable/form/technicalPlan.vue Visa fil

@@ -71,7 +71,7 @@
71 71
           <el-divider></el-divider>
72 72
           <el-form-item label="初始技术方案" prop="technicalDocument">
73 73
             <FileUpload v-if="taskName == '方案上传'" ref="bsFile" :limit="1" :filePathName="'技术方案/初始'"
74
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getTechnicalDoc"></FileUpload>
74
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getTechnicalDoc"></FileUpload>
75 75
             <!-- <el-link v-if="taskName != '方案上传'" :href="`${baseUrl}${'/profile/upload' + form.technicalDocument}`"
76 76
               :underline="false" target="_blank">
77 77
               <span class="el-icon-document"> {{ getFileName(form.technicalDocument) }} </span>
@@ -105,7 +105,7 @@
105 105
           <el-divider></el-divider>
106 106
           <el-form-item label="修改技术方案" prop="modifyDocument">
107 107
             <FileUpload v-if="taskName == '技术审核'" ref="jssh" :limit="1" :filePathName="'技术方案/修改'"
108
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getModifyDoc"></FileUpload>
108
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getModifyDoc"></FileUpload>
109 109
             <!-- <el-link v-if="taskName != '技术审核'" :href="`${baseUrl}${'/profile/upload' + form.modifyDocument}`"
110 110
               :underline="false" target="_blank">
111 111
               <span class="el-icon-document"> {{ getFileName(form.modifyDocument) }} </span>
@@ -138,7 +138,7 @@
138 138
           </el-row>
139 139
           <el-form-item label="最终技术方案" prop="finalDocument">
140 140
             <FileUpload v-if="taskName == '总工审核'" ref="final" :limit="1" :filePathName="'技术方案/最终'"
141
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getFinalDoc"></FileUpload>
141
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getFinalDoc"></FileUpload>
142 142
             <!-- <el-link v-if="taskName != '总工审核'" :href="`${baseUrl}${'/profile/upload' + form.finalDocument}`"
143 143
               :underline="false" target="_blank">
144 144
               <span class="el-icon-document"> {{ getFileName(form.finalDocument) }} </span>

+ 1
- 1
oa-ui/src/views/oa/car/approval.vue Visa fil

@@ -71,7 +71,7 @@
71 71
         </template>
72 72
       </el-table-column>
73 73
       <el-table-column label="天数" align="center" prop="days" />
74
-      <el-table-column label="部门审批人" align="center" prop="deptUserId" />
74
+      <!-- <el-table-column label="部门审批人" align="center" prop="deptUser.nickName" /> -->
75 75
       <el-table-column label="申请日期" align="center" prop="applyDate">
76 76
         <template slot-scope="scope">
77 77
           <span>{{ parseTime(scope.row.applyDate, '{y}-{m}-{d}') }}</span>

+ 2
- 2
oa-ui/src/views/oa/car/detail.vue Visa fil

@@ -231,7 +231,7 @@
231 231
           <el-input type="textarea" v-model="expenseForm.remark" placeholder="请输入备注说明" style="width:220px" />
232 232
         </el-form-item>
233 233
         <el-form-item label="附件" prop="document">
234
-          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
234
+          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
235 235
             @input="getExpensePath"></FileUpload>
236 236
           <div v-if="modifyOpen">
237 237
             <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear"
@@ -273,7 +273,7 @@
273 273
           <el-input v-model="scrapForm.remark" placeholder="请输入备注" />
274 274
         </el-form-item>
275 275
         <el-form-item label="附件" prop="document">
276
-          <FileUpload :limit="1" :filePathName="'车辆/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
276
+          <FileUpload :limit="1" :filePathName="'车辆/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
277 277
             @input="getScrapPath"></FileUpload>
278 278
           <div v-if="scrapModifyOpen">
279 279
             <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear"

+ 1
- 1
oa-ui/src/views/oa/car/expense.vue Visa fil

@@ -133,7 +133,7 @@
133 133
               <span class="el-icon-download">下载文件</span>
134 134
             </el-link>
135 135
           </div> 
136
-          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
136
+          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
137 137
             @input="getExpensePath"></FileUpload>
138 138
         </el-form-item>
139 139
       </el-form>

+ 42
- 3
oa-ui/src/views/oa/car/index.vue Visa fil

@@ -36,6 +36,11 @@
36 36
     <el-table v-loading="loading" :data="carList" @selection-change="handleSelectionChange">
37 37
       <el-table-column type="selection" width="55" align="center" />
38 38
       <!-- <el-table-column label="车辆id" align="center" prop="carId" /> -->
39
+      <el-table-column label="车辆状态" align="center" prop="status">
40
+        <template slot-scope="scope">
41
+          <el-tag :type="statusTypeStyle(scope.row.status)">{{ statusTypeText(scope.row.status) }}</el-tag>
42
+        </template>
43
+      </el-table-column>
39 44
       <el-table-column label="车牌号" align="center" prop="licensePlate" />
40 45
       <el-table-column label="驾驶员" align="center" prop="driverUser.nickName" />
41 46
       <el-table-column label="品牌" align="center" prop="brand" />
@@ -80,8 +85,8 @@
80 85
       </el-table-column>
81 86
     </el-table>
82 87
 
83
-    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
84
-      @pagination="getList" />
88
+    <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
89
+      @pagination="getList" /> -->
85 90
 
86 91
     <!-- 添加或修改cmc车辆信息对话框 -->
87 92
     <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
@@ -166,7 +171,7 @@ export default {
166 171
       // 查询参数
167 172
       queryParams: {
168 173
         pageNum: 1,
169
-        pageSize: 10,
174
+        pageSize: 20,
170 175
         licensePlate: null,
171 176
         driver: null
172 177
       },
@@ -290,6 +295,40 @@ export default {
290 295
       this.download('oa/car/export', {
291 296
         ...this.queryParams
292 297
       }, `car_${new Date().getTime()}.xlsx`)
298
+    },
299
+    statusTypeText(row) {
300
+      if (row == '0') {
301
+        return '被领用'
302
+      }
303
+      if (row == '1') {
304
+        return '可领用'
305
+      }
306
+      if (row == '2') {
307
+        return '维修中'
308
+      }
309
+      if (row == '3') {
310
+        return '已停用'
311
+      }
312
+      if (row == '4') {
313
+        return '已报废'
314
+      }
315
+    },
316
+    statusTypeStyle(row) {
317
+      if (row == '0') {
318
+        return 'warning'
319
+      }
320
+      if (row == '1') {
321
+        return 'success'
322
+      }
323
+      if (row == '2') {
324
+        return 'danger'
325
+      }
326
+      if (row == '3') {
327
+        return 'primary'
328
+      }
329
+      if (row == '4') {
330
+        return 'info'
331
+      }
293 332
     }
294 333
   }
295 334
 };

+ 1
- 1
oa-ui/src/views/oa/car/scrap.vue Visa fil

@@ -110,7 +110,7 @@
110 110
               <span class="el-icon-download">下载文件</span>
111 111
             </el-link>
112 112
           </div>
113
-          <FileUpload :limit="1" :filePathName="'车辆/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
113
+          <FileUpload :limit="1" :filePathName="'车辆/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
114 114
             @input="getExpensePath"></FileUpload>
115 115
         </el-form-item>
116 116
       </el-form>

+ 2
- 2
oa-ui/src/views/oa/device/detail.vue Visa fil

@@ -289,7 +289,7 @@
289 289
           <el-input v-model="expenseForm.remark" placeholder="请输入备注" />
290 290
         </el-form-item>
291 291
         <el-form-item label="附件" prop="document">
292
-          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
292
+          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
293 293
             @input="getExpensePath"></FileUpload>
294 294
           <div v-if="expenseModifyOpen">
295 295
             <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear"
@@ -395,7 +395,7 @@
395 395
           <el-input v-model="scrapForm.remark" placeholder="请输入备注" />
396 396
         </el-form-item>
397 397
         <el-form-item label="附件" prop="document">
398
-          <FileUpload :limit="1" :filePathName="'设备/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
398
+          <FileUpload :limit="1" :filePathName="'设备/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
399 399
             @input="getScrapPath"></FileUpload>
400 400
           <div v-if="scrapModifyOpen">
401 401
             <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear"

+ 1
- 1
oa-ui/src/views/oa/device/expense.vue Visa fil

@@ -138,7 +138,7 @@
138 138
               <span class="el-icon-download">下载文件</span>
139 139
             </el-link>
140 140
           </div>
141
-          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
141
+          <FileUpload :limit="1" :filePathName="expenseName" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
142 142
             @input="getExpensePath"></FileUpload>
143 143
         </el-form-item>
144 144
       </el-form>

+ 1
- 1
oa-ui/src/views/oa/device/scrap.vue Visa fil

@@ -114,7 +114,7 @@
114 114
               <span class="el-icon-download">下载文件</span>
115 115
             </el-link>
116 116
           </div>
117
-          <FileUpload :limit="1" :filePathName="'设备/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
117
+          <FileUpload :limit="1" :filePathName="'设备/报废'" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
118 118
             @input="getExpensePath"></FileUpload>
119 119
         </el-form-item>
120 120
       </el-form>

+ 4
- 4
oa-ui/src/views/oa/tender/index.vue Visa fil

@@ -247,9 +247,9 @@
247 247
               招标文件
248 248
             </template>
249 249
             <FileUpload v-if="form.tenderId == null" ref="zbFile" :limit="1" :filePathName="'投标文件'"
250
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getUploadPathBidDocument"></FileUpload>
250
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getUploadPathBidDocument"></FileUpload>
251 251
             <div v-if="form.tenderId != null">
252
-              <FileUpload v-if="!isView" ref="zb" :limit="1" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
252
+              <FileUpload v-if="!isView" ref="zb" :limit="1" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
253 253
                 :isShowTip="false" :filePathName="'投标文件'" :isModify="true" @input="getUploadPathBidDocument">
254 254
               </FileUpload>
255 255
               <div v-if="form.bidDocument">
@@ -351,9 +351,9 @@
351 351
               标书文件
352 352
             </template>
353 353
             <FileUpload v-if="form.tenderId == null" ref="bsFile" :limit="1" :filePathName="'投标文件'"
354
-              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getUploadPathTenderDocument"></FileUpload>
354
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getUploadPathTenderDocument"></FileUpload>
355 355
             <div v-if="form.tenderId != null">
356
-              <FileUpload v-if="!isView" ref="bs" :limit="1" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']"
356
+              <FileUpload v-if="!isView" ref="bs" :limit="1" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']"
357 357
                 :isShowTip="false" :filePathName="'投标文件'" :isModify="true" @input="getUploadPathTenderDocument">
358 358
               </FileUpload>
359 359
               <div v-if="form.tenderDocument">

Loading…
Avbryt
Spara