Pārlūkot izejas kodu

Merge branch 'develop'

ly 1 gadu atpakaļ
vecāks
revīzija
87d97b1b24

+ 8 - 1
src/api/business/crm/contract.js

@@ -11,7 +11,14 @@ export function listOrder(query) {
     params: query
   })
 }
-
+export function listOrder2(query) {
+  request.defaults.baseURL = '/ezhizao-yzbh-crm'
+  return request({
+    url: '/business/archive/order/list2',
+    method: 'get',
+    params: query
+  })
+}
 // 查询档案入库详细
 export function getOrder(id) {
   request.defaults.baseURL = '/ezhizao-yzbh-crm'

+ 32 - 8
src/views/business/crm/order/form.vue

@@ -100,7 +100,8 @@
                     </el-icon>
                   </el-button> -->
                 </template>
-                <el-link  :underline="false"   type="primary" @click="handleInfo(form)" v-else>{{ form.companyName }}</el-link>
+                <el-link :underline="false" type="primary" @click="handleInfo(form)" v-else>{{ form.companyName
+                  }}</el-link>
               </el-form-item>
             </el-col>
             <el-col :span="6">
@@ -241,14 +242,21 @@
                             <div>{{ rowNum(item.amount) }}</div>
                           </el-form-item>
                         </el-col>
+                        <el-col :span="4" style="padding-top: 18px">
+                          <el-form-item label="服务区间"
+                            v-if="item.timeVo != null && item.timeVo != undefined &&  type !== 'alterOrder'">
+                            <div>{{ item.timeVo.startTime.substr(0,item.timeVo.startTime.length - 3) }} ~ {{
+                              item.timeVo.endTime.substr(0,item.timeVo.endTime.length - 3) }}</div>
+                          </el-form-item>
+                        </el-col>
                         <el-col :span="4" style="padding-top: 18px" v-if="item.taskTypeId ==4">
 
                         </el-col>
                         <el-col :span="4" style="padding-top: 18px" v-if="item.taskTypeId ==4">
                           <el-form-item label="所属区">
                             <el-select v-if="editStatus" v-model="item.belongRegion" style="margin-right: 5px">
-                              <el-option v-for="item in belong_region" :key="item.value" :label="item.label"
-                                :value="item.id"></el-option>
+                              <el-option v-for="region in belong_region" :key="region.value" :label="region.label"
+                                :value="region.id"></el-option>
                             </el-select>
                             <span v-else>{{item.regionName}}</span>
                           </el-form-item>
@@ -917,6 +925,7 @@
     reset();
 
     visible.value = true;
+
     if (id) {
       Promise.all([initTaskTypes(), listSource(), getOrder(id)]).then((res) => {
         loopTasks.value = res[0].data.loopTasks;
@@ -943,6 +952,9 @@
       title.value = "添加订单信息";
     }
     getOption()
+
+
+
   }
   function getOption() {
     listLableNoPage().then(res => {
@@ -1011,10 +1023,11 @@
     loopDetails.value = [];
     onceDetails.value = [];
     type.value = "";
-    // console.log(form)
     proxy.resetForm("orderRef");
+    // belong_region.value.forEach(item => {
+    //   item.id = Number(item.id)
+    // })
   }
-
   /** 全屏缩放 */
   function handleScreen() {
     const dom = document.querySelector(
@@ -1081,6 +1094,12 @@
         proxy.$refs["orderRef"].validate((valid) => {
           if (valid && detailValid() && amountValid()) {
             const formValue = form.value;
+            // formValue.details.forEach(item => {
+            //   item.timeVo = null
+            // })
+
+
+
             formValue.details =
               form.value.serviceType === 1
                 ? loopDetails.value
@@ -1365,9 +1384,9 @@
             l.payAddress === 1 && l.addressStyle === 2 && l.addressAmount
               ? Number(l.addressAmount)
               : 0;
-              if(l.alterType ==="跨区变更" &&  l.addressStyle === 2 && l.addressAmount){
-                amount += Number(l.addressAmount)
-              }
+          if (l.alterType === "跨区变更" && l.addressStyle === 2 && l.addressAmount) {
+            amount += Number(l.addressAmount)
+          }
           l.processes.forEach((v) => {
             amount += v.amount ? Number(v.amount) : 0;
           });
@@ -1539,7 +1558,12 @@
     proxy.$modal
       .confirm("是否确认审核?")
       .then((_) => {
+
+        // form.value.details.forEach(item => {
+        //   item.timeVo = null
+        // })
         verifyCheckOrder(form.value).then((res) => {
+          console.log(123, res);
           if (res.data == null) {
             verifyUpload(1);
           } else {

+ 12 - 3
src/views/business/deduction/fileDialog.vue

@@ -12,7 +12,9 @@
             </div>
         </template>
         <div class="dialog-list-container">
-            <el-table ref="dbTable" :data="list" size="small" border header-row-class-name="list-header-row"
+            <img style="height: 148px; width: 148px" :src="`${baseUrl}/${form}`" class="avatar"
+                @click="openEvidience('form')" />
+            <!-- <el-table ref="dbTable" :data="list" size="small" border header-row-class-name="list-header-row"
                 row-class-name="list-row" @selection-change="handleSelectionChange">
                 <el-table-column type="selection" width="40" align="center" />
                 <el-table-column type="index" label="序号" width="46" align="center" />
@@ -23,12 +25,12 @@
                             }}</el-button>
                     </template>
                 </el-table-column>
-            </el-table>
+            </el-table> -->
 
 
 
 
-            <div  style="display: flex; justify-content: space-between; margin-top: 10px;margin-bottom: 10px;">
+            <div style="display: flex; justify-content: space-between; margin-top: 10px;margin-bottom: 10px;">
                 <div>
                     补传文件
                 </div>
@@ -96,6 +98,7 @@
         baseUrl: import.meta.env.VITE_APP_BASE_API,
         options: {}
     })
+    const form = ref();
     const { visible, list, query, selection, baseUrl, options, total } = toRefs(data)
     const supplementList = ref([])
     function open(arg) {
@@ -119,6 +122,8 @@
         list.value = list.value.filter(item => {
             return item.supplement != 1
         })
+        form.value = list.value[0].fileUrl
+
         supplementList.value = res.rows.filter(item => {
             return item.supplement === 1
         })
@@ -164,6 +169,10 @@
         }
 
     }
+    function openEvidience() {
+        
+        window.open(`${baseUrl.value}/${form.value}`);
+    }
     /**
      * 搜索 事件
      */

+ 14 - 4
src/views/business/deduction/index.vue

@@ -151,7 +151,17 @@
           </el-col>
           <el-col :span="24">
             <el-form-item label="凭证附件:" required>
-              <div class="details-btns-container" style="display: flex">
+              <dragUpload :accept="accept" style="width:100%" @file="upload"
+                v-if="form.files == null || form.files == ''" />
+              <img v-else style="height: 148px; width: 148px" :src="`${baseUrl}/${form.files[0].fileUrl}`"
+                class="avatar" @click="openEvidience('files[0]')" />
+              <div v-if="form.status !== 3">
+                <el-icon :size="20" v-if="form.files !== '' ||form.files == null "
+                  @click="form.files = []" class="delete-button">
+                  <Delete />
+                </el-icon>
+              </div>
+              <!-- <div class="details-btns-container" style="display: flex">
                 <el-upload action="#" :http-request="upload" :with-credentials="true" :show-file-list="false" multiple>
                   <el-button size="small" type="primary" icon="Upload">点击上传</el-button>
                 </el-upload>
@@ -171,7 +181,7 @@
                     <el-button link size="small" type="danger" @click="handleDelFile(scope.$index)">删除</el-button>
                   </template>
                 </el-table-column>
-              </el-table>
+              </el-table> -->
             </el-form-item>
           </el-col>
         </el-row>
@@ -254,7 +264,7 @@
   import FileDialog from "./fileDialog.vue";
   import HousingFundViewDialog from "./HousingFundViewDialog";
   import SocialSecurityViewDialog from "./SocialSecurityViewDialog";
-
+  import dragUpload from "@/components/dragUpload"
   // import DepositForm from "./form"
   const { proxy } = getCurrentInstance();
   /** 字典数组区 */
@@ -511,7 +521,7 @@
 
   function upload(param) {
     const formData = new FormData();
-    formData.append("file", param.file);
+    formData.append("file", param);
     uploadFile(formData).then((res) => {
       if (res.code === 200) {
         const file = {};

+ 3 - 2
src/views/business/invoice/ContractChoice.vue

@@ -35,6 +35,7 @@
                 <el-table-column type="index" label="序号" width="46" align="center" />
                 <el-table-column label="合同编号" prop="contractNo" width="100" align="center" />
                 <el-table-column label="客户名称" prop="companyName" width="200" align="center" />
+                <el-table-column label="签约时间" prop="formDate" width="200" align="center" />
                 <el-table-column label="备注" prop="remark" header-align="center" />
                 <el-table-column v-if="!multiple" label="操作" width="50" align="center">
                     <template #default="scope">
@@ -50,7 +51,7 @@
 </template>
 <script setup>
     import { toRef } from 'vue'
-    import { listOrder } from "@/api/business/crm/contract";
+    import { listOrder2 } from "@/api/business/crm/contract";
     const { proxy } = getCurrentInstance();
     const props = defineProps({
         width: {
@@ -158,7 +159,7 @@
         visible.value = false;
     }
     const getList = () => {
-        listOrder(queryParams.value)
+        listOrder2(queryParams.value)
             .then(res => {
                 total.value = res.total
                 list.value = res.rows

+ 25 - 1
src/views/business/invoice/form.vue

@@ -33,7 +33,11 @@
                             <el-button v-show="!editStatus && form.status == 1" type="warning" size="small" icon="Back"
                                 @click="returnStatus" v-hasPermi="['business:invoice:return']">退回</el-button>
                         </div>
-
+	
+                        <div style="display: flex;">
+                            <el-button type="danger" size="small" icon="Position" v-show="form.status ==3"
+                                @click="changeStauts4" v-hasPermi="['business:invoice:reverseAudit']">反审核</el-button>
+                        </div>
 
                     </el-button-group>
                     <div class="screen-btn" @click="handleScreen">
@@ -541,6 +545,26 @@
             returnFlag.value = false
             getList.value()
         });
+    }
+
+    function changeStauts4() {
+        proxy.$modal
+            .confirm("您确认要反审核当前数据吗?")
+            .then(() => {
+                visible.value = true;
+                form.value.status = 1
+                updateInvoice(form.value).then(response => {
+                    proxy.$modal.msgSuccess("修改成功");
+                    visible.value = false;
+                    getList.value()
+                });
+            })
+            .catch(() => {
+                proxy.$modal.msg("已取消");
+            });
+
+
+
     }
     function changeStauts3() {
         console.log(form.value.refuseReason);

+ 32 - 45
src/views/business/production/IndividualIncomeTaxIs/FormDialog.vue

@@ -53,37 +53,6 @@
                   </div>
                   <div v-else>
                   </div>
-                  <!-- <el-upload
-
-                      v-if="!isView"
-                      action="#"
-                      :http-request="upload"
-                      :with-credentials="true"
-                      list-type="picture-card"
-                      :show-file-list="false"
-                      multiple
-                    >
-                      <img
-                        v-if="
-                          emptyForm.evidenceFile != null &&
-                          emptyForm.evidenceFile !== ''
-                        "
-                        style="height: 148px; width: 148px"
-                        :src="`${baseUrl}/${emptyForm.evidenceFile}`"
-                        class="avatar"
-                      />
-                      <i v-else class="el-icon-plus avatar-uploader-icon" />
-                    </el-upload> -->
-                  <!-- <img
-                      v-else-if="
-                        emptyForm.evidenceFile != null &&
-                        emptyForm.evidenceFile !== ''
-                      "
-                      style="height: 148px; width: 148px"
-                      :src="`${baseUrl}/${emptyForm.evidenceFile}`"
-                      class="avatar"
-                      @click="openEvidience('evidenceFile')"
-                    /> -->
                 </el-form-item>
                 <!-- 删除按钮 -->
 
@@ -125,14 +94,14 @@
             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 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-hasPermi="['business:individualIncomeTaxDetail:deductionTurnBack']" icon="back" type="warning"
-            size="small" style="float: right;" :disabled="(emptyForm == null || emptyForm.status !== 3)  "
-            @click="turnBack(emptyForm)">
+            size="small" style="float: right;" 
+            :disabled="(emptyForm == null || emptyForm.status !== 3)  " @click="turnBack(emptyForm)">
             退回
           </el-button>
         </div>
@@ -239,7 +208,6 @@
     tenantId.value = mainRow.tenantId;
     mainInfo.value = mainRow;
     monthInfo.value = monthItem;
-    console.log("id", id);
     currentMonth.value = proxy.moment().subtract(1, "month").format("YYYY-MM-01")
     if (id == 0) {
       isAdd.value = true;
@@ -247,12 +215,14 @@
       loadData(id);
     } else if (id == null || mainRow.detail.status == 3) {
       isView.value = true;
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
       console.log("查看");
       getInfoId(id);
     } else {
       console.log("修改");
       isView.value = false;
       isAdd.value = false;
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
       getInfoId(id);
     }
     getDetail(queryParams.value).then((response) => {
@@ -263,12 +233,29 @@
   }
 
   function getInfoId(id) {
-    console.log("id", mainInfo.value);
     getInfo(mainInfo.value.id, monthInfo.value.year, monthInfo.value.month).then((response) => {
-      console.log("response", response);
       mainInfo.value.detail = response.data;
       reportFiles.value = response.data.reportFiles;
       emptyForm.value = response.data;
+      /// 待删除
+      const nowDate = ref(
+        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 = monthInfo.value.year;
+      const month = monthInfo.value.month;
+      if (nowyear + nowmonth == year + month) {
+        if (emptyForm.value.status === 3) {
+          isView.value = true
+        } else {
+          isView.value = false
+        }
+        stopUseBack.value = false
+      } else {
+        stopUseBack.value = true
+      }
+      ///
       loadData(id);
     });
   }
@@ -318,10 +305,10 @@
     const month = proxy.moment(currentMonth.value).format("MM");
 
     if (nowyear + nowmonth == year + month) {
-      if(emptyForm.value.status === 3 ){
-        isView.value =true
-      }else{
-        isView.value =false
+      if (emptyForm.value.status === 3) {
+        isView.value = true
+      } else {
+        isView.value = false
       }
       stopUseBack.value = false
     } else {

+ 118 - 196
src/views/business/production/IndividualIncomeTaxIs/MemberDialog.vue

@@ -1,34 +1,14 @@
 <template>
   <!-- 添加或修改菜单对话框 -->
-  <el-dialog
-    title="工资信息"
-    v-model="visible"
-    width="800px"
-    append-to-body
-    draggable
-    :close-on-click-modal = "false"
-  >
+  <el-dialog title="工资信息" v-model="visible" width="800px" append-to-body draggable :close-on-click-modal="false">
     <div style="padding: 8px 24px 16px 24px">
       <el-form size="small" label-width="50px">
         <el-row :gutter="30">
           <el-col :span="24">
-            <el-table
-              ref="dbTable"
-              :data="detailList"
-              size="small"
-              border
-              max-height="400"
-              header-row-class-name="list-header-row"
-              row-class-name="list-row"
-              show-summary
-              :summary-method="getSummaries"
-            >
-              <el-table-column
-                type="index"
-                label="序号"
-                width="50"
-                align="center"
-              />
+            <el-table ref="dbTable" :data="detailList" size="small" border max-height="400"
+              header-row-class-name="list-header-row" row-class-name="list-row" show-summary
+              :summary-method="getSummaries">
+              <el-table-column type="index" label="序号" width="50" align="center" />
               <el-table-column label="员工姓名" width="80" align="center">
                 <template #default="scope">
                   <span>{{ scope.row.employeeName }}</span>
@@ -45,127 +25,64 @@
                   <span>{{}}</span>
                 </template>
               </el-table-column> -->
-              <el-table-column
-                label="应发工资"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="planSalary"
-              >
+              <el-table-column label="应发工资" width="80" header-align="center" align="right" prop="planSalary">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.planSalary) }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="实发工资"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="actuallySalary"
-              >
+              <el-table-column label="实发工资" width="80" header-align="center" align="right" prop="actuallySalary">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.actuallySalary) }}</span>
                 </template>
               </el-table-column>
 
-              <el-table-column
-                label="奖金及其他"
-                width="100"
-                header-align="center"
-                align="right"
-                prop="bonusAmount"
-              >
+              <el-table-column label="奖金及其他" width="100" header-align="center" align="right" prop="bonusAmount">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.bonusAmount) }}</span>
                 </template>
               </el-table-column>
               <el-table-column label="社保" align="center">
-                <el-table-column
-                  label="养老保险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="endowmentInsurance"
-                >
+                <el-table-column label="养老保险" width="80" header-align="center" align="right" prop="endowmentInsurance">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.endowmentInsurance) }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column
-                  label="医疗保险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="medicalInsurance"
-                >
+                <el-table-column label="医疗保险" width="80" header-align="center" align="right" prop="medicalInsurance">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.medicalInsurance) }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column
-                  label="失业险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="unemploymentBenefit"
-                >
+                <el-table-column label="失业险" width="80" header-align="center" align="right" prop="unemploymentBenefit">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.unemploymentBenefit) }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column
-                  label="大病险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="seriousIllnessInsurance"
-                >
+                <el-table-column label="大病险" width="80" header-align="center" align="right"
+                  prop="seriousIllnessInsurance">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.seriousIllnessInsurance) }}</span>
                   </template>
                 </el-table-column>
               </el-table-column>
-              <el-table-column
-                label="公积金"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="housingFund"
-              >
+              <el-table-column label="公积金" width="80" header-align="center" align="right" prop="housingFund">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.housingFund) }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="个税"
-                width="60"
-                header-align="center"
-                align="right"
-                prop="currentIndividualIncomeTax"
-              >
+              <el-table-column label="个税" width="60" header-align="center" align="right"
+                prop="currentIndividualIncomeTax">
                 <template #default="scope">
                   <span>{{
                     rowNum(scope.row.currentIndividualIncomeTax)
-                  }}</span>
+                    }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="其它扣款"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="otherCut"
-              >
+              <el-table-column label="其它扣款" width="80" header-align="center" align="right" prop="otherCut">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.otherCut) }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="备注"
-                width="60"
-                align="center"
-                prop="accidentInsurance"
-              >
+              <el-table-column label="备注" width="60" align="center" prop="accidentInsurance">
                 <template #default="scope">
                   <span>{{ scope.row.accidentInsurance }}</span>
                 </template>
