Browse Source

验收报告修改

duy 1 year ago
parent
commit
e6d3b55f4d

+ 5 - 2
src/views/transfer/components/table-classify.vue

@@ -60,7 +60,7 @@
                         <el-option v-for="item in timeData " :label="item" :value="item" />
                     </el-select>
                 </div>
-                <div class="hc-title-view">试验资料(含工地试验室资质证书、仪器标定证书等)</div>
+                <div class="hc-title-view">{{ tableTitle }})</div>
             </template>
             <template #extra>
                 <div class="hc-icon-view text-hover" @click="onSubmitReportDrawerClose">
@@ -264,6 +264,7 @@ const onSubmitReportClick = async () => {
       if (timeData.value.length > 0) {
         pdfDate.value = timeData.value[0]
         curPdf.value = reportData.value[0].tableUrl
+        tableTitle.value = reportData.value[0].tableTitle
         isSubmitReportDrawer.value = true
       }
        
@@ -275,6 +276,7 @@ const onSubmitReportClick = async () => {
 }
 const pdfDate = ref(null)
 const curPdf = ref('')
+const tableTitle = ref('')
 //历史报告
 const onSubmitReportDrawerClose = () => {
     isSubmitReportDrawer.value = false
@@ -283,7 +285,8 @@ const onSubmitReportDrawerClose = () => {
 const changePdfDate = (val)=>{
     reportData.value.forEach((ele)=>{
         if (ele.approveDate === val) {
-            curPdf.value = ele.tableUrl
+            curPdf.value = ele.
+            tableTitle.value = ele.tableTitle
         }
     })
 }

+ 4 - 1
src/views/transfer/components/table-collect.vue

@@ -73,7 +73,7 @@
                         <el-option v-for="item in timeData " :label="item" :value="item" />
                     </el-select>
                 </div>
-                <!-- <div class="hc-title-view">试验资料(含工地试验室资质证书、仪器标定证书等)</div> -->
+                <div class="hc-title-view">{{ tableTitle }}</div>
             </template>
             <template #extra>
                 <div class="hc-icon-view text-hover" @click="onSubmitReportDrawerClose">
@@ -300,6 +300,7 @@ const onSubmitReportClick = async () => {
       if (timeData.value.length > 0) {
         pdfDate.value = timeData.value[0]
         curPdf.value = reportData.value[0].tableUrl
+        tableTitle.value = reportData.value[0].tableTitle
         isSubmitReportDrawer.value = true
       }
        
@@ -311,6 +312,7 @@ const onSubmitReportClick = async () => {
 }
 const pdfDate = ref(null)
 const curPdf = ref('')
+const tableTitle = ref('')
 //历史报告
 const onSubmitReportDrawerClose = () => {
     isSubmitReportDrawer.value = false
@@ -320,6 +322,7 @@ const changePdfDate = (val)=>{
     reportData.value.forEach((ele)=>{
         if (ele.approveDate === val) {
             curPdf.value = ele.tableUrl
+            tableTitle.value = ele.tableTitle
         }
     })
 }

+ 4 - 1
src/views/transfer/initial-expert.vue

@@ -71,7 +71,7 @@
                         <el-option v-for="item in timeData " :label="item" :value="item" />
                     </el-select>
                 </div>
-                <div class="hc-title-view">试验资料(含工地试验室资质证书、仪器标定证书等)</div>
+                <div class="hc-title-view">{{ tableTitle }}</div>
             </template>
             <template #extra>
                 <div class="hc-icon-view text-hover" @click="onSubmitReportDrawerClose">
@@ -307,6 +307,7 @@ const onSubmitReportClick = async () => {
       if (timeData.value.length > 0) {
         pdfDate.value = timeData.value[0]
         curPdf.value = reportData.value[0].tableUrl
+        tableTitle.value = reportData.value[0].tableTitle
         isSubmitReportDrawer.value = true
       }
        
@@ -318,6 +319,7 @@ const onSubmitReportClick = async () => {
 }
 const pdfDate = ref(null)
 const curPdf = ref('')
+const tableTitle = ref('')
 //历史报告
 const onSubmitReportDrawerClose = () => {
     isSubmitReportDrawer.value = false
@@ -327,6 +329,7 @@ const changePdfDate = (val)=>{
     reportData.value.forEach((ele)=>{
         if (ele.approveDate === val) {
             curPdf.value = ele.tableUrl
+            tableTitle.value = ele.tableTitle
         }
     })
 }