|
@ -65,10 +65,11 @@
|
|
|
.item-name{position: relative;color: #999;padding-right: 10px;width: 80px;text-align: justify;text-align-last: justify;display: inline-block;}
|
|
|
.item-name:after{content: ':';position: absolute;right: 5px;}
|
|
|
/*立即生效*/
|
|
|
.checkbox-box{position: relative;}
|
|
|
.immediately{opacity: 0;position: absolute;width: 100%;height: 100%;top: 0;cursor: pointer;}
|
|
|
.checkbox-box{position: relative;z-index: 20}
|
|
|
.immediately{opacity: 0;position: absolute;width: 100%;height: 100%;top: 0;cursor: pointer;z-index: 2;}
|
|
|
.immediately + i{display: inline-block;width: 15px;height: 15px;vertical-align: middle;margin-right: 10px;background: url(${ctx}/static/desizenMan/images/weigouxuan_icon.png) center center / cover no-repeat;}
|
|
|
.immediately:checked + i{background-image: url(${ctx}/static/desizenMan/images/yigouxuan_icon.png);}
|
|
|
.immediatelyClick{position:absolute;width: 100%;height: 100px;top: 0;left: 0;z-index: 20;}
|
|
|
|
|
|
.layui-layer-blue .layui-layer-title{background-color: #2d9bd2;color: #fff;}
|
|
|
.layui-layer-blue .layui-layer-close1{background-color: #fff;border-radius: 100%;background-image: none;position: relative;width: 20px;height: 20px;margin-top: -4px;}
|
|
@ -283,7 +284,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row text-center">
|
|
|
<p class="ptb-30 mb-0"><span class="checkbox-box"><input type="checkbox" class="immediately" /><i></i>立即生效</span></p>
|
|
|
<p class="ptb-30 mb-0">
|
|
|
<div class="checkbox-box">
|
|
|
<input type="checkbox" class="immediately"/><i></i>立即生效
|
|
|
<div class="immediatelyClick"></div>
|
|
|
</div>
|
|
|
</p>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
@ -514,9 +520,10 @@
|
|
|
$('.item-jiashou').text(t.hospitalServiceItem.specialistServiceItemDO.addItem);
|
|
|
console.log(t.hospitalServiceItem.imediate)
|
|
|
if(t.hospitalServiceItem.imediate == 1){
|
|
|
$('.immediately').attr('checked','checked');
|
|
|
}else if(t.hospitalServiceItem.imediate == 0){
|
|
|
$('.immediately').attr('checked',false);
|
|
|
console.log($('.immediately')[0])
|
|
|
$($('.immediately')[0]).prop('checked','checked');
|
|
|
}else{
|
|
|
$($('.immediately')[0]).prop('checked',false);
|
|
|
}
|
|
|
},
|
|
|
onNodeUnselected: function (event, node) {
|
|
@ -747,6 +754,79 @@
|
|
|
});
|
|
|
})
|
|
|
}
|
|
|
// 点击立即生效
|
|
|
$('.checkbox-box').on('click',function(event){
|
|
|
event.stopPropagation();
|
|
|
if(!($("#institutional_project").find('.node-selected')[0])){
|
|
|
return
|
|
|
}
|
|
|
var id = $("#institutional_project").find('.node-selected')[0].dataset.code
|
|
|
if (!id){
|
|
|
return
|
|
|
}
|
|
|
var t = null;
|
|
|
xiangmuContent.forEach(function (item) {
|
|
|
if (id == item.hospitalServiceItem.id){
|
|
|
t = item
|
|
|
}
|
|
|
});
|
|
|
layer.confirm('是否更改"立即生效"状态', {
|
|
|
title: '提示',
|
|
|
skin: 'layui-layer-blue', //样式类名
|
|
|
anim:4,
|
|
|
btn: ['是','否'] //按钮
|
|
|
},function () {
|
|
|
var index = layer.load(2);
|
|
|
var _imediate = '';
|
|
|
debugger
|
|
|
if(t.hospitalServiceItem.imediate == 1){
|
|
|
t.hospitalServiceItem.imediate = 0;
|
|
|
_imediate = 0
|
|
|
}else{
|
|
|
t.hospitalServiceItem.imediate = 1;
|
|
|
_imediate = 1
|
|
|
}
|
|
|
var item = {},data=[];
|
|
|
item.hospital = t.hospitalServiceItem.hospital;
|
|
|
item.hospitalName = t.hospitalServiceItem.hospitalName;
|
|
|
item.serviceItemId = t.hospitalServiceItem.serviceItemId;
|
|
|
item.serviceItemName = t.hospitalServiceItem.serviceItemName;
|
|
|
item.expense = t.hospitalServiceItem.expense;
|
|
|
item.status = t.hospitalServiceItem.status;
|
|
|
item.imediate = t.hospitalServiceItem.imediate;
|
|
|
item.id = t.hospitalServiceItem.id;
|
|
|
data.push(item)
|
|
|
data = JSON.stringify(data);
|
|
|
parms = {
|
|
|
hospitalServiceItem:data
|
|
|
}
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/specialist/hospitalServiceItem/createHospitalServiceItem",
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
async: true,
|
|
|
data:parms,
|
|
|
success:function (res) {
|
|
|
console.log(res);
|
|
|
if (res.status == 200){
|
|
|
layer.close(index);
|
|
|
if(_imediate == 0){
|
|
|
$($('.immediately')[0]).prop('checked',false);
|
|
|
}else{
|
|
|
$($('.immediately')[0]).prop('checked','checked');
|
|
|
}
|
|
|
layer.msg('操作成功',{icon:1});
|
|
|
setTimeout(function(){
|
|
|
layer.closeAll()
|
|
|
},1500)
|
|
|
}
|
|
|
},
|
|
|
error:function (err) {
|
|
|
console.log(err)
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
})
|
|
|
// 点击新增机构项目
|
|
|
$('.add').on('click',function(){
|
|
|
layer.open({
|