zxz 1 gadu atpakaļ
vecāks
revīzija
5561b6500b
1 mainītis faili ar 13 papildinājumiem un 5 dzēšanām
  1. 13 5
      pages/reimbursement/request_funds.vue

+ 13 - 5
pages/reimbursement/request_funds.vue

@@ -173,7 +173,7 @@
 					identification: '1',
 					costType: '3',
 					agent: '',
-					storageFeeFlag:'',
+					storageFeeFlag: '',
 					totalDistribution: '0',
 				},
 				fileList1: [],
@@ -509,13 +509,21 @@
 						return
 					}
 				}
-				if (!this.detailData.amountMoney||this.detailData.amountMoney==0) {
+				if (!this.detailData.expenseName) {
+					this.$api.msg('费用名称不能为空')
+					return
+				}
+				if (this.detailData.expenseName.length < 1 || this.detailData.expenseName.length > 15) {
+					this.$api.msg('费用名称输入错误')
+					return
+				}
+				if (!this.detailData.amountMoney || this.detailData.amountMoney == 0) {
 					this.$api.msg('金额不能为空')
 					return
 				}
 				if (this.detailData.amountMoney < 0.01 || this.detailData.amountMoney > 100000000) {
-				    this.$api.msg('金额输入错误')
-				    return
+					this.$api.msg('金额输入错误')
+					return
 				}
 				var that = this
 				var title
@@ -545,7 +553,7 @@
 							that.detailData.expensesType = that.reType
 							that.detailData.fieldName = uni.getStorageSync('userInfo').userName
 							// that.detailData.totalDistribution = that.detailData.totalDistribution
-							if(that.detailData.wareExpenseType == '仓储费'){
+							if (that.detailData.wareExpenseType == '仓储费') {
 								that.detailData.storageFeeFlag = 1
 							}
 							if (that.imglist.length > 0) {