Преглед на файлове

fix:修改审核端-主任务-监审文书调用接口参数,去掉成本审核加载时调用接口

luzhixia преди 1 месец
родител
ревизия
4d20fdfc49

+ 14 - 15
src/components/task/components/costAudit.vue

@@ -302,29 +302,28 @@
       // id(newVal) {
       //   if (newVal) {
       //     this.$nextTick(() => {
-
       //     })
       //   }
       // },
-      selectedProject(newVal) {
-        if (newVal) {
-          this.$nextTick(() => {
-            // 获取项目的成本审核表数据
-            this.getDetail()
-          })
-        }
-      },
+      // selectedProject(newVal) {
+      //   if (newVal) {
+      //     this.$nextTick(() => {
+      //       // 获取项目的成本审核表数据
+      //       this.getDetail()
+      //     })
+      //   }
+      // },
     },
     created() {
-      if (this.selectedProject && this.selectedProject.projectId) {
-        // 获取项目的详情数据
-        this.getDetail()
-      }
-      this.getActiveCostVerifyFormListByType()
-      this.getActiveCostVerifyFormList()
+      // if (this.selectedProject && this.selectedProject.projectId) {
+      //   // 获取项目的详情数据
+      //   this.getDetail()
+      // }
     },
     methods: {
       getDetail() {
+        this.getActiveCostVerifyFormListByType()
+        this.getActiveCostVerifyFormList()
         // 获取项目的详情数据
         getDetail({ id: this.selectedProject.projectId }).then((res) => {
           if (res.code === 200) {

+ 1 - 1
src/components/task/mounTaskComponents/auditNoticeTab.vue

@@ -86,7 +86,7 @@
           </template>
           <template #electronicDocumentUrl="scope">
             <el-button
-              v-if="!isView"
+              v-if="!isView && !getDocumenType(scope.row).includes('通知书')"
               type="text"
               size="mini"
               :disabled="true"

+ 32 - 19
src/views/costAudit/auditInfo/auditManage/auditDocumentsMain.vue

@@ -93,7 +93,7 @@
           </template>
           <template #electronicDocumentUrl="scope">
             <el-button
-              v-if="!isView"
+              v-if="!isView && !getDocumenType(scope.row).includes('通知书')"
               type="text"
               size="mini"
               @click="handleEditDocument(scope.row)"
@@ -806,15 +806,44 @@
         this.document.documentName = data.documentName
         this.document.documentNumber = ''
         this.document.documentWhId = ''
-        this.getDocumentData()
       },
       getDocumentData() {
         if (this.document.id === null || this.document.id === '') {
           queryByDocumentIdandWhereValue({
             documentId: this.document.documentId,
             whereValue: this.project.projectId,
+            unitId: this.document.enterpriseId,
           }).then((res) => {
             this.costDocumentTemplateFiles = res.value || []
+            let unit = this.allUnits.find(
+              (item) => item.unitId === this.document.enterpriseId
+            )
+            this.costDocumentTemplateFiles.forEach((item) => {
+              if (item.pinyin.includes('BeiJianShenDanWei')) {
+                item.dataValue = unit.unitName
+              }
+              if (item.pinyin.includes('ShouSongDaRen')) {
+                item.dataValue = unit.contactName
+              }
+              if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
+                item.dataValue = unit.address
+              }
+              if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
+                item.dataValue = unit.contactMobile
+              }
+              // 回显文号
+              // 获取选中的文号信息
+              const selectedDocument = this.selectDocumentWhSelection[0]
+              if (
+                item.pinyin.includes('WenHao') ||
+                item.pinyin.includes('WenJianHao')
+              ) {
+                item.dataValue = selectedDocument.whNo
+              }
+              if (item.pinyin.includes('SongDaWenShuMingCheng')) {
+                item.dataValue = selectedDocument.whName
+              }
+            })
           })
         } else {
           getCostProjectDocumentFile({
@@ -866,23 +895,7 @@
       handleEnterpriseChange(val) {
         if (this.document.enterpriseId) {
           // BeiJianShenDanWei
-          let unit = this.allUnits.find(
-            (item) => item.unitId === this.document.enterpriseId
-          )
-          this.costDocumentTemplateFiles.forEach((item) => {
-            if (item.pinyin.includes('BeiJianShenDanWei')) {
-              item.dataValue = unit.unitName
-            }
-            if (item.pinyin.includes('ShouSongDaRen')) {
-              item.dataValue = unit.contactName
-            }
-            if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
-              item.dataValue = unit.address
-            }
-            if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
-              item.dataValue = unit.contactMobile
-            }
-          })
+          this.getDocumentData()
         }
       },
       // 保存文档

+ 18 - 17
src/views/costAudit/auditInfo/auditManage/costAudit.vue

@@ -254,30 +254,29 @@
       // id(newVal) {
       //   if (newVal) {
       //     this.$nextTick(() => {
-
       //     })
       //   }
       // },
-      selectedProject(newVal) {
-        if (newVal) {
-          this.$nextTick(() => {
-            // 获取项目的详情数据
-            this.getDetail()
-          })
-        }
-      },
+      // selectedProject(newVal) {
+      //   if (newVal) {
+      //     this.$nextTick(() => {
+      //       // 获取项目的详情数据
+      //       this.getDetail()
+      //     })
+      //   }
+      // },
     },
     created() {
-      if (this.selectedProject && this.selectedProject.projectId) {
-        // 获取项目的详情数据
-        this.getDetail()
-      }
-      this.getActiveCostVerifyFormListByType()
-      this.getActiveCostVerifyFormList()
+      // if (this.selectedProject && this.selectedProject.projectId) {
+      //   // 获取项目的详情数据
+      //   this.getDetail()
+      // }
       // this.handleGenerateTemplate1()
     },
     methods: {
       getDetail() {
+        this.getActiveCostVerifyFormListByType()
+        this.getActiveCostVerifyFormList()
         // 获取项目的详情数据
         getDetail({ id: this.selectedProject.projectId }).then((res) => {
           if (res.code === 200) {
@@ -363,7 +362,8 @@
             : ''
           // 设置uploadId
           if (data.value) {
-            this.auditForm.uploadId = data.value.id || data.value.templateId || ''
+            this.auditForm.uploadId =
+              data.value.id || data.value.templateId || ''
           }
           this.loadTemplateDataForEdit(this.auditForm.surveyTemplateId)
         } catch (error) {
@@ -449,7 +449,8 @@
             id: this.auditForm.surveyTemplateId,
           }).then((res) => {
             if (res && res.code === 200 && res.value) {
-              this.auditForm.uploadId = res.value.id || res.value.templateId || ''
+              this.auditForm.uploadId =
+                res.value.id || res.value.templateId || ''
             }
           })
           this.parseAndDisplayTableData(tableDataRes)

+ 0 - 17
src/views/costAudit/projectInfo/auditTaskManage/taskCustomizedRelease/auditNoticeTab.vue

@@ -797,23 +797,6 @@
       handleEnterpriseChange(val) {
         if (this.document.enterpriseId) {
           // BeiJianShenDanWei
-          let unit = this.allUnits.find(
-            (item) => item.unitId === this.document.enterpriseId
-          )
-          this.costDocumentTemplateFiles.forEach((item) => {
-            if (item.pinyin.includes('BeiJianShenDanWei')) {
-              item.dataValue = unit.unitName
-            }
-            if (item.pinyin.includes('ShouSongDaRen')) {
-              item.dataValue = unit.contactName
-            }
-            if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
-              item.dataValue = unit.address
-            }
-            if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
-              item.dataValue = unit.contactMobile
-            }
-          })
           this.getDocumentData()
         }
       },