Explorar o código

批量上报trialSelfInspectionRecordId值修改

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
05faebbb57

+ 2 - 2
src/views/tentative/detect/test-form.vue

@@ -167,8 +167,8 @@
         </HcDialog>
         
         <!--批量上报审批-->
-        <HcReportModal  title="批量上报审批" url="informationWriteQuery/taskOne" :show="showReportModal" :projectId="projectId" :contractId="contractId" type="wbs" :typeData="reportTypeData"
-        :taskName="reportTaskName" :ids="reportIds" :addition="reportAddition" :trialSelfInspectionRecordId="dataId" @hide="showReportModal = false" @finish="showReportFinish"/>
+        <HcReportModal  title="批量上报审批" url="informationWriteQuery/batchTask" :show="showReportModal" :projectId="projectId" :contractId="contractId" type="wbs" :typeData="reportTypeData"
+        :taskName="reportTaskName" :ids="reportIds" :addition="reportAddition" :trialSelfInspectionRecordId="1"  @hide="showReportModal = false" @finish="showReportFinish"/>
     </div>
 </template>
 

+ 3 - 2
src/views/tentative/detect/test.vue

@@ -51,8 +51,7 @@
                             <span>批量打印</span>
                         </el-button>
                     </HcTooltip>
-                    <!-- <HcTooltip keys="tentative_detect_test_quit"> -->
-                    <HcTooltip keys="tentative_detect_test_print">
+                    <HcTooltip keys="tentative_detect_test_quit">
                         <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" :loading="quitPdfLoading" @click="quitPdfClick">
                             <HcIcon name="printer"/>
                             <span>批量废除</span>
@@ -511,8 +510,10 @@ const quitPdfClick = async () => {
         //处理数据
            if (!error && code === 200) {
             window.$message?.success('废除成功')
+              quitPdfLoading.value = false
             searchClick()
         } else {
+             quitPdfLoading.value = false
             window.$message?.error(msg)
         }
     } else {