浏览代码

默认理由

zhengkaixin 4 年之前
父节点
当前提交
b68a069150
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/projects/business/views/Master/Property/Car/Info.vue

+ 6 - 6
src/projects/business/views/Master/Property/Car/Info.vue

@@ -100,7 +100,7 @@
 				<div class="mui-popup-inner vongi-pop-inner">
 					<div class="mui-popup-title">关闭申请理由</div>
 					<div class="mui-popup-input">
-						<textarea id="textarea" rows="3" placeholder="该车位已被售出/租出" v-model="detail.reason"></textarea>
+						<textarea id="textarea" rows="3" placeholder="可输入关闭申请理由" v-model="detail.reason"></textarea>
 					</div>
 				</div>
 				<div class="mui-popup-buttons" ><span class="mui-popup-button"@click="show=0" >取消</span>
@@ -157,7 +157,7 @@
 				detail: {
 					id: this.$route.query.id,
 					actualFee:'',
-					reason:'',
+					reason:'该车位已被售出/租出',
 				},
 				info: {},
 				show:0,
@@ -191,10 +191,6 @@
 				if(!this.detail.actualFee){
 					this.detail.actualFee=this.info.estimateFee;
 				}
-				if(!this.detail.reason){
-					this.detail.reason='该车位已被售出/租出';
-				}
-
 				this.show=0;
 				this.isLoading = true;
 
@@ -222,6 +218,10 @@
 
 			},
 			opClose(){
+				if(!this.detail.reason){
+					mui.toast("请填写关闭申请理由")
+					return false;
+				}
 				this.isLoading = true;
 				this.show=0;
 				API.ParkingApplicationClose(this.detail).then(res => {