@lm_fe/components_m 0.2.2 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +1 -1
  2. package/dist/FU_components/DateRange/utils.d.ts +400 -0
  3. package/dist/FU_components/FormSection/RenderFormSectionComponent.d.ts +0 -4
  4. package/dist/FU_components/FormSection/types.d.ts +0 -4
  5. package/dist/FU_components/TemplateTextarea/index.d.ts +1 -0
  6. package/dist/a_chunks/Inner.js +6 -12
  7. package/dist/a_chunks/{.root45.js → components.business.TextareaWithTemplate.js} +1 -1
  8. package/dist/a_chunks/index.js +75 -337
  9. package/dist/a_chunks/{.root59.js → src.BusinessComponents.BloodAndThalassemia.js} +1 -1
  10. package/dist/a_chunks/{.root75.js → src.BusinessComponents.NoenateRecord.js} +2 -2
  11. package/dist/a_chunks/{.root85.js → src.BusinessComponents.ProcedureCystocentesis.js} +1 -1
  12. package/dist/a_chunks/{.root88.js → src.BusinessComponents.ReferralRegister.js} +2 -2
  13. package/dist/a_chunks/{.root20.js → src.FB_components.DoctorEnd_ImageReport_Report.js} +1 -1
  14. package/dist/a_chunks/{.root11.js → src.FU_components.CommonFormTabs.js} +1 -1
  15. package/dist/a_chunks/{.root46.js → src.FU_components.FormSection.js} +247 -305
  16. package/dist/a_chunks/{.root14.js → src.FU_components.MyEditTable.js} +1 -1
  17. package/dist/a_chunks/{.root132.js → src.GeneralComponents.CheckboxGroupObjectCustom.js} +1 -1
  18. package/dist/a_chunks/{.root3.js → src.doctor-end.GestationalWeekProjectTree.js} +10 -3
  19. package/dist/index.d.ts +0 -2
  20. package/dist/index.js +1 -1
  21. package/package.json +7 -7
  22. package/dist/a_chunks/.root103.js +0 -85
  23. package/dist/a_chunks/.root112.js +0 -31
  24. package/dist/a_chunks/.root114.js +0 -2003
  25. package/dist/a_chunks/.root121.js +0 -108
  26. package/dist/a_chunks/.root122.js +0 -109
  27. package/dist/a_chunks/.root52.js +0 -265
  28. package/dist/selects/ApiPermissionSelect/index.d.ts +0 -21
  29. package/dist/selects/PermissionSelect/index.d.ts +0 -14
  30. /package/dist/a_chunks/{.root56.js → BusinessComponents.TreatmentProgram.TreatmentProgramBasic.js} +0 -0
  31. /package/dist/a_chunks/{.root32.js → MyForm.components.MyAutoComplete.js} +0 -0
  32. /package/dist/a_chunks/{.root33.js → MyForm.components.MyCascader.js} +0 -0
  33. /package/dist/a_chunks/{.root39.js → MyForm.components.MyCheckbox.js} +0 -0
  34. /package/dist/a_chunks/{.root34.js → MyForm.components.MyCustom.js} +0 -0
  35. /package/dist/a_chunks/{.root35.js → MyForm.components.MyCustom2.js} +0 -0
  36. /package/dist/a_chunks/{.root43.js → MyForm.components.MyCustom3.js} +0 -0
  37. /package/dist/a_chunks/{.root36.js → MyForm.components.MyInputWithRed.js} +0 -0
  38. /package/dist/a_chunks/{.root38.js → MyForm.components.MySelect.js} +0 -0
  39. /package/dist/a_chunks/{.root57.js → MyForm.components.MyTable.js} +0 -0
  40. /package/dist/a_chunks/{.root42.js → MyForm.components.MyTreeSelect.js} +0 -0
  41. /package/dist/a_chunks/{.root37.js → MyForm.components.SingleCheckbox.js} +0 -0
  42. /package/dist/a_chunks/{.root26.js → components.business.BloodPressure.js} +0 -0
  43. /package/dist/a_chunks/{.root27.js → components.business.DoubleInput.js} +0 -0
  44. /package/dist/a_chunks/{.root28.js → components.business.FilterDateInput.js} +0 -0
  45. /package/dist/a_chunks/{.root29.js → components.business.FundalHeightInput.js} +0 -0
  46. /package/dist/a_chunks/{.root30.js → components.business.NormalButton.js} +0 -0
  47. /package/dist/a_chunks/{.root6.js → components.business.PregnancyHistory.js} +0 -0
  48. /package/dist/a_chunks/{.root31.js → components.business.TextareaWithBtn.js} +0 -0
  49. /package/dist/a_chunks/{.root44.js → components.business.prenatalReturnTable.js} +0 -0
  50. /package/dist/a_chunks/{.root.js → components_m.src.BaseEditPanel.js} +0 -0
  51. /package/dist/a_chunks/{.root22.js → components_m.src.BaseFormComponent.js} +0 -0
  52. /package/dist/a_chunks/{.root40.js → components_m.src.BaseTable.js} +0 -0
  53. /package/dist/a_chunks/{.root54.js → components_m.src.DataSelectWithAutoInput.js} +0 -0
  54. /package/dist/a_chunks/{.root2.js → components_m.src.MyForm.js} +0 -0
  55. /package/dist/a_chunks/{.root21.js → components_m.src.PDFPreview.js} +0 -0
  56. /package/dist/a_chunks/{.root58.js → src.BusinessComponents.Appgar.js} +0 -0
  57. /package/dist/a_chunks/{.root48.js → src.BusinessComponents.BirthCertificateChildren.js} +0 -0
  58. /package/dist/a_chunks/{.root135.js → src.BusinessComponents.BloodAndThalassemia2.js} +0 -0
  59. /package/dist/a_chunks/{.root60.js → src.BusinessComponents.BregmaGroup.js} +0 -0
  60. /package/dist/a_chunks/{.root61.js → src.BusinessComponents.CaesareanChildren.js} +0 -0
  61. /package/dist/a_chunks/{.root62.js → src.BusinessComponents.Diagnosis.js} +0 -0
  62. /package/dist/a_chunks/{.root63.js → src.BusinessComponents.DiagnosisList.js} +0 -0
  63. /package/dist/a_chunks/{.root64.js → src.BusinessComponents.DiagnosisListInduced.js} +0 -0
  64. /package/dist/a_chunks/{.root65.js → src.BusinessComponents.DiagnosisListv2.js} +0 -0
  65. /package/dist/a_chunks/{.root129.js → src.BusinessComponents.FamilyTumorHistory.js} +0 -0
  66. /package/dist/a_chunks/{.root66.js → src.BusinessComponents.FetalNTCheck.js} +0 -0
  67. /package/dist/a_chunks/{.root67.js → src.BusinessComponents.GynaecologyOperationTemplateTextarea.js} +0 -0
  68. /package/dist/a_chunks/{.root68.js → src.BusinessComponents.GynaecologyTemplateTextarea.js} +0 -0
  69. /package/dist/a_chunks/{.root69.js → src.BusinessComponents.HighriskSign.js} +0 -0
  70. /package/dist/a_chunks/{.root70.js → src.BusinessComponents.InducedFetus.js} +0 -0
  71. /package/dist/a_chunks/{.root71.js → src.BusinessComponents.KnowledgeBase.js} +0 -0
  72. /package/dist/a_chunks/{.root72.js → src.BusinessComponents.LaborProcess.js} +0 -0
  73. /package/dist/a_chunks/{.root73.js → src.BusinessComponents.MiddleUltsounds.js} +0 -0
  74. /package/dist/a_chunks/{.root74.js → src.BusinessComponents.MiddleUltsoundsSingle.js} +0 -0
  75. /package/dist/a_chunks/{.root78.js → src.BusinessComponents.NurseChildren.js} +0 -0
  76. /package/dist/a_chunks/{.root79.js → src.BusinessComponents.NurseChildren2.js} +0 -0
  77. /package/dist/a_chunks/{.root80.js → src.BusinessComponents.NursingFetus.js} +0 -0
  78. /package/dist/a_chunks/{.root81.js → src.BusinessComponents.NursingFetusv2.js} +0 -0
  79. /package/dist/a_chunks/{.root82.js → src.BusinessComponents.NursingFetusv3.js} +0 -0
  80. /package/dist/a_chunks/{.root83.js → src.BusinessComponents.PostpartumFetal.js} +0 -0
  81. /package/dist/a_chunks/{.root84.js → src.BusinessComponents.PregnancyHistoryV2.js} +0 -0
  82. /package/dist/a_chunks/{.root55.js → src.BusinessComponents.PressureInput.js} +0 -0
  83. /package/dist/a_chunks/{.root87.js → src.BusinessComponents.RecordState.js} +0 -0
  84. /package/dist/a_chunks/{.root91.js → src.BusinessComponents.ReferralToRegister.js} +0 -0
  85. /package/dist/a_chunks/{.root92.js → src.BusinessComponents.ShiftPatients.js} +0 -0
  86. /package/dist/a_chunks/{.root49.js → src.BusinessComponents.TemplateTexDeathclassification1.js} +0 -0
  87. /package/dist/a_chunks/{.root50.js → src.BusinessComponents.TemplateTexDeathclassification2.js} +0 -0
  88. /package/dist/a_chunks/{.root93.js → src.BusinessComponents.TemplateTextarea.js} +0 -0
  89. /package/dist/a_chunks/{.root94.js → src.BusinessComponents.TemplateTextareav2.js} +0 -0
  90. /package/dist/a_chunks/{.root51.js → src.BusinessComponents.TemplateTextareav3.js} +0 -0
  91. /package/dist/a_chunks/{.root89.js → src.ConfigComponents.CheckboxGroup.js} +0 -0
  92. /package/dist/a_chunks/{.root95.js → src.ConfigComponents.CheckboxWithInputv2.js} +0 -0
  93. /package/dist/a_chunks/{.root96.js → src.ConfigComponents.CheckboxWithSingleInput.js} +0 -0
  94. /package/dist/a_chunks/{.root97.js → src.ConfigComponents.CustomEditInTable.js} +0 -0
  95. /package/dist/a_chunks/{.root76.js → src.ConfigComponents.InputWithLabel.js} +0 -0
  96. /package/dist/a_chunks/{.root99.js → src.ConfigComponents.InputWithRangTip.js} +0 -0
  97. /package/dist/a_chunks/{.root98.js → src.ConfigComponents.InputWithRange.js} +0 -0
  98. /package/dist/a_chunks/{.root77.js → src.ConfigComponents.NormalCheckboxWithInput.js} +0 -0
  99. /package/dist/a_chunks/{.root86.js → src.ConfigComponents.ProcedureRecords.js} +0 -0
  100. /package/dist/a_chunks/{.root133.js → src.ConfigComponents.VaginaStrumentsRecordForm.js} +0 -0
  101. /package/dist/a_chunks/{.root19.js → src.FB_components.DoctorEnd_SurveyReport_Report.js} +0 -0
  102. /package/dist/a_chunks/{.root10.js → src.FU_components.ArrayPanel.js} +0 -0
  103. /package/dist/a_chunks/{.root12.js → src.FU_components.CommonFormTabs2.js} +0 -0
  104. /package/dist/a_chunks/{.root13.js → src.FU_components.DateTimeInput.js} +0 -0
  105. /package/dist/a_chunks/{.root134.js → src.FU_components.LoadFlag.js} +0 -0
  106. /package/dist/a_chunks/{.root18.js → src.FU_components.MchcDriverStatus.js} +0 -0
  107. /package/dist/a_chunks/{.root100.js → src.FU_components.MySearchSelect.js} +0 -0
  108. /package/dist/a_chunks/{.root15.js → src.FU_components.TakeInVolumn.js} +0 -0
  109. /package/dist/a_chunks/{.root16.js → src.FU_components.TakeOutVolumn.js} +0 -0
  110. /package/dist/a_chunks/{.root17.js → src.FU_components.ToggleForm.js} +0 -0
  111. /package/dist/a_chunks/{.root101.js → src.GeneralComponents.AsyncAutoComplete.js} +0 -0
  112. /package/dist/a_chunks/{.root130.js → src.GeneralComponents.CheckboxGroupObject.js} +0 -0
  113. /package/dist/a_chunks/{.root41.js → src.GeneralComponents.CheckboxWithInput.js} +0 -0
  114. /package/dist/a_chunks/{.root125.js → src.GeneralComponents.DataTimePick.js} +0 -0
  115. /package/dist/a_chunks/{.root9.js → src.GeneralComponents.DatePicker.js} +0 -0
  116. /package/dist/a_chunks/{.root7.js → src.GeneralComponents.DictionarySelect.js} +0 -0
  117. /package/dist/a_chunks/{.root4.js → src.GeneralComponents.EditInTable.js} +0 -0
  118. /package/dist/a_chunks/{.root102.js → src.GeneralComponents.FormSectionInput.js} +0 -0
  119. /package/dist/a_chunks/{.root127.js → src.GeneralComponents.ImageUploadPreview.js} +0 -0
  120. /package/dist/a_chunks/{.root128.js → src.GeneralComponents.ImageUploadPreviewIntranet.js} +0 -0
  121. /package/dist/a_chunks/{.root8.js → src.GeneralComponents.InputWithLabel.js} +0 -0
  122. /package/dist/a_chunks/{.root5.js → src.GeneralComponents.MobileEditor.js} +0 -0
  123. /package/dist/a_chunks/{.root104.js → src.GeneralComponents.MultipleInputGroup.js} +0 -0
  124. /package/dist/a_chunks/{.root105.js → src.GeneralComponents.RadioWithInput.js} +0 -0
  125. /package/dist/a_chunks/{.root106.js → src.GeneralComponents.RangePicker.js} +0 -0
  126. /package/dist/a_chunks/{.root107.js → src.GeneralComponents.TimePicker.js} +0 -0
  127. /package/dist/a_chunks/{.root108.js → src.GeneralComponents.UploadFile.js} +0 -0
  128. /package/dist/a_chunks/{.root109.js → src.GeneralComponents.UploadFileUrlEdit.js} +0 -0
  129. /package/dist/a_chunks/{.root53.js → src.GeneralComponents.border-title.js} +0 -0
  130. /package/dist/a_chunks/{.root124.js → src.GeneralComponents.datapick_with_check.js} +0 -0
  131. /package/dist/a_chunks/{.root126.js → src.newly-component.hepatitis-new-baby.js} +0 -0
  132. /package/dist/a_chunks/{.root47.js → src.others.TemplateTree.js} +0 -0
  133. /package/dist/a_chunks/{.root110.js → src.selects.AgeSelect.js} +0 -0
  134. /package/dist/a_chunks/{.root111.js → src.selects.ApgarScoreInput.js} +0 -0
  135. /package/dist/a_chunks/{.root23.js → src.selects.CascaderAddress.js} +0 -0
  136. /package/dist/a_chunks/{.root113.js → src.selects.CountrySelect.js} +0 -0
  137. /package/dist/a_chunks/{.root115.js → src.selects.DeviceStatusSelect.js} +0 -0
  138. /package/dist/a_chunks/{.root25.js → src.selects.NativePlace.js} +0 -0
  139. /package/dist/a_chunks/{.root116.js → src.selects.ParentPermissionSelect.js} +0 -0
  140. /package/dist/a_chunks/{.root24.js → src.selects.PatientAutoComplete.js} +0 -0
  141. /package/dist/a_chunks/{.root117.js → src.selects.PermissionTypeSelect.js} +0 -0
  142. /package/dist/a_chunks/{.root118.js → src.selects.RadioWithInput.js} +0 -0
  143. /package/dist/a_chunks/{.root119.js → src.selects.RadioWithInputNumber.js} +0 -0
  144. /package/dist/a_chunks/{.root90.js → src.selects.ReferralOrganizationSelect.js} +0 -0
  145. /package/dist/a_chunks/{.root120.js → src.selects.SelectWithNoneOption.js} +0 -0
  146. /package/dist/a_chunks/{.root131.js → src.selects.SelectWithOptionsOrInput.js} +0 -0
  147. /package/dist/a_chunks/{.root123.js → src.selects.TriggerTypeSelect.js} +0 -0
