Bladeren bron

no message

ly 1 jaar geleden
bovenliggende
commit
e34e27afcc

+ 41 - 46
src/views/business/production/IndividualIncomeTaxIs/FormDialog.vue

@@ -1,14 +1,7 @@
 <template>
   <!-- 添加或修改菜单对话框 -->
-  <el-dialog
-    title="个税信息"
-    v-model="visible"
-    width="800px"
-    append-to-body
-    draggable
-    @close="close"
-    :close-on-click-modal = "false"
-  >
+  <el-dialog title="个税信息" v-model="visible" width="800px" append-to-body draggable @close="close"
+    :close-on-click-modal="false">
     <div v-loading="loading">
       <div>
         <div style="padding: 8px 24px 16px 24px">
@@ -21,7 +14,7 @@
                 <el-form-item label="所属月份">
                   <!-- <div>{{ year }}-{{ month }}</div> -->
                   <el-date-picker v-model="currentMonth" type="month" placeholder="请选择时间" format="YYYY-MM"
-                  @change="changeMonthHandle" />
+                    @change="changeMonthHandle" />
                 </el-form-item>
               </el-col>
               <el-col :span="24">
@@ -37,7 +30,7 @@
                   <div v-else>{{ rowNum(emptyForm.amount) }}</div>
                 </el-form-item>
               </el-col>
-  
+
               <el-col :span="12">
                 <el-form-item label="备注:">
                   <el-input v-if="!isView" type="textarea" rows="2" maxlength="200" show-word-limit
@@ -52,14 +45,14 @@
                       v-if="emptyForm.evidenceFile == null || emptyForm.evidenceFile == ''" />
                     <img v-else style="height: 148px; width: 148px" :src="`${baseUrl}/${emptyForm.evidenceFile}`"
                       class="avatar" @click="openEvidience('evidenceFile')" />
-                      <div v-if="!isView|| emptyForm.status !== 3">
-                        <el-icon :size="20" v-if="emptyForm.evidenceFile !== '' ||emptyForm.evidenceFile == null " @click="emptyForm.evidenceFile = ''"
-                        class="delete-button" >
+                    <div v-if="!isView|| emptyForm.status !== 3">
+                      <el-icon :size="20" v-if="emptyForm.evidenceFile !== '' ||emptyForm.evidenceFile == null "
+                        @click="emptyForm.evidenceFile = ''" class="delete-button">
                         <Delete />
                       </el-icon>
-                      </div>
-                      <div v-else>
-                      </div>
+                    </div>
+                    <div v-else>
+                    </div>
                     <!-- <el-upload
                       v-if="!isView"
                       action="#"
@@ -92,14 +85,14 @@
                     /> -->
                   </el-form-item>
                   <!-- 删除按钮 -->
-           
+
                 </div>
               </el-col>
               <el-col :span="24" style="padding: 15px 15px 16px 15px">
                 <div class="details-btns-container">
                   <el-form-item label="报表文件" prop="reportFile" required>
-                    <el-upload v-if="!isView || emptyForm.status !== 3" action="#" :http-request="uploadextFile" :with-credentials="true"
-                      :show-file-list="false" multiple>
+                    <el-upload v-if="!isView || emptyForm.status !== 3" action="#" :http-request="uploadextFile"
+                      :with-credentials="true" :show-file-list="false" multiple>
                       <el-button size="small" type="primary" icon="Upload">点击上传</el-button>
                     </el-upload>
                   </el-form-item>
@@ -126,22 +119,25 @@
           </el-form>
         </div>
       </div>
-      <div class="form-btns-container"  style="height: 40px">
-        <el-button size="small" icon="close" v-if="!isView || emptyForm.status !== 3" style="float: right; margin-left: 12px; margin-right: 12px" @click="close">
+      <div class="form-btns-container" style="height: 40px">
+        <el-button size="small" icon="close" v-if="!isView || emptyForm.status !== 3"
+          style="float: right; margin-left: 12px; margin-right: 12px" @click="close">
           取消
         </el-button>
