ly 1 an în urmă
părinte
comite
08b33866ea
1 a modificat fișierele cu 11 adăugiri și 8 ștergeri
  1. 11 8
      src/views/business/socialSecurity/declare/view.vue

+ 11 - 8
src/views/business/socialSecurity/declare/view.vue

@@ -75,10 +75,9 @@
                 <div v-else>{{ rowNum(form.injuryRadio) + "%"}}</div>
               </el-form-item>
             </el-col>
-   
+            <!-- v-hasPermi="['business:socialSecurityDeclare:exportDetail']" -->
             <el-col :span="24">
-              <div style="display: flex; justify-content: flex-end;margin-bottom: 10px;margin-top: 10px;"
-                v-hasPermi="['business:socialSecurityDeclare:exportDetail']">
+              <div style="display: flex; justify-content: flex-end;margin-bottom: 10px;margin-top: 10px;">
                 <el-button type="primary" @click="exportExcel"
                   v-if="tableData!= null && tableData.length > 0">导出明细表</el-button>
               </div>
@@ -365,8 +364,7 @@
   <history ref="fromDialog" :currentMember="form.companyName"></history>
   <el-dialog title="退回" v-model="returnFlag" width="720px" append-to-body size="small" draggable
     :close-on-click-modal="false">
-    <el-form-item label="退回理由" prop="refuseReason" style="margin-top: 10px" 
-    :rules="[
+    <el-form-item label="退回理由" prop="refuseReason" style="margin-top: 10px" :rules="[
     {
       required: true,
       message: '退回理由不能为空',
@@ -455,10 +453,15 @@
     form.value.month = proxy.moment(currentMonth.value).format("MM");
     const { year, month, socialSecurityDeclareId, companyId, injuryRadio } = form.value
     const clearForm = { year, month, socialSecurityDeclareId, companyId, injuryRadio }
+    console.log(5656);
     getDetail(clearForm).then((res) => {
       form.value = { ...proxy.deepClone(emptyForm), ...res.data };
-      form.value.evidenceFile = form.value.evidenceFiles[0].fileUrl;
+      if (form.value.evidenceFiles!=null&&form.value.evidenceFiles.length>0) {
+        form.value.evidenceFile = form.value.evidenceFiles[0].fileUrl;
+      }
+      console.log(form.value.evidenceFile);
       getTableDetail(clearForm).then((res) => {
+        console.log(2323);
         tableData.value = res.data;
         if (form.value.unitPension === undefined || form.value.unitPension == 0) {
           let amount = 0
@@ -682,9 +685,9 @@
 
     returnFlag.value = true;
 
-   
+
   }
-  function submitForm(){
+  function submitForm() {
     if (form.value.refuseReason == null) {
       proxy.$modal.msgError("请填写退回原因");
       return