选结果模板时自动添加分隔符;
-1)
- return;
- if (this.LocalConfig.doctorCheck.isSplitChooseResult == "Y" || result.length == 0) {
- result.push(item.result);
- } else {
- result[result.length - 1] = result[result.length - 1] + item.result;
- }
-
- let ret = "";
- result.forEach((e, i) => {
- let splitStr = ";";
- if (i == 0) splitStr = "";
- ret += splitStr + e;
- });
- this.moreResult.result = ret;
+ this.selection.start = length(item.result) - 1
+ this.selection.end = this.selection.start
+ }else if(moreResult.includes(item.result)){
+ // 结果包含已选时,不作处理
+ }else {
+ let choosedResult = item.result
+ if(this.LocalConfig.doctorCheck.isSplitChooseResult == 'Y') choosedResult = ';' + choosedResult
+ this.insertSymbols(choosedResult)
}
+
},
// 清除结果值
@@ -1111,7 +1101,7 @@ export default {
});
},
- // 光标位置插入特殊符号
+ // 光标位置插入特殊符号(插入结果)
insertSymbols(symbols) {
let result = this.moreResult.result || "";
if (result) {
@@ -1123,8 +1113,8 @@ export default {
result = symbols;
}
this.moreResult.result = result;
- this.selection.start++;
- this.selection.end++;
+ this.selection.start = this.selection.start + length(symbols);
+ this.selection.end = this.selection.start;
},
// 获取光标位置的函数
getCaretPosition() {
@@ -1226,6 +1216,34 @@ export default {
},
+ // 模板右击
+ onContextmenuTemplate(event) {
+ if (!this.$peisAPI) return
+ let menus = [
+ { type: 'separator' },
+ { label: '显示明细历次结果', itemId: '显示明细历次结果', enabled: true },
+ { label: '预览影像报告', itemId: '预览影像报告', enabled: true }
+ // { label: '测试菜单', itemId: '测试菜单', enabled: true },
+ // {
+ // label: '更多操作',
+ // submenu: [
+ // { label: '子菜单', itemId: '子菜单', enabled: true }
+ // ]
+ // }
+ ]
+
+ this.$peisAPI.showContextMenu(menus)
+ .then(res => {
+ console.log('res', res)
+ })
+ .catch(err => {
+ console.log('err', err)
+ })
+ .finally(() => {
+ console.log('finally')
+ })
+ },
+
// 自定义右击事件
onContextMenuDIY(data) {
//this.$message({showClose:true,message:data})
diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue
index 94d2501..4985731 100644
--- a/src/components/patientRegister/PatientRegisterEdit.vue
+++ b/src/components/patientRegister/PatientRegisterEdit.vue
@@ -1665,7 +1665,7 @@ export default {
this.peoplePhoto = 'data:image/bmp;base64,' + idNos.Photo
// this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo
// isNameContinue 身份证号查重后是否姓名查重
- this.changeIdNo('Y') // 触发身份证查询档案号
+ this.changeIdNo('N') // 触发身份证查询档案号(Y:身份证没查到,再按名字查,N:仅按身份证号查)
} else {
this.$message.error({ showClose: true, message: `${lres.message}` })
}
diff --git a/src/components/sumDoctorCheck/ButtonList.vue b/src/components/sumDoctorCheck/ButtonList.vue
index 9eda524..9ea42e1 100644
--- a/src/components/sumDoctorCheck/ButtonList.vue
+++ b/src/components/sumDoctorCheck/ButtonList.vue
@@ -100,7 +100,7 @@
+ :style="`z-index:3;border-radius: 10px;border: 1px solid #ddd;background-color:#FFF; position: absolute;top:50px;right:120px;width:300px;height: ${window.pageHeight - 42 - 10}px;opacity:1;`">
diff --git a/src/views/fee-settings/cardRegister.vue b/src/views/fee-settings/cardRegister.vue
index 05e7dd5..07ac79a 100644
--- a/src/views/fee-settings/cardRegister.vue
+++ b/src/views/fee-settings/cardRegister.vue
@@ -1000,10 +1000,10 @@ export default {
this.loadOptsInit = Object.assign({}, this.loadOpts);
postapi("/api/app/cardregister/getcardregisterlist", body).then((res) => {
- if (res.code != -1) {
+ if (res.code > -1) {
this.dataList = res.data.items;
this.loadOpts.totalCount = res.data.totalCount
- this.loadOpts.skipCount = 1
+ //this.loadOpts.skipCount = 0
}
});
},