lisy 3 luni în urmă
părinte
comite
b0c3721adf
1 a modificat fișierele cu 23 adăugiri și 8 ștergeri
  1. 23 8
      src/views/training/models/meeting-detail-attend.vue

+ 23 - 8
src/views/training/models/meeting-detail-attend.vue

@@ -47,7 +47,7 @@
                 <div class="pd-5 pb-15" v-if="form?.meetingCharge?.hasFee == '1' && form?.meetingCharge?.hasFlatFee =='1'">按报名人员类型收取,不同人员收取不同费用</div>
                 <div class="d-flex flex-cln" v-if="form?.meetingCharge?.hasFee == '1' && form?.meetingCharge?.hasFlatFee =='1'">
                     <template v-for="(item, index) in form?.meetingCharge?.typeCharge" :key="index">
-                        <view v-if="+item?.check" class="pd-5">
+                        <view v-if="+item?.check && +form?.conditions?.typeCheck?.find(items => items?.vipLevel ==item?.vipLevel)?.check" class="pd-5">
                             <span class="f-w-6">
                                 {{ selectDictLabels(dm_check_join_type, item?.vipLevel, ',') }}
                             </span>
@@ -387,6 +387,7 @@ import { onMounted, reactive, ref ,ComponentPublicInstance} from 'vue';
 import registrationInfo from './registration-info.vue';
 import { AreaCascader } from '@/views/components';
 import { globalHeaders } from '@/utils/request';
+import { ElLoading,ElMessage } from 'element-plus'
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { cpy_res_status, lm_signup_status_app_show, dm_check_join_type,temp_join_type,dm_pay_status,lm_signup_status_app_query,signup_tags_type} = toRefs<any>(proxy?.useDict('cpy_res_status', 'lm_signup_status_app_show', 'dm_check_join_type','temp_join_type','dm_pay_status',"lm_signup_status_app_query","signup_tags_type"));
 // 获取详情
@@ -572,15 +573,29 @@ const changeEditPrice = async ()=>{
     modiFication.value = false
     getList();
 }
-const handleSuccess = async(res,uploadFile)=>{
-    await uploadInvoice({
-        id:invoiceId.value,
-        invoiceUrl:{
-            fileName:res.data.fileName,
-            url:res.data.url,
-            fileSize:uploadFile.raw.size
+const handleSuccess = async (res, uploadFile) => {
+    const loading = ElLoading.service({
+        lock: true,
+        text: 'Loading',
+        background: 'rgba(0, 0, 0, 0.7)',
+    })
+    const data = await uploadInvoice({
+        id: invoiceId.value,
+        invoiceUrl: {
+            fileName: res.data.fileName,
+            url: res.data.url,
+            fileSize: uploadFile.raw.size
         }
     })
+    loading.close()
+    if (data.code == 200) {
+        ElMessage({
+            message: '发票上传成功',
+            type: 'success',
+        })
+    }else{
+        ElMessage.error('发票上传失败')
+    }
     getList();
 }
 const openPDF = (url)=>{