Browse Source

类型跟情况必选添加

yingzhou 6 years ago
parent
commit
5e5d65f075
1 changed files with 10 additions and 1 deletions
  1. 10 1
      app/sign/js/modify.js

+ 10 - 1
app/sign/js/modify.js

@ -25,7 +25,6 @@ var httpData=GetRequest();
		},
		methods:{
			initPage:function(){
				console.log(this.catchArr)
				this.serverTypes=JSON.parse(JSON.stringify(this.catchArr.server||{}));
				this.jkqkSelect=JSON.parse(JSON.stringify(this.catchArr.heath||{}));
				this.jblxSelect=JSON.parse(JSON.stringify(this.catchArr.disease||{}));
@ -33,6 +32,14 @@ var httpData=GetRequest();
			},
			determine:function(){
				var vm=this
				if(this.serverTypes==''){
					layer.msg('请选择服务类型', {icon: 5})
					return ;
				}
				if(this.jkqkSelect==''){
					layer.msg('请选择健康情况', {icon: 5})
					return ;
				}
				var res={
					server:this.serverTypes,
					heath:this.jkqkSelect,
@ -273,6 +280,8 @@ var httpData=GetRequest();
	                if (code === 4 || code === 5 || code === 9 || code === 10 || code === 11 || code === 12) {
	                    arr = [0]
	                    vm.jkqk[0] && (vm.jkqk[0].className='');
	                    var _index=vm.jkqkSelect && vm.jkqkSelect.indexOf(vm.jkqk[0].labelCode) || -1
	                    _index!==-1 && vm.jkqkSelect.splice(_index,1);
	                }
	                if (code === 7) {
	                    arr = [1, 4]