@@ -1,108 +0,0 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- import _regeneratorRuntime from "@babel/runtime/regenerator";
9
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
- import { AutoComplete, Input } from 'antd';
12
- import { Component } from 'react';
13
- var ReferralOrganizationSelect = /*#__PURE__*/function (_Component) {
14
- function ReferralOrganizationSelect() {
15
- var _this;
16
- _classCallCheck(this, ReferralOrganizationSelect);
17
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18
- args[_key] = arguments[_key];
19
- }
20
- _this = _callSuper(this, ReferralOrganizationSelect, [].concat(args));
21
- _defineProperty(_this, "state", {
22
- data: undefined,
23
- options: []
24
- });
25
- _defineProperty(_this, "handleGetOptions", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
26
- var options;
27
- return _regeneratorRuntime.wrap(function _callee$(_context) {
28
- while (1) switch (_context.prev = _context.next) {
29
- case 0:
30
- // const options = await getAllResources(`/api/getNurseOrDoctorName/13`);
31
- options = [];
32
- _this.setState({
33
- options: options
34
- });
35
- case 2:
36
- case "end":
37
- return _context.stop();
38
- }
39
- }, _callee);
40
- })));
41
- _defineProperty(_this, "handleChange", /*#__PURE__*/function () {
42
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
43
- var onChange;
44
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
45
- while (1) switch (_context2.prev = _context2.next) {
46
- case 0:
47
- onChange = _this.props.onChange;
48
- _this.setState({
49
- data: data
50
- });
51
- onChange && onChange(data);
52
- case 3:
53
- case "end":
54
- return _context2.stop();
55
- }
56
- }, _callee2);
57
- }));
58
- return function (_x) {
59
- return _ref2.apply(this, arguments);
60
- };
61
- }());
62
- return _this;
63
- }
64
- _inherits(ReferralOrganizationSelect, _Component);
65
- return _createClass(ReferralOrganizationSelect, [{
66
- key: "componentDidMount",
67
- value: function componentDidMount() {
68
- var value = this.props.value;
69
- this.handleGetOptions();
70
- this.setState({
71
- data: value
72
- });
73
- }
74
- }, {
75
- key: "render",
76
- value: function render() {
77
- var _this$state = this.state,
78
- data = _this$state.data,
79
- options = _this$state.options;
80
- return (
81
- // <Select
82
- // onFocus={this.handleGetOptions}
83
- // onChange={this.handleChange}
84
- // value={get(data, 'name') || data}
85
- // showSearch
86
- // allowClear
87
- // >
88
- // {map(options, (option, index) => {
89
- // return (
90
- // <Select.Option key={get(option, 'id') || index} value={get(option, 'name')}>
91
- // {get(option, 'name') || '--'}
92
- // </Select.Option>
93
- // );
94
- // })}
95
- // </Select>
96
- React.createElement(AutoComplete, {
97
- value: data,
98
- onChange: this.handleChange,
99
- dataSource: options,
100
- children: React.createElement(Input, {
101
- type: "text"
102
- })
103
- })
104
- );
105
- }
106
- }]);
107
- }(Component);
108
- export { ReferralOrganizationSelect as default };
@@ -1,109 +0,0 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- import _regeneratorRuntime from "@babel/runtime/regenerator";
9
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
- import { AutoComplete, Input } from 'antd';
12
- import { Component } from 'react';
13
- var ReferralOrganizationSelect = /*#__PURE__*/function (_Component) {
14
- function ReferralOrganizationSelect() {
15
- var _this;
16
- _classCallCheck(this, ReferralOrganizationSelect);
17
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18
- args[_key] = arguments[_key];
19
- }
20
- _this = _callSuper(this, ReferralOrganizationSelect, [].concat(args));
21
- _defineProperty(_this, "state", {
22
- data: undefined,
23
- options: []
24
- });
25
- _defineProperty(_this, "handleGetOptions", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
26
- var options;
27
- return _regeneratorRuntime.wrap(function _callee$(_context) {
28
- while (1) switch (_context.prev = _context.next) {
29
- case 0:
30
- // const options = await getAllResources(`/api/getNurseOrDoctorName/12`);
31
- options = [];
32
- _this.setState({
33
- options: options
34
- });
35
- case 2:
36
- case "end":
37
- return _context.stop();
38
- }
39
- }, _callee);
40
- })));
41
- _defineProperty(_this, "handleChange", /*#__PURE__*/function () {
42
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
43
- var onChange;
44
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
45
- while (1) switch (_context2.prev = _context2.next) {
46
- case 0:
47
- onChange = _this.props.onChange;
48
- _this.setState({
49
- data: data
50
- });
51
- onChange && onChange(data);
52
- case 3:
53
- case "end":
54
- return _context2.stop();
55
- }
56
- }, _callee2);
57
- }));
58
- return function (_x) {
59
- return _ref2.apply(this, arguments);
60
- };
61
- }());
62
- return _this;
63
- }
64
- _inherits(ReferralOrganizationSelect, _Component);
65
- return _createClass(ReferralOrganizationSelect, [{
66
- key: "componentDidMount",
67
- value: function componentDidMount() {
68
- var value = this.props.value;
69
- this.handleGetOptions();
70
- this.setState({
71
- data: value
72
- });
73
- console.log(value);
74
- }
75
- }, {
76
- key: "render",
77
- value: function render() {
78
- var _this$state = this.state,
79
- data = _this$state.data,
80
- options = _this$state.options;
81
- return (
82
- // <Select
83
- // onFocus={this.handleGetOptions}
84
- // onChange={this.handleChange}
85
- // value={get(data, 'name') || data}
86
- // showSearch
87
- // allowClear
88
- // >
89
- // {map(options, (option, index) => {
90
- // return (
91
- // <Select.Option key={get(option, 'id') || index} value={get(option, 'name')}>
92
- // {get(option, 'name') || '--'}
93
- // </Select.Option>
94
- // );
95
- // })}
96
- // </Select>
97
- React.createElement(AutoComplete, {
98
- value: data,
99
- onChange: this.handleChange,
100
- dataSource: options,
101
- children: React.createElement(Input, {
102
- type: "text"
103
- })
104
- })
105
- );
106
- }
107
- }]);
108
- }(Component);
109
- export { ReferralOrganizationSelect as default };
@@ -1,265 +0,0 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- import _regeneratorRuntime from "@babel/runtime/regenerator";
11
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
- import { request } from '@lm_fe/utils';
14
- import { Modal, Button, Spin, List, Input } from 'antd';
15
- import { get } from 'lodash';
16
- import React$1, { Component } from 'react';
17
- import { a as styleInject, C as CustomIcon } from './index.js';
18
- import '@lm_fe/provoke';
19
- import '@lm_fe/components';
20
- import 'classnames';
21
- import 'dayjs';
22
- import '@lm_fe/env';
23
- import '@lm_fe/service';
24
- import 'reconnecting-websocket';
25
- import 'store';
26
- var css_248z$1 = ".modal_ .Listitem {\n margin-top: 13px;\n}\n.modal_ .lis {\n color: #007aff;\n font-size: 15px;\n}\n.modal_ .delete {\n display: none;\n float: right;\n color: black;\n font-size: 11px;\n}\n.modal_ .lisborder {\n padding-bottom: 8px;\n border-bottom: 1px solid #ccc;\n}\n.modal_ .ant-timeline-item {\n padding-bottom: 00px !important;\n}\n.modal_ .ant-timeline-item-last > .ant-timeline-item-content {\n min-height: 0px !important;\n}\n.modal_ .Listitem:hover .delete {\n display: inline-block;\n}\n";
27
- var styles$1 = css_248z$1;
28
- styleInject(css_248z$1);
29
-
30
- // 出生缺陷诊断管理
31
- var Search = Input.Search;
32
- var Diagnosisdeath = /*#__PURE__*/function (_React$1$Component) {
33
- function Diagnosisdeath() {
34
- var _this$props;
35
- var _this;
36
- _classCallCheck(this, Diagnosisdeath);
37
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38
- args[_key] = arguments[_key];
39
- }
40
- _this = _callSuper(this, Diagnosisdeath, [].concat(args));
41
- _defineProperty(_this, "state", {
42
- data: [],
43
- dataList: (_this$props = _this.props) === null || _this$props === void 0 ? void 0 : _this$props.classificationData,
44
- isLoading: false
45
- });
46
- _defineProperty(_this, "onSearch", function (value) {
47
- console.log('value', value);
48
- var dataList = _this.state.dataList;
49
- var searchValue = value;
50
- var newdataList = dataList.filter(function (item) {
51
- var _item$val;
52
- return ((_item$val = item.val) === null || _item$val === void 0 ? void 0 : _item$val.search(searchValue)) != -1;
53
- });
54
- // console.log('newdataList',newdataList);
55
- _this.setState({
56
- dataList: newdataList
57
- });
58
- if (searchValue == '') {
59
- _this.setState({
60
- dataList: _this.props.classificationData
61
- });
62
- }
63
- });
64
- _defineProperty(_this, "onCancel", function () {
65
- _this.props.onCancel(_this.props.index, _this.state.data);
66
- });
67
- _defineProperty(_this, "whole", function () {
68
- _this.setState({
69
- dataList: _this.props.classificationData
70
- });
71
- });
72
- return _this;
73
- }
74
- _inherits(Diagnosisdeath, _React$1$Component);
75
- return _createClass(Diagnosisdeath, [{
76
- key: "render",
77
- value: function render() {
78
- var _this2 = this;
79
- var isLoading = this.state.isLoading;
80
- return /*#__PURE__*/React$1.createElement(Modal, {
81
- title: /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(CustomIcon, {
82
- type: 'icon-doctor',
83
- style: {
84
- color: '#150F55',
85
- fontSize: '24px',
86
- marginRight: '10px'
87
- }
88
- }), /*#__PURE__*/React$1.createElement("span", {
89
- style: {
90
- color: '#150F55',
91
- fontSize: '16px',
92
- fontWeight: 500
93
- }
94
- }, "\u6839\u672C\u6B7B\u56E0\u8BCA\u65AD")),
95
- visible: this.props.visible,
96
- width: "580px",
97
- footer: null,
98
- onCancel: function onCancel() {
99
- return _this2.props.onCancel();
100
- }
101
- }, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Search, {
102
- placeholder: "\u8BF7\u8F93\u5165\u8BCA\u65AD\u4FE1\u606F",
103
- allowClear: true,
104
- size: "large",
105
- defaultValue: '',
106
- onSearch: this.onSearch,
107
- style: {
108
- width: '90%'
109
- }
110
- })), /*#__PURE__*/React$1.createElement("div", {
111
- style: {
112
- width: '100%',
113
- height: '460px'
114
- }
115
- }, /*#__PURE__*/React$1.createElement(Button, {
116
- className: styles$1['list-btn'],
117
- icon: /*#__PURE__*/React$1.createElement(CustomIcon, {
118
- type: "icon-all"
119
- }),
120
- style: {
121
- marginTop: '6px'
122
- },
123
- onClick: this.whole
124
- }, "\u5168\u90E8"), isLoading ? (/*#__PURE__*/React$1.createElement(Spin, {
125
- tip: "\u6570\u636E\u52A0\u8F7D\u4E2D..."
126
- }, /*#__PURE__*/React$1.createElement("div", {
127
- style: {
128
- height: 128
129
- }
130
- }))) : (/*#__PURE__*/React$1.createElement(List, {
131
- style: {
132
- overflow: 'auto',
133
- height: '430px'
134
- },
135
- size: "small",
136
- split: false,
137
- bordered: false,
138
- dataSource: this.state.dataList,
139
- renderItem: function renderItem(item) {
140
- return /*#__PURE__*/React$1.createElement(List.Item, {
141
- onClick: function onClick(value) {
142
- return _this2.props.listClick(value, _this2.props.index);
143
- },
144
- style: {
145
- fontWeight: '700'
146
- }
147
- }, "(ICD)", item.val);
148
- }
149
- }))));
150
- }
151
- }]);
152
- }(React$1.Component);
153
- var css_248z = ".textarea-with-template {\n position: relative;\n}\n.textarea-with-template .template-text {\n width: 100%;\n}\n.textarea-with-template__action {\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 0;\n height: 0;\n border-width: 20px 20px 20px 20px;\n border-color: transparent #d8dce6 #d8dce6 transparent;\n border-style: solid;\n border-radius: 4px;\n background: transparent;\n cursor: pointer;\n}\n.textarea-with-template__action span {\n position: relative;\n bottom: 1px;\n word-break: keep-all;\n color: #000;\n font-size: 12px;\n}\n.textarea-with-template__action_disabled {\n color: rgba(0, 0, 0, 0.25);\n}\n.textarea-with-template__modal-nav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.textarea-with-template__modal-nav__items {\n margin-right: 8px;\n}\n.textarea-with-template__modal-body {\n margin: 10px 0;\n}\n.textarea-with-template__modal-body .ant-tree-treenode .template-list-item__actions {\n display: none;\n}\n.textarea-with-template__modal-body .ant-tree-treenode:hover .template-list-item__actions {\n display: inline-block;\n}\n.textarea-with-template__modal-body .template-list-item {\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n.textarea-with-template__modal-body .template-list-item .template-list-item__actions-icon {\n font-size: 14px;\n opacity: 0.8;\n cursor: pointer;\n margin-left: 10px;\n}\n.textarea-with-template__modal .ant-modal-content .ant-modal-header,\n.textarea-with-template__modal .ant-modal-content .ant-modal-body,\n.textarea-with-template__modal .ant-modal-content .ant-modal-footer {\n padding: 10px;\n}\n";
154
- var styles = css_248z;
155
- styleInject(css_248z);
156
- var TextareaWithTemplate = /*#__PURE__*/function (_Component) {
157
- function TextareaWithTemplate(props) {
158
- var _this3;
159
- _classCallCheck(this, TextareaWithTemplate);
160
- _this3 = _callSuper(this, TextareaWithTemplate, [props]);
161
- _defineProperty(_this3, "openModal", /*#__PURE__*/function () {
162
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(value) {
163
- var detail;
164
- return _regeneratorRuntime.wrap(function _callee$(_context) {
165
- while (1) switch (_context.prev = _context.next) {
166
- case 0:
167
- _context.next = 2;
168
- return request.get('/api/template-trees?type.equals=1&code.contains=&mnemonic.contains=&val.contains=&size=999');
169
- case 2:
170
- detail = _context.sent;
171
- _this3.setState({
172
- classificationData: detail.data
173
- });
174
- _this3.setState({
175
- modalVisible: true
176
- });
177
- case 5:
178
- case "end":
179
- return _context.stop();
180
- }
181
- }, _callee);
182
- }));
183
- return function (_x) {
184
- return _ref.apply(this, arguments);
185
- };
186
- }());
187
- _defineProperty(_this3, "closeModal", function () {
188
- _this3.props;
189
- _this3.setState({
190
- modalVisible: false
191
- });
192
- // onChange && onChange();
193
- });
194
- _defineProperty(_this3, "handleTextareaChange", function (e) {
195
- var onChange = _this3.props.onChange;
196
- _this3.setState({
197
- value: e.target.value
198
- });
199
- onChange && onChange(e.target.value);
200
- });
201
- _defineProperty(_this3, "listClick", function (e, data) {
202
- var onChange = _this3.props.onChange;
203
- _this3.setState({
204
- modalVisible: false
205
- });
206
- _this3.setState({
207
- value: e.target.innerText
208
- });
209
- onChange && onChange(e.target.innerText);
210
- });
211
- _this3.state = {
212
- modalVisible: false,
213
- value: props.value,
214
- inputValue: [],
215
- modalcontent: [],
216
- classificationData: []
217
- };
218
- return _this3;
219
- }
220
- _inherits(TextareaWithTemplate, _Component);
221
- return _createClass(TextareaWithTemplate, [{
222
- key: "render",
223
- value: function render() {
224
- var _this4 = this;
225
- var _this$state = this.state,
226
- modalVisible = _this$state.modalVisible,
227
- value = _this$state.value,
228
- inputValue = _this$state.inputValue;
229
- var _this$props2 = this.props,
230
- disabled = _this$props2.disabled,
231
- patientId = _this$props2.patientId,
232
- admissionId = _this$props2.admissionId,
233
- pregnancyId = _this$props2.pregnancyId;
234
- var inputProps = get(this.props, 'config.inputProps') || {};
235
- // console.log('this.state.classificationData',this.state.classificationData);
236
- return React.createElement("div", {
237
- className: styles["textarea-with-template"]
238
- }, React.createElement(Input, _objectSpread(_objectSpread({
239
- disabled: disabled,
240
- title: value,
241
- value: value,
242
- autoSize: {
243
- minRows: 2,
244
- maxRows: 5
245
- },
246
- onChange: this.handleTextareaChange,
247
- className: styles["template-text"]
248
- }, inputProps), {}, {
249
- onClick: function onClick(value) {
250
- _this4.openModal(value);
251
- }
252
- })), modalVisible && React.createElement(Diagnosisdeath, {
253
- visible: modalVisible,
254
- onCancel: this.closeModal,
255
- listClick: this.listClick,
256
- patientId: patientId,
257
- admissionId: admissionId,
258
- pregnancyId: pregnancyId,
259
- index: "Maternal",
260
- classificationData: this.state.classificationData
261
- }));
262
- }
263
- }]);
264
- }(Component);
265
- export { TextareaWithTemplate as default };
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- onChange: any;
4
- disabled: boolean;
5
- }
6
- export default class ApiPermissionSelect extends React.Component<IProps> {
7
- state: {
8
- data: never[];
9
- tempData: never[];
10
- checkedData: never[];
11
- isUpdated: boolean;
12
- };
13
- componentDidMount(): Promise<void>;
14
- static getDerivedStateFromProps(nextProps: any, prevState: any): {
15
- checkedData: any;
16
- } | null;
17
- handleChange: (item: any) => (e: any) => void;
18
- handleFilter: (e: any) => Promise<void>;
19
- render(): React.JSX.Element;
20
- }
21
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export default class PermissionSelect extends React.Component {
3
- state: {
4
- treeData: never[];
5
- checkedData: never[];
6
- isUpdated: boolean;
7
- };
8
- componentDidMount(): Promise<void>;
9
- handleChange: (checked: any[], e: any) => void;
10
- transferMenus: (menus: any, parentid?: number) => any;
11
- omitKeysByBaseKeys: (baseKeys: any[], nativePermissions: any) => any[];
12
- getIsNotSelectedParentKeys: (nativePermissions: any[], selectedKeys: any) => any;
13
- render(): React.JSX.Element;
14
- }