zhengkaixin 3 yıl önce
ebeveyn
işleme
c6209f0b2e

+ 6 - 2
src/projects/business/views-xsy/CardReplacement/Add.vue

@@ -23,7 +23,7 @@
 				</form>
 				<form class="mui-input-group vongi-editme margin10">
 					<div class="mui-input-row">
-						<label style="width:100%">&nbsp;&nbsp;申请理由</label>
+						<label style="width:100%"><i class="colorfe616c">*</i>&nbsp;申请理由</label>
 					 
 						<textarea id="textarea" rows="3" placeholder="申请批量补卡" v-model="subForm.reason"></textarea>
 					</div>
@@ -282,13 +282,17 @@
 			})
 		},
 			//表单检测
-			checkFrom() {
+			checkFrom() {
+				
 				if (!this.subForm.personIds) {
 					mui.toast('请选择人员');
 					return false;
 				}   else if (!this.subForm.date) {
 					mui.toast('请选择调整班次');
 					return false;
+				} else if (!this.subForm.reason) {
+					mui.toast('请输入批量补卡理由');
+					return false;
 				} else {
 					return true;
 				}