Browse Source

可以把无需缴纳这个状态设为特殊情况,只要选了无需缴纳,就不用校验,不管底下有没有空的付款计划。其他状态还是会根据这个付款记录印花税缴纳时间来校验。
合同类型为“服务合同”、“人力资源合同”两类合同的印花税缴纳状态的初始值设置为无需缴纳

QuYueTing 1 month ago
parent
commit
51d12de0c7

+ 8 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/contract/components/customContract.vue

@@ -1439,7 +1439,7 @@ export default {
           const flagList = this.returnValuableData(this.contractPaymentList)
           const modifyState = flagList.some(item => !item.hasOwnProperty('stampDutyTime'));
           const modifyStateTwo = flagList.every(item => item.hasOwnProperty('stampDutyTime') && item.stampDutyTime);
-          if(!this.contractForm.isAmountFixed && modifyState) {
+          if(!this.contractForm.isAmountFixed && modifyState && this.contractForm.stampDutyStatus != 0) {//排除无需缴纳的情况
             this.contractForm.stampDutyStatus = 3
           }
 
@@ -1677,6 +1677,13 @@ export default {
       this.contractForm.secTypeId = ''
       const id = this.contractForm.typeId
       this.secondaryficationList = this.secondaryficationListTwo.filter(item => item.mainTypeId == id)
+      //合同类型联动,选择:“服务合同”、“人力资源合同”两类合同的印花税缴纳状态的初始值设置为无需缴纳
+      var name = this.typeList.filter(t=>t.id == id)[0].typeName;
+      if (name == '服务合同' || name == '人力资源合同') {
+        this.contractForm.stampDutyStatus = 0;
+      } else {
+        this.contractForm.stampDutyStatus = 1;
+      }
     },
     refreshDatas() {
       this.$forceUpdate()