浏览代码

s试验自检记录id新增

duy 2 年之前
父节点
当前提交
55c0cb5a8b
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/views/tentative/detect/test-form.vue

+ 5 - 0
src/views/tentative/detect/test-form.vue

@@ -819,6 +819,11 @@ const tableFormSaveClick = async () => {
                    window.$message?.warning('请选择报告单是否合格')
               }else{
                     tableFormSaveLoading.value = true
+                    console.log(listItemData.value,'listItemData.value');
+                    if(listItemData.value.id&&listItemData.value.id.length<0){
+                        console.log(dataId,'dataId');
+                        listItemData.value.id=dataId
+                    }
                 const {error, code,data} = await dataApi.saveExcelBussData({
                     ...listItemBaseData.value,
                     isBatchSave:1,