Explorar el Código

验证编号唯一传id

duy hace 2 años
padre
commit
10c1b745cd
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/views/tentative/parameter/container.vue

+ 2 - 0
src/views/tentative/parameter/container.vue

@@ -481,9 +481,11 @@ const setAddEditFormRules = (fieldList) => {
 //校验材料编号是否唯一
 const verification = async (key, val) => {
     const { containerInitTabName } = menuItem.value
+    const form = addEditFormModel.value
     const { error, code, data } = await dataApi.verification({
         projectId: projectId.value,
         contractId: contractId.value,
+        id:form['id'] ?? '',
         bean: {
             fieldKey: key,
             fieldValue: val