@@ -183,106 +100,111 @@
 
 
 <script setup>
-const { proxy } = getCurrentInstance();
-import { getSalaryDetail } from "@/api/business/production/detail";
-import { rowNum, numberToCurrencyNo } from "@/utils/index";
-
-/** 父组件传参 */
-const props = defineProps({
-  getList: {
-    type: Function,
-    default: () => {},
-  },
-});
-const { getList } = toRefs(props);
-/** 字典数组区 */
-const { develop_type } = proxy.useDict("develop_type");
-/** 表单抽屉 页变量 */
-const detailList = ref([]);
-const title = ref("");
-const loading = ref(false);
-const multiple = ref(true);
-const visible = ref(false);
-const editStatus = ref(false);
-const content = ref("");
-const isFullscreen = ref(false);
-const addDetailNum = ref(1);
-const currentMember = {};
-const provinces = ref(proxy.region.getProvinces());
-provinces.value.unshift({ code: "", name: "全部" });
-const cities = ref([]);
-const districts = ref([]);
-
-const sourceCategories = ref([]);
-
-const addType = ref(1);
-
-watch(addType, (value) => {
-  switch (value) {
-    case "1":
-      break;
-    case "2":
-      break;
-    default:
-      break;
-  }
-});
-
-const webHost = import.meta.env.VITE_APP_BASE_API;
-
-const followQuery = ref({});
-
-/***********************  表单页方法 ****************************/
-
-/** 抽屉打开 */
-function open(data) {
-  console.log("工资open");
-  getSalaryDetail(data).then((response) => {
-    if (response.data) {
-      detailList.value = response.data.details;
-      content.value = response.data.content;
+  const { proxy } = getCurrentInstance();
+  import { getSalaryDetail } from "@/api/business/production/detail";
+  import { rowNum, numberToCurrencyNo } from "@/utils/index";
+
+  /** 父组件传参 */
+  const props = defineProps({
+    getList: {
+      type: Function,
+      default: () => { },
+    },
+  });
+  const { getList } = toRefs(props);
+  /** 字典数组区 */
+  const { develop_type } = proxy.useDict("develop_type");
+  /** 表单抽屉 页变量 */
+  const detailList = ref([]);
+  const title = ref("");
+  const loading = ref(false);
+  const multiple = ref(true);
+  const visible = ref(false);
+  const editStatus = ref(false);
+  const content = ref("");
+  const isFullscreen = ref(false);
+  const addDetailNum = ref(1);
+  const currentMember = {};
+  const provinces = ref(proxy.region.getProvinces());
+  provinces.value.unshift({ code: "", name: "全部" });
+  const cities = ref([]);
+  const districts = ref([]);
+
+  const sourceCategories = ref([]);
+
+  const addType = ref(1);
+
+  watch(addType, (value) => {
+    switch (value) {
+      case "1":
+        break;
+      case "2":
+        break;
+      default:
+        break;
     }
-    visible.value = true;
   });
-}
 
-function getSummaries(param) {
-  const { columns, data } = param;
-  const sums = [];
-  columns.forEach((column, index) => {
-    if (index === 0) {
-      sums[index] = "合计";
-      return;
-    } else if (index === 1) {
-      sums[index] = "";
-      return;
-    }
-    const values = data.map((item) => Number(item[column.property]));
+  const webHost = import.meta.env.VITE_APP_BASE_API;
+
+  const followQuery = ref({});
+
+  /***********************  表单页方法 ****************************/
+
+  /** 抽屉打开 */
+  function open(data) {
+    console.log("工资open");
+    getSalaryDetail(data).then((response) => {
+      if (response.data) {
+        detailList.value = response.data.details;
+        detailList.value.forEach((item) => {
+          if (item.individualIncomeTaxConfirm != undefined && item.currentIndividualIncomeTax != null) {
+            item.currentIndividualIncomeTax = item.individualIncomeTaxConfirm;
+          }
+        })
+        content.value = response.data.content;
+      }
+      visible.value = true;
+    });
+  }
 
-    if (!values.every((value) => isNaN(value))) {
-      sums[index] = values.reduce((prev, curr) => {
-        const value = Number(curr);
-        if (!isNaN(value)) {
-          return (Number(prev) + Number(curr)).toFixed(2);
-        } else {
-          return Number(prev).toFixed(2);
-        }
-      }, 0);
-      sums[index] = numberToCurrencyNo(sums[index]);
-    } else {
-      sums[index] = "";
-    }
-  });
-  return sums;
-}
+  function getSummaries(param) {
+    const { columns, data } = param;
+    const sums = [];
+    columns.forEach((column, index) => {
+      if (index === 0) {
+        sums[index] = "合计";
+        return;
+      } else if (index === 1) {
+        sums[index] = "";
+        return;
+      }
+      const values = data.map((item) => Number(item[column.property]));
+
+      if (!values.every((value) => isNaN(value))) {
+        sums[index] = values.reduce((prev, curr) => {
+          const value = Number(curr);
+          if (!isNaN(value)) {
+            return (Number(prev) + Number(curr)).toFixed(2);
+          } else {
+            return Number(prev).toFixed(2);
+          }
+        }, 0);
+        sums[index] = numberToCurrencyNo(sums[index]);
+      } else {
+        sums[index] = "";
+      }
+    });
+    return sums;
+  }
 
-function init() {}
+  function init() { }
 
-// 暴露给父组件的方法
-defineExpose({
-  open,
-});
-init();
+  // 暴露给父组件的方法
+  defineExpose({
+    open,
+  });
+  init();
 </script>
 
 <style></style>

+ 2 - 32
src/views/business/production/IndividualIncomeTaxIsZero/FormDialog.vue

@@ -42,37 +42,6 @@
                     </div>
                     <div v-else>
                     </div>
-                    <!-- <el-upload
-                    v-if="!isView"
-                    action="#"
-                    :http-request="upload"
-                    :with-credentials="true"
-                    list-type="picture-card"
-                    :show-file-list="false"
-                    :file-list="files"
-                    multiple
-                  >
-                    <img
-                      v-if="
-                        emptyForm.evidenceFile != null &&
-                        emptyForm.evidenceFile !== ''
-                      "
-                      style="height: 148px; width: 148px"
-                      :src="`${baseUrl}/${emptyForm.evidenceFile}`"
-                      class="avatar"
-                    />
-                    <i v-else class="el-icon-plus avatar-uploader-icon" />
-                  </el-upload>
-                  <img
-                    v-else-if="
-                      emptyForm.evidenceFile != null &&
-                      emptyForm.evidenceFile !== ''
-                    "
-                    style="height: 148px; width: 148px"
-                    :src="`${baseUrl}/${emptyForm.evidenceFile}`"
-                    class="avatar"
-                    @click="openEvidience('evidenceFile')"
-                  /> -->
                   </el-form-item>
                 </div>
               </el-col>
@@ -208,12 +177,13 @@
       loadData(id);
     } else if (id == null || mainRow.detail.status == 3) {
       isView.value = true;
-      
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
       getInfoId(id);
     } else {
       console.log("修改");
       isView.value = false;
       isAdd.value = false;
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
       getInfoId(id);
     }
   }

+ 118 - 196
src/views/business/production/IndividualIncomeTaxIsZero/MemberDialog.vue

@@ -1,34 +1,14 @@
 <template>
   <!-- 添加或修改菜单对话框 -->
-  <el-dialog
-    title="工资信息"
-    v-model="visible"
-    width="800px"
-    append-to-body
-    draggable
-    :close-on-click-modal = "false"
-  >
+  <el-dialog title="工资信息" v-model="visible" width="800px" append-to-body draggable :close-on-click-modal="false">
     <div style="padding: 8px 24px 16px 24px">
       <el-form size="small" label-width="50px">
         <el-row :gutter="30">
           <el-col :span="24">
-            <el-table
-              ref="dbTable"
-              :data="detailList"
-              size="small"
-              border
-              max-height="400"
-              header-row-class-name="list-header-row"
-              row-class-name="list-row"
-              show-summary
-              :summary-method="getSummaries"
-            >
-              <el-table-column
-                type="index"
-                label="序号"
-                width="50"
-                align="center"
-              />
+            <el-table ref="dbTable" :data="detailList" size="small" border max-height="400"
+              header-row-class-name="list-header-row" row-class-name="list-row" show-summary
+              :summary-method="getSummaries">
+              <el-table-column type="index" label="序号" width="50" align="center" />
               <el-table-column label="员工姓名" width="80" align="center">
                 <template #default="scope">
                   <span>{{ scope.row.employeeName }}</span>
@@ -45,127 +25,64 @@
                   <span>{{}}</span>
                 </template>
               </el-table-column> -->
-              <el-table-column
-                label="应发工资"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="planSalary"
-              >
+              <el-table-column label="应发工资" width="80" header-align="center" align="right" prop="planSalary">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.planSalary) }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="实发工资"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="actuallySalary"
-              >
+              <el-table-column label="实发工资" width="80" header-align="center" align="right" prop="actuallySalary">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.actuallySalary) }}</span>
                 </template>
               </el-table-column>
 
