|
@@ -6,7 +6,7 @@ $(function () {
|
|
|
initMzyZdChargeTypeList();
|
|
|
initReqTypeSelect();
|
|
|
initChargeItemSelect();
|
|
|
-
|
|
|
+ intitReqFeeReadonly();
|
|
|
//新增号段
|
|
|
$('#btn_add_work_time').click(function () {
|
|
|
$("#editWorkTimeModalTitle").html("新增号段");
|
|
@@ -753,7 +753,7 @@ sortNum = function (a, b) {
|
|
|
var a = a ? a : -1, b = b ? b : -1
|
|
|
return a - b
|
|
|
}
|
|
|
-
|
|
|
+var zdChargeMap;
|
|
|
// 初始化收费类别
|
|
|
function initChargeItemSelect(){
|
|
|
//初始化收费类别
|
|
@@ -768,12 +768,32 @@ function initChargeItemSelect(){
|
|
|
return;
|
|
|
}
|
|
|
var html = '';
|
|
|
+ zdChargeMap = new MyMap();
|
|
|
$.each(res.data, function (commentIndex, comment) {
|
|
|
+ zdChargeMap.put(comment.code,comment.chargeAmount)
|
|
|
html += '<option value="' + comment.code + '">' + comment.name + '[' + comment.chargeAmount + '¥]' + '</option>';
|
|
|
});
|
|
|
+
|
|
|
$('#chargeCodeSelect').empty();
|
|
|
$('#chargeCodeSelect').html(html);
|
|
|
$('#chargeCodeSelect').selectpicker('destroy').selectpicker('refresh');
|
|
|
}
|
|
|
});
|
|
|
+}
|
|
|
+//设置挂号费
|
|
|
+function guaHaoFeeChange() {
|
|
|
+ if(zdChargeMap){
|
|
|
+ let chargeAmount = zdChargeMap.get($("#chargeCodeSelect").val())
|
|
|
+ $("#reqFee").val(chargeAmount)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function intitReqFeeReadonly() {
|
|
|
+ getAjaxRequst("/thmz/getGuaHaoFeeReadonly",{},true,function (res) {
|
|
|
+ if(res.data =='0'){
|
|
|
+ $("#reqFee").attr("readonly", false);
|
|
|
+ }else {
|
|
|
+ $("#reqFee").attr("readonly", true);
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|