|
@@ -0,0 +1,31 @@
|
|
|
+const emrEditorMounted = (code: string, editor: any, patInfo: any) => {
|
|
|
+ if (!editorFunc[code]) return
|
|
|
+ try {
|
|
|
+ editorFunc[code](editor, patInfo)
|
|
|
+ } catch (e) {
|
|
|
+ console.error('emrEditorMounted 出错', e)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+interface EditorFunc {
|
|
|
+ [key: string]: (editor: any, patInfo: any) => void
|
|
|
+}
|
|
|
+
|
|
|
+const editorFunc: EditorFunc = {
|
|
|
+ "9dc6fa005e4911edbb0eab416e27b81a": (editor, patInfo) => {
|
|
|
+ let component = editor.getNodes('费用表格')[0].target
|
|
|
+ component.setValue([
|
|
|
+ {
|
|
|
+ dataIndex: '乙类药品',
|
|
|
+ value: [
|
|
|
+ ['', '测试1', '123', '', '10%', '', ''],
|
|
|
+ ['', '测试2', '123', '', '10%', '', ''],
|
|
|
+ ['', '测试3', '123', '', '10%', '', ''],
|
|
|
+ ['', '测试4', '123', '', '10%', '', ''],
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export default emrEditorMounted
|