Explorar o código

fix: 修改bug

shiyanyu hai 1 semana
pai
achega
025c5b1f3d

+ 1 - 1
src/components/task/TaskCustomizedReleaseDialog.vue

@@ -57,7 +57,7 @@
               :model="formData.workPlan"
               label-width="150px"
               label-position="top"
-              style="width: 50%"
+              style="width: 100%"
               :disabled="isView"
             >
               <el-form-item label="监审项目基本情况" class="form-section">

+ 1 - 1
src/components/task/components/costSurvey.vue

@@ -13,8 +13,8 @@
         prop="name"
         label="成本调查表"
         min-width="200"
-        align="center"
         header-align="center"
+        align="left"
         show-overflow-tooltip
       />
       <el-table-column

+ 2 - 1
src/components/task/components/messageNotify.vue

@@ -26,7 +26,8 @@
         prop="noticeContent"
         label="消息内容"
         min-width="350"
-        align="center"
+        header-align="center"
+        align="left"
       ></el-table-column>
       <el-table-column
         prop="createTime"

+ 8 - 0
src/components/task/mounTaskComponents/index.js

@@ -556,11 +556,14 @@ export const taskMixin = {
         (this.taskData && (this.taskData.projectId || this.taskData.id)) ||
         ''
       if (!pid) return
+      // 编辑态和查看态后台的权限标识不同,未携带会导致列表为空
+      const permissionType = this.isView ? '0' : '1'
       getCostProjectDocumentPageList({
         pageNum: this.documentData.pagination.currentPage,
         pageSize: this.documentData.pagination.pageSize,
         projectId: pid,
         documentName: data ? data.documentName : '',
+        permissionType,
       }).then((res) => {
         let records = res.value.value.records
         this.documentData.list = records.filter((item) => {
@@ -603,6 +606,11 @@ export const taskMixin = {
           this.surveyData.pagination.pageSize = pageSize
           this.getSurveyData()
           break
+        case 'auditNotice':
+          this.documentData.pagination.currentPage = currentPage
+          this.documentData.pagination.pageSize = pageSize
+          this.getDocumentData()
+          break
         default:
           break
       }

+ 1 - 0
src/components/task/mounTaskComponents/materialTab.vue

@@ -26,6 +26,7 @@
           v-model="scope.row.orderNum"
           size="mini"
           style="width: 60px"
+          :disabled="isView"
           @blur="handleSortChange(scope.row)"
         ></el-input>
       </template>

+ 1 - 1
src/components/task/taskComponents/workPlanTab.vue

@@ -5,7 +5,7 @@
       :model="localFormData"
       label-width="150px"
       label-position="top"
-      style="width: 50%"
+      style="width: 100%"
       :disabled="true"
     >
       <el-form-item label="监审项目基本情况" class="form-section">

+ 4 - 2
src/components/task/taskInfo.vue

@@ -631,7 +631,8 @@
               <el-table-column
                 label="成本调查表"
                 min-width="220"
-                align="center"
+                header-align="center"
+                align="left"
               >
                 <template slot-scope="scope">
                   <span>{{ scope.row.name }}</span>
@@ -813,7 +814,8 @@
                 prop="noticeContent"
                 label="消息内容"
                 min-width="350"
-                align="center"
+                header-align="center"
+                align="left"
               ></el-table-column>
               <el-table-column
                 prop="createTime"

+ 6 - 1
src/views/EntDeclaration/auditTaskManagement/components/CostSurveyTab.vue

@@ -87,7 +87,12 @@
           {{ scope.$index + 1 }}
         </template>
       </el-table-column>
-      <el-table-column label="成本调查表" min-width="220" align="center">
+      <el-table-column
+        label="成本调查表"
+        min-width="220"
+        header-align="center"
+        align="left"
+      >
         <template slot-scope="scope">
           <span
             :style="{

+ 6 - 1
src/views/costAudit/auditInfo/auditManage/costSurvey.vue

@@ -85,7 +85,12 @@
       </el-table-column>
 
       <!-- 成本调查表名称(点击查看) -->
-      <el-table-column label="成本调查表" min-width="220" align="center">
+      <el-table-column
+        label="成本调查表"
+        min-width="220"
+        header-align="center"
+        align="left"
+      >
         <template slot-scope="scope">
           <span
             :style="{

+ 1 - 1
src/views/costAudit/baseInfo/statistics/components/costSurvey.vue

@@ -13,8 +13,8 @@
         prop="name"
         label="成本调查表"
         min-width="200"
-        align="center"
         header-align="center"
+        align="left"
         show-overflow-tooltip
       />
       <el-table-column

+ 9 - 0
src/views/costAudit/projectInfo/auditTaskManage/taskCustomizedRelease/index.js

@@ -36,6 +36,7 @@ export const taskMixin = {
         materialDialogVisible: false,
         setStepDialogVisible: false,
         stepDialogVisible: false,
+        detailDialogVisible: false,
         documentDialogVisible: false,
       },
       loading: {
@@ -555,11 +556,14 @@ export const taskMixin = {
         (this.taskData && (this.taskData.projectId || this.taskData.id)) ||
         ''
       if (!pid) return
+      // 查看/编辑权限类型区分,未传会导致列表为空
+      const permissionType = this.isView ? '0' : '1'
       getCostProjectDocumentPageList({
         pageNum: this.documentData.pagination.currentPage,
         pageSize: this.documentData.pagination.pageSize,
         projectId: pid,
         documentName: data ? data.documentName : '',
+        permissionType,
       }).then((res) => {
         let records = res.value.value.records
         this.documentData.list = records.filter((item) => {
@@ -602,6 +606,11 @@ export const taskMixin = {
           this.surveyData.pagination.pageSize = pageSize
           this.getSurveyData()
           break
+        case 'auditNotice':
+          this.documentData.pagination.currentPage = currentPage
+          this.documentData.pagination.pageSize = pageSize
+          this.getDocumentData()
+          break
         default:
           break
       }