刘洋 1 vuosi sitten
vanhempi
commit
b680f62d9c
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      src/views/sop/sop-manage/sop-step/index.vue

+ 5 - 2
src/views/sop/sop-manage/sop-step/index.vue

@@ -615,7 +615,10 @@ const toViewHistory = () => {
 const switchStep = async (stepData) => {
   if (IS_EDIT_MODE.value) {
     const valid = await form.value.validate();
-    if (valid !== true || !otherRulesPassed.value)
+    if (
+      (valid !== true || !otherRulesPassed.value) &&
+      curStepData.value.setup !== 3
+    )
       return MessagePlugin.error('请完善必填项');
 
     allFormData.value = { ...allFormData.value, ...formData.value };
@@ -628,6 +631,7 @@ const switchStep = async (stepData) => {
 const itemValueChange = ({ prop, value }) => {
   console.log(prop, ':', value);
   formData.value[prop] = value;
+  allFormData.value[prop] = value;
 };
 
 const getFormData = () => {
@@ -655,7 +659,6 @@ const getFormData = () => {
       };
     });
   }
-
   return JSON.stringify(data);
 };
 // 填报-提交