Kaynağa Gözat

fix(复审): 修复复审图片上传校验逻辑并完善复审结果显示

修复handleAudit函数中复审图片上传的校验条件,现在仅当复审状态不为1且无图片时才提示上传
在BookItem组件中添加复审状态为1时的良好结果显示
ylong 1 ay önce
ebeveyn
işleme
7460c1165c

+ 4 - 1
pages/index/detail/components/BookItem.vue

@@ -24,9 +24,12 @@
                     <view class="">
                         <view>不良原因: <text :class="item.auditComment?.sts == 3 ? 'color-red' : ''">{{
                                 item.auditComment?.com }}</text></view>
-                        <view v-if="item.auditReviewComment?.com">
+                        <view v-if="item.auditReviewComment?.com && item.auditReviewComment.sts==3">
                             复审结果:<text class="color-red">{{ item.auditReviewComment?.com }}</text>
                         </view>
+						<view v-if="item.auditReviewComment.sts==1">
+						    复审结果:<text>良好</text>
+						</view>
                     </view>
                 </template>
                 <template v-else>

+ 1 - 1
pages/index/detail/review-book.vue

@@ -79,7 +79,7 @@ const getBookInfoAndAuditInfo = (opts) => {
 const reviewInfoRef = ref(null)
 const handleAudit = () => {
     let form = reviewInfoRef.value.form
-    if(form.reviewImg && form.reviewImg.length == 0){
+    if(form.reviewAuditSts !== 1 && (!form.reviewImg || form.reviewImg.length == 0)){
         uni.$u.toast("请上传复审图片");
         return;
     }