-              <el-table-column
-                label="奖金及其他"
-                width="100"
-                header-align="center"
-                align="right"
-                prop="bonusAmount"
-              >
+              <el-table-column label="奖金及其他" width="100" header-align="center" align="right" prop="bonusAmount">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.bonusAmount) }}</span>
                 </template>
               </el-table-column>
               <el-table-column label="社保" align="center">
-                <el-table-column
-                  label="养老保险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="endowmentInsurance"
-                >
+                <el-table-column label="养老保险" width="80" header-align="center" align="right" prop="endowmentInsurance">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.endowmentInsurance) }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column
-                  label="医疗保险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="medicalInsurance"
-                >
+                <el-table-column label="医疗保险" width="80" header-align="center" align="right" prop="medicalInsurance">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.medicalInsurance) }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column
-                  label="失业险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="unemploymentBenefit"
-                >
+                <el-table-column label="失业险" width="80" header-align="center" align="right" prop="unemploymentBenefit">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.unemploymentBenefit) }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column
-                  label="大病险"
-                  width="80"
-                  header-align="center"
-                  align="right"
-                  prop="seriousIllnessInsurance"
-                >
+                <el-table-column label="大病险" width="80" header-align="center" align="right"
+                  prop="seriousIllnessInsurance">
                   <template #default="scope">
                     <span>{{ rowNum(scope.row.seriousIllnessInsurance) }}</span>
                   </template>
                 </el-table-column>
               </el-table-column>
