Browse Source

调整处方跳转控制

yezehua 7 years ago
parent
commit
4815bd8125
2 changed files with 4 additions and 2 deletions
  1. 1 1
      js/buz/prescription-detail.js
  2. 3 1
      prescription-detail.html

+ 1 - 1
js/buz/prescription-detail.js

@ -185,7 +185,7 @@ $(function(){
    	})
    	
    	$('#editBtn').on('click',function() {
    		location.href = 'prescription-adjustment.html'
    		location.href = 'prescription-adjustment.html?code='+prescriptionCode
    	})
    	
    	$('#backBtn').on('click',function() {

+ 3 - 1
prescription-detail.html

@ -244,7 +244,9 @@
			{{if prescription.status >= 0 && prescription.status <= 10 && isLeader }}
			<button id="reviewBtn" type="button" class="btn btn-w-m btn-success mlr20">确认</button>
			{{/if}}
			<!--<button id="editBtn" type="button" class="btn btn-w-m btn-primary mlr20">调整处方</button>-->
			{{if (prescription.status == 0 || prescription.status == 31) && isLeader }}
			<button id="editBtn" type="button" class="btn btn-w-m btn-primary mlr20">调整处方</button>
			{{/if}}
			<button id="backBtn" type="button" class="btn btn-w-m btn-danger mlr20">返回</button>
		</div>
    </script>