Quellcode durchsuchen

项目详情未禁用修复

lizhenhao vor 2 Jahren
Ursprung
Commit
3e558feef6

+ 1 - 1
src/views/program/registered/ProjectForm2022Tab.vue

@@ -1092,7 +1092,7 @@
         return footerData
       },
       tabHandleClick (event) {
-        if (event.name === 'archive') {
+        if (event.props.name === 'archive') {
           if (this.commonJS.isNotEmpty(this.archiveIdA)) {
             this.$refs.projectArchiveForm.init('view', this.archiveIdA)
           }

+ 9 - 2
src/views/program/registered/ProjectThreeAuditForm.vue

@@ -7,7 +7,7 @@
         </el-row>
         <el-divider content-position="left"><i class="el-icon-document"></i> 项目校审</el-divider>
       </div>
-      <el-form size="large" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"  :disabled="status === 'audit' || status === 'taskFormDetail'"
+      <el-form size="large" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"  :disabled="status === 'audit' || status === 'taskFormDetail' || method === 'view'"
                label-width="125px" @submit.native.prevent>
           <el-row  :gutter="15">
             <el-col :span="12">
@@ -117,7 +117,7 @@
             </el-col>
 			  <el-col :span="24">
             <el-form size="large" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"
-                     label-width="125px" @submit.native.prevent>
+                     label-width="125px" @submit.native.prevent :disabled="status === 'audit' || status === 'taskFormDetail' || method === 'view'">
               <el-col :span="24">
                 <el-form-item label="执行人员保留意见" prop="retainOpinion"
                               :rules="[
@@ -286,6 +286,13 @@
         this.$nextTick(() => {
           this.$refs.inputForm.resetFields()
           this.loading = true
+			if (method === 'view' || this.status === 'audit' || this.status === 'taskFormDetail') {
+				// 禁用富文本
+				this.$refs.contents1Editor.disable()
+				this.$refs.contents2Editor.disable()
+				this.$refs.contents3Editor.disable()
+				this.$refs.contents4Editor.disable()
+			}
           this.programProjectListInfoService.findByIdAudit(this.inputForm.id).then((data) => {
             this.inputForm = this.recover(this.inputForm, data)
             this.inputForm = JSON.parse(JSON.stringify(this.inputForm))

+ 56 - 56
src/views/program/registered/ProofreadFormComponent.vue

@@ -57,10 +57,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -75,8 +75,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -87,8 +87,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -99,7 +99,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -122,10 +122,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -140,8 +140,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -152,8 +152,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -164,7 +164,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -185,10 +185,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -203,8 +203,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -215,8 +215,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -227,7 +227,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -248,10 +248,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -266,8 +266,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -278,8 +278,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -290,7 +290,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -311,10 +311,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -329,8 +329,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -341,8 +341,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -353,7 +353,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -374,10 +374,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -392,8 +392,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -404,8 +404,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -416,7 +416,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -437,10 +437,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -455,8 +455,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -467,8 +467,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -479,7 +479,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>
@@ -500,10 +500,10 @@
             @cell-click=""
             @edit-closed=""
             highlight-current-row
-            :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
+            :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
           >
             <vxe-table-column field="typeName" title="审核要点" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
               </template>
             </vxe-table-column>
@@ -518,8 +518,8 @@
 <!--              </template>-->
 <!--            </vxe-table-column>-->
             <vxe-table-column width="150px" field="reviewComments" title="审核意见(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.reviewComments" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.reviewComments" :disabled="true" transfer>
                   <vxe-option
                           v-for="item in $dictUtils.getDictList('yes_no_flag')"
                           :key="item.value"
@@ -530,8 +530,8 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="150px" field="isApply" title="是否适用(√/×)" :edit-render="{}">
-              <template v-slot:edit="scope">
-                <vxe-select v-model="scope.row.isApply" transfer>
+              <template #edit="scope">
+                <vxe-select v-model="scope.row.isApply" :disabled="true" transfer>
                   <vxe-option
                     v-for="item in $dictUtils.getDictList('yes_no_flag')"
                     :key="item.value"
@@ -542,7 +542,7 @@
               </template>
             </vxe-table-column>
             <vxe-table-column width="350px" field="replyComments" title="回复意见" :edit-render="{}">
-              <template v-slot:edit="scope">
+              <template #edit="scope">
                 <el-input v-model="scope.row.replyComments" ></el-input>
               </template>
             </vxe-table-column>