Browse Source

响应测试

linehang 6 years ago
parent
commit
b507ff0818
3 changed files with 7 additions and 5 deletions
  1. 2 1
      app/sign/html/sign_handle.html
  2. 1 1
      app/sign/html/sign_manage.html
  3. 4 3
      app/sign/js/sign_handle.js

+ 2 - 1
app/sign/html/sign_handle.html

@ -17,7 +17,8 @@
				</dt>
				<dd class="fl ml10 c-999">
					<p class="m0"><span class="c-333 c-f16">{{patientInfo.name}}</span><span class="ml10 c-f14">({{patientInfo.sex == 1 ? "男" : "女"}}&emsp;{{patientInfo.age && patientInfo.age > 0 ? patientInfo.age : "<1"}}岁)</span></p>
					<p class="c-f12 m0">申请时间: {{handleStr(patientInfo.jtSign.applyDate) || handleStr(patientInfo.applyDate)}}</p>
					<p v-if="!renewFlag || renewFlag == 'undefined'" class="c-f12 m0">申请时间: {{handleStr(patientInfo.jtSign.applyDate) || handleStr(patientInfo.applyDate)}}</p>
					<p v-if="renewFlag && renewFlag != 'undefined'" class="c-f12 m0">申请时间: {{applyDate}}</p>
				</dd>
			</dl>
			<h3>居民信息</h3>

+ 1 - 1
app/sign/html/sign_manage.html

@ -260,7 +260,7 @@
							closeBtn: 1,
							shift: 5,
							shadeClose: false, //点击遮罩关闭层
							content: "sign_handle.html?patientCode="+list.patientCode+'&signCode='+list.code + '&status=' + status + '&msgid=' + list.msgid + "&renewFlag=" + list.renewFlag
							content: "sign_handle.html?patientCode="+list.patientCode+'&signCode='+list.code + '&status=' + status + '&msgid=' + list.msgid + "&renewFlag=" + list.renewFlag + "&applyDate=" + list.applyDate
						});
			        },
			        looking: function(list) {

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

@ -44,6 +44,7 @@ top.handleVue=new Vue({
    el: "#app",
    data: {
    	renewFlag: httpData.renewFlag, // 2 改签
    	applyDate: decodeURI(httpData.applyDate) || "",
    	justDoc: null,
    	justHDoc: null,
    	doctorType: doctorInfo.doctorType,
@ -169,7 +170,7 @@ top.handleVue=new Vue({
    		var vm =this,
    			params = {
    				sender: httpData.patientCode,
    				signStatus: httpData.status == 0 ? 1 : 8
    				signStatus: httpData.status == 0 ? 1 : (vm.renewFlag == 1 ? 8 : 9)
    			},
    			loadding = layer.load(0, {shade: false});
			signAPI.findMsgId(params).then(function(res) {
@ -392,10 +393,10 @@ top.handleVue=new Vue({
					var judge = false
					$.each(res.data, function(i, v) {
						if(v.available) {
							if(v.code == vm.signInfo.doctor && vm.doctorType == 3) {
							if((vm.renewFlag == 1 && (vm.signInfo.doctor || vm.justDoc)) || v.code == vm.signInfo.doctor && vm.doctorType == 3) {
								judge = true
							}
							if(v.code == vm.signInfo.healthDoctor && vm.doctorType == 2) {
							if((vm.renewFlag == 1 && (vm.signInfo.healthDoctor || vm.justHDoc)) || v.code == vm.signInfo.healthDoctor && vm.doctorType == 2) {
								judge = true
			            	}
						}