@yilianjituan/yilian_dgerm 0.0.1-alpha.22 → 0.0.1-alpha.24
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/business/Entry/index.d.ts +5 -0
- package/dist/business/Entry/index.interface.d.ts +7 -0
- package/dist/business/Entry/index.interface.js +1 -0
- package/dist/business/Entry/index.js +8 -0
- package/dist/business/Entry/index.scss +3 -0
- package/dist/business/TestBtn/index.d.ts +4 -0
- package/dist/business/TestBtn/index.interface.d.ts +13 -0
- package/dist/business/TestBtn/index.interface.js +1 -0
- package/dist/business/TestBtn/index.js +12 -0
- package/dist/commonType/globalFun.d.ts +0 -31
- package/dist/commonType/globalFun.js +0 -104
- package/dist/components/DropDownSelect/index.interface.d.ts +6 -2
- package/dist/components/DropDownSelect/index.js +5 -6
- package/dist/components/PageTemplate/index.scss +26 -17
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
var AGuide = function AGuide() {
|
|
4
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
5
|
+
className: "guide_tip"
|
|
6
|
+
}, "\u7EC4\u4EF6\u5F00\u53D1\u6CE8\u610F\u4E8B\u9879\uFF1A", /*#__PURE__*/React.createElement("div", null, "1\u3001\u7EC4\u4EF6\u7EDF\u4E00\u653E\u5728 components \u76EE\u5F55\u4E0B"), /*#__PURE__*/React.createElement("div", null, "2\u3001\u7EC4\u4EF6\u9700\u8981\u5BF9\u5E94\u7684index.md\u6587\u4EF6\u6765\u7F16\u5199\u4F7F\u7528\u793A\u4F8B\uFF0C\u65E0\u8BE5\u6587\u4EF6\u6587\u6863\u5C06\u4E0D\u4F1A\u663E\u73B0"), /*#__PURE__*/React.createElement("div", null, "3\u3001index.md\u6587\u4EF6\u5FC5\u8981\u53C2\u6570title\u548Corder, \u53EF\u53C2\u8003\u5176\u4F59\u5DF2\u5C01\u88C5\u7EC4\u4EF6"), /*#__PURE__*/React.createElement("div", null, "4\u3001\u6BCF\u4E2A\u7EC4\u4EF6\u9700\u8981\u6709\u5BF9\u5E94\u7684\u7C7B\u578B\u6CE8\u89E3"), /*#__PURE__*/React.createElement("div", null, "5\u3001md\u6587\u4EF6\u4E2D\u5F15\u7528tsx\u7EC4\u4EF6\u662F\uFF0C\u5FC5\u987B\u7B26\u5408\u4E00\u822C\u7EC4\u4EF6\u5F15\u7528\u89C4\u5219\uFF0C\u53EF\u5728tsx\u7F16\u5199\u540E\uFF0C\u653E\u5165\u5BF9\u5E94md\u6587\u4EF6\u4E2D "), /*#__PURE__*/React.createElement("div", null, "6\u3001\u82E5\u9700\u8981\u4F7F\u7528\u81EA\u52A8\u751F\u6210API\u8868\u683C\u7684\u529F\u80FD\uFF0C\u5728\u5F15\u5165\u7684\u7C7B\u578B\u6CE8\u89E3\u6587\u4EF6\u4E2D\uFF0C\u5BF9\u6BCF\u4E2A\u53D8\u91CF\u6DFB\u52A0\u63CF\u8FF0\u6027\u6CE8\u91CA ", /*#__PURE__*/React.createElement("br", null), "\u4F8B\u5982\uFF1Acontent\u7684\u6CE8\u91CA\u9700\u8981\u7F16\u5199\u4E24\u4E2A\u53C2\u6570\uFF1A", /*#__PURE__*/React.createElement("br", null), "\uFF081\uFF09 @description \u5C5E\u6027\u63CF\u8FF0 ", /*#__PURE__*/React.createElement("br", null), "\uFF082\uFF09 @default \u9ED8\u8BA4\u503C ", /*#__PURE__*/React.createElement("br", null))));
|
|
7
|
+
};
|
|
8
|
+
export default AGuide;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button } from 'antd';
|
|
4
|
+
var MyBtn = function MyBtn(props) {
|
|
5
|
+
var _props$content = props.content,
|
|
6
|
+
content = _props$content === void 0 ? '测试按钮' : _props$content,
|
|
7
|
+
onClick = props.onClick;
|
|
8
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9
|
+
onClick: onClick
|
|
10
|
+
}), content));
|
|
11
|
+
};
|
|
12
|
+
export default MyBtn;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param paramsInfo {_form 表单, subIndex
|
|
4
|
-
* formList中的数据标识,
|
|
5
|
-
* parentTreeCode: 类型,
|
|
6
|
-
* index formList中的数据标识,
|
|
7
|
-
* subItemIndex formList中的数据标识,
|
|
8
|
-
* isHM 是否健管师,
|
|
9
|
-
* single 单发随访、满意度
|
|
10
|
-
* shareType 分享类型 + filterInitRef 筛选条件
|
|
11
|
-
* }
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare const caleParmsData: (paramsInfo: any) => {};
|
|
15
|
-
export declare const caleParms: (categoryType: any, disease: any, parentTreeCode: string) => {
|
|
16
|
-
treeCodes: any[];
|
|
17
|
-
diseaseIds: any[];
|
|
18
|
-
parentTreeCode?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
treeCodes: any[];
|
|
21
|
-
diseaseIds?: undefined;
|
|
22
|
-
parentTreeCode?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
diseaseIds: any[];
|
|
25
|
-
parentTreeCode: string;
|
|
26
|
-
treeCodes?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
parentTreeCode: string;
|
|
29
|
-
treeCodes?: undefined;
|
|
30
|
-
diseaseIds?: undefined;
|
|
31
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { TemplateType, FilterTypeEnum } from "../commonType/globalEnum";
|
|
8
|
-
|
|
9
|
-
// 计算参数 --- 方案中随访、满意度、用药反馈、专项建档、健管师发送方案中药品的用药反馈
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param paramsInfo {_form 表单, subIndex
|
|
13
|
-
* formList中的数据标识,
|
|
14
|
-
* parentTreeCode: 类型,
|
|
15
|
-
* index formList中的数据标识,
|
|
16
|
-
* subItemIndex formList中的数据标识,
|
|
17
|
-
* isHM 是否健管师,
|
|
18
|
-
* single 单发随访、满意度
|
|
19
|
-
* shareType 分享类型 + filterInitRef 筛选条件
|
|
20
|
-
* }
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export var caleParmsData = function caleParmsData(paramsInfo) {
|
|
24
|
-
var _ref = paramsInfo || {},
|
|
25
|
-
_form = _ref._form,
|
|
26
|
-
subIndex = _ref.subIndex,
|
|
27
|
-
parentTreeCode = _ref.parentTreeCode,
|
|
28
|
-
index = _ref.index,
|
|
29
|
-
subItemIndex = _ref.subItemIndex,
|
|
30
|
-
isHM = _ref.isHM,
|
|
31
|
-
single = _ref.single,
|
|
32
|
-
shareType = _ref.shareType,
|
|
33
|
-
filterInitRef = _ref.filterInitRef,
|
|
34
|
-
visibleStatus = _ref.visibleStatus;
|
|
35
|
-
var params = {};
|
|
36
|
-
if (isHM) {
|
|
37
|
-
var subIndexParams = _form && _form.getFieldValue('cardList')[subIndex] || {};
|
|
38
|
-
var _ref2 = subIndexParams.remindList && subIndexParams.remindList[index] || {},
|
|
39
|
-
type = _ref2.type,
|
|
40
|
-
_ref2$remindDrugList = _ref2.remindDrugList,
|
|
41
|
-
remindDrugList = _ref2$remindDrugList === void 0 ? [] : _ref2$remindDrugList,
|
|
42
|
-
categoryType = _ref2.categoryType,
|
|
43
|
-
disease = _ref2.disease;
|
|
44
|
-
if (type !== TemplateType.CHINESE_MEDICINE) {
|
|
45
|
-
params = caleParms(remindDrugList[subItemIndex].categoryType, remindDrugList[subItemIndex].disease, parentTreeCode);
|
|
46
|
-
} else {
|
|
47
|
-
params = caleParms(categoryType, disease, parentTreeCode);
|
|
48
|
-
}
|
|
49
|
-
} else if (shareType) {
|
|
50
|
-
// 处理分享的额外查询参数
|
|
51
|
-
var _subIndexParams = _form && _form.getFieldsValue() || {};
|
|
52
|
-
var _ref3 = _subIndexParams || {},
|
|
53
|
-
ownerType = _ref3.ownerType;
|
|
54
|
-
params = _objectSpread(_objectSpread({}, filterInitRef), {}, {
|
|
55
|
-
principalType: ownerType || filterInitRef.principalType
|
|
56
|
-
});
|
|
57
|
-
} else if (single) {
|
|
58
|
-
var _subIndexParams2 = _form && _form.getFieldsValue() || {};
|
|
59
|
-
var _ref4 = _subIndexParams2 || {},
|
|
60
|
-
secondGroup = _ref4.secondGroup,
|
|
61
|
-
diseaseIds = _ref4.diseaseIds,
|
|
62
|
-
filterType = _ref4.filterType;
|
|
63
|
-
if (filterType === FilterTypeEnum.FUZZY_SEARCH) {
|
|
64
|
-
params = {
|
|
65
|
-
parentTreeCode: parentTreeCode,
|
|
66
|
-
visibleStatus: visibleStatus
|
|
67
|
-
};
|
|
68
|
-
} else {
|
|
69
|
-
params = _objectSpread(_objectSpread({}, caleParms(secondGroup, diseaseIds, parentTreeCode)), {}, {
|
|
70
|
-
visibleStatus: visibleStatus
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
var _subIndexParams3 = _form && _form.getFieldValue('cardList')[subIndex] || {};
|
|
75
|
-
var _ref5 = _subIndexParams3 || {},
|
|
76
|
-
_categoryType = _ref5.categoryType,
|
|
77
|
-
_disease = _ref5.disease;
|
|
78
|
-
params = caleParms(_categoryType, _disease, parentTreeCode);
|
|
79
|
-
}
|
|
80
|
-
return params;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// 处理参数
|
|
84
|
-
export var caleParms = function caleParms(categoryType, disease, parentTreeCode) {
|
|
85
|
-
if (categoryType && disease) {
|
|
86
|
-
return {
|
|
87
|
-
treeCodes: [categoryType],
|
|
88
|
-
diseaseIds: Array.isArray(disease) ? disease : [disease]
|
|
89
|
-
};
|
|
90
|
-
} else if (categoryType) {
|
|
91
|
-
return {
|
|
92
|
-
treeCodes: [categoryType]
|
|
93
|
-
};
|
|
94
|
-
} else if (Array.isArray(disease) ? disease.length > 0 : disease) {
|
|
95
|
-
return {
|
|
96
|
-
diseaseIds: Array.isArray(disease) ? disease : [disease],
|
|
97
|
-
parentTreeCode: parentTreeCode
|
|
98
|
-
};
|
|
99
|
-
} else {
|
|
100
|
-
return {
|
|
101
|
-
parentTreeCode: parentTreeCode
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
};
|
|
@@ -56,7 +56,11 @@ export interface DropDownSelectProps extends SelectProps {
|
|
|
56
56
|
*/
|
|
57
57
|
onChange?: (value: any) => void;
|
|
58
58
|
/**
|
|
59
|
-
* @description
|
|
59
|
+
* @description 动态参数,执行查询需要执行之前处理的参数
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
dynamicParameter?: any;
|
|
62
|
+
/**
|
|
63
|
+
* @description 动态参数,处理动态参数的方法
|
|
64
|
+
*/
|
|
65
|
+
beforeSearch?: (params: any) => void;
|
|
62
66
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["url", "method", "handleSelect", "showValue", "customInput", "searchValue", "additionalParameters", "
|
|
2
|
+
var _excluded = ["url", "method", "handleSelect", "showValue", "customInput", "searchValue", "additionalParameters", "dynamicParameter", "beforeSearch", "filterOptionsCallback", "onChange", "mode"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
5
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -25,7 +25,6 @@ import React, { useEffect, useState, useRef } from 'react';
|
|
|
25
25
|
import { Select, Spin } from "antd";
|
|
26
26
|
import { http } from "../../commonAxios/http";
|
|
27
27
|
import _ from 'lodash';
|
|
28
|
-
import { caleParmsData } from "../../commonType/globalFun";
|
|
29
28
|
var Option = Select.Option;
|
|
30
29
|
var Index = function Index(props) {
|
|
31
30
|
var url = props.url,
|
|
@@ -37,8 +36,9 @@ var Index = function Index(props) {
|
|
|
37
36
|
customInput = _props$customInput === void 0 ? false : _props$customInput,
|
|
38
37
|
searchValue = props.searchValue,
|
|
39
38
|
additionalParameters = props.additionalParameters,
|
|
40
|
-
_props$
|
|
41
|
-
|
|
39
|
+
_props$dynamicParamet = props.dynamicParameter,
|
|
40
|
+
dynamicParameter = _props$dynamicParamet === void 0 ? undefined : _props$dynamicParamet,
|
|
41
|
+
beforeSearch = props.beforeSearch,
|
|
42
42
|
filterOptionsCallback = props.filterOptionsCallback,
|
|
43
43
|
_onChange = props.onChange,
|
|
44
44
|
_props$mode = props.mode,
|
|
@@ -92,8 +92,7 @@ var Index = function Index(props) {
|
|
|
92
92
|
while (1) switch (_context2.prev = _context2.next) {
|
|
93
93
|
case 0:
|
|
94
94
|
setSelectState(true);
|
|
95
|
-
|
|
96
|
-
_additionalParameters = formInfo ? caleParmsData(formInfo) : additionalParameters;
|
|
95
|
+
_additionalParameters = dynamicParameter && beforeSearch ? beforeSearch(dynamicParameter) : additionalParameters;
|
|
97
96
|
_context2.next = 4;
|
|
98
97
|
return inquireDiseases(_objectSpread(_defineProperty(_defineProperty(_defineProperty({}, searchValue, paramsRef.current), "pageNo", pageRef.current), "pageSize", 10), _additionalParameters ? _additionalParameters : {}));
|
|
99
98
|
case 4:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.page-template{
|
|
1
|
+
.page-template {
|
|
2
2
|
|
|
3
|
-
.ant-form-inline{
|
|
3
|
+
.ant-form-inline {
|
|
4
4
|
|
|
5
5
|
.ant-form-item {
|
|
6
6
|
|
|
@@ -8,21 +8,23 @@
|
|
|
8
8
|
// width: 80px;
|
|
9
9
|
// }
|
|
10
10
|
|
|
11
|
-
.ant-select{
|
|
11
|
+
.ant-select {
|
|
12
12
|
top: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.ant-input-group-addon{
|
|
15
|
+
.ant-input-group-addon {
|
|
16
16
|
|
|
17
|
-
.ant-select{
|
|
17
|
+
.ant-select {
|
|
18
18
|
width: auto;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.ant-select
|
|
22
|
+
.ant-select,
|
|
23
|
+
.ant-input,
|
|
24
|
+
.ant-input-number {
|
|
23
25
|
width: 200px;
|
|
24
26
|
|
|
25
|
-
&.ant-calendar-picker-input{
|
|
27
|
+
&.ant-calendar-picker-input {
|
|
26
28
|
width: auto;
|
|
27
29
|
min-width: 200px;
|
|
28
30
|
}
|
|
@@ -42,40 +44,47 @@
|
|
|
42
44
|
margin-bottom: 5px;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
47
|
+
|
|
45
48
|
.extra-filter-box {
|
|
46
49
|
display: flex;
|
|
47
50
|
flex-wrap: wrap;
|
|
51
|
+
|
|
48
52
|
& .ant-form-item {
|
|
49
53
|
margin-bottom: 5px;
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
.ant-table-thead
|
|
58
|
+
.ant-table-thead>tr>th,
|
|
59
|
+
.ant-table-tbody>tr>td {
|
|
55
60
|
text-align: center;
|
|
56
61
|
min-width: 80px;
|
|
57
62
|
max-width: 230px;
|
|
58
63
|
}
|
|
59
|
-
|
|
60
|
-
&__filter{
|
|
61
64
|
|
|
62
|
-
|
|
65
|
+
&__filter {
|
|
66
|
+
|
|
67
|
+
.actions {
|
|
63
68
|
|
|
64
|
-
.ant-btn{
|
|
69
|
+
.ant-btn {
|
|
65
70
|
margin-right: 8px;
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
// 科室主题颜色
|
|
70
|
-
.actions-theme{
|
|
71
|
-
.ant-btn{
|
|
75
|
+
.actions-theme {
|
|
76
|
+
.ant-btn {
|
|
72
77
|
margin-right: 8px;
|
|
73
78
|
background: #00998F;
|
|
74
79
|
}
|
|
75
|
-
|
|
80
|
+
|
|
81
|
+
.ant-btn:hover {
|
|
82
|
+
background: #03b1a6;
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
}
|
|
78
|
-
|
|
86
|
+
|
|
87
|
+
.radioInfos {
|
|
79
88
|
margin-left: 10px;
|
|
80
89
|
}
|
|
81
|
-
}
|
|
90
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export { default as BigImage } from './components/BigImage';
|
|
|
12
12
|
export { default as VideoProgressModal } from './components/VideoProgressModal';
|
|
13
13
|
export { default as NumberInput } from './components/NumberInput';
|
|
14
14
|
export { default as TabsMode } from './components/TabsMode';
|
|
15
|
+
export { default as TestBtn } from './business/TestBtn';
|
package/dist/index.js
CHANGED
|
@@ -11,4 +11,5 @@ export { default as SuperCascader } from "./components/SuperCascader";
|
|
|
11
11
|
export { default as BigImage } from "./components/BigImage";
|
|
12
12
|
export { default as VideoProgressModal } from "./components/VideoProgressModal";
|
|
13
13
|
export { default as NumberInput } from "./components/NumberInput";
|
|
14
|
-
export { default as TabsMode } from "./components/TabsMode";
|
|
14
|
+
export { default as TabsMode } from "./components/TabsMode";
|
|
15
|
+
export { default as TestBtn } from "./business/TestBtn";
|