瀏覽代碼

fix: 修复检测项数据字段路径及发送参数

更新实验列表中检测项的字段路径为嵌套对象属性,并在编辑时传入完整的质量计划模板数据。同时在检验项目任务发送时补充 recordingMethod 参数。
yusheng 6 天之前
父節點
當前提交
46dbfed9be

+ 6 - 3
src/views/experimentList/index.vue

@@ -114,14 +114,14 @@
             minWidth: 130
           },
           {
-            prop: 'inspectionName',
+            prop: 'qualityPlanTemplateVO.inspectionName',
             label: '检测项',
             showOverflowTooltip: true,
             align: 'center',
             minWidth: 130
           },
           {
-            prop: 'inspectionCode',
+            prop: 'qualityPlanTemplateVO.inspectionCode',
             label: '检测项编码',
             showOverflowTooltip: true,
             align: 'center',
@@ -256,7 +256,10 @@
       openEdit(row) {
         this.$refs.experimentReportRef.open(
           {
-            experimentId: row.id
+            ...row.qualityPlanTemplateVO,
+            batchNo: row.batchNo,
+    
+            // experimentId: row.id
           },
           'detail'
         );

+ 1 - 0
src/views/inspectionProjectTask/components/inspectionProjectTaskSend.vue

@@ -618,6 +618,7 @@
           }
           let data = {
             ...this.form,
+            recordingMethod: this.recordingMethod,
             detailList: this.selection.map((item) => {
               return {
                 [this.recordingMethod == 1