flx:修复分部分项校验问题
This commit is contained in:
parent
ad4dd03372
commit
d8f539e16d
@ -506,7 +506,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="分部分项名称"
|
label="分部分项名称"
|
||||||
prop="taskName"
|
prop="parentTaskName"
|
||||||
v-if="dialogType == 3"
|
v-if="dialogType == 3"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
@ -834,7 +834,7 @@ export default {
|
|||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("message.personnelPosition.required"),
|
message: this.$t("message.personnelPosition.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
taskName: [
|
taskName: [
|
||||||
@ -954,8 +954,13 @@ export default {
|
|||||||
this.getHierarchyEnterpriseList();
|
this.getHierarchyEnterpriseList();
|
||||||
this.getTreeList();
|
this.getTreeList();
|
||||||
},
|
},
|
||||||
|
// watch:{
|
||||||
|
// "dialogVisible"() {
|
||||||
|
// this.$refs['addEditForm'] && this.$refs['addEditForm'].clearValidate();
|
||||||
|
// }
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
selectFormChange() {
|
selectFormChange(val) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
this.selectFormVal = "";
|
this.selectFormVal = "";
|
||||||
this.workerInfo.qualityRegionId = "";
|
this.workerInfo.qualityRegionId = "";
|
||||||
@ -1248,8 +1253,22 @@ export default {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.workerInfo = {};
|
this.workerInfo = {
|
||||||
this.workerInfo.parentId = 0;
|
taskName: "",
|
||||||
|
startDate: "",
|
||||||
|
finishDate: "",
|
||||||
|
actualStartDate: "",
|
||||||
|
actualFinishDate: "",
|
||||||
|
dutyUserId: "",
|
||||||
|
qualityRegionId: "",
|
||||||
|
enterpriseId: "",
|
||||||
|
enterpriseName: "",
|
||||||
|
progressRatio: "",
|
||||||
|
remark: "",
|
||||||
|
parentId: 0,
|
||||||
|
status: 0,
|
||||||
|
};
|
||||||
|
// this.workerInfo.parentId = 0;
|
||||||
this.selectFormVal = "";
|
this.selectFormVal = "";
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addEditForm.clearValidate();
|
this.$refs.addEditForm.clearValidate();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user