浏览代码

1.资产绩效申报调整申报限制条件为出具产品即可

GouGengquan 2 月之前
父节点
当前提交
82c71bfb91
共有 2 个文件被更改,包括 20 次插入9 次删除
  1. 5 0
      src/views/income/assets/evaluate.vue
  2. 15 9
      src/views/income/assets/market.vue

+ 5 - 0
src/views/income/assets/evaluate.vue

@@ -301,6 +301,7 @@ export default {
             this.declareForm.reportNo = row.reportNo;
             this.declareForm.reportNo = row.reportNo;
             this.declareForm.businessId = row.businessId;
             this.declareForm.businessId = row.businessId;
             this.declareForm.productionId = row.productionId;
             this.declareForm.productionId = row.productionId;
+            this.declareForm.createProductionDate = row.createProductionDate;
             this.getPerformanceDistributionList(row);
             this.getPerformanceDistributionList(row);
         },
         },
         // 获取资产绩效分配信息list
         // 获取资产绩效分配信息list
@@ -359,6 +360,10 @@ export default {
         },
         },
         // 新增评估人员绩效申报
         // 新增评估人员绩效申报
         assetsDeclare() {
         assetsDeclare() {
+            if (!this.declareForm.createProductionDate){
+                this.$message.error("未出产品,不能申报。");
+                return;
+            }
             this.$refs.declareForm.validate((valid) => {
             this.$refs.declareForm.validate((valid) => {
                 if (valid) {
                 if (valid) {
                     const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
                     const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {

+ 15 - 9
src/views/income/assets/market.vue

@@ -276,7 +276,8 @@ export default {
     },
     },
     openDeclareDialog(row) {
     openDeclareDialog(row) {
       // if (row.delivery || new Date(row.orderCreated) < new Date('2025-01-01')) {
       // if (row.delivery || new Date(row.orderCreated) < new Date('2025-01-01')) {
-      if (row.delivery) {
+      // 资产事业部王琴要求,去掉标记送达的要求,与大中型一致只需要出了产品即可申报绩效
+      // if (row.delivery) {
         this.getSimpleAllUser();
         this.getSimpleAllUser();
         this.declareDialog = true;
         this.declareDialog = true;
         this.declareForm.orderId = row.orderId;
         this.declareForm.orderId = row.orderId;
@@ -289,17 +290,22 @@ export default {
         this.businessPerformanceDistributionForm.reportNo = row.reportNo;
         this.businessPerformanceDistributionForm.reportNo = row.reportNo;
         // 人员类型(市场人员/评估人员)
         // 人员类型(市场人员/评估人员)
         this.businessPerformanceDistributionForm.userType = '市场人员';
         this.businessPerformanceDistributionForm.userType = '市场人员';
-      } else {
-        this.$notify({
-          title: '失败',
-          message: '产品需先标记送达',
-          type: 'error',
-          duration: 2000
-        });
-      }
+        this.declareForm.createProductionDate = row.createProductionDate;
+      // } else {
+      //   this.$notify({
+      //     title: '失败',
+      //     message: '产品需先标记送达',
+      //     type: 'error',
+      //     duration: 2000
+      //   });
+      // }
 
 
     },
     },
     declareMarket() {
     declareMarket() {
+      if (!this.declareForm.createProductionDate){
+        this.$message.error("未出产品,不能申报。");
+        return;
+      }
       this.$refs.declareForm.validate(valid => {
       this.$refs.declareForm.validate(valid => {
         if (valid) {
         if (valid) {
           for (let i in this.businessPerformanceDistributionForm.distributionList) {
           for (let i in this.businessPerformanceDistributionForm.distributionList) {