Browse Source

fix : 核查详情得分显示具体分数

梦辉 5 months ago
parent
commit
487ffe3a7d

+ 2 - 5
src/subPages/pages/commitment/commitmentDetail/components/IndicatorComponents.vue

@@ -20,7 +20,7 @@ export default {
               this.$set(this.formStates, indicatorItem.uuid, {
                 ...indicatorItem,
                 auditResult: this.checkResultColumns.find(item => item.value === indicatorItem.auditResult) && this.checkResultColumns.find(item => item.value === indicatorItem.auditResult).text,
-                auditScore: this.checkGoalColumns.find(item => item.value === indicatorItem.auditScore) && this.checkGoalColumns.find(item => item.value === indicatorItem.auditScore).text,
+                auditScore: indicatorItem.auditResult === 3 ? '' : indicatorItem.auditScore, //后端会直接返回过来具体的分数
                 fileList: indicatorItem.expandStr ? indicatorItem.expandStr.split(',').map(item => {
                   return {
                     uuid: item
@@ -92,7 +92,6 @@ export default {
           indicatorInputBody: indicateItem.indicatorInputBody,
           auditor: uni.getStorageSync("userInfo").realName,
           auditResult: this.checkResultColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditResult) && this.checkResultColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditResult).value,
-          auditScore: this.checkGoalColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditScore) && this.checkGoalColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditScore).value,
           auditRemark: this.formStates[indicateItem.uuid].auditRemark,
           //文件上传字段
           expandStr: this.formStates[indicateItem.uuid].fileList.map(item => item.uuid).join(','),
@@ -175,9 +174,7 @@ export default {
               label="核查得分"
           >
             <template #input>
-              <view v-if="item.auditResult === 0 && item.auditScore === 0">符合</view>
-              <view v-if="item.auditResult === 1 && item.auditScore === 0">整改 0分</view>
-              <view v-if="item.auditResult === 2 && item.auditScore === -10">整改扣分 -10分</view>
+              {{item.auditScore }}
             </template>
           </van-field>
           <!--核查说明-->