@lm_fe/service 0.1.201 → 0.1.205
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.
package/dist/index.js
CHANGED
|
@@ -1,60 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _inherits = require("@babel/runtime/helpers/inherits");
|
|
11
|
-
var _defineProperty = require("@babel/runtime/helpers/defineProperty");
|
|
12
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
5
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
6
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
13
10
|
var _excluded = ["n", "prePath", "addictionalParams", "apiPrefix"],
|
|
14
11
|
_excluded2 = ["current", "pageSize"],
|
|
15
12
|
_excluded3 = ["fillDate", "questionOptionList"],
|
|
16
13
|
_excluded4 = ["fillDate", "questionOptionList"];
|
|
14
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
17
15
|
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; }
|
|
18
16
|
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; }
|
|
19
17
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
20
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
var _isEmpty = require('lodash/isEmpty');
|
|
39
|
-
var _cloneDeep = require('lodash/cloneDeep');
|
|
40
|
-
function _interopDefaultLegacy(e) {
|
|
41
|
-
return e && _typeof(e) === 'object' && 'default' in e ? e["default"] : e;
|
|
42
|
-
}
|
|
43
|
-
var _set__default = /*#__PURE__*/_interopDefaultLegacy(_set);
|
|
44
|
-
var _isObject__default = /*#__PURE__*/_interopDefaultLegacy(_isObject);
|
|
45
|
-
var _isNumber__default = /*#__PURE__*/_interopDefaultLegacy(_isNumber);
|
|
46
|
-
var _isNil__default = /*#__PURE__*/_interopDefaultLegacy(_isNil);
|
|
47
|
-
var _get__default = /*#__PURE__*/_interopDefaultLegacy(_get);
|
|
48
|
-
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
49
|
-
var _keyBy__default = /*#__PURE__*/_interopDefaultLegacy(_keyBy);
|
|
50
|
-
var _values__default = /*#__PURE__*/_interopDefaultLegacy(_values);
|
|
51
|
-
var _isFunction__default = /*#__PURE__*/_interopDefaultLegacy(_isFunction);
|
|
52
|
-
var _isString__default = /*#__PURE__*/_interopDefaultLegacy(_isString);
|
|
53
|
-
var _isArray__default = /*#__PURE__*/_interopDefaultLegacy(_isArray);
|
|
54
|
-
var _orderBy__default = /*#__PURE__*/_interopDefaultLegacy(_orderBy);
|
|
55
|
-
var _isEmpty__default = /*#__PURE__*/_interopDefaultLegacy(_isEmpty);
|
|
56
|
-
var _cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(_cloneDeep);
|
|
57
|
-
var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
19
|
+
import _set from 'lodash/set';
|
|
20
|
+
import _isObject from 'lodash/isObject';
|
|
21
|
+
import _isNumber from 'lodash/isNumber';
|
|
22
|
+
import _isNil from 'lodash/isNil';
|
|
23
|
+
import _get from 'lodash/get';
|
|
24
|
+
import { EventEmitter, expect_array, request, cache_fetch, formatDate, getSearchParamsAll, safe_json_parse, getSearchParamsValue, safe_json_parse_arr, filter_obj_to_url_search, sleep, formatDateTime, safeGetFromFuncOrData, genEnum, rawRequest } from '@lm_fe/utils';
|
|
25
|
+
import { mchcLogger, mchcConfig, getSameOptions, mchcConstant, mchcStore, mchcEnv, mchcUtils, optionKey否, optionKey其他, optionKey不详, getSymbolFromDynamicScript, getMacroValue } from '@lm_fe/env';
|
|
26
|
+
import dayjs from 'dayjs';
|
|
27
|
+
import _keyBy from 'lodash/keyBy';
|
|
28
|
+
import _values from 'lodash/values';
|
|
29
|
+
import _isFunction from 'lodash/isFunction';
|
|
30
|
+
import _isString from 'lodash/isString';
|
|
31
|
+
import _isArray from 'lodash/isArray';
|
|
32
|
+
import _orderBy from 'lodash/orderBy';
|
|
33
|
+
import _isEmpty from 'lodash/isEmpty';
|
|
34
|
+
import _cloneDeep from 'lodash/cloneDeep';
|
|
35
|
+
var ModelService = /*#__PURE__*/function (_EventEmitter) {
|
|
58
36
|
function ModelService() {
|
|
59
37
|
var _n;
|
|
60
38
|
var _this;
|
|
@@ -94,19 +72,19 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
94
72
|
if (!data) return {};
|
|
95
73
|
if (!_this.needTransferSourceData) return data;
|
|
96
74
|
return Object.keys(data).reduce(function (a, k) {
|
|
97
|
-
var v =
|
|
75
|
+
var v = _get(data, k);
|
|
98
76
|
var value = _this.getAdvancedValue(k, v);
|
|
99
|
-
|
|
77
|
+
_set(a, k, value);
|
|
100
78
|
if (value !== v && !Number.isNaN(value)) {
|
|
101
79
|
var backKey = "_".concat(k);
|
|
102
|
-
|
|
80
|
+
_set(a, backKey, v);
|
|
103
81
|
}
|
|
104
82
|
return a;
|
|
105
83
|
}, {});
|
|
106
84
|
});
|
|
107
85
|
_defineProperty(_this, "getAdvancedValue", function (key, value) {
|
|
108
86
|
if (_this.DateTimeKeys.includes(key) || _this.DateKeys.includes(key) || _this.DateMinute.includes(key)) {
|
|
109
|
-
return value ?
|
|
87
|
+
return value ? dayjs(value) : value;
|
|
110
88
|
}
|
|
111
89
|
if (_this.jsonKeys.includes(key)) {
|
|
112
90
|
var v;
|
|
@@ -118,7 +96,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
118
96
|
return v;
|
|
119
97
|
}
|
|
120
98
|
if (_this.TimeKeys.includes(key)) {
|
|
121
|
-
return value ?
|
|
99
|
+
return value ? dayjs("1970-1-1 ".concat(value)) : value;
|
|
122
100
|
}
|
|
123
101
|
return value;
|
|
124
102
|
});
|
|
@@ -136,7 +114,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
136
114
|
// this.exceptionKeys.push(...Object.keys(addictionalParams))
|
|
137
115
|
return _this;
|
|
138
116
|
}
|
|
139
|
-
_inherits(ModelService,
|
|
117
|
+
_inherits(ModelService, _EventEmitter);
|
|
140
118
|
return _createClass(ModelService, [{
|
|
141
119
|
key: "page",
|
|
142
120
|
value: function () {
|
|
@@ -148,7 +126,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
148
126
|
_params$pageSize,
|
|
149
127
|
pageSize,
|
|
150
128
|
otherParams,
|
|
151
|
-
|
|
129
|
+
_get2,
|
|
152
130
|
_result$totalElements,
|
|
153
131
|
fn,
|
|
154
132
|
result,
|
|
@@ -178,8 +156,8 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
178
156
|
return fn(options);
|
|
179
157
|
case 7:
|
|
180
158
|
result = _context.sent;
|
|
181
|
-
|
|
182
|
-
data = (
|
|
159
|
+
mchcLogger.log('xxg', result);
|
|
160
|
+
data = (_get2 = _get(result, 'pageData')) !== null && _get2 !== void 0 ? _get2 : [];
|
|
183
161
|
return _context.abrupt("return", {
|
|
184
162
|
data: data,
|
|
185
163
|
pagination: {
|
|
@@ -194,7 +172,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
194
172
|
break;
|
|
195
173
|
}
|
|
196
174
|
// const result = await this._get<any>(`${this.name}`, this.tranferGetOption({ params }));
|
|
197
|
-
|
|
175
|
+
mchcLogger.log('useListSourceCount', this);
|
|
198
176
|
_context.next = 15;
|
|
199
177
|
return this._request(_objectSpread({
|
|
200
178
|
method: 'GET',
|
|
@@ -202,7 +180,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
202
180
|
}, this.tranferGetOption(options)));
|
|
203
181
|
case 15:
|
|
204
182
|
_result = _context.sent;
|
|
205
|
-
list_data =
|
|
183
|
+
list_data = expect_array(_result.data);
|
|
206
184
|
return _context.abrupt("return", {
|
|
207
185
|
data: list_data,
|
|
208
186
|
pagination: {
|
|
@@ -216,7 +194,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
216
194
|
return this.getList(options);
|
|
217
195
|
case 22:
|
|
218
196
|
a1 = _context.sent;
|
|
219
|
-
if (!
|
|
197
|
+
if (!_isNumber(a1._XTotalCount)) {
|
|
220
198
|
_context.next = 25;
|
|
221
199
|
break;
|
|
222
200
|
}
|
|
@@ -290,13 +268,13 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
290
268
|
case 2:
|
|
291
269
|
result = _context3.sent;
|
|
292
270
|
if (listPath) {
|
|
293
|
-
result =
|
|
271
|
+
result = _get(result, listPath);
|
|
294
272
|
}
|
|
295
273
|
arr = Array.isArray(result) ? result : [];
|
|
296
274
|
res = arr.map(function (_) {
|
|
297
275
|
return _this2.transferSourceData(_);
|
|
298
276
|
}); //@ts-ignore
|
|
299
|
-
if (!
|
|
277
|
+
if (!_isNil(arr._XTotalCount)) res._XTotalCount = arr._XTotalCount;
|
|
300
278
|
return _context3.abrupt("return", res);
|
|
301
279
|
case 8:
|
|
302
280
|
case "end":
|
|
@@ -582,7 +560,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
582
560
|
var _this3 = this;
|
|
583
561
|
if (!data) return {};
|
|
584
562
|
return Object.keys(data).reduce(function (a, k) {
|
|
585
|
-
var v =
|
|
563
|
+
var v = _get(data, k);
|
|
586
564
|
var value = _this3.transferParamsValue(k, v);
|
|
587
565
|
return _objectSpread(_objectSpread({}, a), {}, _defineProperty({}, k, value));
|
|
588
566
|
}, {});
|
|
@@ -629,19 +607,19 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
629
607
|
key: "transferParamsValue",
|
|
630
608
|
value: function transferParamsValue(key, value) {
|
|
631
609
|
if (this.DateTimeKeys.includes(key)) {
|
|
632
|
-
var result =
|
|
610
|
+
var result = dayjs(value);
|
|
633
611
|
return result.isValid() ? result.format('YYYY-MM-DD HH:mm:ss') : value;
|
|
634
612
|
}
|
|
635
613
|
if (this.DateMinute.includes(key)) {
|
|
636
|
-
var _result2 =
|
|
614
|
+
var _result2 = dayjs(value);
|
|
637
615
|
return _result2.isValid() ? _result2.format('YYYY-MM-DD HH:mm') : value;
|
|
638
616
|
}
|
|
639
617
|
if (this.DateKeys.includes(key)) {
|
|
640
|
-
var _result3 =
|
|
618
|
+
var _result3 = dayjs(value);
|
|
641
619
|
return _result3.isValid() ? _result3.format('YYYY-MM-DD') : value;
|
|
642
620
|
}
|
|
643
621
|
if (this.TimeKeys.includes(key)) {
|
|
644
|
-
var _result4 =
|
|
622
|
+
var _result4 = dayjs(value);
|
|
645
623
|
return _result4.isValid() ? _result4.format('HH:mm:ss') : value;
|
|
646
624
|
}
|
|
647
625
|
if (this.jsonKeys.includes(key)) {
|
|
@@ -668,14 +646,14 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
668
646
|
config.ignore_usr = (_config$ignore_usr = config.ignore_usr) !== null && _config$ignore_usr !== void 0 ? _config$ignore_usr : this.ignore_usr;
|
|
669
647
|
config.ignore_env = (_config$ignore_env = config.ignore_env) !== null && _config$ignore_env !== void 0 ? _config$ignore_env : this.ignore_env;
|
|
670
648
|
_context15.next = 4;
|
|
671
|
-
return
|
|
649
|
+
return request.ins(config);
|
|
672
650
|
case 4:
|
|
673
651
|
res = _context15.sent;
|
|
674
652
|
resData = res === null || res === void 0 ? void 0 : res.data;
|
|
675
653
|
headers = (_res$headers = res.headers) !== null && _res$headers !== void 0 ? _res$headers : {};
|
|
676
654
|
_XTotalCount = (_headers$XTotalCoun = headers['X-Total-Count']) !== null && _headers$XTotalCoun !== void 0 ? _headers$XTotalCoun : headers['x-total-count'];
|
|
677
655
|
parse_x_count = _XTotalCount ? parseInt(_XTotalCount) : _XTotalCount;
|
|
678
|
-
if (
|
|
656
|
+
if (_isObject(resData) && !_isNil(parse_x_count)) {
|
|
679
657
|
resData._XTotalCount = parse_x_count;
|
|
680
658
|
}
|
|
681
659
|
if (!((_resData = resData) !== null && _resData !== void 0 && _resData.data)) {
|
|
@@ -714,7 +692,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
714
692
|
}, {
|
|
715
693
|
key: "_get",
|
|
716
694
|
value: function () {
|
|
717
|
-
var
|
|
695
|
+
var _get3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(path) {
|
|
718
696
|
var config,
|
|
719
697
|
r,
|
|
720
698
|
_args16 = arguments;
|
|
@@ -737,7 +715,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
737
715
|
}, _callee16, this);
|
|
738
716
|
}));
|
|
739
717
|
function _get(_x19) {
|
|
740
|
-
return
|
|
718
|
+
return _get3.apply(this, arguments);
|
|
741
719
|
}
|
|
742
720
|
return _get;
|
|
743
721
|
}()
|
|
@@ -861,7 +839,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
861
839
|
while (1) switch (_context21.prev = _context21.next) {
|
|
862
840
|
case 0:
|
|
863
841
|
_context21.next = 2;
|
|
864
|
-
return
|
|
842
|
+
return request.ins(_objectSpread({
|
|
865
843
|
method: 'POST',
|
|
866
844
|
url: this.getUrl(path, '/export'),
|
|
867
845
|
params: data,
|
|
@@ -891,7 +869,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
891
869
|
while (1) switch (_context22.prev = _context22.next) {
|
|
892
870
|
case 0:
|
|
893
871
|
_context22.next = 2;
|
|
894
|
-
return
|
|
872
|
+
return request.ins(_objectSpread({
|
|
895
873
|
method: 'POST',
|
|
896
874
|
url: this.getUrl(path, '/print'),
|
|
897
875
|
params: data,
|
|
@@ -913,7 +891,7 @@ var ModelService = /*#__PURE__*/function (_utils$EventEmitter) {
|
|
|
913
891
|
return _print;
|
|
914
892
|
}()
|
|
915
893
|
}]);
|
|
916
|
-
}(
|
|
894
|
+
}(EventEmitter);
|
|
917
895
|
_defineProperty(ModelService, "CONFIG", {
|
|
918
896
|
successCode: [200, 1, 0]
|
|
919
897
|
});
|
|
@@ -941,7 +919,7 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
941
919
|
var page,
|
|
942
920
|
code,
|
|
943
921
|
code2,
|
|
944
|
-
_yield$
|
|
922
|
+
_yield$request$get,
|
|
945
923
|
data,
|
|
946
924
|
_args23 = arguments;
|
|
947
925
|
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
@@ -951,15 +929,15 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
951
929
|
code = encodeURIComponent(value);
|
|
952
930
|
code2 = encodeURIComponent(code);
|
|
953
931
|
_context23.next = 5;
|
|
954
|
-
return
|
|
932
|
+
return request.get("/api/template-trees?type.equals=1&code.contains=".concat(code2, "&mnemonic.contains=").concat(code2, "&val.contains=").concat(code2), {
|
|
955
933
|
params: {
|
|
956
934
|
page: page,
|
|
957
935
|
size: 99
|
|
958
936
|
}
|
|
959
937
|
});
|
|
960
938
|
case 5:
|
|
961
|
-
_yield$
|
|
962
|
-
data = _yield$
|
|
939
|
+
_yield$request$get = _context23.sent;
|
|
940
|
+
data = _yield$request$get.data;
|
|
963
941
|
return _context23.abrupt("return", data);
|
|
964
942
|
case 8:
|
|
965
943
|
case "end":
|
|
@@ -977,7 +955,7 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
977
955
|
value: (function () {
|
|
978
956
|
var _getTemplateTree = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(type) {
|
|
979
957
|
var _type$size, _type$page;
|
|
980
|
-
var defaultSize, defaultPage, params, _yield$
|
|
958
|
+
var defaultSize, defaultPage, params, _yield$request$get2, data;
|
|
981
959
|
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
982
960
|
while (1) switch (_context24.prev = _context24.next) {
|
|
983
961
|
case 0:
|
|
@@ -995,12 +973,12 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
995
973
|
page: (_type$page = type.page) !== null && _type$page !== void 0 ? _type$page : defaultPage
|
|
996
974
|
};
|
|
997
975
|
_context24.next = 5;
|
|
998
|
-
return
|
|
976
|
+
return request.get("/api/template-trees", {
|
|
999
977
|
params: params
|
|
1000
978
|
});
|
|
1001
979
|
case 5:
|
|
1002
|
-
_yield$
|
|
1003
|
-
data = _yield$
|
|
980
|
+
_yield$request$get2 = _context24.sent;
|
|
981
|
+
data = _yield$request$get2.data;
|
|
1004
982
|
return _context24.abrupt("return", data);
|
|
1005
983
|
case 8:
|
|
1006
984
|
case "end":
|
|
@@ -1016,7 +994,7 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
1016
994
|
}, {
|
|
1017
995
|
key: "deleteHighrisk",
|
|
1018
996
|
value: function deleteHighrisk(data) {
|
|
1019
|
-
|
|
997
|
+
request["delete"]("/api/deleteAlertAssessment", {
|
|
1020
998
|
params: data
|
|
1021
999
|
});
|
|
1022
1000
|
}
|
|
@@ -1025,15 +1003,15 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
1025
1003
|
key: "addTemplateTree",
|
|
1026
1004
|
value: (function () {
|
|
1027
1005
|
var _addTemplateTree = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(item) {
|
|
1028
|
-
var _yield$
|
|
1006
|
+
var _yield$request$post, data;
|
|
1029
1007
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
1030
1008
|
while (1) switch (_context25.prev = _context25.next) {
|
|
1031
1009
|
case 0:
|
|
1032
1010
|
_context25.next = 2;
|
|
1033
|
-
return
|
|
1011
|
+
return request.post("/api/template-trees", item);
|
|
1034
1012
|
case 2:
|
|
1035
|
-
_yield$
|
|
1036
|
-
data = _yield$
|
|
1013
|
+
_yield$request$post = _context25.sent;
|
|
1014
|
+
data = _yield$request$post.data;
|
|
1037
1015
|
return _context25.abrupt("return", data);
|
|
1038
1016
|
case 5:
|
|
1039
1017
|
case "end":
|
|
@@ -1050,20 +1028,20 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
1050
1028
|
key: "findAlertAssessment",
|
|
1051
1029
|
value: (function () {
|
|
1052
1030
|
var _findAlertAssessment = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(type, pregnancyId) {
|
|
1053
|
-
var _yield$
|
|
1031
|
+
var _yield$request$get3, data;
|
|
1054
1032
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
1055
1033
|
while (1) switch (_context26.prev = _context26.next) {
|
|
1056
1034
|
case 0:
|
|
1057
1035
|
_context26.next = 2;
|
|
1058
|
-
return
|
|
1036
|
+
return request.get("/api/findAlertAssessment", {
|
|
1059
1037
|
params: {
|
|
1060
1038
|
type: type,
|
|
1061
1039
|
pregnancyId: pregnancyId
|
|
1062
1040
|
}
|
|
1063
1041
|
});
|
|
1064
1042
|
case 2:
|
|
1065
|
-
_yield$
|
|
1066
|
-
data = _yield$
|
|
1043
|
+
_yield$request$get3 = _context26.sent;
|
|
1044
|
+
data = _yield$request$get3.data;
|
|
1067
1045
|
return _context26.abrupt("return", data);
|
|
1068
1046
|
case 5:
|
|
1069
1047
|
case "end":
|
|
@@ -1079,34 +1057,34 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
1079
1057
|
}, {
|
|
1080
1058
|
key: "saveAlertAssessment",
|
|
1081
1059
|
value: function saveAlertAssessment(data) {
|
|
1082
|
-
return
|
|
1060
|
+
return request.post("/api/saveAlertAssessment", data);
|
|
1083
1061
|
}
|
|
1084
1062
|
/** 获取高危色卡颜色 */
|
|
1085
1063
|
}, {
|
|
1086
1064
|
key: "getHighriskColor",
|
|
1087
1065
|
value: function getHighriskColor(module) {
|
|
1088
|
-
return
|
|
1066
|
+
return request.get("/api/dictionaries?module.equals=".concat(module));
|
|
1089
1067
|
}
|
|
1090
1068
|
/** 设置漏诊提示、高危因素标记不再提醒 */
|
|
1091
1069
|
}, {
|
|
1092
1070
|
key: "saveCaseIgnore",
|
|
1093
1071
|
value: function saveCaseIgnore(data) {
|
|
1094
|
-
return
|
|
1072
|
+
return request.post("/api/saveCaseIgnore", data);
|
|
1095
1073
|
}
|
|
1096
1074
|
/** 获取检验报告结果 */
|
|
1097
1075
|
}, {
|
|
1098
1076
|
key: "getLabExamImportTree",
|
|
1099
1077
|
value: (function () {
|
|
1100
1078
|
var _getLabExamImportTree = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(pregnancyId) {
|
|
1101
|
-
var _yield$
|
|
1079
|
+
var _yield$request$get4, data;
|
|
1102
1080
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
1103
1081
|
while (1) switch (_context27.prev = _context27.next) {
|
|
1104
1082
|
case 0:
|
|
1105
1083
|
_context27.next = 2;
|
|
1106
|
-
return
|
|
1084
|
+
return request.get("/api/getLabExamImportTree?pregnancyId=".concat(pregnancyId));
|
|
1107
1085
|
case 2:
|
|
1108
|
-
_yield$
|
|
1109
|
-
data = _yield$
|
|
1086
|
+
_yield$request$get4 = _context27.sent;
|
|
1087
|
+
data = _yield$request$get4.data;
|
|
1110
1088
|
return _context27.abrupt("return", data);
|
|
1111
1089
|
case 5:
|
|
1112
1090
|
case "end":
|
|
@@ -1122,25 +1100,25 @@ var TemplateTreeService = /*#__PURE__*/function (_ModelService2) {
|
|
|
1122
1100
|
}, {
|
|
1123
1101
|
key: "getImageExamImportTree",
|
|
1124
1102
|
value: function getImageExamImportTree(pregnancyId) {
|
|
1125
|
-
|
|
1103
|
+
request.get("/api/getImageExamImportTree?pregnancyId=".concat(pregnancyId));
|
|
1126
1104
|
}
|
|
1127
1105
|
/** 获取梅毒管理数据 */
|
|
1128
1106
|
}, {
|
|
1129
1107
|
key: "getSyphilisManagers",
|
|
1130
1108
|
value: function getSyphilisManagers(pregnancyId) {
|
|
1131
|
-
return
|
|
1109
|
+
return request.get("/api/syphilis-managers?pregnancyId.equals=".concat(pregnancyId));
|
|
1132
1110
|
}
|
|
1133
1111
|
/** 获取梅毒管理数据 */
|
|
1134
1112
|
}, {
|
|
1135
1113
|
key: "createSyphilisManagers",
|
|
1136
1114
|
value: function createSyphilisManagers(data) {
|
|
1137
|
-
return
|
|
1115
|
+
return request.post("/api/syphilis-managers", data);
|
|
1138
1116
|
}
|
|
1139
1117
|
/** 获取梅毒管理数据 */
|
|
1140
1118
|
}, {
|
|
1141
1119
|
key: "updateSyphilisManagers",
|
|
1142
1120
|
value: function updateSyphilisManagers(data) {
|
|
1143
|
-
return
|
|
1121
|
+
return request.put("/api/syphilis-managers", data);
|
|
1144
1122
|
}
|
|
1145
1123
|
}]);
|
|
1146
1124
|
}(ModelService);
|
|
@@ -1214,12 +1192,12 @@ var SMchc_Questionnaire = new (/*#__PURE__*/function (_ModelService3) {
|
|
|
1214
1192
|
while (1) switch (_context29.prev = _context29.next) {
|
|
1215
1193
|
case 0:
|
|
1216
1194
|
_context29.next = 2;
|
|
1217
|
-
return
|
|
1195
|
+
return cache_fetch('questionnaire', function () {
|
|
1218
1196
|
return _this6.fk_list();
|
|
1219
1197
|
});
|
|
1220
1198
|
case 2:
|
|
1221
1199
|
data = _context29.sent;
|
|
1222
|
-
return _context29.abrupt("return",
|
|
1200
|
+
return _context29.abrupt("return", expect_array(data).map(function (q) {
|
|
1223
1201
|
return {
|
|
1224
1202
|
label: q.questionnaireTitle,
|
|
1225
1203
|
value: q.id
|
|
@@ -1325,8 +1303,8 @@ var SMchc_Questionnaire = new (/*#__PURE__*/function (_ModelService3) {
|
|
|
1325
1303
|
size = _args32.length > 2 && _args32[2] !== undefined ? _args32[2] : 9999;
|
|
1326
1304
|
_reqData$fillDate = reqData.fillDate, fillDate = _reqData$fillDate === void 0 ? [] : _reqData$fillDate, questionOptionList = reqData.questionOptionList, others = _objectWithoutProperties(reqData, _excluded3);
|
|
1327
1305
|
paramVO = _objectSpread({}, others);
|
|
1328
|
-
paramVO.beginFillDate = fillDate[0] &&
|
|
1329
|
-
paramVO.endFillDate = fillDate[1] &&
|
|
1306
|
+
paramVO.beginFillDate = fillDate[0] && formatDate(fillDate[0]);
|
|
1307
|
+
paramVO.endFillDate = fillDate[1] && formatDate(fillDate[1]);
|
|
1330
1308
|
paramVO.questionOptionList = (questionOptionList === null || questionOptionList === void 0 ? void 0 : questionOptionList.filter(function (_) {
|
|
1331
1309
|
return _.optionIndex;
|
|
1332
1310
|
})) || [];
|
|
@@ -1375,8 +1353,8 @@ var SMchc_Questionnaire = new (/*#__PURE__*/function (_ModelService3) {
|
|
|
1375
1353
|
size = _args33.length > 2 && _args33[2] !== undefined ? _args33[2] : 9999;
|
|
1376
1354
|
_reqData$fillDate2 = reqData.fillDate, fillDate = _reqData$fillDate2 === void 0 ? [] : _reqData$fillDate2, questionOptionList = reqData.questionOptionList, others = _objectWithoutProperties(reqData, _excluded4);
|
|
1377
1355
|
paramVO = _objectSpread({}, others);
|
|
1378
|
-
paramVO.beginFillDate = fillDate[0] &&
|
|
1379
|
-
paramVO.endFillDate = fillDate[1] &&
|
|
1356
|
+
paramVO.beginFillDate = fillDate[0] && formatDate(fillDate[0]);
|
|
1357
|
+
paramVO.endFillDate = fillDate[1] && formatDate(fillDate[1]);
|
|
1380
1358
|
paramVO.questionOptionList = (questionOptionList === null || questionOptionList === void 0 ? void 0 : questionOptionList.filter(function (_) {
|
|
1381
1359
|
return _.optionIndex;
|
|
1382
1360
|
})) || [];
|
|
@@ -1511,7 +1489,7 @@ var SMchc_Common = {
|
|
|
1511
1489
|
while (1) switch (_context37.prev = _context37.next) {
|
|
1512
1490
|
case 0:
|
|
1513
1491
|
_context37.next = 2;
|
|
1514
|
-
return
|
|
1492
|
+
return request.post('/api/authenticate', data);
|
|
1515
1493
|
case 2:
|
|
1516
1494
|
res = _context37.sent;
|
|
1517
1495
|
return _context37.abrupt("return", res.data.id_token);
|
|
@@ -1528,14 +1506,14 @@ var SMchc_Common = {
|
|
|
1528
1506
|
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
1529
1507
|
while (1) switch (_context38.prev = _context38.next) {
|
|
1530
1508
|
case 0:
|
|
1531
|
-
searchData =
|
|
1509
|
+
searchData = getSearchParamsAll();
|
|
1532
1510
|
appId = searchData.appId, empId = searchData.empId, patId = searchData.patId, data = searchData.data, timestamp = searchData.timestamp, sign = searchData.sign;
|
|
1533
1511
|
if (!(appId || empId || patId || data || timestamp || sign)) {
|
|
1534
1512
|
_context38.next = 7;
|
|
1535
1513
|
break;
|
|
1536
1514
|
}
|
|
1537
1515
|
_context38.next = 5;
|
|
1538
|
-
return
|
|
1516
|
+
return request.post('/api/desklogin', searchData);
|
|
1539
1517
|
case 5:
|
|
1540
1518
|
res = _context38.sent;
|
|
1541
1519
|
return _context38.abrupt("return", res);
|
|
@@ -1550,15 +1528,15 @@ var SMchc_Common = {
|
|
|
1550
1528
|
},
|
|
1551
1529
|
currentTime: function currentTime() {
|
|
1552
1530
|
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee39() {
|
|
1553
|
-
var _yield$
|
|
1531
|
+
var _yield$request$get5, data;
|
|
1554
1532
|
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
1555
1533
|
while (1) switch (_context39.prev = _context39.next) {
|
|
1556
1534
|
case 0:
|
|
1557
1535
|
_context39.next = 2;
|
|
1558
|
-
return
|
|
1536
|
+
return request.get("/api/current-time");
|
|
1559
1537
|
case 2:
|
|
1560
|
-
_yield$
|
|
1561
|
-
data = _yield$
|
|
1538
|
+
_yield$request$get5 = _context39.sent;
|
|
1539
|
+
data = _yield$request$get5.data;
|
|
1562
1540
|
return _context39.abrupt("return", data);
|
|
1563
1541
|
case 5:
|
|
1564
1542
|
case "end":
|
|
@@ -1569,15 +1547,15 @@ var SMchc_Common = {
|
|
|
1569
1547
|
},
|
|
1570
1548
|
getCurrReferralOrganization: function getCurrReferralOrganization() {
|
|
1571
1549
|
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
|
|
1572
|
-
var _yield$
|
|
1550
|
+
var _yield$request$get6, data;
|
|
1573
1551
|
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
1574
1552
|
while (1) switch (_context40.prev = _context40.next) {
|
|
1575
1553
|
case 0:
|
|
1576
1554
|
_context40.next = 2;
|
|
1577
|
-
return
|
|
1555
|
+
return request.get("/api/getCurrReferralOrganization");
|
|
1578
1556
|
case 2:
|
|
1579
|
-
_yield$
|
|
1580
|
-
data = _yield$
|
|
1557
|
+
_yield$request$get6 = _context40.sent;
|
|
1558
|
+
data = _yield$request$get6.data;
|
|
1581
1559
|
return _context40.abrupt("return", data);
|
|
1582
1560
|
case 5:
|
|
1583
1561
|
case "end":
|
|
@@ -1603,7 +1581,7 @@ var SMchc_Common = {
|
|
|
1603
1581
|
params["name.equals"] = query.name;
|
|
1604
1582
|
}
|
|
1605
1583
|
_context41.next = 5;
|
|
1606
|
-
return
|
|
1584
|
+
return request.get("/api/referral-organizations", {
|
|
1607
1585
|
params: params
|
|
1608
1586
|
});
|
|
1609
1587
|
case 5:
|
|
@@ -1623,7 +1601,7 @@ var SMchc_Common = {
|
|
|
1623
1601
|
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
1624
1602
|
while (1) switch (_context42.prev = _context42.next) {
|
|
1625
1603
|
case 0:
|
|
1626
|
-
type =
|
|
1604
|
+
type = mchcConfig.get('highriskVersion');
|
|
1627
1605
|
_context42.next = 3;
|
|
1628
1606
|
return SMchc_Dictionaries.getList({
|
|
1629
1607
|
params: {
|
|
@@ -1646,7 +1624,7 @@ var SMchc_Common = {
|
|
|
1646
1624
|
case 7:
|
|
1647
1625
|
res = {
|
|
1648
1626
|
color: item.note,
|
|
1649
|
-
options:
|
|
1627
|
+
options: getSameOptions(item.label)
|
|
1650
1628
|
}; // mchcLogger.log('getHighriskContagionConfig 1', { res })
|
|
1651
1629
|
return _context42.abrupt("return", res);
|
|
1652
1630
|
case 9:
|
|
@@ -1662,8 +1640,8 @@ var SMchc_Common = {
|
|
|
1662
1640
|
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
1663
1641
|
while (1) switch (_context43.prev = _context43.next) {
|
|
1664
1642
|
case 0:
|
|
1665
|
-
type =
|
|
1666
|
-
colors =
|
|
1643
|
+
type = mchcConfig.get('highriskVersion');
|
|
1644
|
+
colors = mchcConstant.levelOptionsobj[type];
|
|
1667
1645
|
_context43.next = 4;
|
|
1668
1646
|
return SMchc_Dictionaries.getList({
|
|
1669
1647
|
params: {
|
|
@@ -1710,16 +1688,16 @@ var SMchc_Common = {
|
|
|
1710
1688
|
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
1711
1689
|
while (1) switch (_context44.prev = _context44.next) {
|
|
1712
1690
|
case 0:
|
|
1713
|
-
type =
|
|
1691
|
+
type = mchcConfig.get('highriskVersion');
|
|
1714
1692
|
_context44.next = 3;
|
|
1715
1693
|
return SMchc_TemplateTrees.getTemplateTree({
|
|
1716
1694
|
type: type
|
|
1717
1695
|
});
|
|
1718
1696
|
case 3:
|
|
1719
1697
|
treeData = _context44.sent;
|
|
1720
|
-
treeMap =
|
|
1698
|
+
treeMap = _keyBy(treeData, 'id');
|
|
1721
1699
|
return _context44.abrupt("return", treeData.map(function (v) {
|
|
1722
|
-
var p =
|
|
1700
|
+
var p = _get(treeMap, v.pid);
|
|
1723
1701
|
var categoryCode = "".concat(p === null || p === void 0 ? void 0 : p.val, ":").concat(v === null || v === void 0 ? void 0 : v.val);
|
|
1724
1702
|
return _objectSpread(_objectSpread({}, v), {}, {
|
|
1725
1703
|
categoryCode: v.pid === 0 ? '' : categoryCode
|
|
@@ -1739,7 +1717,7 @@ var SMchc_Common = {
|
|
|
1739
1717
|
while (1) switch (_context45.prev = _context45.next) {
|
|
1740
1718
|
case 0:
|
|
1741
1719
|
_context45.next = 2;
|
|
1742
|
-
return
|
|
1720
|
+
return mchcStore.getSystemConfig();
|
|
1743
1721
|
case 2:
|
|
1744
1722
|
data = _context45.sent;
|
|
1745
1723
|
return _context45.abrupt("return", data);
|
|
@@ -1755,7 +1733,7 @@ var SMchc_Common = {
|
|
|
1755
1733
|
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
1756
1734
|
while (1) switch (_context46.prev = _context46.next) {
|
|
1757
1735
|
case 0:
|
|
1758
|
-
return _context46.abrupt("return",
|
|
1736
|
+
return _context46.abrupt("return", mchcStore.updateSystemConfig(data));
|
|
1759
1737
|
case 1:
|
|
1760
1738
|
case "end":
|
|
1761
1739
|
return _context46.stop();
|
|
@@ -1784,7 +1762,7 @@ var SMchc_Common = {
|
|
|
1784
1762
|
}
|
|
1785
1763
|
return _context47.abrupt("return", null);
|
|
1786
1764
|
case 6:
|
|
1787
|
-
data =
|
|
1765
|
+
data = safe_json_parse(item.note);
|
|
1788
1766
|
return _context47.abrupt("return", {
|
|
1789
1767
|
data: data
|
|
1790
1768
|
});
|
|
@@ -1838,12 +1816,12 @@ function parseFormDescriptions(list) {
|
|
|
1838
1816
|
return _objectSpread(_objectSpread({}, fd), {}, {
|
|
1839
1817
|
fields: fields.map(function (field) {
|
|
1840
1818
|
if (!field) return {};
|
|
1841
|
-
var styles =
|
|
1842
|
-
var inputProps =
|
|
1843
|
-
var formItemLayout =
|
|
1844
|
-
var specialConfig =
|
|
1845
|
-
var tranferRules =
|
|
1846
|
-
var rules =
|
|
1819
|
+
var styles = safe_json_parse(field.styles, field.styles || {});
|
|
1820
|
+
var inputProps = safe_json_parse(field.inputProps, field.inputProps || {});
|
|
1821
|
+
var formItemLayout = safe_json_parse(field.formItemLayout, field.formItemLayout || {});
|
|
1822
|
+
var specialConfig = safe_json_parse(field.specialConfig, field.specialConfig || {});
|
|
1823
|
+
var tranferRules = safe_json_parse(field.tranferRules, field.tranferRules || {});
|
|
1824
|
+
var rules = safe_json_parse(field.rules, field.rules || []);
|
|
1847
1825
|
var key = field.key;
|
|
1848
1826
|
var name = key;
|
|
1849
1827
|
var label = field.label;
|
|
@@ -1882,7 +1860,7 @@ function getCache(name) {
|
|
|
1882
1860
|
var cache = (_fdCache$name = fdCache[name]) !== null && _fdCache$name !== void 0 ? _fdCache$name : {};
|
|
1883
1861
|
var expire = cache.expire || 0;
|
|
1884
1862
|
var isExpire = +new Date() > expire;
|
|
1885
|
-
if (isExpire ||
|
|
1863
|
+
if (isExpire || mchcEnv.isDev) return;
|
|
1886
1864
|
return cache === null || cache === void 0 ? void 0 : cache.data;
|
|
1887
1865
|
}
|
|
1888
1866
|
function setCache(name, data) {
|
|
@@ -1911,22 +1889,22 @@ function defineFormConfig(config, first_level_default) {
|
|
|
1911
1889
|
};
|
|
1912
1890
|
}
|
|
1913
1891
|
function set_preset_form_config(confs) {
|
|
1914
|
-
|
|
1892
|
+
mchcEnv.setEnvFormConfig(confs);
|
|
1915
1893
|
}
|
|
1916
1894
|
function get_preset_form_config(name) {
|
|
1917
|
-
var old =
|
|
1895
|
+
var old = mchcEnv.getEnvFormConfig(name);
|
|
1918
1896
|
if (!old) return;
|
|
1919
1897
|
return old;
|
|
1920
1898
|
}
|
|
1921
1899
|
function get_lazy(config) {
|
|
1922
|
-
var d =
|
|
1900
|
+
var d = _get(config, '__lazy_config') || _get(config, 'default.__lazy_config');
|
|
1923
1901
|
return d;
|
|
1924
1902
|
}
|
|
1925
1903
|
//
|
|
1926
1904
|
function parse_form_item_name_raw(name) {
|
|
1927
|
-
if (
|
|
1928
|
-
if (
|
|
1929
|
-
if (!
|
|
1905
|
+
if (_isArray(name)) return name;
|
|
1906
|
+
if (_isNumber(name)) return [name.toString()];
|
|
1907
|
+
if (!_isString(name)) return [];
|
|
1930
1908
|
var __name = name !== null && name !== void 0 && name.includes('.') ? name.split('.') : name;
|
|
1931
1909
|
return Array.isArray(__name) ? __name : [__name];
|
|
1932
1910
|
}
|
|
@@ -1953,7 +1931,7 @@ var SMchc_FormDescriptions = {
|
|
|
1953
1931
|
_context49.next = 21;
|
|
1954
1932
|
break;
|
|
1955
1933
|
case 8:
|
|
1956
|
-
if (!
|
|
1934
|
+
if (!_isFunction(config)) {
|
|
1957
1935
|
_context49.next = 20;
|
|
1958
1936
|
break;
|
|
1959
1937
|
}
|
|
@@ -1964,13 +1942,13 @@ var SMchc_FormDescriptions = {
|
|
|
1964
1942
|
// compatible with default export
|
|
1965
1943
|
r = (_r$default = r["default"]) !== null && _r$default !== void 0 ? _r$default : r;
|
|
1966
1944
|
_context49.next = 15;
|
|
1967
|
-
return Promise.resolve(
|
|
1945
|
+
return Promise.resolve(_isFunction(r) ? r() : r);
|
|
1968
1946
|
case 15:
|
|
1969
1947
|
res = _context49.sent;
|
|
1970
1948
|
_f = Array.isArray(res) ? res : (_ref4 = (_get_lazy = get_lazy(res)) !== null && _get_lazy !== void 0 ? _get_lazy : res) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
1971
1949
|
return _context49.abrupt("return", _f);
|
|
1972
1950
|
case 20:
|
|
1973
|
-
if (
|
|
1951
|
+
if (_isObject(config)) {
|
|
1974
1952
|
f = Object.values(config);
|
|
1975
1953
|
}
|
|
1976
1954
|
case 21:
|
|
@@ -2030,7 +2008,7 @@ var SMchc_FormDescriptions = {
|
|
|
2030
2008
|
return sum;
|
|
2031
2009
|
}, {});
|
|
2032
2010
|
_context51.next = 5;
|
|
2033
|
-
return SMchc_FormDescriptions.remote_filter(
|
|
2011
|
+
return SMchc_FormDescriptions.remote_filter(_values(request_data));
|
|
2034
2012
|
case 5:
|
|
2035
2013
|
data = _context51.sent;
|
|
2036
2014
|
res = config.filter(function (_) {
|
|
@@ -2126,14 +2104,14 @@ var SMchc_FormDescriptions = {
|
|
|
2126
2104
|
case 5:
|
|
2127
2105
|
_context52.prev = 5;
|
|
2128
2106
|
_context52.next = 8;
|
|
2129
|
-
return
|
|
2107
|
+
return request.post('/api/form-filter', req_data, {
|
|
2130
2108
|
timeout: 2000,
|
|
2131
2109
|
showMsg: false,
|
|
2132
2110
|
unboxing: true
|
|
2133
2111
|
});
|
|
2134
2112
|
case 8:
|
|
2135
2113
|
res = _context52.sent;
|
|
2136
|
-
filtered =
|
|
2114
|
+
filtered = expect_array(res.data); // .map(f => ({ ...f, filter: f.filter.slice(0, 2) }))
|
|
2137
2115
|
filtered.forEach(function (_) {
|
|
2138
2116
|
remote_filter_cache[_.name] = _;
|
|
2139
2117
|
});
|
|
@@ -2156,7 +2134,7 @@ var SMchc_FormDescriptions = {
|
|
|
2156
2134
|
while (1) switch (_context53.prev = _context53.next) {
|
|
2157
2135
|
case 0:
|
|
2158
2136
|
_context53.next = 2;
|
|
2159
|
-
return
|
|
2137
|
+
return request.get('/api/form-descriptions', {
|
|
2160
2138
|
params: {
|
|
2161
2139
|
moduleName: moduleName
|
|
2162
2140
|
}
|
|
@@ -2229,30 +2207,30 @@ var SMchc_FormDescriptions = {
|
|
|
2229
2207
|
var remote_filter_cache = {};
|
|
2230
2208
|
function process_husbandBaseInfo_remote(data) {
|
|
2231
2209
|
var partnerInfo = ['smoke', 'alcohol', 'disease'].reduce(function (obj, k) {
|
|
2232
|
-
return
|
|
2210
|
+
return mchcUtils.noteToCommonOption(obj, k);
|
|
2233
2211
|
}, data);
|
|
2234
2212
|
return partnerInfo;
|
|
2235
2213
|
}
|
|
2236
2214
|
function process_husbandBaseInfo_local(_data) {
|
|
2237
2215
|
var data = _objectSpread({}, _data);
|
|
2238
2216
|
var partnerInfo = ['smoke', 'alcohol', 'disease'].reduce(function (obj, k) {
|
|
2239
|
-
return
|
|
2217
|
+
return mchcUtils.commonOptionToNote(obj, k);
|
|
2240
2218
|
}, data);
|
|
2241
2219
|
return partnerInfo;
|
|
2242
2220
|
}
|
|
2243
2221
|
function processFirstInfoOfOutpatient(data) {
|
|
2244
|
-
var serialNo =
|
|
2245
|
-
if (
|
|
2222
|
+
var serialNo = getSearchParamsValue('serialNo');
|
|
2223
|
+
if (mchcEnv.appName === '广三' && serialNo) ;
|
|
2246
2224
|
return data;
|
|
2247
2225
|
}
|
|
2248
2226
|
function processRvisitInfoOfOutpatient(data) {
|
|
2249
|
-
var serialNo =
|
|
2250
|
-
if (
|
|
2227
|
+
var serialNo = getSearchParamsValue('serialNo');
|
|
2228
|
+
if (mchcEnv.appName === '广三' && serialNo) ;
|
|
2251
2229
|
return data;
|
|
2252
2230
|
}
|
|
2253
2231
|
// 既往史
|
|
2254
2232
|
function processPastmh_remote(_data) {
|
|
2255
|
-
var data =
|
|
2233
|
+
var data = mchcUtils.autoNoteToCommonOption(_data);
|
|
2256
2234
|
console.log('hhx', _data, data);
|
|
2257
2235
|
data.allergy__ = [];
|
|
2258
2236
|
// const keys = Object.keys(data)
|
|
@@ -2265,7 +2243,7 @@ function processPastmh_remote(_data) {
|
|
|
2265
2243
|
// })
|
|
2266
2244
|
if (data.nothing === true) {
|
|
2267
2245
|
data.allergy__.push({
|
|
2268
|
-
value:
|
|
2246
|
+
value: optionKey否
|
|
2269
2247
|
});
|
|
2270
2248
|
} else if (data.nothing === false) {
|
|
2271
2249
|
if (data.allergyDrug) {
|
|
@@ -2282,21 +2260,21 @@ function processPastmh_remote(_data) {
|
|
|
2282
2260
|
}
|
|
2283
2261
|
if (data.allergyOther) {
|
|
2284
2262
|
data.allergy__.push({
|
|
2285
|
-
value:
|
|
2263
|
+
value: optionKey其他,
|
|
2286
2264
|
text: data.allergyOtherNote
|
|
2287
2265
|
});
|
|
2288
2266
|
}
|
|
2289
2267
|
if (data.unknown) {
|
|
2290
2268
|
data.allergy__.push({
|
|
2291
|
-
value:
|
|
2269
|
+
value: optionKey不详
|
|
2292
2270
|
});
|
|
2293
2271
|
}
|
|
2294
2272
|
}
|
|
2295
2273
|
return data;
|
|
2296
2274
|
}
|
|
2297
2275
|
function processPastmh_local(_data) {
|
|
2298
|
-
var data =
|
|
2299
|
-
var allergy__ =
|
|
2276
|
+
var data = mchcUtils.autoCommonOptionToNote(_data);
|
|
2277
|
+
var allergy__ = safe_json_parse_arr(data.allergy__);
|
|
2300
2278
|
var allergyItem;
|
|
2301
2279
|
// const keys = Object.keys(data)
|
|
2302
2280
|
// const targetKeys = keys.filter(k => {
|
|
@@ -2313,7 +2291,7 @@ function processPastmh_local(_data) {
|
|
|
2313
2291
|
// }
|
|
2314
2292
|
// })
|
|
2315
2293
|
if (allergy__.find(function (_) {
|
|
2316
|
-
return _.value ===
|
|
2294
|
+
return _.value === optionKey否;
|
|
2317
2295
|
})) {
|
|
2318
2296
|
data.nothing = true;
|
|
2319
2297
|
data.allergyDrug = false;
|
|
@@ -2340,7 +2318,7 @@ function processPastmh_local(_data) {
|
|
|
2340
2318
|
data.allergyFood = false;
|
|
2341
2319
|
}
|
|
2342
2320
|
if (allergyItem = allergy__.find(function (_) {
|
|
2343
|
-
return _.value ===
|
|
2321
|
+
return _.value === optionKey其他;
|
|
2344
2322
|
})) {
|
|
2345
2323
|
data.nothing = false;
|
|
2346
2324
|
data.allergyOther = true;
|
|
@@ -2349,7 +2327,7 @@ function processPastmh_local(_data) {
|
|
|
2349
2327
|
data.allergyOther = false;
|
|
2350
2328
|
}
|
|
2351
2329
|
if (allergyItem = allergy__.find(function (_) {
|
|
2352
|
-
return _.value ===
|
|
2330
|
+
return _.value === optionKey不详;
|
|
2353
2331
|
})) {
|
|
2354
2332
|
data.nothing = false;
|
|
2355
2333
|
data.unknown = true;
|
|
@@ -2361,27 +2339,27 @@ function processPastmh_local(_data) {
|
|
|
2361
2339
|
}
|
|
2362
2340
|
// 其他病史
|
|
2363
2341
|
function processOther_remote(_data) {
|
|
2364
|
-
var data =
|
|
2365
|
-
data.pmh =
|
|
2366
|
-
data.fmh =
|
|
2342
|
+
var data = mchcUtils.autoNoteToCommonOption(_data);
|
|
2343
|
+
data.pmh = mchcUtils.autoNoteToCommonOption(_data.pmh);
|
|
2344
|
+
data.fmh = mchcUtils.autoNoteToCommonOption(_data.fmh);
|
|
2367
2345
|
return data;
|
|
2368
2346
|
}
|
|
2369
2347
|
function processOther_local(_data) {
|
|
2370
|
-
var data =
|
|
2371
|
-
data.pmh =
|
|
2372
|
-
data.fmh =
|
|
2348
|
+
var data = mchcUtils.autoCommonOptionToNote(_data);
|
|
2349
|
+
data.pmh = mchcUtils.autoCommonOptionToNote(_data.pmh);
|
|
2350
|
+
data.fmh = mchcUtils.autoCommonOptionToNote(_data.fmh);
|
|
2373
2351
|
return data;
|
|
2374
2352
|
}
|
|
2375
2353
|
function processLabExamOfOutpatient_local(_data) {
|
|
2376
|
-
var data =
|
|
2354
|
+
var data = mchcUtils.autoCommonOptionToNote(_data);
|
|
2377
2355
|
return data;
|
|
2378
2356
|
}
|
|
2379
2357
|
function processLabExamOfOutpatient_remote(_data) {
|
|
2380
|
-
var data =
|
|
2358
|
+
var data = mchcUtils.autoNoteToCommonOption(_data);
|
|
2381
2359
|
return data;
|
|
2382
2360
|
}
|
|
2383
2361
|
function processPhysicalExamOfOutpatient_local(_data) {
|
|
2384
|
-
var data =
|
|
2362
|
+
var data = mchcUtils.autoCommonOptionToNote(_data);
|
|
2385
2363
|
var _data$physicalBaseExa = _data.physicalBaseExam,
|
|
2386
2364
|
_data$physicalBaseExa2 = _data$physicalBaseExa.MyPressure1__,
|
|
2387
2365
|
MyPressure1__ = _data$physicalBaseExa2 === void 0 ? [] : _data$physicalBaseExa2,
|
|
@@ -2397,17 +2375,17 @@ function processPhysicalExamOfOutpatient_local(_data) {
|
|
|
2397
2375
|
systolic3: MyPressure3__[0],
|
|
2398
2376
|
diastolic3: MyPressure3__[1]
|
|
2399
2377
|
});
|
|
2400
|
-
data.physicalgeneralExam =
|
|
2378
|
+
data.physicalgeneralExam = mchcUtils.autoCommonOptionToNote(_data.physicalgeneralExam);
|
|
2401
2379
|
return data;
|
|
2402
2380
|
}
|
|
2403
2381
|
function processPhysicalExamOfOutpatient_remote(_data) {
|
|
2404
|
-
var data =
|
|
2382
|
+
var data = mchcUtils.autoNoteToCommonOption(_data);
|
|
2405
2383
|
data.physicalBaseExam = _objectSpread(_objectSpread({}, _data.physicalBaseExam), {}, {
|
|
2406
2384
|
MyPressure1__: [_data.physicalBaseExam.systolic, _data.physicalBaseExam.diastolic],
|
|
2407
2385
|
MyPressure2__: [_data.physicalBaseExam.systolic2, _data.physicalBaseExam.diastolic2],
|
|
2408
2386
|
MyPressure3__: [_data.physicalBaseExam.systolic3, _data.physicalBaseExam.diastolic3]
|
|
2409
2387
|
});
|
|
2410
|
-
data.physicalgeneralExam =
|
|
2388
|
+
data.physicalgeneralExam = mchcUtils.autoNoteToCommonOption(_data.physicalgeneralExam);
|
|
2411
2389
|
return data;
|
|
2412
2390
|
}
|
|
2413
2391
|
var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
@@ -2426,7 +2404,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2426
2404
|
while (1) switch (_context57.prev = _context57.next) {
|
|
2427
2405
|
case 0:
|
|
2428
2406
|
_context57.next = 2;
|
|
2429
|
-
return
|
|
2407
|
+
return request.get('/api/doctor/getVisitEmrEditable', {
|
|
2430
2408
|
params: {
|
|
2431
2409
|
visitId: visitId
|
|
2432
2410
|
}
|
|
@@ -2454,7 +2432,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2454
2432
|
while (1) switch (_context58.prev = _context58.next) {
|
|
2455
2433
|
case 0:
|
|
2456
2434
|
_context58.next = 2;
|
|
2457
|
-
return
|
|
2435
|
+
return request.get('/api/diagnoses', {
|
|
2458
2436
|
params: _defineProperty(_defineProperty({}, "pregnancyId.equals", pregnancyId), "serialNo.equals", serialNo)
|
|
2459
2437
|
});
|
|
2460
2438
|
case 2:
|
|
@@ -2480,7 +2458,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2480
2458
|
while (1) switch (_context59.prev = _context59.next) {
|
|
2481
2459
|
case 0:
|
|
2482
2460
|
_context59.next = 2;
|
|
2483
|
-
return
|
|
2461
|
+
return request.post('/api/doctor/newOrSaveDiagnosisOfOutpatientList', data);
|
|
2484
2462
|
case 2:
|
|
2485
2463
|
ret = _context59.sent;
|
|
2486
2464
|
return _context59.abrupt("return", ret.data);
|
|
@@ -2504,7 +2482,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2504
2482
|
while (1) switch (_context60.prev = _context60.next) {
|
|
2505
2483
|
case 0:
|
|
2506
2484
|
_context60.next = 2;
|
|
2507
|
-
return
|
|
2485
|
+
return request.post('/api/doctor/updateRvisitRecordOfOutpatient', data);
|
|
2508
2486
|
case 2:
|
|
2509
2487
|
res = _context60.sent;
|
|
2510
2488
|
return _context60.abrupt("return", res.data);
|
|
@@ -2528,7 +2506,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2528
2506
|
while (1) switch (_context61.prev = _context61.next) {
|
|
2529
2507
|
case 0:
|
|
2530
2508
|
_context61.next = 2;
|
|
2531
|
-
return
|
|
2509
|
+
return request.get('/api/doctor/getFirstVisitDiagnosisOutpatient', {
|
|
2532
2510
|
params: {
|
|
2533
2511
|
id: id
|
|
2534
2512
|
}
|
|
@@ -2556,7 +2534,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2556
2534
|
while (1) switch (_context62.prev = _context62.next) {
|
|
2557
2535
|
case 0:
|
|
2558
2536
|
_context62.next = 2;
|
|
2559
|
-
return
|
|
2537
|
+
return request.put('/api/doctor/updateFirstVisitDiagnosisOutpatient', data, {
|
|
2560
2538
|
successText: '操作成功'
|
|
2561
2539
|
});
|
|
2562
2540
|
case 2:
|
|
@@ -2583,7 +2561,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2583
2561
|
while (1) switch (_context63.prev = _context63.next) {
|
|
2584
2562
|
case 0:
|
|
2585
2563
|
_context63.next = 2;
|
|
2586
|
-
return
|
|
2564
|
+
return request.get('/api/doctor/getOutpatientHeaderInfo', {
|
|
2587
2565
|
params: {
|
|
2588
2566
|
id: id
|
|
2589
2567
|
}
|
|
@@ -2608,7 +2586,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2608
2586
|
key: "getRvisitInfoOfOutpatient",
|
|
2609
2587
|
value: (function () {
|
|
2610
2588
|
var _getRvisitInfoOfOutpatient = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
|
|
2611
|
-
var params, _yield$
|
|
2589
|
+
var params, _yield$request$get7, data;
|
|
2612
2590
|
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
2613
2591
|
while (1) switch (_context64.prev = _context64.next) {
|
|
2614
2592
|
case 0:
|
|
@@ -2616,12 +2594,12 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2616
2594
|
id: id
|
|
2617
2595
|
};
|
|
2618
2596
|
_context64.next = 3;
|
|
2619
|
-
return
|
|
2597
|
+
return request.get('/api/doctor/getRvisitInfoOfOutpatient', {
|
|
2620
2598
|
params: params
|
|
2621
2599
|
});
|
|
2622
2600
|
case 3:
|
|
2623
|
-
_yield$
|
|
2624
|
-
data = _yield$
|
|
2601
|
+
_yield$request$get7 = _context64.sent;
|
|
2602
|
+
data = _yield$request$get7.data;
|
|
2625
2603
|
return _context64.abrupt("return", processRvisitInfoOfOutpatient(data));
|
|
2626
2604
|
case 6:
|
|
2627
2605
|
case "end":
|
|
@@ -2638,19 +2616,19 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2638
2616
|
key: "getPreRiskAssessmentInfo",
|
|
2639
2617
|
value: function () {
|
|
2640
2618
|
var _getPreRiskAssessmentInfo = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
|
|
2641
|
-
var _yield$
|
|
2619
|
+
var _yield$request$get8, data;
|
|
2642
2620
|
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
2643
2621
|
while (1) switch (_context65.prev = _context65.next) {
|
|
2644
2622
|
case 0:
|
|
2645
2623
|
_context65.next = 2;
|
|
2646
|
-
return
|
|
2624
|
+
return request.get("/api/doctor/getPreRiskAssessmentInfo", {
|
|
2647
2625
|
params: {
|
|
2648
2626
|
id: id
|
|
2649
2627
|
}
|
|
2650
2628
|
});
|
|
2651
2629
|
case 2:
|
|
2652
|
-
_yield$
|
|
2653
|
-
data = _yield$
|
|
2630
|
+
_yield$request$get8 = _context65.sent;
|
|
2631
|
+
data = _yield$request$get8.data;
|
|
2654
2632
|
return _context65.abrupt("return", data);
|
|
2655
2633
|
case 5:
|
|
2656
2634
|
case "end":
|
|
@@ -2667,15 +2645,15 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2667
2645
|
key: "newOrSaveDiagnosisOfOutpatient",
|
|
2668
2646
|
value: (function () {
|
|
2669
2647
|
var _newOrSaveDiagnosisOfOutpatient = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee66(x) {
|
|
2670
|
-
var _yield$
|
|
2648
|
+
var _yield$request$post2, data;
|
|
2671
2649
|
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
2672
2650
|
while (1) switch (_context66.prev = _context66.next) {
|
|
2673
2651
|
case 0:
|
|
2674
2652
|
_context66.next = 2;
|
|
2675
|
-
return
|
|
2653
|
+
return request.post("/api/doctor/newOrSaveDiagnosisOfOutpatient", x);
|
|
2676
2654
|
case 2:
|
|
2677
|
-
_yield$
|
|
2678
|
-
data = _yield$
|
|
2655
|
+
_yield$request$post2 = _context66.sent;
|
|
2656
|
+
data = _yield$request$post2.data;
|
|
2679
2657
|
return _context66.abrupt("return", data);
|
|
2680
2658
|
case 5:
|
|
2681
2659
|
case "end":
|
|
@@ -2697,7 +2675,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2697
2675
|
while (1) switch (_context67.prev = _context67.next) {
|
|
2698
2676
|
case 0:
|
|
2699
2677
|
_context67.next = 2;
|
|
2700
|
-
return
|
|
2678
|
+
return request.put('/api/doctor/sortDiagnosesOfOutpatient', data);
|
|
2701
2679
|
case 2:
|
|
2702
2680
|
res = _context67.sent;
|
|
2703
2681
|
return _context67.abrupt("return", res.data);
|
|
@@ -2721,7 +2699,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2721
2699
|
while (1) switch (_context68.prev = _context68.next) {
|
|
2722
2700
|
case 0:
|
|
2723
2701
|
_context68.next = 2;
|
|
2724
|
-
return
|
|
2702
|
+
return request["delete"]("/api/doctor/deleteDiagnosisOfOutpatient/".concat(id));
|
|
2725
2703
|
case 2:
|
|
2726
2704
|
res = _context68.sent;
|
|
2727
2705
|
return _context68.abrupt("return", res.data);
|
|
@@ -2740,15 +2718,15 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2740
2718
|
key: "getFirstVisitInfoOfOutpatient",
|
|
2741
2719
|
value: (function () {
|
|
2742
2720
|
var _getFirstVisitInfoOfOutpatient = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id) {
|
|
2743
|
-
var _yield$
|
|
2721
|
+
var _yield$request$get9, data;
|
|
2744
2722
|
return _regeneratorRuntime.wrap(function _callee69$(_context69) {
|
|
2745
2723
|
while (1) switch (_context69.prev = _context69.next) {
|
|
2746
2724
|
case 0:
|
|
2747
2725
|
_context69.next = 2;
|
|
2748
|
-
return
|
|
2726
|
+
return request.get('/api/doctor/getFirstVisitInfoOfOutpatient?id=' + id);
|
|
2749
2727
|
case 2:
|
|
2750
|
-
_yield$
|
|
2751
|
-
data = _yield$
|
|
2728
|
+
_yield$request$get9 = _context69.sent;
|
|
2729
|
+
data = _yield$request$get9.data;
|
|
2752
2730
|
return _context69.abrupt("return", processFirstInfoOfOutpatient(data));
|
|
2753
2731
|
case 5:
|
|
2754
2732
|
case "end":
|
|
@@ -2765,15 +2743,15 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2765
2743
|
key: "updateFirstVisitInfoOfOutpatient",
|
|
2766
2744
|
value: function () {
|
|
2767
2745
|
var _updateFirstVisitInfoOfOutpatient = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee70(requestBody) {
|
|
2768
|
-
var _yield$
|
|
2746
|
+
var _yield$request$put, data;
|
|
2769
2747
|
return _regeneratorRuntime.wrap(function _callee70$(_context70) {
|
|
2770
2748
|
while (1) switch (_context70.prev = _context70.next) {
|
|
2771
2749
|
case 0:
|
|
2772
2750
|
_context70.next = 2;
|
|
2773
|
-
return
|
|
2751
|
+
return request.put('/api/doctor/updateFirstVisitInfoOfOutpatient', requestBody);
|
|
2774
2752
|
case 2:
|
|
2775
|
-
_yield$
|
|
2776
|
-
data = _yield$
|
|
2753
|
+
_yield$request$put = _context70.sent;
|
|
2754
|
+
data = _yield$request$put.data;
|
|
2777
2755
|
return _context70.abrupt("return", processFirstInfoOfOutpatient(data));
|
|
2778
2756
|
case 5:
|
|
2779
2757
|
case "end":
|
|
@@ -2790,20 +2768,20 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2790
2768
|
key: "getVteAssessForm",
|
|
2791
2769
|
value: function () {
|
|
2792
2770
|
var _getVteAssessForm = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
|
|
2793
|
-
var path, _yield$
|
|
2771
|
+
var path, _yield$request$get10, data;
|
|
2794
2772
|
return _regeneratorRuntime.wrap(function _callee71$(_context71) {
|
|
2795
2773
|
while (1) switch (_context71.prev = _context71.next) {
|
|
2796
2774
|
case 0:
|
|
2797
|
-
path =
|
|
2775
|
+
path = mchcEnv.is('广三') ? "VteAssessForm3" : "VteAssessForm3";
|
|
2798
2776
|
_context71.next = 3;
|
|
2799
|
-
return
|
|
2777
|
+
return request.get("/api/doctor/get".concat(path), {
|
|
2800
2778
|
params: {
|
|
2801
2779
|
id: id
|
|
2802
2780
|
}
|
|
2803
2781
|
});
|
|
2804
2782
|
case 3:
|
|
2805
|
-
_yield$
|
|
2806
|
-
data = _yield$
|
|
2783
|
+
_yield$request$get10 = _context71.sent;
|
|
2784
|
+
data = _yield$request$get10.data;
|
|
2807
2785
|
return _context71.abrupt("return", data);
|
|
2808
2786
|
case 6:
|
|
2809
2787
|
case "end":
|
|
@@ -2820,16 +2798,16 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2820
2798
|
key: "updateVteAssessForm",
|
|
2821
2799
|
value: function () {
|
|
2822
2800
|
var _updateVteAssessForm = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee72(requestBody) {
|
|
2823
|
-
var path, _yield$
|
|
2801
|
+
var path, _yield$request$put2, data;
|
|
2824
2802
|
return _regeneratorRuntime.wrap(function _callee72$(_context72) {
|
|
2825
2803
|
while (1) switch (_context72.prev = _context72.next) {
|
|
2826
2804
|
case 0:
|
|
2827
|
-
path =
|
|
2805
|
+
path = mchcEnv.is('广三') ? "VteAssessForm3" : "VteAssessForm3";
|
|
2828
2806
|
_context72.next = 3;
|
|
2829
|
-
return
|
|
2807
|
+
return request.put("/api/doctor/update".concat(path), requestBody);
|
|
2830
2808
|
case 3:
|
|
2831
|
-
_yield$
|
|
2832
|
-
data = _yield$
|
|
2809
|
+
_yield$request$put2 = _context72.sent;
|
|
2810
|
+
data = _yield$request$put2.data;
|
|
2833
2811
|
return _context72.abrupt("return", data);
|
|
2834
2812
|
case 6:
|
|
2835
2813
|
case "end":
|
|
@@ -2846,20 +2824,20 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2846
2824
|
key: "buildExamTimeAxisByType",
|
|
2847
2825
|
value: (function () {
|
|
2848
2826
|
var _buildExamTimeAxisByType = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee73(pregnancyId, type) {
|
|
2849
|
-
var _yield$
|
|
2827
|
+
var _yield$request$get11, data;
|
|
2850
2828
|
return _regeneratorRuntime.wrap(function _callee73$(_context73) {
|
|
2851
2829
|
while (1) switch (_context73.prev = _context73.next) {
|
|
2852
2830
|
case 0:
|
|
2853
2831
|
_context73.next = 2;
|
|
2854
|
-
return
|
|
2832
|
+
return request.get("/api/buildExamTimeAxis", {
|
|
2855
2833
|
params: {
|
|
2856
2834
|
pregnancyId: pregnancyId,
|
|
2857
2835
|
type: type
|
|
2858
2836
|
}
|
|
2859
2837
|
});
|
|
2860
2838
|
case 2:
|
|
2861
|
-
_yield$
|
|
2862
|
-
data = _yield$
|
|
2839
|
+
_yield$request$get11 = _context73.sent;
|
|
2840
|
+
data = _yield$request$get11.data;
|
|
2863
2841
|
return _context73.abrupt("return", data);
|
|
2864
2842
|
case 5:
|
|
2865
2843
|
case "end":
|
|
@@ -2876,19 +2854,19 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2876
2854
|
key: "getRiskRecordsOfOutpatient",
|
|
2877
2855
|
value: function () {
|
|
2878
2856
|
var _getRiskRecordsOfOutpatient = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
|
|
2879
|
-
var _yield$
|
|
2857
|
+
var _yield$request$get12, data;
|
|
2880
2858
|
return _regeneratorRuntime.wrap(function _callee74$(_context74) {
|
|
2881
2859
|
while (1) switch (_context74.prev = _context74.next) {
|
|
2882
2860
|
case 0:
|
|
2883
2861
|
_context74.next = 2;
|
|
2884
|
-
return
|
|
2862
|
+
return request.get("/api/doctor/getRiskRecordsOfOutpatient", {
|
|
2885
2863
|
params: {
|
|
2886
2864
|
id: id
|
|
2887
2865
|
}
|
|
2888
2866
|
});
|
|
2889
2867
|
case 2:
|
|
2890
|
-
_yield$
|
|
2891
|
-
data = _yield$
|
|
2868
|
+
_yield$request$get12 = _context74.sent;
|
|
2869
|
+
data = _yield$request$get12.data;
|
|
2892
2870
|
return _context74.abrupt("return", data);
|
|
2893
2871
|
case 5:
|
|
2894
2872
|
case "end":
|
|
@@ -2910,7 +2888,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2910
2888
|
while (1) switch (_context75.prev = _context75.next) {
|
|
2911
2889
|
case 0:
|
|
2912
2890
|
_context75.next = 2;
|
|
2913
|
-
return
|
|
2891
|
+
return request.get('/api/doctor/getPregnancyBaseInfoOfOutpatient?id=' + id);
|
|
2914
2892
|
case 2:
|
|
2915
2893
|
res = _context75.sent;
|
|
2916
2894
|
return _context75.abrupt("return", res.data);
|
|
@@ -2934,7 +2912,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2934
2912
|
while (1) switch (_context76.prev = _context76.next) {
|
|
2935
2913
|
case 0:
|
|
2936
2914
|
_context76.next = 2;
|
|
2937
|
-
return
|
|
2915
|
+
return request.put('/api/doctor/updatePregnancyBaseInfoOfOutpatient', data);
|
|
2938
2916
|
case 2:
|
|
2939
2917
|
res = _context76.sent;
|
|
2940
2918
|
return _context76.abrupt("return", res.data);
|
|
@@ -2958,7 +2936,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2958
2936
|
while (1) switch (_context77.prev = _context77.next) {
|
|
2959
2937
|
case 0:
|
|
2960
2938
|
_context77.next = 2;
|
|
2961
|
-
return
|
|
2939
|
+
return request.get('/api/doctor/getHusbandBaseInfoOfOutpatient?id=' + id);
|
|
2962
2940
|
case 2:
|
|
2963
2941
|
res = _context77.sent;
|
|
2964
2942
|
return _context77.abrupt("return", process_husbandBaseInfo_remote(res.data));
|
|
@@ -2982,7 +2960,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
2982
2960
|
while (1) switch (_context78.prev = _context78.next) {
|
|
2983
2961
|
case 0:
|
|
2984
2962
|
_context78.next = 2;
|
|
2985
|
-
return
|
|
2963
|
+
return request.put('/api/doctor/updateHusbandBaseInfoOfOutpatient', process_husbandBaseInfo_local(data));
|
|
2986
2964
|
case 2:
|
|
2987
2965
|
res = _context78.sent;
|
|
2988
2966
|
return _context78.abrupt("return", process_husbandBaseInfo_remote(res.data));
|
|
@@ -3006,7 +2984,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3006
2984
|
while (1) switch (_context79.prev = _context79.next) {
|
|
3007
2985
|
case 0:
|
|
3008
2986
|
_context79.next = 2;
|
|
3009
|
-
return
|
|
2987
|
+
return request.get('/api/doctor/getOutpatientDocumentStatus?id=' + id);
|
|
3010
2988
|
case 2:
|
|
3011
2989
|
res = _context79.sent;
|
|
3012
2990
|
return _context79.abrupt("return", res.data);
|
|
@@ -3030,7 +3008,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3030
3008
|
while (1) switch (_context80.prev = _context80.next) {
|
|
3031
3009
|
case 0:
|
|
3032
3010
|
_context80.next = 2;
|
|
3033
|
-
return
|
|
3011
|
+
return request.put('/api/doctor/updateOutpatientDocumentStatus', data);
|
|
3034
3012
|
case 2:
|
|
3035
3013
|
res = _context80.sent;
|
|
3036
3014
|
return _context80.abrupt("return", res.data);
|
|
@@ -3054,7 +3032,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3054
3032
|
while (1) switch (_context81.prev = _context81.next) {
|
|
3055
3033
|
case 0:
|
|
3056
3034
|
_context81.next = 2;
|
|
3057
|
-
return
|
|
3035
|
+
return request.get('/api/doctor/getFirstVisitPastmhOutpatient?id=' + id);
|
|
3058
3036
|
case 2:
|
|
3059
3037
|
res = _context81.sent;
|
|
3060
3038
|
return _context81.abrupt("return", processPastmh_remote(res.data));
|
|
@@ -3078,7 +3056,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3078
3056
|
while (1) switch (_context82.prev = _context82.next) {
|
|
3079
3057
|
case 0:
|
|
3080
3058
|
_context82.next = 2;
|
|
3081
|
-
return
|
|
3059
|
+
return request.put('/api/doctor/updateFirstVisitPastmhOutpatient', processPastmh_local(data), {
|
|
3082
3060
|
successText: '操作成功'
|
|
3083
3061
|
});
|
|
3084
3062
|
case 2:
|
|
@@ -3104,7 +3082,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3104
3082
|
while (1) switch (_context83.prev = _context83.next) {
|
|
3105
3083
|
case 0:
|
|
3106
3084
|
_context83.next = 2;
|
|
3107
|
-
return
|
|
3085
|
+
return request.get('/api/doctor/getFirstVisitOthermhOutpatient?id=' + id);
|
|
3108
3086
|
case 2:
|
|
3109
3087
|
res = _context83.sent;
|
|
3110
3088
|
return _context83.abrupt("return", processOther_remote(res.data));
|
|
@@ -3128,7 +3106,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3128
3106
|
while (1) switch (_context84.prev = _context84.next) {
|
|
3129
3107
|
case 0:
|
|
3130
3108
|
_context84.next = 2;
|
|
3131
|
-
return
|
|
3109
|
+
return request.put('/api/doctor/updateFirstVisitOthermhOutpatient', processOther_local(data), {
|
|
3132
3110
|
successText: '操作成功'
|
|
3133
3111
|
});
|
|
3134
3112
|
case 2:
|
|
@@ -3154,7 +3132,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3154
3132
|
while (1) switch (_context85.prev = _context85.next) {
|
|
3155
3133
|
case 0:
|
|
3156
3134
|
_context85.next = 2;
|
|
3157
|
-
return
|
|
3135
|
+
return request.get('/api/doctor/getFirstVisitGynecologicalExamOfOutpatient?id=' + id);
|
|
3158
3136
|
case 2:
|
|
3159
3137
|
res = _context85.sent;
|
|
3160
3138
|
return _context85.abrupt("return", res.data);
|
|
@@ -3178,7 +3156,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3178
3156
|
while (1) switch (_context86.prev = _context86.next) {
|
|
3179
3157
|
case 0:
|
|
3180
3158
|
_context86.next = 2;
|
|
3181
|
-
return
|
|
3159
|
+
return request.put('/api/doctor/updateFirstVisitGynecologicalExamOfOutpatient', data, {
|
|
3182
3160
|
successText: '操作成功'
|
|
3183
3161
|
});
|
|
3184
3162
|
case 2:
|
|
@@ -3204,7 +3182,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3204
3182
|
while (1) switch (_context87.prev = _context87.next) {
|
|
3205
3183
|
case 0:
|
|
3206
3184
|
_context87.next = 2;
|
|
3207
|
-
return
|
|
3185
|
+
return request.get('/api/doctor/getFirstVisitPregnacymhOutpatient?id=' + id);
|
|
3208
3186
|
case 2:
|
|
3209
3187
|
res = _context87.sent;
|
|
3210
3188
|
return _context87.abrupt("return", res.data);
|
|
@@ -3228,7 +3206,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3228
3206
|
while (1) switch (_context88.prev = _context88.next) {
|
|
3229
3207
|
case 0:
|
|
3230
3208
|
_context88.next = 2;
|
|
3231
|
-
return
|
|
3209
|
+
return request.put('/api/doctor/updateFirstVisitPregnacymhOutpatient', data, {
|
|
3232
3210
|
successText: '操作成功'
|
|
3233
3211
|
});
|
|
3234
3212
|
case 2:
|
|
@@ -3254,7 +3232,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3254
3232
|
while (1) switch (_context89.prev = _context89.next) {
|
|
3255
3233
|
case 0:
|
|
3256
3234
|
_context89.next = 2;
|
|
3257
|
-
return
|
|
3235
|
+
return request.get('/api/doctor/getFirstVisitPhysicalExamOfOutpatient?id=' + id);
|
|
3258
3236
|
case 2:
|
|
3259
3237
|
res = _context89.sent;
|
|
3260
3238
|
return _context89.abrupt("return", processPhysicalExamOfOutpatient_remote(res.data));
|
|
@@ -3278,7 +3256,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3278
3256
|
while (1) switch (_context90.prev = _context90.next) {
|
|
3279
3257
|
case 0:
|
|
3280
3258
|
_context90.next = 2;
|
|
3281
|
-
return
|
|
3259
|
+
return request.put('/api/doctor/updateFirstVisitPhysicalExamOfOutpatient', processPhysicalExamOfOutpatient_local(data), {
|
|
3282
3260
|
successText: '操作成功'
|
|
3283
3261
|
});
|
|
3284
3262
|
case 2:
|
|
@@ -3304,7 +3282,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3304
3282
|
while (1) switch (_context91.prev = _context91.next) {
|
|
3305
3283
|
case 0:
|
|
3306
3284
|
_context91.next = 2;
|
|
3307
|
-
return
|
|
3285
|
+
return request.get('/api/doctor/getFirstVisitLabExamOfOutpatient?id=' + id);
|
|
3308
3286
|
case 2:
|
|
3309
3287
|
res = _context91.sent;
|
|
3310
3288
|
return _context91.abrupt("return", processLabExamOfOutpatient_remote(res.data));
|
|
@@ -3328,7 +3306,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3328
3306
|
while (1) switch (_context92.prev = _context92.next) {
|
|
3329
3307
|
case 0:
|
|
3330
3308
|
_context92.next = 2;
|
|
3331
|
-
return
|
|
3309
|
+
return request.put('/api/doctor/updateFirstVisitLabExamOfOutpatient', processLabExamOfOutpatient_local(data), {
|
|
3332
3310
|
successText: '操作成功'
|
|
3333
3311
|
});
|
|
3334
3312
|
case 2:
|
|
@@ -3354,7 +3332,7 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3354
3332
|
while (1) switch (_context93.prev = _context93.next) {
|
|
3355
3333
|
case 0:
|
|
3356
3334
|
_context93.next = 2;
|
|
3357
|
-
return
|
|
3335
|
+
return request.get("/api/syncPatientReport?pregnancyId=".concat(pregnancyId), {
|
|
3358
3336
|
successText: '操作成功'
|
|
3359
3337
|
});
|
|
3360
3338
|
case 2:
|
|
@@ -3376,16 +3354,16 @@ var Mchc_Doctor_Service = /*#__PURE__*/function (_ModelService4) {
|
|
|
3376
3354
|
var SMchc_Doctor = new Mchc_Doctor_Service();
|
|
3377
3355
|
function process_OutpatientDocument_remote(data) {
|
|
3378
3356
|
var _data$pregnancyInfo, _data$pregnancymh;
|
|
3379
|
-
if (
|
|
3357
|
+
if (mchcEnv.appName === '广三') ;
|
|
3380
3358
|
// 受孕方式 pregnancyInfo
|
|
3381
3359
|
var pregnancyInfo = (_data$pregnancyInfo = data.pregnancyInfo) !== null && _data$pregnancyInfo !== void 0 ? _data$pregnancyInfo : {};
|
|
3382
3360
|
var conceiveMode = pregnancyInfo.conceiveMode;
|
|
3383
3361
|
var conceiveModeNote = pregnancyInfo.conceiveModeNote;
|
|
3384
|
-
var old =
|
|
3385
|
-
if (old && !
|
|
3362
|
+
var old = safe_json_parse(conceiveModeNote); // { 1:{ key:1, value:{ 0:'2023-11-13T07:44:25.095Z', 1:123, 2:123 } } }
|
|
3363
|
+
if (old && !_isEmpty(old)) {
|
|
3386
3364
|
if (!Array.isArray(old)) {
|
|
3387
|
-
var oldObj =
|
|
3388
|
-
if (
|
|
3365
|
+
var oldObj = _values(old)[0];
|
|
3366
|
+
if (_isObject(oldObj) && _isObject(oldObj.value)) {
|
|
3389
3367
|
var oldValue = oldObj.key;
|
|
3390
3368
|
var oldTextObj = oldObj.value;
|
|
3391
3369
|
pregnancyInfo.conceiveMode__ = [{
|
|
@@ -3406,7 +3384,7 @@ function process_OutpatientDocument_remote(data) {
|
|
|
3406
3384
|
// .reduce((obj, k) => {
|
|
3407
3385
|
// return mchcUtils.noteToCommonOption(obj, k)
|
|
3408
3386
|
// }, pregnancyInfo)
|
|
3409
|
-
pregnancyInfo =
|
|
3387
|
+
pregnancyInfo = mchcUtils.autoNoteToCommonOption(pregnancyInfo);
|
|
3410
3388
|
//过敏史
|
|
3411
3389
|
if (pregnancyInfo.amh) {
|
|
3412
3390
|
var amh = pregnancyInfo.amh;
|
|
@@ -3430,13 +3408,13 @@ function process_OutpatientDocument_remote(data) {
|
|
|
3430
3408
|
}
|
|
3431
3409
|
if (amh.other) {
|
|
3432
3410
|
amh__.push({
|
|
3433
|
-
value:
|
|
3411
|
+
value: optionKey其他,
|
|
3434
3412
|
text: amh.otherNote
|
|
3435
3413
|
});
|
|
3436
3414
|
}
|
|
3437
3415
|
if (amh.unknown) {
|
|
3438
3416
|
amh__.push({
|
|
3439
|
-
value:
|
|
3417
|
+
value: optionKey不详
|
|
3440
3418
|
});
|
|
3441
3419
|
}
|
|
3442
3420
|
}
|
|
@@ -3446,7 +3424,7 @@ function process_OutpatientDocument_remote(data) {
|
|
|
3446
3424
|
data.physicalExam = process_OutpatientDocument_physicalExam_remote(data.physicalExam);
|
|
3447
3425
|
// 孕产史数据排序处理
|
|
3448
3426
|
var pregnancymh = (_data$pregnancymh = data.pregnancymh) !== null && _data$pregnancymh !== void 0 ? _data$pregnancymh : [];
|
|
3449
|
-
data.pregnancymh =
|
|
3427
|
+
data.pregnancymh = _orderBy(pregnancymh, ['gravidityindex'], ['asc']);
|
|
3450
3428
|
// 丈夫基本信息处理
|
|
3451
3429
|
// const partnerInfo = data.partnerInfo ?? {}
|
|
3452
3430
|
// partnerInfo.smoke__ = [{ label: '', value: partnerInfo.smoke, text: partnerInfo.smokeNote }]
|
|
@@ -3454,7 +3432,7 @@ function process_OutpatientDocument_remote(data) {
|
|
|
3454
3432
|
// partnerInfo.disease__ = [{ label: '', value: partnerInfo.disease, text: partnerInfo.diseaseNote }]
|
|
3455
3433
|
// data.partnerInfo = partnerInfo
|
|
3456
3434
|
var partnerInfo = ['smoke', 'alcohol', 'disease'].reduce(function (obj, k) {
|
|
3457
|
-
return
|
|
3435
|
+
return mchcUtils.noteToCommonOption(obj, k);
|
|
3458
3436
|
}, data.partnerInfo);
|
|
3459
3437
|
data.partnerInfo = partnerInfo;
|
|
3460
3438
|
return data;
|
|
@@ -3494,15 +3472,15 @@ function process_OutpatientDocument_physicalExam_remote(physicalExam) {
|
|
|
3494
3472
|
}
|
|
3495
3473
|
function process_OutpatientDocument_local(_data) {
|
|
3496
3474
|
var _data$pregnancyInfo2, _pregnancyInfo$amh;
|
|
3497
|
-
var data =
|
|
3475
|
+
var data = _cloneDeep(_data);
|
|
3498
3476
|
// 受孕方式 pregnancyInfo
|
|
3499
3477
|
var pregnancyInfo = (_data$pregnancyInfo2 = data.pregnancyInfo) !== null && _data$pregnancyInfo2 !== void 0 ? _data$pregnancyInfo2 : {};
|
|
3500
|
-
var conceiveMode__ =
|
|
3478
|
+
var conceiveMode__ = safe_json_parse_arr(pregnancyInfo.conceiveMode__);
|
|
3501
3479
|
var firstOne = conceiveMode__[0];
|
|
3502
3480
|
if (firstOne) {
|
|
3503
3481
|
var _firstOne$value;
|
|
3504
3482
|
var valueData = (_firstOne$value = firstOne.value) !== null && _firstOne$value !== void 0 ? _firstOne$value : undefined;
|
|
3505
|
-
var firstOneText =
|
|
3483
|
+
var firstOneText = safe_json_parse_arr(firstOne.text);
|
|
3506
3484
|
pregnancyInfo.conceiveMode = valueData;
|
|
3507
3485
|
//@ts-ignore
|
|
3508
3486
|
pregnancyInfo.conceiveModeNote = firstOneText.length ? JSON.stringify(_defineProperty({}, valueData, {
|
|
@@ -3518,9 +3496,9 @@ function process_OutpatientDocument_local(_data) {
|
|
|
3518
3496
|
// .reduce((obj, k) => {
|
|
3519
3497
|
// return mchcUtils.commonOptionToNote(obj, k)
|
|
3520
3498
|
// }, pregnancyInfo)
|
|
3521
|
-
pregnancyInfo =
|
|
3499
|
+
pregnancyInfo = mchcUtils.autoCommonOptionToNote(pregnancyInfo);
|
|
3522
3500
|
//过敏史
|
|
3523
|
-
var amh__ =
|
|
3501
|
+
var amh__ = safe_json_parse_arr(pregnancyInfo.amh___);
|
|
3524
3502
|
var amh = (_pregnancyInfo$amh = pregnancyInfo.amh) !== null && _pregnancyInfo$amh !== void 0 ? _pregnancyInfo$amh : {};
|
|
3525
3503
|
var target;
|
|
3526
3504
|
if (amh__.length) {
|
|
@@ -3547,7 +3525,7 @@ function process_OutpatientDocument_local(_data) {
|
|
|
3547
3525
|
amh.food = false;
|
|
3548
3526
|
}
|
|
3549
3527
|
if (target = amh__.find(function (_) {
|
|
3550
|
-
return _.value ===
|
|
3528
|
+
return _.value === optionKey其他;
|
|
3551
3529
|
})) {
|
|
3552
3530
|
amh.other = true;
|
|
3553
3531
|
amh.otherNote = target.text;
|
|
@@ -3555,7 +3533,7 @@ function process_OutpatientDocument_local(_data) {
|
|
|
3555
3533
|
amh.other = false;
|
|
3556
3534
|
}
|
|
3557
3535
|
if (target = amh__.find(function (_) {
|
|
3558
|
-
return _.value ===
|
|
3536
|
+
return _.value === optionKey不详;
|
|
3559
3537
|
})) {
|
|
3560
3538
|
amh.unknown = true;
|
|
3561
3539
|
} else {
|
|
@@ -3577,7 +3555,7 @@ function process_OutpatientDocument_local(_data) {
|
|
|
3577
3555
|
// partnerInfo.disease = disease__[0]?.value
|
|
3578
3556
|
// partnerInfo.diseaseNote = disease__[0]?.text!
|
|
3579
3557
|
var partnerInfo = ['smoke', 'alcohol', 'disease'].reduce(function (obj, k) {
|
|
3580
|
-
return
|
|
3558
|
+
return mchcUtils.commonOptionToNote(obj, k);
|
|
3581
3559
|
}, data.partnerInfo);
|
|
3582
3560
|
data.partnerInfo = partnerInfo;
|
|
3583
3561
|
return data;
|
|
@@ -3592,7 +3570,7 @@ var Mchc_Nurse_Service = /*#__PURE__*/function (_ModelService5) {
|
|
|
3592
3570
|
key: "getOutpatientDocument",
|
|
3593
3571
|
value: function () {
|
|
3594
3572
|
var _getOutpatientDocument = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee94(id) {
|
|
3595
|
-
var params, _yield$
|
|
3573
|
+
var params, _yield$request$get13, data;
|
|
3596
3574
|
return _regeneratorRuntime.wrap(function _callee94$(_context94) {
|
|
3597
3575
|
while (1) switch (_context94.prev = _context94.next) {
|
|
3598
3576
|
case 0:
|
|
@@ -3600,12 +3578,12 @@ var Mchc_Nurse_Service = /*#__PURE__*/function (_ModelService5) {
|
|
|
3600
3578
|
id: id
|
|
3601
3579
|
};
|
|
3602
3580
|
_context94.next = 3;
|
|
3603
|
-
return
|
|
3581
|
+
return request.get('/api/nurse/getOutpatientDocument', {
|
|
3604
3582
|
params: params
|
|
3605
3583
|
});
|
|
3606
3584
|
case 3:
|
|
3607
|
-
_yield$
|
|
3608
|
-
data = _yield$
|
|
3585
|
+
_yield$request$get13 = _context94.sent;
|
|
3586
|
+
data = _yield$request$get13.data;
|
|
3609
3587
|
return _context94.abrupt("return", process_OutpatientDocument_remote(data));
|
|
3610
3588
|
case 6:
|
|
3611
3589
|
case "end":
|
|
@@ -3622,15 +3600,15 @@ var Mchc_Nurse_Service = /*#__PURE__*/function (_ModelService5) {
|
|
|
3622
3600
|
key: "newOutpatientDocument",
|
|
3623
3601
|
value: function () {
|
|
3624
3602
|
var _newOutpatientDocument = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee95(_data) {
|
|
3625
|
-
var _yield$
|
|
3603
|
+
var _yield$request$post3, data;
|
|
3626
3604
|
return _regeneratorRuntime.wrap(function _callee95$(_context95) {
|
|
3627
3605
|
while (1) switch (_context95.prev = _context95.next) {
|
|
3628
3606
|
case 0:
|
|
3629
3607
|
_context95.next = 2;
|
|
3630
|
-
return
|
|
3608
|
+
return request.post('/api/nurse/newOutpatientDocument', process_OutpatientDocument_local(_data));
|
|
3631
3609
|
case 2:
|
|
3632
|
-
_yield$
|
|
3633
|
-
data = _yield$
|
|
3610
|
+
_yield$request$post3 = _context95.sent;
|
|
3611
|
+
data = _yield$request$post3.data;
|
|
3634
3612
|
return _context95.abrupt("return", process_OutpatientDocument_remote(data));
|
|
3635
3613
|
case 5:
|
|
3636
3614
|
case "end":
|
|
@@ -3647,15 +3625,15 @@ var Mchc_Nurse_Service = /*#__PURE__*/function (_ModelService5) {
|
|
|
3647
3625
|
key: "updateOutpatientDocument",
|
|
3648
3626
|
value: function () {
|
|
3649
3627
|
var _updateOutpatientDocument = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee96(_data) {
|
|
3650
|
-
var _yield$
|
|
3628
|
+
var _yield$request$put3, data;
|
|
3651
3629
|
return _regeneratorRuntime.wrap(function _callee96$(_context96) {
|
|
3652
3630
|
while (1) switch (_context96.prev = _context96.next) {
|
|
3653
3631
|
case 0:
|
|
3654
3632
|
_context96.next = 2;
|
|
3655
|
-
return
|
|
3633
|
+
return request.put('/api/nurse/updateOutpatientDocument', process_OutpatientDocument_local(_data));
|
|
3656
3634
|
case 2:
|
|
3657
|
-
_yield$
|
|
3658
|
-
data = _yield$
|
|
3635
|
+
_yield$request$put3 = _context96.sent;
|
|
3636
|
+
data = _yield$request$put3.data;
|
|
3659
3637
|
return _context96.abrupt("return", process_OutpatientDocument_remote(data));
|
|
3660
3638
|
case 5:
|
|
3661
3639
|
case "end":
|
|
@@ -3684,7 +3662,7 @@ var NursingBoard = /*#__PURE__*/function () {
|
|
|
3684
3662
|
while (1) switch (_context97.prev = _context97.next) {
|
|
3685
3663
|
case 0:
|
|
3686
3664
|
_context97.next = 2;
|
|
3687
|
-
return
|
|
3665
|
+
return request.get('/api/nursingBoardInside');
|
|
3688
3666
|
case 2:
|
|
3689
3667
|
res = _context97.sent;
|
|
3690
3668
|
return _context97.abrupt("return", res.data);
|
|
@@ -3708,7 +3686,7 @@ var NursingBoard = /*#__PURE__*/function () {
|
|
|
3708
3686
|
while (1) switch (_context98.prev = _context98.next) {
|
|
3709
3687
|
case 0:
|
|
3710
3688
|
_context98.next = 2;
|
|
3711
|
-
return
|
|
3689
|
+
return request.get('/api/getTodayWatchKeepers ');
|
|
3712
3690
|
case 2:
|
|
3713
3691
|
res = _context98.sent;
|
|
3714
3692
|
return _context98.abrupt("return", res.data);
|
|
@@ -3727,15 +3705,15 @@ var NursingBoard = /*#__PURE__*/function () {
|
|
|
3727
3705
|
key: "getNursingBoardData",
|
|
3728
3706
|
value: function () {
|
|
3729
3707
|
var _getNursingBoardData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee99() {
|
|
3730
|
-
var _yield$
|
|
3708
|
+
var _yield$request$get14, data;
|
|
3731
3709
|
return _regeneratorRuntime.wrap(function _callee99$(_context99) {
|
|
3732
3710
|
while (1) switch (_context99.prev = _context99.next) {
|
|
3733
3711
|
case 0:
|
|
3734
3712
|
_context99.next = 2;
|
|
3735
|
-
return
|
|
3713
|
+
return request.get('/api/getNursingBoardData');
|
|
3736
3714
|
case 2:
|
|
3737
|
-
_yield$
|
|
3738
|
-
data = _yield$
|
|
3715
|
+
_yield$request$get14 = _context99.sent;
|
|
3716
|
+
data = _yield$request$get14.data;
|
|
3739
3717
|
return _context99.abrupt("return", data);
|
|
3740
3718
|
case 5:
|
|
3741
3719
|
case "end":
|
|
@@ -3757,7 +3735,7 @@ var NursingBoard = /*#__PURE__*/function () {
|
|
|
3757
3735
|
while (1) switch (_context100.prev = _context100.next) {
|
|
3758
3736
|
case 0:
|
|
3759
3737
|
_context100.next = 2;
|
|
3760
|
-
return
|
|
3738
|
+
return request.put('/api/setTodayWatchKeepers', data);
|
|
3761
3739
|
case 2:
|
|
3762
3740
|
res = _context100.sent;
|
|
3763
3741
|
return _context100.abrupt("return", res.data);
|
|
@@ -3781,7 +3759,7 @@ var NursingBoard = /*#__PURE__*/function () {
|
|
|
3781
3759
|
while (1) switch (_context101.prev = _context101.next) {
|
|
3782
3760
|
case 0:
|
|
3783
3761
|
_context101.next = 2;
|
|
3784
|
-
return
|
|
3762
|
+
return request.get('/api/getSignFrequencySetting');
|
|
3785
3763
|
case 2:
|
|
3786
3764
|
res = _context101.sent;
|
|
3787
3765
|
return _context101.abrupt("return", res.data);
|
|
@@ -3805,7 +3783,7 @@ var NursingBoard = /*#__PURE__*/function () {
|
|
|
3805
3783
|
while (1) switch (_context102.prev = _context102.next) {
|
|
3806
3784
|
case 0:
|
|
3807
3785
|
_context102.next = 2;
|
|
3808
|
-
return
|
|
3786
|
+
return request.put('/api/updateSignFrequencySetting', data);
|
|
3809
3787
|
case 2:
|
|
3810
3788
|
res = _context102.sent;
|
|
3811
3789
|
return _context102.abrupt("return", res.data);
|
|
@@ -3881,7 +3859,7 @@ function doc_setDefault(doc) {
|
|
|
3881
3859
|
}
|
|
3882
3860
|
function __setOneIfArrEmpty(arr) {
|
|
3883
3861
|
// return isEmpty(arr) ? [{} as T] : arr
|
|
3884
|
-
return
|
|
3862
|
+
return _isEmpty(arr) ? [] : arr;
|
|
3885
3863
|
}
|
|
3886
3864
|
function __orderByDatetime(data, key) {
|
|
3887
3865
|
var res = (data !== null && data !== void 0 ? data : []).map(function (_) {
|
|
@@ -3908,12 +3886,12 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
3908
3886
|
while (1) switch (_context103.prev = _context103.next) {
|
|
3909
3887
|
case 0:
|
|
3910
3888
|
_context103.next = 2;
|
|
3911
|
-
return
|
|
3889
|
+
return request.post('/api/getSpecialDatayByParam', data, {
|
|
3912
3890
|
successText: '操作成功!'
|
|
3913
3891
|
});
|
|
3914
3892
|
case 2:
|
|
3915
3893
|
res = _context103.sent;
|
|
3916
|
-
return _context103.abrupt("return",
|
|
3894
|
+
return _context103.abrupt("return", expect_array(res.data));
|
|
3917
3895
|
case 4:
|
|
3918
3896
|
case "end":
|
|
3919
3897
|
return _context103.stop();
|
|
@@ -3934,12 +3912,12 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
3934
3912
|
while (1) switch (_context104.prev = _context104.next) {
|
|
3935
3913
|
case 0:
|
|
3936
3914
|
_context104.next = 2;
|
|
3937
|
-
return
|
|
3915
|
+
return request.post('/api/calculateTotalInputAndOutput', data, {
|
|
3938
3916
|
successText: '操作成功!'
|
|
3939
3917
|
});
|
|
3940
3918
|
case 2:
|
|
3941
3919
|
res = _context104.sent;
|
|
3942
|
-
return _context104.abrupt("return",
|
|
3920
|
+
return _context104.abrupt("return", expect_array(res.data));
|
|
3943
3921
|
case 4:
|
|
3944
3922
|
case "end":
|
|
3945
3923
|
return _context104.stop();
|
|
@@ -3960,7 +3938,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
3960
3938
|
while (1) switch (_context105.prev = _context105.next) {
|
|
3961
3939
|
case 0:
|
|
3962
3940
|
_context105.next = 2;
|
|
3963
|
-
return
|
|
3941
|
+
return request.post('/api/updateNursingDocument', data, {
|
|
3964
3942
|
successText: '操作成功!'
|
|
3965
3943
|
});
|
|
3966
3944
|
case 2:
|
|
@@ -3986,7 +3964,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
3986
3964
|
while (1) switch (_context106.prev = _context106.next) {
|
|
3987
3965
|
case 0:
|
|
3988
3966
|
_context106.next = 2;
|
|
3989
|
-
return
|
|
3967
|
+
return request.post('/api/newNursingDocument', data, {
|
|
3990
3968
|
successText: '操作成功!'
|
|
3991
3969
|
});
|
|
3992
3970
|
case 2:
|
|
@@ -4011,7 +3989,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
4011
3989
|
while (1) switch (_context107.prev = _context107.next) {
|
|
4012
3990
|
case 0:
|
|
4013
3991
|
_context107.next = 2;
|
|
4014
|
-
return
|
|
3992
|
+
return request.get('/api/deleteNursingDocument');
|
|
4015
3993
|
case 2:
|
|
4016
3994
|
return _context107.abrupt("return", _context107.sent.data);
|
|
4017
3995
|
case 3:
|
|
@@ -4034,7 +4012,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
4034
4012
|
while (1) switch (_context108.prev = _context108.next) {
|
|
4035
4013
|
case 0:
|
|
4036
4014
|
_context108.next = 2;
|
|
4037
|
-
return
|
|
4015
|
+
return request.get('/api/getInpatientEmrDocument', {
|
|
4038
4016
|
params: {
|
|
4039
4017
|
id: id
|
|
4040
4018
|
}
|
|
@@ -4062,7 +4040,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
4062
4040
|
while (1) switch (_context109.prev = _context109.next) {
|
|
4063
4041
|
case 0:
|
|
4064
4042
|
_context109.next = 2;
|
|
4065
|
-
return
|
|
4043
|
+
return request.get('/api/importNursingDocument', {
|
|
4066
4044
|
params: {
|
|
4067
4045
|
id: id,
|
|
4068
4046
|
code: code
|
|
@@ -4111,7 +4089,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
4111
4089
|
while (1) switch (_context111.prev = _context111.next) {
|
|
4112
4090
|
case 0:
|
|
4113
4091
|
_context111.next = 2;
|
|
4114
|
-
return
|
|
4092
|
+
return request.get('/api/getHeaderInfoOfInpatientEmr', {
|
|
4115
4093
|
params: {
|
|
4116
4094
|
id: id
|
|
4117
4095
|
}
|
|
@@ -4137,7 +4115,7 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
4137
4115
|
while (1) switch (_context112.prev = _context112.next) {
|
|
4138
4116
|
case 0:
|
|
4139
4117
|
_context112.next = 2;
|
|
4140
|
-
return
|
|
4118
|
+
return request.get('/api/getDeliveryInfo', {
|
|
4141
4119
|
params: {
|
|
4142
4120
|
id: id
|
|
4143
4121
|
}
|
|
@@ -4164,14 +4142,14 @@ var Mchc_Admission_Service = /*#__PURE__*/function (_ModelService6) {
|
|
|
4164
4142
|
while (1) switch (_context113.prev = _context113.next) {
|
|
4165
4143
|
case 0:
|
|
4166
4144
|
_data$params = data.params, idNO = _data$params.idNO, inpatientNO = _data$params.inpatientNO, outpatientNO = _data$params.outpatientNO;
|
|
4167
|
-
filter_obj =
|
|
4145
|
+
filter_obj = filter_obj_to_url_search(data.params);
|
|
4168
4146
|
params = _objectSpread(_objectSpread({}, filter_obj), {}, {
|
|
4169
4147
|
idNO: idNO,
|
|
4170
4148
|
inpatientNO: inpatientNO,
|
|
4171
4149
|
outpatientNO: outpatientNO
|
|
4172
4150
|
});
|
|
4173
4151
|
_context113.next = 5;
|
|
4174
|
-
return
|
|
4152
|
+
return request.get('/api/listPatientLabExamReport', _objectSpread(_objectSpread({}, data), {}, {
|
|
4175
4153
|
params: params
|
|
4176
4154
|
}));
|
|
4177
4155
|
case 5:
|
|
@@ -4236,7 +4214,7 @@ var SMchc_Address = {
|
|
|
4236
4214
|
while (1) switch (_context115.prev = _context115.next) {
|
|
4237
4215
|
case 0:
|
|
4238
4216
|
_context115.next = 2;
|
|
4239
|
-
return
|
|
4217
|
+
return request.get('/api/address/getAddressByCode', {
|
|
4240
4218
|
params: {
|
|
4241
4219
|
code: item === null || item === void 0 ? void 0 : item.code,
|
|
4242
4220
|
downFlag: item === null || item === void 0 ? void 0 : item.downFlag
|
|
@@ -4245,7 +4223,7 @@ var SMchc_Address = {
|
|
|
4245
4223
|
});
|
|
4246
4224
|
case 2:
|
|
4247
4225
|
res = _context115.sent;
|
|
4248
|
-
return _context115.abrupt("return",
|
|
4226
|
+
return _context115.abrupt("return", expect_array(res.data));
|
|
4249
4227
|
case 4:
|
|
4250
4228
|
case "end":
|
|
4251
4229
|
return _context115.stop();
|
|
@@ -4261,10 +4239,10 @@ var SMchc_Address = {
|
|
|
4261
4239
|
case 0:
|
|
4262
4240
|
_context116.prev = 0;
|
|
4263
4241
|
_context116.next = 3;
|
|
4264
|
-
return
|
|
4242
|
+
return sleep(1);
|
|
4265
4243
|
case 3:
|
|
4266
4244
|
_context116.next = 5;
|
|
4267
|
-
return
|
|
4245
|
+
return request.get('/api/address/getAddressByDetail', {
|
|
4268
4246
|
params: {
|
|
4269
4247
|
addressDetail: addressDetail
|
|
4270
4248
|
},
|
|
@@ -4272,7 +4250,7 @@ var SMchc_Address = {
|
|
|
4272
4250
|
});
|
|
4273
4251
|
case 5:
|
|
4274
4252
|
res = _context116.sent;
|
|
4275
|
-
return _context116.abrupt("return",
|
|
4253
|
+
return _context116.abrupt("return", expect_array(res.data));
|
|
4276
4254
|
case 9:
|
|
4277
4255
|
_context116.prev = 9;
|
|
4278
4256
|
_context116.t0 = _context116["catch"](0);
|
|
@@ -4289,11 +4267,11 @@ var SMchc_Address = {
|
|
|
4289
4267
|
return _regeneratorRuntime.wrap(function _callee117$(_context117) {
|
|
4290
4268
|
while (1) switch (_context117.prev = _context117.next) {
|
|
4291
4269
|
case 0:
|
|
4292
|
-
return _context117.abrupt("return",
|
|
4270
|
+
return _context117.abrupt("return", request.get("/api/address/front/getAddress", {
|
|
4293
4271
|
params: {},
|
|
4294
4272
|
unboxing: true
|
|
4295
4273
|
}).then(function (res) {
|
|
4296
|
-
return
|
|
4274
|
+
return expect_array(res.data);
|
|
4297
4275
|
}));
|
|
4298
4276
|
case 1:
|
|
4299
4277
|
case "end":
|
|
@@ -4307,14 +4285,14 @@ var SMchc_Address = {
|
|
|
4307
4285
|
return _regeneratorRuntime.wrap(function _callee118$(_context118) {
|
|
4308
4286
|
while (1) switch (_context118.prev = _context118.next) {
|
|
4309
4287
|
case 0:
|
|
4310
|
-
return _context118.abrupt("return",
|
|
4288
|
+
return _context118.abrupt("return", request.get("/api/address/back/getAddress", {
|
|
4311
4289
|
params: {
|
|
4312
4290
|
code: item === null || item === void 0 ? void 0 : item.code,
|
|
4313
4291
|
addressDetail: addressDetail
|
|
4314
4292
|
},
|
|
4315
4293
|
unboxing: true
|
|
4316
4294
|
}).then(function (res) {
|
|
4317
|
-
return
|
|
4295
|
+
return expect_array(res.data);
|
|
4318
4296
|
}));
|
|
4319
4297
|
case 1:
|
|
4320
4298
|
case "end":
|
|
@@ -4343,15 +4321,15 @@ var SMchc_Address = {
|
|
|
4343
4321
|
case 0:
|
|
4344
4322
|
_context119.prev = 0;
|
|
4345
4323
|
_context119.next = 3;
|
|
4346
|
-
return
|
|
4324
|
+
return sleep(1);
|
|
4347
4325
|
case 3:
|
|
4348
4326
|
_context119.next = 5;
|
|
4349
|
-
return
|
|
4327
|
+
return cache_fetch('getAddressFirst', function () {
|
|
4350
4328
|
return SMchc_Address.getAddressFront();
|
|
4351
4329
|
});
|
|
4352
4330
|
case 5:
|
|
4353
4331
|
res = _context119.sent;
|
|
4354
|
-
return _context119.abrupt("return",
|
|
4332
|
+
return _context119.abrupt("return", expect_array(res));
|
|
4355
4333
|
case 9:
|
|
4356
4334
|
_context119.prev = 9;
|
|
4357
4335
|
_context119.t0 = _context119["catch"](0);
|
|
@@ -4371,15 +4349,15 @@ var SMchc_Address = {
|
|
|
4371
4349
|
case 0:
|
|
4372
4350
|
_context120.prev = 0;
|
|
4373
4351
|
_context120.next = 3;
|
|
4374
|
-
return
|
|
4352
|
+
return sleep(1);
|
|
4375
4353
|
case 3:
|
|
4376
4354
|
_context120.next = 5;
|
|
4377
|
-
return
|
|
4355
|
+
return cache_fetch('getAddressListFirst', function () {
|
|
4378
4356
|
return SMchc_Address.getAddressList();
|
|
4379
4357
|
});
|
|
4380
4358
|
case 5:
|
|
4381
4359
|
res = _context120.sent;
|
|
4382
|
-
return _context120.abrupt("return",
|
|
4360
|
+
return _context120.abrupt("return", expect_array(res));
|
|
4383
4361
|
case 9:
|
|
4384
4362
|
_context120.prev = 9;
|
|
4385
4363
|
_context120.t0 = _context120["catch"](0);
|
|
@@ -4478,7 +4456,7 @@ var SMchc_Knowledges = new (/*#__PURE__*/function (_ModelService8) {
|
|
|
4478
4456
|
while (1) switch (_context123.prev = _context123.next) {
|
|
4479
4457
|
case 0:
|
|
4480
4458
|
_context123.next = 2;
|
|
4481
|
-
return
|
|
4459
|
+
return cache_fetch('knowledges', function () {
|
|
4482
4460
|
return _this12.page({
|
|
4483
4461
|
params: {
|
|
4484
4462
|
size: 9999
|
|
@@ -4488,7 +4466,7 @@ var SMchc_Knowledges = new (/*#__PURE__*/function (_ModelService8) {
|
|
|
4488
4466
|
});
|
|
4489
4467
|
case 2:
|
|
4490
4468
|
res = _context123.sent;
|
|
4491
|
-
return _context123.abrupt("return",
|
|
4469
|
+
return _context123.abrupt("return", expect_array(res.data).map(function (q) {
|
|
4492
4470
|
return {
|
|
4493
4471
|
label: q.title,
|
|
4494
4472
|
value: q.id
|
|
@@ -4510,11 +4488,11 @@ var SMchc_Knowledges = new (/*#__PURE__*/function (_ModelService8) {
|
|
|
4510
4488
|
n: '/knowledges'
|
|
4511
4489
|
});
|
|
4512
4490
|
function format_fn_string(config, name) {
|
|
4513
|
-
var fn =
|
|
4514
|
-
if (
|
|
4491
|
+
var fn = _get(config, name);
|
|
4492
|
+
if (_isFunction(fn)) {
|
|
4515
4493
|
// const fn_str = fn.toString().replaceAll('\r\n', '').replaceAll('\n', '')
|
|
4516
4494
|
var fn_str = fn.toString();
|
|
4517
|
-
|
|
4495
|
+
_set(config, name, "#".concat(fn_str, "#"));
|
|
4518
4496
|
}
|
|
4519
4497
|
}
|
|
4520
4498
|
function make_bf_script_field(fd) {
|
|
@@ -4529,7 +4507,7 @@ function make_bf_script_field(fd) {
|
|
|
4529
4507
|
var example_tmp = "||\n// \u4E0B\u9762\u662F\u4E00\u4E2A\u793A\u4F8B\n// \u5E38\u7528\u7EC4\u4EF6: MC(\u5355\u9009\u3001\u591A\u9009, options, marshal, type), MS(\u4E0B\u62C9 options, marshal, type), MA(\u4E0B\u62C9\u8F93\u5165 options), \n// \u5E38\u7528\u7EC4\u4EF6: Input(\u8F93\u5165\u6846, \u6570\u5B57 {type:number} ), DatePicker(\u65F6\u95F4\u65E5\u671F), MyEditTable(\u8868\u683C), ArrayPanel(\u80CE\u513F)\n [\n {\n \"label\": \"\u793A\u4F8B\u6807\u9898\",\n \"name\": \"\u5B57\u6BB5\",\n \"inputType\": \"MA\", // \u7EC4\u4EF6\u7C7B\u578B MC \u52FE\u9009\u6846 MS \u4E0B\u62C9 MA \u53EF\u9009\u62E9\u8F93\u5165(inputProps\u914D\u7F6Ememorieskey \u53EF\u5347\u7EA7\u4E3A\u8BB0\u5FC6\u7EC4\u4EF6)\n \"width\": 120, // \u8868\u683C\u6240\u5360\u5BBD\u5EA6\n \"layout\": \"2/3\", // \u8868\u5355\u5E03\u5C40\n // hidden: true, // \u8868\u683C\u9690\u85CF\n // isActive: false, // \u8868\u5355\u663E\u793A\n inputProps: { options: '\u7EA2\u8272,\u767D\u8272i,\u7D2B\u8272i', marshal:1, type:'multiple' }, // options \u9009\u9879(\u540E\u7F00i\u4EE3\u8868\u8F93\u5165\u6846) marshal 0\u57FA\u672C\u503C 1\u5E8F\u5217\u5316\u5BF9\u8C61 2\u5BF9\u8C61 type \u914D\u7F6E\u591A\u9009\n processRemote: function(v, form){return v || 'default'}, // \u914D\u7F6E\u8868\u5355\u9ED8\u8BA4\u503C\n checkWarn: function (v) { return v > 5 }, // \u914D\u7F6E\u8868\u5355\u8B66\u544A\n render: function (a, row) { // \u8868\u683C\u81EA\u5B9A\u4E49\u6E32\u67D3, a \u5F53\u524D\u884C\u5B57\u6BB5\u503C, row \u5F53\u524D\u884C\u6570\u636E\n if (a == '\u9633\u6027')\n return c('span', { style: { color: 'red' }, }, a)\n return ( a + 'id:' + row.id ) || '\u9ED8\u8BA4\u503C' // \u8868\u683C\u9ED8\u8BA4\u503C\n }\n }\n ]";
|
|
4530
4508
|
function script_field_template(conf_str) {
|
|
4531
4509
|
var example = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4532
|
-
return "/**\n * @author brainfucker\n * @email lixf@lian-med.com\n * @create date ".concat(
|
|
4510
|
+
return "/**\n * @author brainfucker\n * @email lixf@lian-med.com\n * @create date ".concat(formatDateTime(), "\n */\nvar React = ctx.React, utils = ctx.utils, mchcEnv = ctx.mchcEnv, request = ctx.request, goTo = ctx.goTo;\n\nvar c = React.createElement;\nvar formatDate = utils.formatDate, formatDateTime = utils.formatDateTime, getSearchParamsAll = utils.getSearchParamsAll;\nctx.required = true; // \u8868\u5355\u5FC5\u586B\n\nvar fd = ").concat(conf_str || '[]', "\nret = function (){\n return fd ").concat(example ? example_tmp : '', "\n};");
|
|
4533
4511
|
}
|
|
4534
4512
|
var Mchc_TableConfig_Service = /*#__PURE__*/function (_ModelService9) {
|
|
4535
4513
|
function Mchc_TableConfig_Service() {
|
|
@@ -4541,17 +4519,17 @@ var Mchc_TableConfig_Service = /*#__PURE__*/function (_ModelService9) {
|
|
|
4541
4519
|
key: "process_remote",
|
|
4542
4520
|
value: function process_remote(config, props) {
|
|
4543
4521
|
var _con = _objectSpread({}, config);
|
|
4544
|
-
_con.genColumns =
|
|
4545
|
-
_con.handleBeforePopup =
|
|
4546
|
-
_con.beforeSubmit =
|
|
4547
|
-
var tableColumns =
|
|
4548
|
-
_con.tableColumns =
|
|
4549
|
-
var initialSearchValue =
|
|
4550
|
-
_con.initialSearchValue =
|
|
4551
|
-
var searchParams =
|
|
4552
|
-
_con.searchParams =
|
|
4553
|
-
var searchConfig =
|
|
4554
|
-
_con.searchConfig =
|
|
4522
|
+
_con.genColumns = getSymbolFromDynamicScript(config.genColumns, props);
|
|
4523
|
+
_con.handleBeforePopup = getSymbolFromDynamicScript(config.handleBeforePopup, props);
|
|
4524
|
+
_con.beforeSubmit = getSymbolFromDynamicScript(config.beforeSubmit, props);
|
|
4525
|
+
var tableColumns = getSymbolFromDynamicScript(config.tableColumns, props, []);
|
|
4526
|
+
_con.tableColumns = safeGetFromFuncOrData(tableColumns);
|
|
4527
|
+
var initialSearchValue = getSymbolFromDynamicScript(config.initialSearchValue, props);
|
|
4528
|
+
_con.initialSearchValue = safeGetFromFuncOrData(initialSearchValue);
|
|
4529
|
+
var searchParams = getSymbolFromDynamicScript(config.searchParams, props);
|
|
4530
|
+
_con.searchParams = safeGetFromFuncOrData(searchParams);
|
|
4531
|
+
var searchConfig = getSymbolFromDynamicScript(config.searchConfig, props);
|
|
4532
|
+
_con.searchConfig = safeGetFromFuncOrData(searchConfig);
|
|
4555
4533
|
return _con;
|
|
4556
4534
|
}
|
|
4557
4535
|
}, {
|
|
@@ -4644,7 +4622,7 @@ var SMchc_Courses = new (/*#__PURE__*/function (_ModelService10) {
|
|
|
4644
4622
|
case 0:
|
|
4645
4623
|
sort = _args125.length > 4 && _args125[4] !== undefined ? _args125[4] : '开课时间升序';
|
|
4646
4624
|
_context125.next = 3;
|
|
4647
|
-
return
|
|
4625
|
+
return request.get('/api/reservable-courses', {
|
|
4648
4626
|
params: {
|
|
4649
4627
|
pregnancyId: pregnancyId,
|
|
4650
4628
|
'release.equals': release === '已发布',
|
|
@@ -4676,7 +4654,7 @@ var SMchc_Courses = new (/*#__PURE__*/function (_ModelService10) {
|
|
|
4676
4654
|
while (1) switch (_context126.prev = _context126.next) {
|
|
4677
4655
|
case 0:
|
|
4678
4656
|
_context126.next = 2;
|
|
4679
|
-
return
|
|
4657
|
+
return request.get('/api/courses/reserve', {
|
|
4680
4658
|
params: params
|
|
4681
4659
|
});
|
|
4682
4660
|
case 2:
|
|
@@ -4702,7 +4680,7 @@ var SMchc_Courses = new (/*#__PURE__*/function (_ModelService10) {
|
|
|
4702
4680
|
while (1) switch (_context127.prev = _context127.next) {
|
|
4703
4681
|
case 0:
|
|
4704
4682
|
_context127.next = 2;
|
|
4705
|
-
return
|
|
4683
|
+
return request.get('/api/courses/cancel-reservation', {
|
|
4706
4684
|
params: {
|
|
4707
4685
|
pregnancyId: pregnancyId,
|
|
4708
4686
|
courseId: courseId
|
|
@@ -4731,7 +4709,7 @@ var SMchc_Courses = new (/*#__PURE__*/function (_ModelService10) {
|
|
|
4731
4709
|
while (1) switch (_context128.prev = _context128.next) {
|
|
4732
4710
|
case 0:
|
|
4733
4711
|
_context128.next = 2;
|
|
4734
|
-
return
|
|
4712
|
+
return request.get('/api/courses/sign', {
|
|
4735
4713
|
params: {
|
|
4736
4714
|
id: id,
|
|
4737
4715
|
courseId: courseId
|
|
@@ -4760,7 +4738,7 @@ var SMchc_Courses = new (/*#__PURE__*/function (_ModelService10) {
|
|
|
4760
4738
|
while (1) switch (_context129.prev = _context129.next) {
|
|
4761
4739
|
case 0:
|
|
4762
4740
|
_context129.next = 2;
|
|
4763
|
-
return
|
|
4741
|
+
return request.get('/api/courses/cancel/sign', {
|
|
4764
4742
|
params: {
|
|
4765
4743
|
id: id,
|
|
4766
4744
|
courseId: courseId
|
|
@@ -4786,12 +4764,12 @@ var SMchc_Courses = new (/*#__PURE__*/function (_ModelService10) {
|
|
|
4786
4764
|
});
|
|
4787
4765
|
var mchcEnums = {
|
|
4788
4766
|
common: {
|
|
4789
|
-
caseType:
|
|
4767
|
+
caseType: genEnum({
|
|
4790
4768
|
妊娠高血压: 1,
|
|
4791
4769
|
妊娠糖尿病: 2,
|
|
4792
4770
|
胎心监护: 3
|
|
4793
4771
|
}),
|
|
4794
|
-
period:
|
|
4772
|
+
period: genEnum({
|
|
4795
4773
|
空腹: 0,
|
|
4796
4774
|
早餐后: 1,
|
|
4797
4775
|
午餐前: 2,
|
|
@@ -4802,7 +4780,7 @@ var mchcEnums = {
|
|
|
4802
4780
|
})
|
|
4803
4781
|
},
|
|
4804
4782
|
EarlyPregnancyCheckSurgeryType: {
|
|
4805
|
-
progressStatus:
|
|
4783
|
+
progressStatus: genEnum({
|
|
4806
4784
|
超时: 0,
|
|
4807
4785
|
待预约: 1,
|
|
4808
4786
|
待签到: 2,
|
|
@@ -4812,7 +4790,7 @@ var mchcEnums = {
|
|
|
4812
4790
|
})
|
|
4813
4791
|
},
|
|
4814
4792
|
Questionnaire: {
|
|
4815
|
-
type:
|
|
4793
|
+
type: genEnum({
|
|
4816
4794
|
单选题: 1,
|
|
4817
4795
|
多选题: 2,
|
|
4818
4796
|
下拉题: 3,
|
|
@@ -4822,7 +4800,7 @@ var mchcEnums = {
|
|
|
4822
4800
|
})
|
|
4823
4801
|
},
|
|
4824
4802
|
Doctor: {
|
|
4825
|
-
modalPopup:
|
|
4803
|
+
modalPopup: genEnum({
|
|
4826
4804
|
弹窗: 1,
|
|
4827
4805
|
提醒: 2,
|
|
4828
4806
|
无: 3
|
|
@@ -4839,11 +4817,11 @@ function processTwoCancer_remote$4(data) {
|
|
|
4839
4817
|
return data;
|
|
4840
4818
|
}
|
|
4841
4819
|
function processTwoCancer_local$4(_data) {
|
|
4842
|
-
var
|
|
4820
|
+
var _safe_json_parse_arr;
|
|
4843
4821
|
var data = _objectSpread({}, _data);
|
|
4844
4822
|
var womenHistory = data.womenHealthcareMenstrualHistory;
|
|
4845
4823
|
if (!womenHistory) return _data;
|
|
4846
|
-
var dysmenorrhea__ = (
|
|
4824
|
+
var dysmenorrhea__ = (_safe_json_parse_arr = safe_json_parse_arr(womenHistory.dysmenorrhea__)) === null || _safe_json_parse_arr === void 0 ? void 0 : _safe_json_parse_arr[0];
|
|
4847
4825
|
if (dysmenorrhea__) {
|
|
4848
4826
|
womenHistory.dysmenorrhea = dysmenorrhea__.value;
|
|
4849
4827
|
womenHistory.dysmenorrheaNote = dysmenorrhea__.text;
|
|
@@ -4937,11 +4915,11 @@ function processTwoCancer_remote$3(data) {
|
|
|
4937
4915
|
return data;
|
|
4938
4916
|
}
|
|
4939
4917
|
function processTwoCancer_local$3(_data) {
|
|
4940
|
-
var
|
|
4918
|
+
var _safe_json_parse_arr2;
|
|
4941
4919
|
var data = _objectSpread({}, _data);
|
|
4942
4920
|
var womenHistory = data.womenHealthcareMenstrualHistory;
|
|
4943
4921
|
if (!womenHistory) return _data;
|
|
4944
|
-
var dysmenorrhea__ = (
|
|
4922
|
+
var dysmenorrhea__ = (_safe_json_parse_arr2 = safe_json_parse_arr(womenHistory.dysmenorrhea__)) === null || _safe_json_parse_arr2 === void 0 ? void 0 : _safe_json_parse_arr2[0];
|
|
4945
4923
|
if (dysmenorrhea__) {
|
|
4946
4924
|
womenHistory.dysmenorrhea = dysmenorrhea__.value;
|
|
4947
4925
|
womenHistory.dysmenorrheaNote = dysmenorrhea__.text;
|
|
@@ -5022,36 +5000,36 @@ function processTwoCancer_remote$2(data) {
|
|
|
5022
5000
|
(_data$cervicalCancerM = data.cervicalCancerMedicalHistory) !== null && _data$cervicalCancerM !== void 0 ? _data$cervicalCancerM : {};
|
|
5023
5001
|
// 月经史
|
|
5024
5002
|
var womenHealthcareMenstrualHistory = ['menopause', 'dysmenorrhea'].reduce(function (obj, k) {
|
|
5025
|
-
return
|
|
5003
|
+
return mchcUtils.noteToCommonOption(obj, k);
|
|
5026
5004
|
}, data.womenHealthcareMenstrualHistory);
|
|
5027
5005
|
data.womenHealthcareMenstrualHistory = womenHealthcareMenstrualHistory;
|
|
5028
5006
|
//病史情况
|
|
5029
5007
|
var cervicalCancerMedicalHistory = ['previousCervicalScreening', 'gynecologicalDiseasesHistory'].reduce(function (obj, k) {
|
|
5030
|
-
return
|
|
5008
|
+
return mchcUtils.noteToCommonOption(obj, k);
|
|
5031
5009
|
}, data.cervicalCancerMedicalHistory);
|
|
5032
5010
|
data.cervicalCancerMedicalHistory = cervicalCancerMedicalHistory;
|
|
5033
5011
|
//妇科检查
|
|
5034
5012
|
var cervicalCancerGynecologicExamination = ['vulva', 'secretions', 'vaginal', 'cervix', 'zg', 'appendix'].reduce(function (obj, k) {
|
|
5035
|
-
return
|
|
5013
|
+
return mchcUtils.noteToCommonOption(obj, k);
|
|
5036
5014
|
}, data.cervicalCancerGynecologicExamination);
|
|
5037
5015
|
data.cervicalCancerGynecologicExamination = cervicalCancerGynecologicExamination;
|
|
5038
5016
|
//诊断及指导
|
|
5039
|
-
data.cervicalCancerDiagnosisAndGuidance =
|
|
5017
|
+
data.cervicalCancerDiagnosisAndGuidance = mchcUtils.noteToCommonOption(data.cervicalCancerDiagnosisAndGuidance, 'screeningResults');
|
|
5040
5018
|
// 体格检查
|
|
5041
5019
|
physicalExamination.MyPressure__ = [physicalExamination.systolic, physicalExamination.diastolic];
|
|
5042
5020
|
return data;
|
|
5043
5021
|
}
|
|
5044
5022
|
function processTwoCancer_local$2(_data) {
|
|
5045
5023
|
var _data$womenHealthcare2;
|
|
5046
|
-
var data =
|
|
5024
|
+
var data = _cloneDeep(_data);
|
|
5047
5025
|
// 月经史
|
|
5048
5026
|
var womenHealthcareMenstrualHistory = ['menopause', 'dysmenorrhea'].reduce(function (obj, k) {
|
|
5049
|
-
return
|
|
5027
|
+
return mchcUtils.commonOptionToNote(obj, k);
|
|
5050
5028
|
}, data.womenHealthcareMenstrualHistory);
|
|
5051
5029
|
data.womenHealthcareMenstrualHistory = womenHealthcareMenstrualHistory;
|
|
5052
5030
|
//病史情况
|
|
5053
5031
|
var cervicalCancerMedicalHistory = ['previousCervicalScreening', 'gynecologicalDiseasesHistory'].reduce(function (obj, k) {
|
|
5054
|
-
return
|
|
5032
|
+
return mchcUtils.commonOptionToNote(obj, k);
|
|
5055
5033
|
}, data.cervicalCancerMedicalHistory);
|
|
5056
5034
|
data.cervicalCancerMedicalHistory = cervicalCancerMedicalHistory;
|
|
5057
5035
|
//妇科检查
|
|
@@ -5061,10 +5039,10 @@ function processTwoCancer_local$2(_data) {
|
|
|
5061
5039
|
// }, data.cervicalCancerGynecologicExamination)
|
|
5062
5040
|
// data.cervicalCancerGynecologicExamination = cervicalCancerGynecologicExamination
|
|
5063
5041
|
//诊断及指导
|
|
5064
|
-
data.cervicalCancerDiagnosisAndGuidance =
|
|
5042
|
+
data.cervicalCancerDiagnosisAndGuidance = mchcUtils.commonOptionToNote(data.cervicalCancerDiagnosisAndGuidance, 'screeningResults');
|
|
5065
5043
|
// 体格检查
|
|
5066
5044
|
var physicalExamination = (_data$womenHealthcare2 = data.womenHealthcarePhysicalExamination) !== null && _data$womenHealthcare2 !== void 0 ? _data$womenHealthcare2 : {};
|
|
5067
|
-
var MyPressure__ =
|
|
5045
|
+
var MyPressure__ = safe_json_parse_arr(physicalExamination.MyPressure__);
|
|
5068
5046
|
physicalExamination.systolic = MyPressure__[0];
|
|
5069
5047
|
physicalExamination.diastolic = MyPressure__[1];
|
|
5070
5048
|
data.womenHealthcarePhysicalExamination = physicalExamination;
|
|
@@ -5160,11 +5138,11 @@ function processTwoCancer_remote$1(data) {
|
|
|
5160
5138
|
return data;
|
|
5161
5139
|
}
|
|
5162
5140
|
function processTwoCancer_local$1(_data) {
|
|
5163
|
-
var
|
|
5141
|
+
var _safe_json_parse_arr3;
|
|
5164
5142
|
var data = _objectSpread({}, _data);
|
|
5165
5143
|
var womenHistory = data.womenHealthcareMenstrualHistory;
|
|
5166
5144
|
if (!womenHistory) return _data;
|
|
5167
|
-
var dysmenorrhea__ = (
|
|
5145
|
+
var dysmenorrhea__ = (_safe_json_parse_arr3 = safe_json_parse_arr(womenHistory.dysmenorrhea__)) === null || _safe_json_parse_arr3 === void 0 ? void 0 : _safe_json_parse_arr3[0];
|
|
5168
5146
|
if (dysmenorrhea__) {
|
|
5169
5147
|
womenHistory.dysmenorrhea = dysmenorrhea__.value;
|
|
5170
5148
|
womenHistory.dysmenorrheaNote = dysmenorrhea__.text;
|
|
@@ -5243,10 +5221,10 @@ function processTwoCancer_remote(data) {
|
|
|
5243
5221
|
if (!(data !== null && data !== void 0 && data.id)) return data;
|
|
5244
5222
|
var physicalExamination = (_data$womenHealthcare3 = data.womenHealthcarePhysicalExamination) !== null && _data$womenHealthcare3 !== void 0 ? _data$womenHealthcare3 : {};
|
|
5245
5223
|
// 月经史
|
|
5246
|
-
data.womenHealthcareMenstrualHistory =
|
|
5224
|
+
data.womenHealthcareMenstrualHistory = mchcUtils.autoNoteToCommonOption(data.womenHealthcareMenstrualHistory);
|
|
5247
5225
|
//病史情况
|
|
5248
|
-
data.breastCancerMedicalHistory =
|
|
5249
|
-
data.breastCancerDiagnosisAndGuidance =
|
|
5226
|
+
data.breastCancerMedicalHistory = mchcUtils.autoNoteToCommonOption(data.breastCancerMedicalHistory);
|
|
5227
|
+
data.breastCancerDiagnosisAndGuidance = mchcUtils.autoNoteToCommonOption(data.breastCancerDiagnosisAndGuidance);
|
|
5250
5228
|
//妇科检查
|
|
5251
5229
|
// let BreastCancerGynecologicExamination = (['vulva', 'secretions', 'vaginal', 'cervix', 'zg', 'appendix'] as const)
|
|
5252
5230
|
// .reduce((obj, k) => {
|
|
@@ -5261,12 +5239,12 @@ function processTwoCancer_remote(data) {
|
|
|
5261
5239
|
}
|
|
5262
5240
|
function processTwoCancer_local(_data) {
|
|
5263
5241
|
var _data$womenHealthcare4;
|
|
5264
|
-
var data =
|
|
5242
|
+
var data = _cloneDeep(_data);
|
|
5265
5243
|
// 月经史
|
|
5266
|
-
data.womenHealthcareMenstrualHistory =
|
|
5244
|
+
data.womenHealthcareMenstrualHistory = mchcUtils.autoCommonOptionToNote(data.womenHealthcareMenstrualHistory);
|
|
5267
5245
|
//病史情况
|
|
5268
|
-
data.breastCancerMedicalHistory =
|
|
5269
|
-
data.breastCancerDiagnosisAndGuidance =
|
|
5246
|
+
data.breastCancerMedicalHistory = mchcUtils.autoCommonOptionToNote(data.breastCancerMedicalHistory);
|
|
5247
|
+
data.breastCancerDiagnosisAndGuidance = mchcUtils.autoCommonOptionToNote(data.breastCancerDiagnosisAndGuidance);
|
|
5270
5248
|
//妇科检查
|
|
5271
5249
|
// let BreastCancerGynecologicExamination = (['vulva', 'secretions', 'vaginal', 'cervix', 'zg', 'appendix'] as const)
|
|
5272
5250
|
// .reduce((obj, k) => {
|
|
@@ -5278,7 +5256,7 @@ function processTwoCancer_local(_data) {
|
|
|
5278
5256
|
// 体格检查
|
|
5279
5257
|
var physicalExamination = (_data$womenHealthcare4 = data.womenHealthcarePhysicalExamination) !== null && _data$womenHealthcare4 !== void 0 ? _data$womenHealthcare4 : {};
|
|
5280
5258
|
console.log('physicalExamination', physicalExamination);
|
|
5281
|
-
var MyPressure__ =
|
|
5259
|
+
var MyPressure__ = safe_json_parse_arr(physicalExamination.MyPressure__);
|
|
5282
5260
|
physicalExamination.systolic = MyPressure__[0];
|
|
5283
5261
|
physicalExamination.diastolic = MyPressure__[1];
|
|
5284
5262
|
data.womenHealthcarePhysicalExamination = physicalExamination;
|
|
@@ -5327,7 +5305,7 @@ var BreastCancerScreening_Service = /*#__PURE__*/function (_ModelService15) {
|
|
|
5327
5305
|
return _regeneratorRuntime.wrap(function _callee139$(_context139) {
|
|
5328
5306
|
while (1) switch (_context139.prev = _context139.next) {
|
|
5329
5307
|
case 0:
|
|
5330
|
-
|
|
5308
|
+
mchcLogger.log('abc 1', {
|
|
5331
5309
|
_data: _data
|
|
5332
5310
|
});
|
|
5333
5311
|
_data.breastCancerScreening = processTwoCancer_local(_data.breastCancerScreening);
|
|
@@ -5357,11 +5335,11 @@ var BreastCancerScreening_Service = /*#__PURE__*/function (_ModelService15) {
|
|
|
5357
5335
|
return _regeneratorRuntime.wrap(function _callee140$(_context140) {
|
|
5358
5336
|
while (1) switch (_context140.prev = _context140.next) {
|
|
5359
5337
|
case 0:
|
|
5360
|
-
|
|
5338
|
+
mchcLogger.log('abc 1', {
|
|
5361
5339
|
_data: _data
|
|
5362
5340
|
});
|
|
5363
5341
|
commitData = processTwoCancer_local(_data);
|
|
5364
|
-
|
|
5342
|
+
mchcLogger.log('abc 2', {
|
|
5365
5343
|
commitData: commitData
|
|
5366
5344
|
});
|
|
5367
5345
|
_context140.next = 5;
|
|
@@ -5391,7 +5369,7 @@ var SFubao_BreastCancerScreening = new BreastCancerScreening_Service({
|
|
|
5391
5369
|
});
|
|
5392
5370
|
var SLocal_Dictionary = {
|
|
5393
5371
|
getDictionaries: function getDictionaries() {
|
|
5394
|
-
var store =
|
|
5372
|
+
var store = mchcStore.state;
|
|
5395
5373
|
var _store$dictionaries = store.dictionaries,
|
|
5396
5374
|
dictionaries = _store$dictionaries === void 0 ? {} : _store$dictionaries;
|
|
5397
5375
|
return dictionaries;
|
|
@@ -5450,7 +5428,7 @@ var SLocal_Calculator = {
|
|
|
5450
5428
|
return _regeneratorRuntime.wrap(function _callee141$(_context141) {
|
|
5451
5429
|
while (1) switch (_context141.prev = _context141.next) {
|
|
5452
5430
|
case 0:
|
|
5453
|
-
lmp =
|
|
5431
|
+
lmp = formatDate(_lmp);
|
|
5454
5432
|
_context141.next = 3;
|
|
5455
5433
|
return SLocal_Calculator.calcEddBasedOnLmp(lmp);
|
|
5456
5434
|
case 3:
|
|
@@ -5470,16 +5448,16 @@ var SLocal_Calculator = {
|
|
|
5470
5448
|
// 根据末次月经计算预产期B超
|
|
5471
5449
|
calcEddBasedOnLmp: function calcEddBasedOnLmp(lmp) {
|
|
5472
5450
|
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee142() {
|
|
5473
|
-
var _yield$
|
|
5451
|
+
var _yield$request$get15, data;
|
|
5474
5452
|
return _regeneratorRuntime.wrap(function _callee142$(_context142) {
|
|
5475
5453
|
while (1) switch (_context142.prev = _context142.next) {
|
|
5476
5454
|
case 0:
|
|
5477
5455
|
_context142.next = 2;
|
|
5478
|
-
return
|
|
5456
|
+
return request.get("/api/pregnancyCalc-calcEddByLmp?lmp=".concat(lmp));
|
|
5479
5457
|
case 2:
|
|
5480
|
-
_yield$
|
|
5481
|
-
data = _yield$
|
|
5482
|
-
return _context142.abrupt("return",
|
|
5458
|
+
_yield$request$get15 = _context142.sent;
|
|
5459
|
+
data = _yield$request$get15.data;
|
|
5460
|
+
return _context142.abrupt("return", formatDate(data));
|
|
5483
5461
|
case 5:
|
|
5484
5462
|
case "end":
|
|
5485
5463
|
return _context142.stop();
|
|
@@ -5494,9 +5472,9 @@ var SLocal_Calculator = {
|
|
|
5494
5472
|
return _regeneratorRuntime.wrap(function _callee143$(_context143) {
|
|
5495
5473
|
while (1) switch (_context143.prev = _context143.next) {
|
|
5496
5474
|
case 0:
|
|
5497
|
-
孕0 =
|
|
5475
|
+
孕0 = dayjs(移植时间).subtract(14 + 天数, 'days');
|
|
5498
5476
|
预产期B超时间 = 孕0.add(280, 'days');
|
|
5499
|
-
return _context143.abrupt("return",
|
|
5477
|
+
return _context143.abrupt("return", formatDate(预产期B超时间));
|
|
5500
5478
|
case 3:
|
|
5501
5479
|
case "end":
|
|
5502
5480
|
return _context143.stop();
|
|
@@ -5506,15 +5484,15 @@ var SLocal_Calculator = {
|
|
|
5506
5484
|
},
|
|
5507
5485
|
// 末次月经开始算
|
|
5508
5486
|
calGestationalWeekByLmp: function calGestationalWeekByLmp(lmp) {
|
|
5509
|
-
var defaultDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
5487
|
+
var defaultDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : dayjs().endOf('day');
|
|
5510
5488
|
var diffWeek = defaultDate.diff(lmp, 'week');
|
|
5511
5489
|
var diffDay = defaultDate.diff(lmp, 'day');
|
|
5512
5490
|
return "".concat(diffWeek, "+").concat(diffDay % 7);
|
|
5513
5491
|
},
|
|
5514
5492
|
// 预产期B超开始算
|
|
5515
5493
|
calGestationalWeekBySureEdd: function calGestationalWeekBySureEdd(sureEdd) {
|
|
5516
|
-
var defaultDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
5517
|
-
var sureEddMoment =
|
|
5494
|
+
var defaultDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : dayjs().endOf('day');
|
|
5495
|
+
var sureEddMoment = dayjs(sureEdd).startOf('day');
|
|
5518
5496
|
var startDate = sureEddMoment.subtract(280, 'days');
|
|
5519
5497
|
var diffWeek = defaultDate.diff(startDate, 'week');
|
|
5520
5498
|
var diffDay = defaultDate.diff(startDate, 'day');
|
|
@@ -5530,7 +5508,7 @@ var SLocal_Calculator = {
|
|
|
5530
5508
|
while (1) switch (_context144.prev = _context144.next) {
|
|
5531
5509
|
case 0:
|
|
5532
5510
|
_context144.next = 2;
|
|
5533
|
-
return
|
|
5511
|
+
return request.put("/api/doctor/getGestationalWeek", data);
|
|
5534
5512
|
case 2:
|
|
5535
5513
|
r = _context144.sent;
|
|
5536
5514
|
return _context144.abrupt("return", r.data);
|
|
@@ -5549,7 +5527,7 @@ var SLocal_SystemConfig = {
|
|
|
5549
5527
|
return value;
|
|
5550
5528
|
},
|
|
5551
5529
|
getAll: function getAll() {
|
|
5552
|
-
return
|
|
5530
|
+
return mchcConfig.getAll();
|
|
5553
5531
|
// const state = mchcStore.state
|
|
5554
5532
|
// const config: ISystemConfig | undefined = state?.system?.config
|
|
5555
5533
|
// return config
|
|
@@ -5560,14 +5538,14 @@ var SLocal_State = {
|
|
|
5560
5538
|
return this.userData;
|
|
5561
5539
|
},
|
|
5562
5540
|
get userData() {
|
|
5563
|
-
return
|
|
5541
|
+
return mchcEnv.userData;
|
|
5564
5542
|
},
|
|
5565
5543
|
get isDev() {
|
|
5566
5544
|
var isTestMode = SLocal_SystemConfig.get('systemMode') === 'test';
|
|
5567
|
-
return
|
|
5545
|
+
return mchcEnv.isDev || isTestMode;
|
|
5568
5546
|
},
|
|
5569
5547
|
get isAdmin() {
|
|
5570
|
-
return
|
|
5548
|
+
return mchcEnv.isAdmin;
|
|
5571
5549
|
}
|
|
5572
5550
|
};
|
|
5573
5551
|
var key = 'check_version';
|
|
@@ -5575,20 +5553,20 @@ var SLocal_Version = {
|
|
|
5575
5553
|
// 获取版本
|
|
5576
5554
|
checkVersion: function checkVersion() {
|
|
5577
5555
|
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee145() {
|
|
5578
|
-
var _yield$
|
|
5556
|
+
var _yield$rawRequest$get, data, old;
|
|
5579
5557
|
return _regeneratorRuntime.wrap(function _callee145$(_context145) {
|
|
5580
5558
|
while (1) switch (_context145.prev = _context145.next) {
|
|
5581
5559
|
case 0:
|
|
5582
5560
|
_context145.next = 2;
|
|
5583
|
-
return
|
|
5561
|
+
return rawRequest.get("/".concat(key), {
|
|
5584
5562
|
params: {
|
|
5585
5563
|
t: +new Date()
|
|
5586
5564
|
}
|
|
5587
5565
|
});
|
|
5588
5566
|
case 2:
|
|
5589
|
-
_yield$
|
|
5590
|
-
data = _yield$
|
|
5591
|
-
old =
|
|
5567
|
+
_yield$rawRequest$get = _context145.sent;
|
|
5568
|
+
data = _yield$rawRequest$get.data;
|
|
5569
|
+
old = getMacroValue(key);
|
|
5592
5570
|
return _context145.abrupt("return", old !== (data === null || data === void 0 ? void 0 : data.toString()));
|
|
5593
5571
|
case 6:
|
|
5594
5572
|
case "end":
|
|
@@ -5601,18 +5579,18 @@ var SLocal_Version = {
|
|
|
5601
5579
|
var SLocal_Utils = {};
|
|
5602
5580
|
function resolveSpPath(path) {
|
|
5603
5581
|
var _path$includes;
|
|
5604
|
-
var isSp =
|
|
5582
|
+
var isSp = mchcEnv.isSp;
|
|
5605
5583
|
if (!isSp) return path;
|
|
5606
5584
|
var isIncludeMask = path === null || path === void 0 || (_path$includes = path.includes) === null || _path$includes === void 0 ? void 0 : _path$includes.call(path, '?');
|
|
5607
5585
|
return isIncludeMask ? "".concat(path, "&sp=1") : "".concat(path, "?sp=1");
|
|
5608
5586
|
}
|
|
5609
5587
|
var SLocal_History = {
|
|
5610
5588
|
closeCurrentTab: function closeCurrentTab() {
|
|
5611
|
-
var isSp =
|
|
5589
|
+
var isSp = mchcEnv.isSp;
|
|
5612
5590
|
if (isSp) {
|
|
5613
5591
|
window.close();
|
|
5614
5592
|
} else {
|
|
5615
|
-
|
|
5593
|
+
mchcStore.deleteCurrentTab();
|
|
5616
5594
|
}
|
|
5617
5595
|
},
|
|
5618
5596
|
safe_history_push: function safe_history_push(path, props) {
|
|
@@ -5624,8 +5602,8 @@ var SLocal_History = {
|
|
|
5624
5602
|
},
|
|
5625
5603
|
historyPush: function historyPush(path, state) {
|
|
5626
5604
|
if (!path) return;
|
|
5627
|
-
var history =
|
|
5628
|
-
var isSp =
|
|
5605
|
+
var history = mchcUtils.getGlobalHistory();
|
|
5606
|
+
var isSp = mchcEnv.isSp;
|
|
5629
5607
|
var _url = resolveSpPath(path);
|
|
5630
5608
|
if (isSp) {
|
|
5631
5609
|
window.open(_url);
|
|
@@ -5636,11 +5614,11 @@ var SLocal_History = {
|
|
|
5636
5614
|
}
|
|
5637
5615
|
},
|
|
5638
5616
|
historyReplace: function historyReplace(path, state) {
|
|
5639
|
-
var isSp =
|
|
5617
|
+
var isSp = mchcEnv.isSp;
|
|
5640
5618
|
if (isSp) {
|
|
5641
5619
|
location.replace(path);
|
|
5642
5620
|
} else {
|
|
5643
|
-
var history =
|
|
5621
|
+
var history = mchcUtils.getGlobalHistory();
|
|
5644
5622
|
history.replace(path, state);
|
|
5645
5623
|
}
|
|
5646
5624
|
},
|
|
@@ -5662,17 +5640,17 @@ var SZsy_CtgRecord = {
|
|
|
5662
5640
|
return _regeneratorRuntime.wrap(function _callee146$(_context146) {
|
|
5663
5641
|
while (1) switch (_context146.prev = _context146.next) {
|
|
5664
5642
|
case 0:
|
|
5665
|
-
visitDateStart = q.startDate ?
|
|
5666
|
-
visitDateEnd = q.endDate ?
|
|
5643
|
+
visitDateStart = q.startDate ? formatDate(q.startDate) : undefined;
|
|
5644
|
+
visitDateEnd = q.endDate ? formatDate(q.endDate) : undefined;
|
|
5667
5645
|
_context146.next = 4;
|
|
5668
|
-
return
|
|
5646
|
+
return request.get("/api/ctg/findRecords", {
|
|
5669
5647
|
params: _objectSpread(_objectSpread({}, q), {}, {
|
|
5670
5648
|
visitDateStart: visitDateStart,
|
|
5671
5649
|
visitDateEnd: visitDateEnd
|
|
5672
5650
|
}),
|
|
5673
5651
|
baseURL: baseURL,
|
|
5674
5652
|
headers: {
|
|
5675
|
-
doctorno:
|
|
5653
|
+
doctorno: getSearchParamsValue('doctorno')
|
|
5676
5654
|
}
|
|
5677
5655
|
});
|
|
5678
5656
|
case 4:
|
|
@@ -5692,7 +5670,7 @@ var SZsy_CtgRecord = {
|
|
|
5692
5670
|
while (1) switch (_context147.prev = _context147.next) {
|
|
5693
5671
|
case 0:
|
|
5694
5672
|
_context147.next = 2;
|
|
5695
|
-
return
|
|
5673
|
+
return request.get("/api/ctg/getRecordHistory/".concat(recordId), {
|
|
5696
5674
|
baseURL: baseURL
|
|
5697
5675
|
});
|
|
5698
5676
|
case 2:
|
|
@@ -5717,7 +5695,7 @@ var SZsy_CtgRecord = {
|
|
|
5717
5695
|
while (1) switch (_context148.prev = _context148.next) {
|
|
5718
5696
|
case 0:
|
|
5719
5697
|
_context148.next = 2;
|
|
5720
|
-
return
|
|
5698
|
+
return request.get("/api/ctg/getSliceImages", {
|
|
5721
5699
|
params: {
|
|
5722
5700
|
recordId: recordId
|
|
5723
5701
|
},
|
|
@@ -5742,7 +5720,7 @@ var SZsy_CtgRecord = {
|
|
|
5742
5720
|
case 0:
|
|
5743
5721
|
type = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : 'recordId';
|
|
5744
5722
|
_context149.next = 3;
|
|
5745
|
-
return
|
|
5723
|
+
return request.get("/api/ctg/getReport", {
|
|
5746
5724
|
params: _defineProperty({}, type, id),
|
|
5747
5725
|
baseURL: baseURL
|
|
5748
5726
|
});
|
|
@@ -5763,7 +5741,7 @@ var SZsy_CtgRecord = {
|
|
|
5763
5741
|
while (1) switch (_context150.prev = _context150.next) {
|
|
5764
5742
|
case 0:
|
|
5765
5743
|
_context150.next = 2;
|
|
5766
|
-
return
|
|
5744
|
+
return request.post("/api/ctg/saveRecord", data, {
|
|
5767
5745
|
baseURL: baseURL
|
|
5768
5746
|
});
|
|
5769
5747
|
case 2:
|
|
@@ -5783,7 +5761,7 @@ var SZsy_CtgRecord = {
|
|
|
5783
5761
|
while (1) switch (_context151.prev = _context151.next) {
|
|
5784
5762
|
case 0:
|
|
5785
5763
|
_context151.next = 2;
|
|
5786
|
-
return
|
|
5764
|
+
return request.post("/api/ctg/sign/qrCode/create", {
|
|
5787
5765
|
doctorNo: doctorNo
|
|
5788
5766
|
}, {
|
|
5789
5767
|
baseURL: baseURL
|
|
@@ -5805,7 +5783,7 @@ var SZsy_CtgRecord = {
|
|
|
5805
5783
|
while (1) switch (_context152.prev = _context152.next) {
|
|
5806
5784
|
case 0:
|
|
5807
5785
|
_context152.next = 2;
|
|
5808
|
-
return
|
|
5786
|
+
return request.post("/api/ctg/sign/qrCode/confirm", {
|
|
5809
5787
|
qrCodeIdentity: qrCodeIdentity
|
|
5810
5788
|
}, {
|
|
5811
5789
|
baseURL: baseURL
|
|
@@ -5827,7 +5805,7 @@ var SZsy_CtgRecord = {
|
|
|
5827
5805
|
while (1) switch (_context153.prev = _context153.next) {
|
|
5828
5806
|
case 0:
|
|
5829
5807
|
_context153.next = 2;
|
|
5830
|
-
return
|
|
5808
|
+
return request.post("/api/ctg/sign/signData", data, {
|
|
5831
5809
|
baseURL: baseURL
|
|
5832
5810
|
});
|
|
5833
5811
|
case 2:
|
|
@@ -5856,7 +5834,7 @@ var Yxfy_Doctor_Service = /*#__PURE__*/function (_Mchc_Doctor_Service) {
|
|
|
5856
5834
|
while (1) switch (_context154.prev = _context154.next) {
|
|
5857
5835
|
case 0:
|
|
5858
5836
|
_context154.next = 2;
|
|
5859
|
-
return
|
|
5837
|
+
return request.get('/api/doctor/getVisitEmrEditable', {
|
|
5860
5838
|
params: {
|
|
5861
5839
|
visitId: visitId
|
|
5862
5840
|
}
|
|
@@ -5885,56 +5863,4 @@ function configService() {
|
|
|
5885
5863
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5886
5864
|
Object.assign(ModelService.CONFIG, data);
|
|
5887
5865
|
}
|
|
5888
|
-
|
|
5889
|
-
exports.Mchc_Nurse_Service = Mchc_Nurse_Service;
|
|
5890
|
-
exports.ModelService = ModelService;
|
|
5891
|
-
exports.SFubao_BreastCancerRecord = SFubao_BreastCancerRecord;
|
|
5892
|
-
exports.SFubao_BreastCancerScreening = SFubao_BreastCancerScreening;
|
|
5893
|
-
exports.SFubao_CervicalCancerRecord = SFubao_CervicalCancerRecord;
|
|
5894
|
-
exports.SFubao_CervicalCancerScreening = SFubao_CervicalCancerScreening;
|
|
5895
|
-
exports.SFubao_TwoCancerScreeningFile = SFubao_TwoCancerScreeningFile;
|
|
5896
|
-
exports.SLocal_Calculator = SLocal_Calculator;
|
|
5897
|
-
exports.SLocal_Dictionary = SLocal_Dictionary;
|
|
5898
|
-
exports.SLocal_History = SLocal_History;
|
|
5899
|
-
exports.SLocal_State = SLocal_State;
|
|
5900
|
-
exports.SLocal_SystemConfig = SLocal_SystemConfig;
|
|
5901
|
-
exports.SLocal_Utils = SLocal_Utils;
|
|
5902
|
-
exports.SLocal_Version = SLocal_Version;
|
|
5903
|
-
exports.SMchc_Address = SMchc_Address;
|
|
5904
|
-
exports.SMchc_Admission = SMchc_Admission;
|
|
5905
|
-
exports.SMchc_Common = SMchc_Common;
|
|
5906
|
-
exports.SMchc_Courses = SMchc_Courses;
|
|
5907
|
-
exports.SMchc_Dictionaries = SMchc_Dictionaries;
|
|
5908
|
-
exports.SMchc_Doctor = SMchc_Doctor;
|
|
5909
|
-
exports.SMchc_FormDescriptions = SMchc_FormDescriptions;
|
|
5910
|
-
exports.SMchc_HBvManage = SMchc_HBvManage;
|
|
5911
|
-
exports.SMchc_Knowledges = SMchc_Knowledges;
|
|
5912
|
-
exports.SMchc_Nurse = SMchc_Nurse;
|
|
5913
|
-
exports.SMchc_NursingBoard = SMchc_NursingBoard;
|
|
5914
|
-
exports.SMchc_Pregnancy = SMchc_Pregnancy;
|
|
5915
|
-
exports.SMchc_Questionnaire = SMchc_Questionnaire;
|
|
5916
|
-
exports.SMchc_SyphilisManage = SMchc_SyphilisManage;
|
|
5917
|
-
exports.SMchc_TableConfig = SMchc_TableConfig;
|
|
5918
|
-
exports.SMchc_TemplateTrees = SMchc_TemplateTrees;
|
|
5919
|
-
exports.SMchc_ThalassemiaFollowUp = SMchc_ThalassemiaFollowUp;
|
|
5920
|
-
exports.SMchc_User = SMchc_User;
|
|
5921
|
-
exports.SMchc_WorkQuestions = SMchc_WorkQuestions;
|
|
5922
|
-
exports.SMchc_WorkRecord = SMchc_WorkRecord;
|
|
5923
|
-
exports.SYxfy_Doctor = SYxfy_Doctor;
|
|
5924
|
-
exports.SZsy_CtgRecord = SZsy_CtgRecord;
|
|
5925
|
-
exports.configService = configService;
|
|
5926
|
-
exports.defineFormConfig = defineFormConfig;
|
|
5927
|
-
exports.getCache = getCache;
|
|
5928
|
-
exports.get_lazy = get_lazy;
|
|
5929
|
-
exports.get_preset_form_config = get_preset_form_config;
|
|
5930
|
-
exports.makeGoodQuestionnaire = makeGoodQuestionnaire;
|
|
5931
|
-
exports.mchcEnums = mchcEnums;
|
|
5932
|
-
exports.parseFormDescriptions = parseFormDescriptions;
|
|
5933
|
-
exports.parse_form_item_name_raw = parse_form_item_name_raw;
|
|
5934
|
-
exports.process_OutpatientDocument_local = process_OutpatientDocument_local;
|
|
5935
|
-
exports.process_OutpatientDocument_physicalExam_local = process_OutpatientDocument_physicalExam_local;
|
|
5936
|
-
exports.process_OutpatientDocument_physicalExam_remote = process_OutpatientDocument_physicalExam_remote;
|
|
5937
|
-
exports.process_OutpatientDocument_remote = process_OutpatientDocument_remote;
|
|
5938
|
-
exports.registerErrHandler = registerErrHandler;
|
|
5939
|
-
exports.setCache = setCache;
|
|
5940
|
-
exports.set_preset_form_config = set_preset_form_config;
|
|
5866
|
+
export { Mchc_Doctor_Service, Mchc_Nurse_Service, ModelService, SFubao_BreastCancerRecord, SFubao_BreastCancerScreening, SFubao_CervicalCancerRecord, SFubao_CervicalCancerScreening, SFubao_TwoCancerScreeningFile, SLocal_Calculator, SLocal_Dictionary, SLocal_History, SLocal_State, SLocal_SystemConfig, SLocal_Utils, SLocal_Version, SMchc_Address, SMchc_Admission, SMchc_Common, SMchc_Courses, SMchc_Dictionaries, SMchc_Doctor, SMchc_FormDescriptions, SMchc_HBvManage, SMchc_Knowledges, SMchc_Nurse, SMchc_NursingBoard, SMchc_Pregnancy, SMchc_Questionnaire, SMchc_SyphilisManage, SMchc_TableConfig, SMchc_TemplateTrees, SMchc_ThalassemiaFollowUp, SMchc_User, SMchc_WorkQuestions, SMchc_WorkRecord, SYxfy_Doctor, SZsy_CtgRecord, configService, defineFormConfig, getCache, get_lazy, get_preset_form_config, makeGoodQuestionnaire, mchcEnums, parseFormDescriptions, parse_form_item_name_raw, process_OutpatientDocument_local, process_OutpatientDocument_physicalExam_local, process_OutpatientDocument_physicalExam_remote, process_OutpatientDocument_remote, registerErrHandler, setCache, set_preset_form_config };
|