-              <el-table-column
-                label="公积金"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="housingFund"
-              >
+              <el-table-column label="公积金" width="80" header-align="center" align="right" prop="housingFund">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.housingFund) }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="个税"
-                width="60"
-                header-align="center"
-                align="right"
-                prop="currentIndividualIncomeTax"
-              >
+              <el-table-column label="个税" width="60" header-align="center" align="right"
+                prop="currentIndividualIncomeTax">
                 <template #default="scope">
                   <span>{{
                     rowNum(scope.row.currentIndividualIncomeTax)
-                  }}</span>
+                    }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="其它扣款"
-                width="80"
-                header-align="center"
-                align="right"
-                prop="otherCut"
-              >
+              <el-table-column label="其它扣款" width="80" header-align="center" align="right" prop="otherCut">
                 <template #default="scope">
                   <span>{{ rowNum(scope.row.otherCut) }}</span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="备注"
-                width="60"
-                align="center"
-                prop="accidentInsurance"
-              >
+              <el-table-column label="备注" width="60" align="center" prop="accidentInsurance">
                 <template #default="scope">
                   <span>{{ scope.row.accidentInsurance }}</span>
                 </template>
@@ -183,106 +100,111 @@
 
 
 <script setup>
-const { proxy } = getCurrentInstance();
-import { getSalaryDetail } from "@/api/business/production/detail";
-import { rowNum, numberToCurrencyNo } from "@/utils/index";
-
-/** 父组件传参 */
-const props = defineProps({
-  getList: {
-    type: Function,
-    default: () => {},
-  },
-});
-const { getList } = toRefs(props);
-/** 字典数组区 */
-const { develop_type } = proxy.useDict("develop_type");
-/** 表单抽屉 页变量 */
-const detailList = ref([]);
-const title = ref("");
-const loading = ref(false);
-const multiple = ref(true);
-const visible = ref(false);
-const editStatus = ref(false);
-const content = ref("");
-const isFullscreen = ref(false);
-const addDetailNum = ref(1);
-const currentMember = {};
-const provinces = ref(proxy.region.getProvinces());
-provinces.value.unshift({ code: "", name: "全部" });
-const cities = ref([]);
-const districts = ref([]);
-
-const sourceCategories = ref([]);
-
-const addType = ref(1);
-
-watch(addType, (value) => {
-  switch (value) {
-    case "1":
-      break;
-    case "2":
-      break;
-    default:
-      break;
-  }
-});
-
-const webHost = import.meta.env.VITE_APP_BASE_API;
-
-const followQuery = ref({});
-
-/***********************  表单页方法 ****************************/
-
-/** 抽屉打开 */
-function open(data) {
-  console.log("工资open");
-  getSalaryDetail(data).then((response) => {
-    if (response.data) {
-      detailList.value = response.data.details;
-      content.value = response.data.content;
+  const { proxy } = getCurrentInstance();
+  import { getSalaryDetail } from "@/api/business/production/detail";
+  import { rowNum, numberToCurrencyNo } from "@/utils/index";
+
+  /** 父组件传参 */
+  const props = defineProps({
+    getList: {
+      type: Function,
+      default: () => { },
+    },
+  });
+  const { getList } = toRefs(props);
+  /** 字典数组区 */
+  const { develop_type } = proxy.useDict("develop_type");
+  /** 表单抽屉 页变量 */
+  const detailList = ref([]);
+  const title = ref("");
+  const loading = ref(false);
+  const multiple = ref(true);
+  const visible = ref(false);
+  const editStatus = ref(false);
+  const content = ref("");
+  const isFullscreen = ref(false);
+  const addDetailNum = ref(1);
+  const currentMember = {};
+  const provinces = ref(proxy.region.getProvinces());
+  provinces.value.unshift({ code: "", name: "全部" });
+  const cities = ref([]);
+  const districts = ref([]);
+
+  const sourceCategories = ref([]);
+
+  const addType = ref(1);
+
+  watch(addType, (value) => {
+    switch (value) {
+      case "1":
+        break;
+      case "2":
+        break;
+      default:
+        break;
     }
-    visible.value = true;
   });
-}
 
-function getSummaries(param) {
-  const { columns, data } = param;
-  const sums = [];
-  columns.forEach((column, index) => {
-    if (index === 0) {
-      sums[index] = "合计";
-      return;
-    } else if (index === 1) {
-      sums[index] = "";
-      return;
-    }
-    const values = data.map((item) => Number(item[column.property]));
+  const webHost = import.meta.env.VITE_APP_BASE_API;
+
+  const followQuery = ref({});
+
+  /***********************  表单页方法 ****************************/
+
+  /** 抽屉打开 */
+  function open(data) {
+    console.log("工资open");
+    getSalaryDetail(data).then((response) => {
+      if (response.data) {
+        detailList.value = response.data.details;
+        detailList.value.forEach((item) => {
+          if (item.currentIndividualIncomeTax != undefined && item.individualIncomeTaxConfirm != null) {
+            item.currentIndividualIncomeTax = item.individualIncomeTaxConfirm;
+          }
+        })
+        content.value = response.data.content;
+      }
+      visible.value = true;
+    });
+  }
 
-    if (!values.every((value) => isNaN(value))) {
-      sums[index] = values.reduce((prev, curr) => {
-        const value = Number(curr);
-        if (!isNaN(value)) {
-          return (Number(prev) + Number(curr)).toFixed(2);
-        } else {
-          return Number(prev).toFixed(2);
-        }
-      }, 0);
-      sums[index] = numberToCurrencyNo(sums[index]);
-    } else {
-      sums[index] = "";
-    }
-  });
-  return sums;
-}
+  function getSummaries(param) {
+    const { columns, data } = param;
+    const sums = [];
+    columns.forEach((column, index) => {
+      if (index === 0) {
+        sums[index] = "合计";
+        return;
+      } else if (index === 1) {
+        sums[index] = "";
+        return;
+      }
+      const values = data.map((item) => Number(item[column.property]));
+
+      if (!values.every((value) => isNaN(value))) {
+        sums[index] = values.reduce((prev, curr) => {
+          const value = Number(curr);
+          if (!isNaN(value)) {
+            return (Number(prev) + Number(curr)).toFixed(2);
+          } else {
+            return Number(prev).toFixed(2);
+          }
+        }, 0);
+        sums[index] = numberToCurrencyNo(sums[index]);
+      } else {
+        sums[index] = "";
+      }
+    });
+    return sums;
+  }
 
-function init() {}
+  function init() { }
 
-// 暴露给父组件的方法
-defineExpose({
-  open,
-});
-init();
+  // 暴露给父组件的方法
+  defineExpose({
+    open,
+  });
+  init();
 </script>
 
 <style></style>

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

@@ -367,10 +367,12 @@
     } else if (id == null) {
       isView.value = true;
       emptyForm.value = mainRow.detail;
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
     } else {
       emptyForm.value = mainRow.detail;
       isView.value = false;
       isAdd.value = false;
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
     }
 
     getTaxId(mainRow, id);

+ 2 - 0
src/views/business/production/financialReportTaxIsZero/FormDialog.vue

@@ -234,11 +234,13 @@
       isView.value = true;
       emptyForm.value = mainRow.detail;
       console.log("查看", emptyForm);
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
     } else {
       emptyForm.value = mainRow.detail;
       console.log("修改");
       isView.value = false;
       isAdd.value = false;
+      currentMonth.value = monthInfo.value.year + monthInfo.value.month
     }
     console.log(isView.value,2323);
     getTaxId(mainRow, id);

+ 2 - 0
src/views/business/production/receiveTicket/form.vue

@@ -379,6 +379,8 @@ function loadData() {
       month: form.value.month,
     }),
   ]).then((res) => {
+    console.log(2323,res);
+    
     form.value = { ...proxy.deepClone(emptyForm), ...res[0].data };
     salaryDetail.value = res[1].data;
     if (form.value.status === 2 || form.value.status === 3) {