|
|
@@ -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
|
},
|