Browse Source

离职交接

wangqiang 1 year ago
parent
commit
2e21633b08

+ 5 - 0
src/views/human/depart/handover/ComputerArrearsAddForm.vue

@@ -221,6 +221,11 @@
 						this.$refs['inputForm'].validate(async (valid) => {
 							if (valid) {
 								this.loading = true
+								if (!this.inputForm.imprestAmountArrears) {
+									this.loading = false
+									this.$message.error('备用金欠款金额不能为空')
+									throw new Error('备用金欠款金额不能为空')
+								}
 								this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
 									if (this.commonJS.isNotEmpty(data)) {
 										if (data === '欠款回收') {

+ 5 - 0
src/views/human/depart/handover/HandoverAccountsAddForm.vue

@@ -223,6 +223,11 @@
 						this.$refs['inputForm'].validate(async (valid) => {
 							if (valid) {
 								this.loading = true
+								if (!this.inputForm.imprestAmountArrears) {
+									this.loading = false
+									this.$message.error('应收账款欠款金额不能为空')
+									throw new Error('应收账款欠款金额不能为空')
+								}
 								this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
 									if (this.commonJS.isNotEmpty(data)) {
 										if (data === '欠款回收') {

+ 5 - 0
src/views/human/depart/handover/HandoverImprestAddForm.vue

@@ -222,6 +222,11 @@
 						this.$refs['inputForm'].validate(async (valid) => {
 							if (valid) {
 								this.loading = true
+								if (!this.inputForm.imprestAmountArrears) {
+									this.loading = false
+									this.$message.error('备用金欠款金额不能为空')
+									throw new Error('备用金欠款金额不能为空')
+								}
 								this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
 									if (this.commonJS.isNotEmpty(data)) {
 										if (data === '欠款回收') {

+ 5 - 0
src/views/human/depart/handover/HandoverSocialSecurityAddForm.vue

@@ -223,6 +223,11 @@
 						this.$refs['inputForm'].validate(async (valid) => {
 							if (valid) {
 								this.loading = true
+								if (!this.inputForm.imprestAmountArrears) {
+									this.loading = false
+									this.$message.error('社保款项欠款金额不能为空')
+									throw new Error('社保款项欠款金额不能为空')
+								}
 								this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
 									if (this.commonJS.isNotEmpty(data)) {
 										if (data === '欠款回收') {