Browse Source

处理审核之后关闭弹窗

linehang 6 years ago
parent
commit
28100b61f2
1 changed files with 10 additions and 10 deletions
  1. 10 10
      app/sign/js/sign_handle.js

+ 10 - 10
app/sign/js/sign_handle.js

@ -521,17 +521,18 @@ top.handleVue=new Vue({
							vm.signInfo.refuseReason = refuseReason
						}
					}
					vm.signInfo.adminTeamCode = 0
					vm.signInfo.type = 2
					vm.signInfo.state = 0
					vm.sign(index)
					vm.signInfo.adminTeamCode = 0;
					vm.signInfo.type = 2;
					vm.signInfo.state = 0;
					vm.sign();
					layer.close(index);
				},
				success: function(layero){
					layero.find('.layui-layer-btn').css('text-align', 'center')
				}
			});
        },
        sign: function(index) {// type:1签约 2拒签
        sign: function() {// 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;
@ -542,12 +543,11 @@ top.handleVue=new Vue({
				signAPI.sign(vm.signInfo).then(function(res) {
					layer.close(loadding)
					if(res.status == 200) {
//						top.layer.closeAll();
						showSuccessMessage(res.msg || "操作成功")
						setTimeout(function() {
							gobalVue.signCount();
							parent.gobalVue.signCount();
							layer.closeAll();
							parent.layer.closeAll();
							layer.close(index)
						}, 1000)
					} else {
						showErrorMessage(res.msg);
@ -559,9 +559,9 @@ top.handleVue=new Vue({
					if(res.status == 200) {
						showSuccessMessage(res.msg || "操作成功")
						setTimeout(function() {
							gobalVue.signCount();
							parent.gobalVue.signCount();
							layer.closeAll();
							layer.close(index)
							parent.layer.closeAll();
						}, 1000)
					} else {
						showErrorMessage(res.msg);