|
@@ -190,7 +190,7 @@
|
|
|
|
|
|
|
|
<!-- 下发弹窗 -->
|
|
<!-- 下发弹窗 -->
|
|
|
<el-dialog v-model="issueDialogVisible" title="下发考核表" width="480px" destroy-on-close>
|
|
<el-dialog v-model="issueDialogVisible" title="下发考核表" width="480px" destroy-on-close>
|
|
|
- <el-form :model="issueForm" label-width="130px">
|
|
|
|
|
|
|
+ <el-form :model="issueForm" label-width="130px" class="issue-dialog-form">
|
|
|
<el-form-item label="部门名称:">
|
|
<el-form-item label="部门名称:">
|
|
|
<el-cascader
|
|
<el-cascader
|
|
|
ref="issueDeptCascaderRef"
|
|
ref="issueDeptCascaderRef"
|
|
@@ -200,6 +200,7 @@
|
|
|
:show-all-levels="false"
|
|
:show-all-levels="false"
|
|
|
placeholder="请选择部门"
|
|
placeholder="请选择部门"
|
|
|
filterable
|
|
filterable
|
|
|
|
|
+ style="width: 100%"
|
|
|
@change="handleIssueDeptChange"
|
|
@change="handleIssueDeptChange"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -209,6 +210,7 @@
|
|
|
placeholder="请选择用户组"
|
|
placeholder="请选择用户组"
|
|
|
filterable
|
|
filterable
|
|
|
clearable
|
|
clearable
|
|
|
|
|
+ style="width: 100%"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in userGroupOptions"
|
|
v-for="item in userGroupOptions"
|
|
@@ -224,6 +226,7 @@
|
|
|
placeholder="请选择部门自评审核人"
|
|
placeholder="请选择部门自评审核人"
|
|
|
filterable
|
|
filterable
|
|
|
clearable
|
|
clearable
|
|
|
|
|
+ style="width: 100%"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="user in deptSelfApproveUserList"
|
|
v-for="user in deptSelfApproveUserList"
|
|
@@ -240,6 +243,13 @@
|
|
|
placeholder="请选择计划开始日期"
|
|
placeholder="请选择计划开始日期"
|
|
|
value-format="YYYY-MM-DD"
|
|
value-format="YYYY-MM-DD"
|
|
|
format="YYYY-MM-DD"
|
|
format="YYYY-MM-DD"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :disabled-date="(date: Date) => {
|
|
|
|
|
+ if (issueForm.endDate) {
|
|
|
|
|
+ return date > new Date(issueForm.endDate);
|
|
|
|
|
+ }
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="计划结束日期:">
|
|
<el-form-item label="计划结束日期:">
|
|
@@ -249,6 +259,13 @@
|
|
|
placeholder="请选择计划结束日期"
|
|
placeholder="请选择计划结束日期"
|
|
|
value-format="YYYY-MM-DD"
|
|
value-format="YYYY-MM-DD"
|
|
|
format="YYYY-MM-DD"
|
|
format="YYYY-MM-DD"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :disabled-date="(date: Date) => {
|
|
|
|
|
+ if (issueForm.startDate) {
|
|
|
|
|
+ return date < new Date(issueForm.startDate);
|
|
|
|
|
+ }
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -504,6 +521,16 @@
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 验证日期:开始日期不能大于结束日期
|
|
|
|
|
+ if (issueForm.startDate && issueForm.endDate) {
|
|
|
|
|
+ const startDate = new Date(issueForm.startDate);
|
|
|
|
|
+ const endDate = new Date(issueForm.endDate);
|
|
|
|
|
+ if (startDate > endDate) {
|
|
|
|
|
+ ElMessage.error('计划开始日期不能大于计划结束日期');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
try {
|
|
try {
|
|
|
const payload = {
|
|
const payload = {
|
|
|
id: currentIssueId.value,
|
|
id: currentIssueId.value,
|
|
@@ -674,4 +701,10 @@
|
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
|
display: block;
|
|
display: block;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .issue-dialog-form {
|
|
|
|
|
+ :deep(.el-form-item__content) {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|