-        <el-button type="primary" size="small" icon="Finished" v-if="!isView || emptyForm.status !== 3"
-          v-hasPermi="['business:individualIncomeTaxDetail:saveDetail']" style="float: right" @click="handleSave">
-          保存
-        </el-button>
-        <el-button 
-        v-if="!stopUseBack" icon="back"
-        type="warning" size="small" 
-        style="float: right;" 
-        :disabled="(emptyForm == null || emptyForm.status !== 3)  " 
-        @click="turnBack(emptyForm)" v-hasPermi="['business:individualIncomeTaxDetail:deductionTurnBack']">
-        退回
-      </el-button>
+        <div v-if="!isView || emptyForm.status !== 3">
+          <el-button type="primary" size="small" icon="Finished"
+            v-hasPermi="['business:individualIncomeTaxDetail:saveDetail']" style="float: right" @click="handleSave">
+            保存
+          </el-button>
+        </div>
+        <div v-if="!stopUseBack">
+          <el-button v-if="!stopUseBack" icon="back" type="warning" size="small" style="float: right;"
+            :disabled="(emptyForm == null || emptyForm.status !== 3)  " @click="turnBack(emptyForm)"
+            v-hasPermi="['business:individualIncomeTaxDetail:deductionTurnBack']">
+            退回
+          </el-button>
+        </div>
+
       </div>
     </div>
   </el-dialog>
@@ -274,7 +270,7 @@
       reportFiles.value = response.data.reportFiles;
       emptyForm.value = response.data;
 
-      console.log(123,emptyForm.value.status);
+      console.log(123, emptyForm.value.status);
       loadData(id);
     });
   }
@@ -300,8 +296,8 @@
       }
     }
   }
-    /** 退回按钮操作 */
-    function turnBack(row) {
+  /** 退回按钮操作 */
+  function turnBack(row) {
     loading.value = true
     emptyForm.value.status = 1;
     // emptyForm.value.workOrderId = workOrderId;
@@ -314,19 +310,19 @@
     visible.value = false;
   }
   function changeMonthHandle(parentId) {
-    isView.value =true
+    isView.value = true
     const nowDate = ref(
-    proxy.moment().subtract(1, "month").format("YYYY-MM-01")
+      proxy.moment().subtract(1, "month").format("YYYY-MM-01")
     );
     let nowyear = proxy.moment(nowDate.value).format("YYYY");
     let nowmonth = proxy.moment(nowDate.value).format("MM");
     const year = proxy.moment(currentMonth.value).format("YYYY");
     const month = proxy.moment(currentMonth.value).format("MM");
 
-    if(nowyear+nowmonth == year+month){
-      isView.value =false
+    if (nowyear + nowmonth == year + month) {
+      isView.value = false
       stopUseBack.value = false
-    }else{
+    } else {
       stopUseBack.value = true
     }
     getInfo(mainInfo.value.id, year, month).then((response) => {
@@ -395,7 +391,7 @@
           console.log(res);
           proxy.$modal.msgSuccess("保存成功!");
           visible.value = false;
-         
+
           getList.value();
         })
         .catch((err) => {
@@ -474,9 +470,8 @@
   });
 </script>
 
-<style  scoped>
-
-.delete-button {
+<style scoped>
+  .delete-button {
     margin-left: 20px;
     cursor: pointer;
   }

+ 7 - 2
src/views/business/production/financialReportTax/FormDialog.vue

@@ -251,14 +251,19 @@
         <el-button size="small" icon="close" v-if="!isView || emptyForm.status !== 3"
           style="float: right; margin-left: 12px; margin-right: 12px" @click="close">取消
         </el-button>
-        <el-button type="primary" size="small" v-if="!isView || emptyForm.status !== 3" icon="Finished"
+        <div  v-if="!isView || emptyForm.status !== 3">
+          <el-button type="primary" size="small" icon="Finished"
           @click="handleSave" v-hasPermi="['business:financialReportTax:saveDetail']" style="float: right">
           保存</el-button>
-        <el-button v-if="!stopUseBack" type="warning" size="small" style="float: right;" icon="back"
+        </div>
+        <div v-if="!stopUseBack" >
+          <el-button type="warning" size="small" style="float: right;" icon="back"
           :disabled="emptyForm == null || emptyForm.status !== 3 " @click="turnBack(emptyForm)"
           v-hasPermi="['business:financialReportTaxNonZero:back']">
           退回
         </el-button>
+        </div>
+       
       </div>
     </div>
   </el-dialog>

+ 2 - 2
src/views/business/production/salaryZero/view.vue

@@ -557,12 +557,12 @@ function showVerify() {
 function verifiable() {
 
   return (
-    permissions.includes("business:salary:verify")||permissions.includes(all_permission) );
+    permissions.includes("business:salaryZero:verify")||permissions.includes(all_permission) );
 }
 function blackButton() {
 
   return (
-    permissions.includes("business:salary:back")|| permissions.includes(all_permission) 
+    permissions.includes("business:salaryZero:back")|| permissions.includes(all_permission) 
   );
 }
 function handleCurrentChange(row) {