-
-
-
-
-
-
-
-
-
-
+
+
+
-
- 常规体检
+ 胃肠镜体检
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 常规体检医院信息
+
+
+
+
+
+ | 序号 | 医院名称 | 医院类型 | 医院地址 | 医院图片 | 医院简介 | 开启职业体检 | 排序序号 | 操作 | +
|---|---|---|---|---|---|---|---|---|
| 1 | 泾河医院 | 普通医院 | 西安市高陵区西安泾河开发区CQ西路20号 | 西安宝石花CQ医院(高陵) | 是 | 1 | 编辑 删除 | |
| 2 | 庆阳医院 | 指定医院 | 甘肃省庆阳市西峰区岐黄大道18号 | 庆阳市人民医院体检中心 | 是 | 2 | 编辑 删除 |
+ 显示 10 条,共 240 条
+
+ 每页
+
+
+
-
-
医院信息配置
+
+
+
+
-
+
+
+
+
+
-
-
-
+
-
| 序号 | 医院名称 | 体检类型 | 医院地址 | 医院图片 | 医院简介 | 开启职业体检 | 排序序号 | 操作 | -
|---|---|---|---|---|---|---|---|---|
| 1 | 泾河医院 | 常规体检胃肠镜体检 | 西安市高陵区西安泾河开发区CQ西路20号 | 西安宝石花CQ医院(高陵) | 是 | 1 | 编辑 删除 | |
| 2 | 庆阳医院 | 常规体检 | 甘肃省庆阳市西峰区岐黄大道18号 | 庆阳市人民医院体检中心 | 是 | 2 | 编辑 删除 | |
| 3 | 长安胃肠镜医院 | 胃肠镜体检 | 西安市雁塔区科技路66号 | 西安长安胃肠镜专科医院 | 否 | 3 | 编辑 删除 |
+
+
-
- 显示 10 条,共 243 条
-
- 每页
-
+
@@ -240,7 +285,7 @@
+
+
+ 胃肠镜体检医院信息
+
+
+
+
+
+ | 序号 | 医院名称 | 医院地址 | 医院图片 | 医院简介 | 是否需要就诊卡号 | 排序序号 | 操作 | +
|---|---|---|---|---|---|---|---|
| 1 | 长安胃肠镜医院 | 西安市雁塔区科技路66号 | 西安长安胃肠镜专科医院 | 是 | 1 | 编辑 删除 |
+ 显示 10 条,共 3 条
+
+ 每页
+
+
-
新增医院
+ 新增医院
@@ -258,22 +303,49 @@
-
* 体检类型
-
-
-
+
+
+
+
+
+
-
+
+ * 医院类型
+
+
+
+
+
+
+ 开启职业体检
+
+
+ 是否开启职业体检
+
+
+
排序序号
+
-
- 排序序号
-
-
- ' + seq + ' '
- + '' + data.name + ' '
- + '' + typeHtml + ' '
- + '' + data.address + ' '
- + '
'
- + '' + data.intro + ' '
- + '' + (oc ? '是' : '否') + ' '
- + '' + sort + ' '
- + '编辑 删除 ';
- tbody.appendChild(tr);
+ if(isNormal){
+ var hosTypeEl = document.querySelector('input[name="hos-type"]:checked');
+ if(!hosTypeEl){ alert('请选择医院类型'); return; }
+ var hosType = hosTypeEl.value;
+ var sort = document.getElementById('form-sort-normal').value.trim() || String(seq);
+ var oc = document.getElementById('switch-oc').classList.contains('on');
+ var tr = document.createElement('tr');
+ tr.innerHTML = '' + seq + ' '
+ + '' + data.name + ' '
+ + '' + hosType + ' '
+ + '' + data.address + ' '
+ + '
'
+ + '' + data.intro + ' '
+ + '' + (oc ? '是' : '否') + ' '
+ + '' + sort + ' '
+ + '编辑 删除 ';
+ tbody.appendChild(tr);
+ } else {
+ var needCard = document.getElementById('switch-card').classList.contains('on');
+ var sortG = document.getElementById('form-sort-gastro').value.trim() || String(seq);
+ var tr2 = document.createElement('tr');
+ tr2.innerHTML = '' + seq + ' '
+ + '' + data.name + ' '
+ + '' + data.address + ' '
+ + '
'
+ + '' + data.intro + ' '
+ + '' + (needCard ? '是' : '否') + ' '
+ + '' + sortG + ' '
+ + '编辑 删除 ';
+ tbody.appendChild(tr2);
+ }
closeDrawer();
}
diff --git a/web-admin/health-checkup/config-standard-category.html b/web-admin/health-checkup/config-standard-category.html
index 1392bad..a672d85 100644
--- a/web-admin/health-checkup/config-standard-category.html
+++ b/web-admin/health-checkup/config-standard-category.html
@@ -263,12 +263,12 @@
身高
YB001-01
- 添加下级 关联科室 关联疾病
+ 关联科室 关联疾病
体重
YB001-02
- 添加下级 关联科室 关联疾病
+ 关联科室 关联疾病
+实验室检查
@@ -278,7 +278,7 @@
血常规
SYS002-01
- 添加下级 关联科室 关联疾病
+ 关联科室 关联疾病
+影像检查
@@ -288,7 +288,7 @@
胸部X光
YX003-01
- 添加下级 关联科室 关联疾病
+ 关联科室 关联疾病
@@ -464,7 +464,11 @@ function actionCellHTML(tr){
var diseases = (tr.dataset.diseases || '').split('|').filter(Boolean);
var deptLabel = '关联科室' + (depts.length ? '(' + depts.length + ')' : '');
var diseaseLabel = '关联疾病' + (diseases.length ? '(' + diseases.length + ')' : '');
- return '添加下级'
+ /* 分类最多二级:二级分类不显示“添加下级” */
+ var childBtn = tr.dataset.id
+ ? '添加下级'
+ : '';
+ return childBtn
+ ' ' + deptLabel + ''
+ ' ' + diseaseLabel + ''
+ '
开启职业体检
-
-
- 是否开启职业体检
+
+
+
@@ -296,6 +368,16 @@ function toggleSubgroup(header){
if(sub)sub.classList.add('open');
})();
+/* ===== 顶部体检类型 TAB ===== */
+var currentType = 'normal';
+function switchType(type){
+ currentType = type;
+ document.querySelectorAll('.type-tab').forEach(function(t){ t.classList.remove('active'); });
+ document.querySelectorAll('.tab-pane').forEach(function(p){ p.classList.remove('active'); });
+ document.querySelector('.type-tab[onclick="switchType(\'' + type + '\')"]').classList.add('active');
+ document.getElementById('pane-' + type).classList.add('active');
+}
+
/* ===== 新增医院抽屉 ===== */
var hospitalData = {
'h1': { name: '西安市中心医院', address: '西安市新城区西五路161号', intro: '西安市中心医院体检中心' },
@@ -306,14 +388,23 @@ var hospitalData = {
};
function openDrawer(){
+ var isNormal = currentType === 'normal';
+ document.getElementById('drawer-title').textContent = isNormal ? '新增常规体检医院' : '新增胃肠镜体检医院';
+ document.getElementById('normal-fields').style.display = isNormal ? '' : 'none';
+ document.getElementById('gastro-fields').style.display = isNormal ? 'none' : '';
document.getElementById('hospital-drawer').classList.add('open');
document.getElementById('drawer-overlay').classList.add('open');
document.getElementById('search-input').value = '';
document.getElementById('search-value').value = '';
document.getElementById('hospital-info').classList.remove('show');
- document.getElementById('form-sort').value = '';
- document.querySelectorAll('#hospital-drawer input[name="checkup-type"]').forEach(function(cb){ cb.checked = false; });
+ document.getElementById('form-sort-normal').value = '';
+ document.getElementById('form-sort-gastro').value = '';
+ document.querySelectorAll('input[name="hos-type"]').forEach(function(r){ r.checked = false; });
document.getElementById('switch-oc').classList.remove('on');
+ document.getElementById('switch-card').classList.remove('on');
+ document.getElementById('card-reg-item').style.display = 'none';
+ document.getElementById('form-gastro-notice').value = '';
+ document.getElementById('form-card-reg').value = '';
}
function closeDrawer(){
@@ -321,6 +412,12 @@ function closeDrawer(){
document.getElementById('drawer-overlay').classList.remove('open');
}
+function toggleCardSwitch(el){
+ el.classList.toggle('on');
+ var on = el.classList.contains('on');
+ document.getElementById('card-reg-item').style.display = on ? '' : 'none';
+}
+
function onHospitalChange(){
var value = document.getElementById('search-value').value;
var info = document.getElementById('hospital-info');
@@ -389,36 +486,43 @@ function onHospitalChange(){
function saveHospital(){
var value = document.getElementById('search-value').value;
if(!value || !hospitalData[value]){ alert('请选择医院'); return; }
- var types = [];
- document.querySelectorAll('#hospital-drawer input[name="checkup-type"]:checked').forEach(function(cb){ types.push(cb.value); });
- if(types.length === 0){ alert('请选择体检类型'); return; }
- var sort = document.getElementById('form-sort').value.trim();
- if(!sort){ sort = String(document.querySelectorAll('#hospital-tbody tr').length + 1); }
- var oc = document.getElementById('switch-oc').classList.contains('on');
-
var data = hospitalData[value];
- var typeHtml = types.map(function(t, i){
- var label = t === 'gastro' ? '胃肠镜体检' : '常规体检';
- var cls = t === 'gastro' ? 'tag-green' : 'tag-blue';
- return '' + label + '';
- }).join('');
-
- var tbody = document.getElementById('hospital-tbody');
- var img = tbody.querySelector('.hospital-img');
- var imgSrc = img ? img.getAttribute('src') : '';
+ var isNormal = currentType === 'normal';
+ var tbody = document.getElementById(isNormal ? 'normal-tbody' : 'gastro-tbody');
var seq = tbody.querySelectorAll('tr').length + 1;
+ var imgSrc = (document.querySelector('.hospital-img') || {}).getAttribute ? document.querySelector('.hospital-img').getAttribute('src') : '';
- var tr = document.createElement('tr');
- tr.innerHTML = '
+
+
+ 胃肠镜注意事项
+
+
+
+ 是否需要就诊卡号
+
+
+ 是否需要就诊卡号
+
+
+
+ 就诊卡号注册说明
+
+
+
排序序号
+
';
diff --git a/web-admin/health-checkup/config-standard-hospital.html b/web-admin/health-checkup/config-standard-hospital.html
index ce9b600..08e7cc2 100644
--- a/web-admin/health-checkup/config-standard-hospital.html
+++ b/web-admin/health-checkup/config-standard-hospital.html
@@ -82,6 +82,7 @@
.modal__close:hover{background:#F5F5F5;}
.modal__body{flex:1;overflow-y:auto;padding:24px;}
.modal__footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid var(--border);flex-shrink:0;}
+ .modal--wide{width:720px;}
/* 表单 */
.form-item{margin-bottom:16px;}
.form-item:last-child{margin-bottom:0;}
@@ -183,8 +184,9 @@
-
+
+
@@ -247,6 +249,29 @@
+
+
+
+
+
+ 同步任务记录
+
+
+
+
+
+
+ | 触发时间 | 同步人 | 状态 | +
|---|
+
+
+