Browse Source

关闭弹窗

linehang 6 years ago
parent
commit
c056289236
1 changed files with 5 additions and 3 deletions
  1. 5 3
      app/sign/js/sign_handle.js

+ 5 - 3
app/sign/js/sign_handle.js

@ -524,14 +524,14 @@ top.handleVue=new Vue({
					vm.signInfo.adminTeamCode = 0
					vm.signInfo.type = 2
					vm.signInfo.state = 0
					vm.sign()
					vm.sign(index)
				},
				success: function(layero){
					layero.find('.layui-layer-btn').css('text-align', 'center')
				}
			});
        },
        sign: function() {// type:1签约 2拒签
        sign: function(index) {// type:1签约 2拒签
        	if(this.signInfo.type == 1 && ((this.doctorType == 2 && !this.signInfo.healthDoctor) || (this.doctorType == 3 && !this.signInfo.doctor) || !this.signInfo.sevId || (!this.signInfo.disease && !this.signInfo.healthLabel && !this.signInfo.customLabel))) {
        		showWarningMessage("请将填写完整签约信息!");
        		return false;
@ -546,7 +546,8 @@ top.handleVue=new Vue({
						showSuccessMessage(res.msg || "操作成功")
						setTimeout(function() {
							gobalVue.signCount();
							layer.closeAll();
							parent.layer.closeAll();
							layer.close(index)
						}, 1000)
					} else {
						showErrorMessage(res.msg);
@ -560,6 +561,7 @@ top.handleVue=new Vue({
						setTimeout(function() {
							gobalVue.signCount();
							layer.closeAll();
							layer.close(index)
						}, 1000)
					} else {
						showErrorMessage(res.msg);