zxz 1 年之前
父节点
当前提交
5561b6500b
共有 1 个文件被更改,包括 13 次插入5 次删除
  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) {