Explorar el Código

fix: 库存数量不必填

yongCode hace 5 meses
padre
commit
47ed3e611c
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/views/material/hooks/useSubmitForm.js

+ 4 - 4
src/views/material/hooks/useSubmitForm.js

@@ -45,10 +45,10 @@ const useSubmitForm = (getTableData) => {
     levelTwoId: [
       { required: true, message: "所属二级分类不能为空", trigger: "change" },
     ],
-    toolNum:[
-      { required: true, message: "数量不能为空", trigger: "blur" },
-      { validator: checkNums, trigger: 'change' },
-    ]
+    // toolNum:[
+    //   { required: true, message: "数量不能为空", trigger: "blur" },
+    //   { validator: checkNums, trigger: 'change' },
+    // ]
   });
   // 弹窗是否打开
   const open = ref(false);