xiaofei 1 year ago
parent
commit
959c7c7bdd

+ 1 - 0
src/modules/print/components/ModifyPlanPaper.vue

@@ -283,6 +283,7 @@ export default {
       this.isSubmit = true;
       const datas = {
         examTaskId: this.modalForm.id,
+        examId: this.modalForm.examId,
         relatePaperType: this.modalForm.relatePaperType.join(),
         paperNumber: this.modalForm.paperNumber,
         printPlanId: this.instance.printPlanId,

+ 4 - 2
src/modules/print/views/PrintTaskManage.vue

@@ -341,7 +341,6 @@
             >
             <el-button
               v-if="
-                scope.row.taskId &&
                 checkPrivilege('link', 'createpdf') &&
                 (scope.row.status === 'READY' ||
                   scope.row.status === 'CANCEL' ||
@@ -678,7 +677,10 @@ export default {
       ).catch(() => {});
       if (action !== "confirm") return;
 
-      const res = await rebuildPrintTaskPdf(this.curTask.taskId, item.type);
+      const res = await rebuildPrintTaskPdf(
+        this.curTask.examDetailId,
+        item.type
+      );
       if (!res) return;
       this.$message.success("操作成功!");
       this.padViewDialogVisible = false;