ソースを参照

无效理由修改

zhuliu 1 年間 前
コミット
c101aa15f1

+ 1 - 1
src/views/analyse/custom/components/Tabs/Style.vue

@@ -13,7 +13,7 @@
             <span class="label">背景色</span>
             <el-color-picker size="small"  v-model="form.setting.backgroundColor"></el-color-picker>
           </div>
-          <div class="display_flex">
+          <div class="display_flex" style="margin-top: 10px;">
             <span class="label">宽度</span>
             <el-input placeholder="请输入宽度" v-model="form.setting.width" size="small" style="width: calc(100% - 170px);padding-left: 10px;"></el-input>
             <el-select size="small" v-model="form.setting.widthUnit" placeholder="请选择" style="width: calc(100% - 190px);margin-left: 10px;">

+ 24 - 3
src/views/report/InvalidResponse/components/reasonsAndEvidence/details.vue

@@ -341,13 +341,13 @@
         </template>
     </div>
     <!-- 控制隐藏 -->
-    <div class="controlShow" v-if="this.row.proofGroupId">
+    <div class="controlShow" v-if="this.row.proofGroupId && content.FirstEvidenceReason" >
         <el-link type="primary" @click="controlShow">
             {{ content.showFeature?'隐藏':'展开' }}
         </el-link>
     </div>
 
-    <div v-if="(content.showFeature || edit) && this.row.proofGroupId">
+    <div v-if="(content.showFeature || edit) && this.row.proofGroupId && content.FirstEvidenceReason">
         <div v-for="(item,index) in content.FirstEvidenceReason" :key="index">
             <div class="content" style="background:#ffca00">
                 <div>
@@ -1263,8 +1263,29 @@ export default {
     async getData(){
         if(!this.row.details){
             if(!this.row.proofGroupId){
+                var params = {
+                projectId:this.projectId,
+                descriptions:[
+                    {
+                        description1:'',
+                    }
+                ],
+                statutesId:this.row.statutesId,
+                claimId:this.row.claimId
+            }
+            await this.$api.addProofGroup(params).then(response=>{
+                if(response.code == 200){
+                    this.row.proofGroupId = response.data.data[0]
+                    this.content.proofGroupMessage = {}
+                    this.content.showFeature = true
+                    this.$nextTick(()=>{
+                        this.content.showFeature = false
+                    })
+                }
+            }).catch(error=>{
                 this.content.proofGroupMessage = {}
-                return false
+            })
+            return false
             }
             this.loading= true
             const [proofGroupMessage,FirstEvidenceReason,secondEvidenceReason] = await Promise.allSettled([this.getProofGroupMessage(),this.queryEvidenceReason(0),this.queryEvidenceReason(1)])

+ 5 - 2
src/views/report/InvalidResponse/components/reasonsAndEvidence/reasonsAndEvidence.vue

@@ -72,7 +72,8 @@
                             </template>
                             <!-- 原权要特征内容 -->
                             <template v-if="item.value == 'feature'">
-                                <div v-if="scope.row.featureText && ['4','8'].indexOf(scope.row.statutesId) ==-1">
+                                <div v-if="scope.row.featureText && ['4','8'].indexOf(scope.row.statutesId) ==-1 ">
+                                    <div v-if="scope.row.featureGen == 0">
                                     <span :class="getFeatureDel(scope.row)?'del':''">{{ scope.row.featureText }}</span> 
                                         <span v-if="['2','3','4','8'].indexOf(scope.row.statutesId) !=-1">
                                             <el-popover
@@ -87,7 +88,8 @@
                                                 </div>
                                                 <i slot="reference" class="el-icon-caret-bottom"></i>
                                             </el-popover>
-                                        </span>  
+                                        </span> 
+                                    </div> 
                                 </div>
                                 <div v-else>
                                     <div v-if="scope.row.featureText">
@@ -837,6 +839,7 @@ export default {
                                     featureId:feature.featureId,
                                     featureOrder:feature.featureOrder,
                                     featureText:feature.featureText,
+                                    featureGen:feature.featureGen,
                                     feIfPresentOpinions1:feature.feIfPresentOpinions1,
                                     feIfPresentOpinions2:feature.feIfPresentOpinions2,
                                     feRbSummary:feature.feRbSummary