@kmkf-fe-packages/basic-components 1.0.10-beta.13 → 1.0.10-beta.15
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.esm.js +28 -353
- package/dist/index.js +25 -351
- package/dist/src/apaas/ApaasInput/index.d.ts +0 -1
- package/dist/src/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/src/apaas/SubForm/index.d.ts +0 -26
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo
|
|
2
|
-
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form,
|
|
1
|
+
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo } from 'react';
|
|
2
|
+
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Tabs, ConfigProvider, Pagination, Popover, Table } from 'antd';
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, cloneDeep, difference, differenceWith } from 'lodash';
|
|
8
7
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
8
|
+
import { cloneDeep, difference, differenceWith } from 'lodash';
|
|
9
9
|
import { useDebounceEffect } from 'ahooks';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
11
|
import BigNumber from 'bignumber.js';
|
|
@@ -511,12 +511,11 @@ var ApaasDate = function ApaasDate(props) {
|
|
|
511
511
|
}, otherProps));
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
var _excluded$1 = ["isNumber", "replaceWarn"
|
|
514
|
+
var _excluded$1 = ["isNumber", "replaceWarn"];
|
|
515
515
|
function ApaasInput(props) {
|
|
516
516
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
517
517
|
var isNumber = props.isNumber,
|
|
518
518
|
replaceWarn = props.replaceWarn,
|
|
519
|
-
precision = props.precision,
|
|
520
519
|
other = _objectWithoutProperties(props, _excluded$1);
|
|
521
520
|
var handleBlur = function handleBlur(e) {
|
|
522
521
|
// 去除头尾空格
|
|
@@ -526,12 +525,8 @@ function ApaasInput(props) {
|
|
|
526
525
|
typeof onChange === 'function' && onChange(e);
|
|
527
526
|
typeof onBlur === 'function' && onBlur(e);
|
|
528
527
|
};
|
|
529
|
-
return isNumber ?
|
|
530
|
-
/*#__PURE__*/
|
|
531
528
|
// @ts-ignore
|
|
532
|
-
React.createElement(InputNumber, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
533
|
-
precision: precision === 'limit' ? undefined : precision
|
|
534
|
-
})) : /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
529
|
+
return isNumber ? /*#__PURE__*/React.createElement(InputNumber, _objectSpread2({}, other)) : /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
535
530
|
onBlur: handleBlur
|
|
536
531
|
}));
|
|
537
532
|
}
|
|
@@ -7632,329 +7627,6 @@ function withFormItem(WrappedComponent) {
|
|
|
7632
7627
|
};
|
|
7633
7628
|
}
|
|
7634
7629
|
|
|
7635
|
-
/*
|
|
7636
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
7637
|
-
* @Date: 2022-09-13 11:06:09
|
|
7638
|
-
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
7639
|
-
* @LastEditTime: 2022-11-04 15:55:10
|
|
7640
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
7641
|
-
* @Description:
|
|
7642
|
-
*
|
|
7643
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
7644
|
-
*/
|
|
7645
|
-
var extendRequest = extend$1({});
|
|
7646
|
-
|
|
7647
|
-
var WidgetMap = {
|
|
7648
|
-
INPUT: 'input',
|
|
7649
|
-
TEXTAREA: 'textarea'
|
|
7650
|
-
};
|
|
7651
|
-
var pageSize = 10;
|
|
7652
|
-
var SubForm = function SubForm(props) {
|
|
7653
|
-
var _selectOptions$;
|
|
7654
|
-
var value = props.value,
|
|
7655
|
-
onChange = props.onChange,
|
|
7656
|
-
needFilterShopByPermission = props.needFilterShopByPermission,
|
|
7657
|
-
_props$subConfig = props.subConfig,
|
|
7658
|
-
config = _props$subConfig.config,
|
|
7659
|
-
flowStatus = _props$subConfig.flowStatus,
|
|
7660
|
-
flowTemplateKey = _props$subConfig.flowTemplateKey,
|
|
7661
|
-
nodeId = _props$subConfig.nodeId,
|
|
7662
|
-
workOrderTemplateId = _props$subConfig.workOrderTemplateId;
|
|
7663
|
-
var ref = useRef(null);
|
|
7664
|
-
var _useState = useState(false),
|
|
7665
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
7666
|
-
open = _useState2[0],
|
|
7667
|
-
setOpen = _useState2[1];
|
|
7668
|
-
var _useState3 = useState(''),
|
|
7669
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
7670
|
-
selectKey = _useState4[0],
|
|
7671
|
-
setSelectKey = _useState4[1];
|
|
7672
|
-
var _useState5 = useState(''),
|
|
7673
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
7674
|
-
inputValue = _useState6[0],
|
|
7675
|
-
setInputValue = _useState6[1];
|
|
7676
|
-
var _useState7 = useState([]),
|
|
7677
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
7678
|
-
list = _useState8[0],
|
|
7679
|
-
setList = _useState8[1];
|
|
7680
|
-
var _useState9 = useState(1),
|
|
7681
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
7682
|
-
pageNo = _useState10[0],
|
|
7683
|
-
setPageNo = _useState10[1];
|
|
7684
|
-
var _useState11 = useState(true),
|
|
7685
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
7686
|
-
hasMore = _useState12[0],
|
|
7687
|
-
setHasMore = _useState12[1];
|
|
7688
|
-
var updateHandle = function updateHandle(val, index, type) {
|
|
7689
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
7690
|
-
var newValue = JSON.parse(JSON.stringify(value));
|
|
7691
|
-
newValue[index][type] = val;
|
|
7692
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newValue));
|
|
7693
|
-
}
|
|
7694
|
-
};
|
|
7695
|
-
var column = [{
|
|
7696
|
-
dataIndex: 'index',
|
|
7697
|
-
title: '序号',
|
|
7698
|
-
width: 70,
|
|
7699
|
-
render: function render(val, record, index) {
|
|
7700
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7701
|
-
style: {
|
|
7702
|
-
width: 25
|
|
7703
|
-
}
|
|
7704
|
-
}, index + 1);
|
|
7705
|
-
}
|
|
7706
|
-
}].concat(_toConsumableArray(config.filter(function (t) {
|
|
7707
|
-
return t.isShow;
|
|
7708
|
-
}).map(function (t) {
|
|
7709
|
-
return {
|
|
7710
|
-
dataIndex: t.key,
|
|
7711
|
-
title: /*#__PURE__*/React.createElement("div", null, t.isRequired ? /*#__PURE__*/React.createElement("span", {
|
|
7712
|
-
style: {
|
|
7713
|
-
color: 'red'
|
|
7714
|
-
}
|
|
7715
|
-
}, "*") : null, t.name),
|
|
7716
|
-
width: 120,
|
|
7717
|
-
render: function render(val, record, index) {
|
|
7718
|
-
// @ts-ignore
|
|
7719
|
-
var precisionValue = t.precision === 'limit' ? undefined : t.precision;
|
|
7720
|
-
return !t.isEdit ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
7721
|
-
value: val,
|
|
7722
|
-
precision: precisionValue,
|
|
7723
|
-
onChange: function onChange(e) {
|
|
7724
|
-
return updateHandle(e, index, t.key);
|
|
7725
|
-
}
|
|
7726
|
-
}) : /*#__PURE__*/React.createElement(Input, {
|
|
7727
|
-
value: val,
|
|
7728
|
-
onChange: function onChange(e) {
|
|
7729
|
-
var _e$target;
|
|
7730
|
-
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
|
|
7731
|
-
}
|
|
7732
|
-
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
7733
|
-
}
|
|
7734
|
-
};
|
|
7735
|
-
})), [{
|
|
7736
|
-
dataIndex: 'operation',
|
|
7737
|
-
title: '操作',
|
|
7738
|
-
width: 70,
|
|
7739
|
-
fixed: 'right',
|
|
7740
|
-
render: function render(val, record, index) {
|
|
7741
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
7742
|
-
type: "link",
|
|
7743
|
-
onClick: function onClick() {
|
|
7744
|
-
return deleteHandle(record.uuid);
|
|
7745
|
-
}
|
|
7746
|
-
}, "\u5220\u9664");
|
|
7747
|
-
}
|
|
7748
|
-
}]);
|
|
7749
|
-
var columsSearch = useMemo(function () {
|
|
7750
|
-
return [{
|
|
7751
|
-
dataIndex: 'index',
|
|
7752
|
-
title: '序号',
|
|
7753
|
-
render: function render(val, record, index) {
|
|
7754
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7755
|
-
style: {
|
|
7756
|
-
width: 25
|
|
7757
|
-
}
|
|
7758
|
-
}, index + 1);
|
|
7759
|
-
}
|
|
7760
|
-
}].concat(_toConsumableArray(config.map(function (t) {
|
|
7761
|
-
return {
|
|
7762
|
-
dataIndex: t.key,
|
|
7763
|
-
title: t.name
|
|
7764
|
-
};
|
|
7765
|
-
})));
|
|
7766
|
-
}, [config]);
|
|
7767
|
-
var valueMap = useMemo(function () {
|
|
7768
|
-
return config.reduce(function (prv, next) {
|
|
7769
|
-
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = next.key;
|
|
7770
|
-
return prv;
|
|
7771
|
-
}, {});
|
|
7772
|
-
}, [config]);
|
|
7773
|
-
var selectOptions = useMemo(function () {
|
|
7774
|
-
var _options$;
|
|
7775
|
-
var options = config.filter(function (t) {
|
|
7776
|
-
return t.isShow;
|
|
7777
|
-
}).map(function (item) {
|
|
7778
|
-
return {
|
|
7779
|
-
label: item.name,
|
|
7780
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
7781
|
-
};
|
|
7782
|
-
});
|
|
7783
|
-
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
7784
|
-
return options;
|
|
7785
|
-
}, [config]);
|
|
7786
|
-
var deleteHandle = function deleteHandle(uuid) {
|
|
7787
|
-
var newList = value.filter(function (item) {
|
|
7788
|
-
return item.uuid !== uuid;
|
|
7789
|
-
});
|
|
7790
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
7791
|
-
};
|
|
7792
|
-
var onScrollCapture = function onScrollCapture(e) {
|
|
7793
|
-
if (e.target.scrollTop + e.target.clientHeight >= e.target.scrollHeight) {
|
|
7794
|
-
if (hasMore) {
|
|
7795
|
-
getWorkOrderList({
|
|
7796
|
-
pageNo: pageNo + 1
|
|
7797
|
-
});
|
|
7798
|
-
setPageNo(pageNo + 1);
|
|
7799
|
-
}
|
|
7800
|
-
}
|
|
7801
|
-
};
|
|
7802
|
-
var getWorkOrderList = /*#__PURE__*/function () {
|
|
7803
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
7804
|
-
var _ref2,
|
|
7805
|
-
_ref2$pageNo,
|
|
7806
|
-
pageNo,
|
|
7807
|
-
params,
|
|
7808
|
-
res,
|
|
7809
|
-
data,
|
|
7810
|
-
success,
|
|
7811
|
-
newList,
|
|
7812
|
-
_args = arguments;
|
|
7813
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7814
|
-
while (1) switch (_context.prev = _context.next) {
|
|
7815
|
-
case 0:
|
|
7816
|
-
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo;
|
|
7817
|
-
params = {
|
|
7818
|
-
flowNodeId: nodeId,
|
|
7819
|
-
flowTemplateKey: flowTemplateKey === null || flowTemplateKey === void 0 ? void 0 : flowTemplateKey[1],
|
|
7820
|
-
pageNo: pageNo,
|
|
7821
|
-
pageSize: pageSize,
|
|
7822
|
-
templateKey: workOrderTemplateId,
|
|
7823
|
-
needReturnRepeatValue: true,
|
|
7824
|
-
needFilterShopByPermission: needFilterShopByPermission,
|
|
7825
|
-
queryComponents: [{
|
|
7826
|
-
key: 'flowStatus',
|
|
7827
|
-
symbol: 'in',
|
|
7828
|
-
value: flowStatus
|
|
7829
|
-
}]
|
|
7830
|
-
};
|
|
7831
|
-
if (selectKey && inputValue) {
|
|
7832
|
-
params.queryComponents = [{
|
|
7833
|
-
key: 'flowStatus',
|
|
7834
|
-
symbol: 'in',
|
|
7835
|
-
value: flowStatus
|
|
7836
|
-
}, {
|
|
7837
|
-
key: selectKey,
|
|
7838
|
-
symbol: 'in',
|
|
7839
|
-
value: [inputValue]
|
|
7840
|
-
}];
|
|
7841
|
-
}
|
|
7842
|
-
_context.next = 5;
|
|
7843
|
-
return extendRequest('/qy/view/workOrderList', {
|
|
7844
|
-
method: 'post',
|
|
7845
|
-
data: params
|
|
7846
|
-
});
|
|
7847
|
-
case 5:
|
|
7848
|
-
res = _context.sent;
|
|
7849
|
-
data = res.data, success = res.success;
|
|
7850
|
-
if (success) {
|
|
7851
|
-
newList = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
7852
|
-
var params = {};
|
|
7853
|
-
Object.keys(item.jsonMap).forEach(function (key) {
|
|
7854
|
-
if (valueMap[key]) {
|
|
7855
|
-
params[valueMap[key]] = item.jsonMap[key];
|
|
7856
|
-
}
|
|
7857
|
-
});
|
|
7858
|
-
return params;
|
|
7859
|
-
});
|
|
7860
|
-
if (pageNo === 1) {
|
|
7861
|
-
setList(newList);
|
|
7862
|
-
} else {
|
|
7863
|
-
setList([].concat(_toConsumableArray(list), _toConsumableArray(newList)));
|
|
7864
|
-
setHasMore((data === null || data === void 0 ? void 0 : data.list.length) === pageSize);
|
|
7865
|
-
}
|
|
7866
|
-
}
|
|
7867
|
-
case 8:
|
|
7868
|
-
case "end":
|
|
7869
|
-
return _context.stop();
|
|
7870
|
-
}
|
|
7871
|
-
}, _callee);
|
|
7872
|
-
}));
|
|
7873
|
-
return function getWorkOrderList() {
|
|
7874
|
-
return _ref.apply(this, arguments);
|
|
7875
|
-
};
|
|
7876
|
-
}();
|
|
7877
|
-
useEffect(function () {
|
|
7878
|
-
setPageNo(1);
|
|
7879
|
-
getWorkOrderList({
|
|
7880
|
-
pageNo: 1
|
|
7881
|
-
});
|
|
7882
|
-
}, []);
|
|
7883
|
-
useEffect(function () {
|
|
7884
|
-
getWorkOrderList({
|
|
7885
|
-
pageNo: 1
|
|
7886
|
-
});
|
|
7887
|
-
}, [inputValue]);
|
|
7888
|
-
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
7889
|
-
setOpen(newOpen);
|
|
7890
|
-
};
|
|
7891
|
-
var onChangeInput = useCallback(debounce(function (val) {
|
|
7892
|
-
setInputValue(val);
|
|
7893
|
-
}, 1000), []);
|
|
7894
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
7895
|
-
style: {
|
|
7896
|
-
width: '100px'
|
|
7897
|
-
},
|
|
7898
|
-
options: selectOptions,
|
|
7899
|
-
defaultValue: selectOptions === null || selectOptions === void 0 ? void 0 : (_selectOptions$ = selectOptions[0]) === null || _selectOptions$ === void 0 ? void 0 : _selectOptions$.value,
|
|
7900
|
-
value: selectKey,
|
|
7901
|
-
onChange: setSelectKey
|
|
7902
|
-
}), /*#__PURE__*/React.createElement(Popover, {
|
|
7903
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
7904
|
-
ref: ref,
|
|
7905
|
-
onScrollCapture: onScrollCapture,
|
|
7906
|
-
style: {
|
|
7907
|
-
height: 320,
|
|
7908
|
-
overflowY: 'scroll',
|
|
7909
|
-
overflowX: 'auto'
|
|
7910
|
-
}
|
|
7911
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
7912
|
-
columns: columsSearch,
|
|
7913
|
-
dataSource: list,
|
|
7914
|
-
rowKey: 'index',
|
|
7915
|
-
size: "small",
|
|
7916
|
-
pagination: false,
|
|
7917
|
-
scroll: {
|
|
7918
|
-
x: '100%'
|
|
7919
|
-
},
|
|
7920
|
-
locale: {
|
|
7921
|
-
emptyText: '暂无数据'
|
|
7922
|
-
},
|
|
7923
|
-
onRow: function onRow(record) {
|
|
7924
|
-
return {
|
|
7925
|
-
onClick: function onClick() {
|
|
7926
|
-
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, record), {}, {
|
|
7927
|
-
uuid: uuid()
|
|
7928
|
-
})]));
|
|
7929
|
-
setOpen(false);
|
|
7930
|
-
}
|
|
7931
|
-
};
|
|
7932
|
-
}
|
|
7933
|
-
})),
|
|
7934
|
-
trigger: "click",
|
|
7935
|
-
placement: "bottom",
|
|
7936
|
-
open: open,
|
|
7937
|
-
onOpenChange: handleOpenChange
|
|
7938
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
7939
|
-
allowClear: true,
|
|
7940
|
-
onChange: function onChange(e) {
|
|
7941
|
-
onChangeInput(e.target.value);
|
|
7942
|
-
}
|
|
7943
|
-
}))), /*#__PURE__*/React.createElement(Table, {
|
|
7944
|
-
columns: column,
|
|
7945
|
-
dataSource: value,
|
|
7946
|
-
rowKey: 'uuid',
|
|
7947
|
-
size: "small",
|
|
7948
|
-
pagination: false,
|
|
7949
|
-
scroll: {
|
|
7950
|
-
x: '100%'
|
|
7951
|
-
},
|
|
7952
|
-
locale: {
|
|
7953
|
-
emptyText: '暂无数据'
|
|
7954
|
-
}
|
|
7955
|
-
}));
|
|
7956
|
-
};
|
|
7957
|
-
|
|
7958
7630
|
var BuyerNick = function BuyerNick(props) {
|
|
7959
7631
|
var _props$value = props.value,
|
|
7960
7632
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -8239,6 +7911,18 @@ var AliPay = function AliPay(props) {
|
|
|
8239
7911
|
})));
|
|
8240
7912
|
};
|
|
8241
7913
|
|
|
7914
|
+
/*
|
|
7915
|
+
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
7916
|
+
* @Date: 2022-09-13 11:06:09
|
|
7917
|
+
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
7918
|
+
* @LastEditTime: 2022-11-04 15:55:10
|
|
7919
|
+
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
7920
|
+
* @Description:
|
|
7921
|
+
*
|
|
7922
|
+
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
7923
|
+
*/
|
|
7924
|
+
var extendRequest = extend$1({});
|
|
7925
|
+
|
|
8242
7926
|
var css_248z$5 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.goodsBox .right-context {\n font-size: 12px;\n}\n.goodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.goodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.goodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n.goods-imgBox .add-btn {\n color: #86909c;\n}\n.goods-imgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
8243
7927
|
styleInject(css_248z$5);
|
|
8244
7928
|
|
|
@@ -10787,9 +10471,6 @@ var jstGoods = function jstGoods(props) {
|
|
|
10787
10471
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10788
10472
|
changeOrderInfo[type] = val;
|
|
10789
10473
|
changeOrderInfo['sendId'] = option.value;
|
|
10790
|
-
if (platformType === 'wdt' && type === 'sendName') {
|
|
10791
|
-
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
10792
|
-
}
|
|
10793
10474
|
var newList = _toConsumableArray(value);
|
|
10794
10475
|
newList[changeIndex] = changeOrderInfo;
|
|
10795
10476
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -12074,7 +11755,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12074
11755
|
width: 70
|
|
12075
11756
|
},
|
|
12076
11757
|
value: val,
|
|
12077
|
-
min:
|
|
11758
|
+
min: 0,
|
|
12078
11759
|
precision: 0,
|
|
12079
11760
|
onChange: function onChange(num) {
|
|
12080
11761
|
return updateHandle(num, index, 'num');
|
|
@@ -12446,7 +12127,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12446
12127
|
width: 70
|
|
12447
12128
|
},
|
|
12448
12129
|
value: val,
|
|
12449
|
-
min:
|
|
12130
|
+
min: 0,
|
|
12450
12131
|
precision: 0,
|
|
12451
12132
|
onChange: function onChange(num) {
|
|
12452
12133
|
return updateHandle(num, index, 'number');
|
|
@@ -13238,11 +12919,9 @@ var index$1 = (function (props) {
|
|
|
13238
12919
|
_onChange = props.onChange,
|
|
13239
12920
|
disabled = props.disabled,
|
|
13240
12921
|
type = props.type;
|
|
13241
|
-
var onceRef = useRef(false);
|
|
13242
12922
|
useEffect(function () {
|
|
13243
12923
|
var _value$orders, _value$showOrderInfo;
|
|
13244
|
-
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)
|
|
13245
|
-
onceRef.current = true;
|
|
12924
|
+
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
|
|
13246
12925
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
13247
12926
|
getOrderList(value.orderNo);
|
|
13248
12927
|
} else if (type === 'WLN_SYSTEM_ORDER') {
|
|
@@ -13251,7 +12930,7 @@ var index$1 = (function (props) {
|
|
|
13251
12930
|
getWdtOrderList(value.orderNo);
|
|
13252
12931
|
}
|
|
13253
12932
|
}
|
|
13254
|
-
}, [value, type]);
|
|
12933
|
+
}, [value === null || value === void 0 ? void 0 : value.orderNo, type]);
|
|
13255
12934
|
var columns = useMemo(function () {
|
|
13256
12935
|
var _columnsNameMap$type, _columnsNameMap$type2;
|
|
13257
12936
|
return [{
|
|
@@ -13294,8 +12973,7 @@ var index$1 = (function (props) {
|
|
|
13294
12973
|
})
|
|
13295
12974
|
}));
|
|
13296
12975
|
}
|
|
13297
|
-
|
|
13298
|
-
case 7:
|
|
12976
|
+
case 6:
|
|
13299
12977
|
case "end":
|
|
13300
12978
|
return _context.stop();
|
|
13301
12979
|
}
|
|
@@ -13340,8 +13018,7 @@ var index$1 = (function (props) {
|
|
|
13340
13018
|
})
|
|
13341
13019
|
}));
|
|
13342
13020
|
}
|
|
13343
|
-
|
|
13344
|
-
case 7:
|
|
13021
|
+
case 6:
|
|
13345
13022
|
case "end":
|
|
13346
13023
|
return _context2.stop();
|
|
13347
13024
|
}
|
|
@@ -13396,8 +13073,7 @@ var index$1 = (function (props) {
|
|
|
13396
13073
|
})
|
|
13397
13074
|
}));
|
|
13398
13075
|
}
|
|
13399
|
-
|
|
13400
|
-
case 7:
|
|
13076
|
+
case 6:
|
|
13401
13077
|
case "end":
|
|
13402
13078
|
return _context3.stop();
|
|
13403
13079
|
}
|
|
@@ -14064,7 +13740,9 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14064
13740
|
var _typeMap$type25;
|
|
14065
13741
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]);
|
|
14066
13742
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.wdtSystemOrderNo]]);
|
|
14067
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row,
|
|
13743
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
13744
|
+
gutter: 8
|
|
13745
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
14068
13746
|
className: "gutter-row",
|
|
14069
13747
|
xs: {
|
|
14070
13748
|
span: 11
|
|
@@ -14096,9 +13774,6 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14096
13774
|
},
|
|
14097
13775
|
md: {
|
|
14098
13776
|
span: 6
|
|
14099
|
-
},
|
|
14100
|
-
style: {
|
|
14101
|
-
marginLeft: '8px'
|
|
14102
13777
|
}
|
|
14103
13778
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
14104
13779
|
style: {
|
|
@@ -14893,4 +14568,4 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
14893
14568
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
14894
14569
|
};
|
|
14895
14570
|
|
|
14896
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status,
|
|
14571
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|
package/dist/index.js
CHANGED
|
@@ -8,8 +8,8 @@ var icons = require('@ant-design/icons');
|
|
|
8
8
|
var request = require('umi-request');
|
|
9
9
|
var reactCopyToClipboard = require('react-copy-to-clipboard');
|
|
10
10
|
var kmkfUtils = require('@kmkf-fe-packages/kmkf-utils');
|
|
11
|
-
var lodash = require('lodash');
|
|
12
11
|
var zhCN = require('antd/lib/locale/zh_CN');
|
|
12
|
+
var lodash = require('lodash');
|
|
13
13
|
var ahooks = require('ahooks');
|
|
14
14
|
var pubsub = require('pubsub-js');
|
|
15
15
|
var BigNumber = require('bignumber.js');
|
|
@@ -523,12 +523,11 @@ var ApaasDate = function ApaasDate(props) {
|
|
|
523
523
|
}, otherProps));
|
|
524
524
|
};
|
|
525
525
|
|
|
526
|
-
var _excluded$1 = ["isNumber", "replaceWarn"
|
|
526
|
+
var _excluded$1 = ["isNumber", "replaceWarn"];
|
|
527
527
|
function ApaasInput(props) {
|
|
528
528
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
529
529
|
var isNumber = props.isNumber,
|
|
530
530
|
replaceWarn = props.replaceWarn,
|
|
531
|
-
precision = props.precision,
|
|
532
531
|
other = _objectWithoutProperties(props, _excluded$1);
|
|
533
532
|
var handleBlur = function handleBlur(e) {
|
|
534
533
|
// 去除头尾空格
|
|
@@ -538,12 +537,8 @@ function ApaasInput(props) {
|
|
|
538
537
|
typeof onChange === 'function' && onChange(e);
|
|
539
538
|
typeof onBlur === 'function' && onBlur(e);
|
|
540
539
|
};
|
|
541
|
-
return isNumber ?
|
|
542
|
-
/*#__PURE__*/
|
|
543
540
|
// @ts-ignore
|
|
544
|
-
React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
545
|
-
precision: precision === 'limit' ? undefined : precision
|
|
546
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
541
|
+
return isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({}, other)) : /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
547
542
|
onBlur: handleBlur
|
|
548
543
|
}));
|
|
549
544
|
}
|
|
@@ -7644,329 +7639,6 @@ function withFormItem(WrappedComponent) {
|
|
|
7644
7639
|
};
|
|
7645
7640
|
}
|
|
7646
7641
|
|
|
7647
|
-
/*
|
|
7648
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
7649
|
-
* @Date: 2022-09-13 11:06:09
|
|
7650
|
-
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
7651
|
-
* @LastEditTime: 2022-11-04 15:55:10
|
|
7652
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
7653
|
-
* @Description:
|
|
7654
|
-
*
|
|
7655
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
7656
|
-
*/
|
|
7657
|
-
var extendRequest = request.extend({});
|
|
7658
|
-
|
|
7659
|
-
var WidgetMap = {
|
|
7660
|
-
INPUT: 'input',
|
|
7661
|
-
TEXTAREA: 'textarea'
|
|
7662
|
-
};
|
|
7663
|
-
var pageSize = 10;
|
|
7664
|
-
var SubForm = function SubForm(props) {
|
|
7665
|
-
var _selectOptions$;
|
|
7666
|
-
var value = props.value,
|
|
7667
|
-
onChange = props.onChange,
|
|
7668
|
-
needFilterShopByPermission = props.needFilterShopByPermission,
|
|
7669
|
-
_props$subConfig = props.subConfig,
|
|
7670
|
-
config = _props$subConfig.config,
|
|
7671
|
-
flowStatus = _props$subConfig.flowStatus,
|
|
7672
|
-
flowTemplateKey = _props$subConfig.flowTemplateKey,
|
|
7673
|
-
nodeId = _props$subConfig.nodeId,
|
|
7674
|
-
workOrderTemplateId = _props$subConfig.workOrderTemplateId;
|
|
7675
|
-
var ref = React.useRef(null);
|
|
7676
|
-
var _useState = React.useState(false),
|
|
7677
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
7678
|
-
open = _useState2[0],
|
|
7679
|
-
setOpen = _useState2[1];
|
|
7680
|
-
var _useState3 = React.useState(''),
|
|
7681
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
7682
|
-
selectKey = _useState4[0],
|
|
7683
|
-
setSelectKey = _useState4[1];
|
|
7684
|
-
var _useState5 = React.useState(''),
|
|
7685
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
7686
|
-
inputValue = _useState6[0],
|
|
7687
|
-
setInputValue = _useState6[1];
|
|
7688
|
-
var _useState7 = React.useState([]),
|
|
7689
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
7690
|
-
list = _useState8[0],
|
|
7691
|
-
setList = _useState8[1];
|
|
7692
|
-
var _useState9 = React.useState(1),
|
|
7693
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
7694
|
-
pageNo = _useState10[0],
|
|
7695
|
-
setPageNo = _useState10[1];
|
|
7696
|
-
var _useState11 = React.useState(true),
|
|
7697
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
7698
|
-
hasMore = _useState12[0],
|
|
7699
|
-
setHasMore = _useState12[1];
|
|
7700
|
-
var updateHandle = function updateHandle(val, index, type) {
|
|
7701
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
7702
|
-
var newValue = JSON.parse(JSON.stringify(value));
|
|
7703
|
-
newValue[index][type] = val;
|
|
7704
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newValue));
|
|
7705
|
-
}
|
|
7706
|
-
};
|
|
7707
|
-
var column = [{
|
|
7708
|
-
dataIndex: 'index',
|
|
7709
|
-
title: '序号',
|
|
7710
|
-
width: 70,
|
|
7711
|
-
render: function render(val, record, index) {
|
|
7712
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7713
|
-
style: {
|
|
7714
|
-
width: 25
|
|
7715
|
-
}
|
|
7716
|
-
}, index + 1);
|
|
7717
|
-
}
|
|
7718
|
-
}].concat(_toConsumableArray(config.filter(function (t) {
|
|
7719
|
-
return t.isShow;
|
|
7720
|
-
}).map(function (t) {
|
|
7721
|
-
return {
|
|
7722
|
-
dataIndex: t.key,
|
|
7723
|
-
title: /*#__PURE__*/React__default['default'].createElement("div", null, t.isRequired ? /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7724
|
-
style: {
|
|
7725
|
-
color: 'red'
|
|
7726
|
-
}
|
|
7727
|
-
}, "*") : null, t.name),
|
|
7728
|
-
width: 120,
|
|
7729
|
-
render: function render(val, record, index) {
|
|
7730
|
-
// @ts-ignore
|
|
7731
|
-
var precisionValue = t.precision === 'limit' ? undefined : t.precision;
|
|
7732
|
-
return !t.isEdit ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
7733
|
-
value: val,
|
|
7734
|
-
precision: precisionValue,
|
|
7735
|
-
onChange: function onChange(e) {
|
|
7736
|
-
return updateHandle(e, index, t.key);
|
|
7737
|
-
}
|
|
7738
|
-
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
7739
|
-
value: val,
|
|
7740
|
-
onChange: function onChange(e) {
|
|
7741
|
-
var _e$target;
|
|
7742
|
-
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
|
|
7743
|
-
}
|
|
7744
|
-
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
7745
|
-
}
|
|
7746
|
-
};
|
|
7747
|
-
})), [{
|
|
7748
|
-
dataIndex: 'operation',
|
|
7749
|
-
title: '操作',
|
|
7750
|
-
width: 70,
|
|
7751
|
-
fixed: 'right',
|
|
7752
|
-
render: function render(val, record, index) {
|
|
7753
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
7754
|
-
type: "link",
|
|
7755
|
-
onClick: function onClick() {
|
|
7756
|
-
return deleteHandle(record.uuid);
|
|
7757
|
-
}
|
|
7758
|
-
}, "\u5220\u9664");
|
|
7759
|
-
}
|
|
7760
|
-
}]);
|
|
7761
|
-
var columsSearch = React.useMemo(function () {
|
|
7762
|
-
return [{
|
|
7763
|
-
dataIndex: 'index',
|
|
7764
|
-
title: '序号',
|
|
7765
|
-
render: function render(val, record, index) {
|
|
7766
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7767
|
-
style: {
|
|
7768
|
-
width: 25
|
|
7769
|
-
}
|
|
7770
|
-
}, index + 1);
|
|
7771
|
-
}
|
|
7772
|
-
}].concat(_toConsumableArray(config.map(function (t) {
|
|
7773
|
-
return {
|
|
7774
|
-
dataIndex: t.key,
|
|
7775
|
-
title: t.name
|
|
7776
|
-
};
|
|
7777
|
-
})));
|
|
7778
|
-
}, [config]);
|
|
7779
|
-
var valueMap = React.useMemo(function () {
|
|
7780
|
-
return config.reduce(function (prv, next) {
|
|
7781
|
-
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = next.key;
|
|
7782
|
-
return prv;
|
|
7783
|
-
}, {});
|
|
7784
|
-
}, [config]);
|
|
7785
|
-
var selectOptions = React.useMemo(function () {
|
|
7786
|
-
var _options$;
|
|
7787
|
-
var options = config.filter(function (t) {
|
|
7788
|
-
return t.isShow;
|
|
7789
|
-
}).map(function (item) {
|
|
7790
|
-
return {
|
|
7791
|
-
label: item.name,
|
|
7792
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
7793
|
-
};
|
|
7794
|
-
});
|
|
7795
|
-
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
7796
|
-
return options;
|
|
7797
|
-
}, [config]);
|
|
7798
|
-
var deleteHandle = function deleteHandle(uuid) {
|
|
7799
|
-
var newList = value.filter(function (item) {
|
|
7800
|
-
return item.uuid !== uuid;
|
|
7801
|
-
});
|
|
7802
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
7803
|
-
};
|
|
7804
|
-
var onScrollCapture = function onScrollCapture(e) {
|
|
7805
|
-
if (e.target.scrollTop + e.target.clientHeight >= e.target.scrollHeight) {
|
|
7806
|
-
if (hasMore) {
|
|
7807
|
-
getWorkOrderList({
|
|
7808
|
-
pageNo: pageNo + 1
|
|
7809
|
-
});
|
|
7810
|
-
setPageNo(pageNo + 1);
|
|
7811
|
-
}
|
|
7812
|
-
}
|
|
7813
|
-
};
|
|
7814
|
-
var getWorkOrderList = /*#__PURE__*/function () {
|
|
7815
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
7816
|
-
var _ref2,
|
|
7817
|
-
_ref2$pageNo,
|
|
7818
|
-
pageNo,
|
|
7819
|
-
params,
|
|
7820
|
-
res,
|
|
7821
|
-
data,
|
|
7822
|
-
success,
|
|
7823
|
-
newList,
|
|
7824
|
-
_args = arguments;
|
|
7825
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7826
|
-
while (1) switch (_context.prev = _context.next) {
|
|
7827
|
-
case 0:
|
|
7828
|
-
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo;
|
|
7829
|
-
params = {
|
|
7830
|
-
flowNodeId: nodeId,
|
|
7831
|
-
flowTemplateKey: flowTemplateKey === null || flowTemplateKey === void 0 ? void 0 : flowTemplateKey[1],
|
|
7832
|
-
pageNo: pageNo,
|
|
7833
|
-
pageSize: pageSize,
|
|
7834
|
-
templateKey: workOrderTemplateId,
|
|
7835
|
-
needReturnRepeatValue: true,
|
|
7836
|
-
needFilterShopByPermission: needFilterShopByPermission,
|
|
7837
|
-
queryComponents: [{
|
|
7838
|
-
key: 'flowStatus',
|
|
7839
|
-
symbol: 'in',
|
|
7840
|
-
value: flowStatus
|
|
7841
|
-
}]
|
|
7842
|
-
};
|
|
7843
|
-
if (selectKey && inputValue) {
|
|
7844
|
-
params.queryComponents = [{
|
|
7845
|
-
key: 'flowStatus',
|
|
7846
|
-
symbol: 'in',
|
|
7847
|
-
value: flowStatus
|
|
7848
|
-
}, {
|
|
7849
|
-
key: selectKey,
|
|
7850
|
-
symbol: 'in',
|
|
7851
|
-
value: [inputValue]
|
|
7852
|
-
}];
|
|
7853
|
-
}
|
|
7854
|
-
_context.next = 5;
|
|
7855
|
-
return extendRequest('/qy/view/workOrderList', {
|
|
7856
|
-
method: 'post',
|
|
7857
|
-
data: params
|
|
7858
|
-
});
|
|
7859
|
-
case 5:
|
|
7860
|
-
res = _context.sent;
|
|
7861
|
-
data = res.data, success = res.success;
|
|
7862
|
-
if (success) {
|
|
7863
|
-
newList = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
7864
|
-
var params = {};
|
|
7865
|
-
Object.keys(item.jsonMap).forEach(function (key) {
|
|
7866
|
-
if (valueMap[key]) {
|
|
7867
|
-
params[valueMap[key]] = item.jsonMap[key];
|
|
7868
|
-
}
|
|
7869
|
-
});
|
|
7870
|
-
return params;
|
|
7871
|
-
});
|
|
7872
|
-
if (pageNo === 1) {
|
|
7873
|
-
setList(newList);
|
|
7874
|
-
} else {
|
|
7875
|
-
setList([].concat(_toConsumableArray(list), _toConsumableArray(newList)));
|
|
7876
|
-
setHasMore((data === null || data === void 0 ? void 0 : data.list.length) === pageSize);
|
|
7877
|
-
}
|
|
7878
|
-
}
|
|
7879
|
-
case 8:
|
|
7880
|
-
case "end":
|
|
7881
|
-
return _context.stop();
|
|
7882
|
-
}
|
|
7883
|
-
}, _callee);
|
|
7884
|
-
}));
|
|
7885
|
-
return function getWorkOrderList() {
|
|
7886
|
-
return _ref.apply(this, arguments);
|
|
7887
|
-
};
|
|
7888
|
-
}();
|
|
7889
|
-
React.useEffect(function () {
|
|
7890
|
-
setPageNo(1);
|
|
7891
|
-
getWorkOrderList({
|
|
7892
|
-
pageNo: 1
|
|
7893
|
-
});
|
|
7894
|
-
}, []);
|
|
7895
|
-
React.useEffect(function () {
|
|
7896
|
-
getWorkOrderList({
|
|
7897
|
-
pageNo: 1
|
|
7898
|
-
});
|
|
7899
|
-
}, [inputValue]);
|
|
7900
|
-
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
7901
|
-
setOpen(newOpen);
|
|
7902
|
-
};
|
|
7903
|
-
var onChangeInput = React.useCallback(lodash.debounce(function (val) {
|
|
7904
|
-
setInputValue(val);
|
|
7905
|
-
}, 1000), []);
|
|
7906
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
7907
|
-
style: {
|
|
7908
|
-
width: '100px'
|
|
7909
|
-
},
|
|
7910
|
-
options: selectOptions,
|
|
7911
|
-
defaultValue: selectOptions === null || selectOptions === void 0 ? void 0 : (_selectOptions$ = selectOptions[0]) === null || _selectOptions$ === void 0 ? void 0 : _selectOptions$.value,
|
|
7912
|
-
value: selectKey,
|
|
7913
|
-
onChange: setSelectKey
|
|
7914
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
7915
|
-
content: /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7916
|
-
ref: ref,
|
|
7917
|
-
onScrollCapture: onScrollCapture,
|
|
7918
|
-
style: {
|
|
7919
|
-
height: 320,
|
|
7920
|
-
overflowY: 'scroll',
|
|
7921
|
-
overflowX: 'auto'
|
|
7922
|
-
}
|
|
7923
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
7924
|
-
columns: columsSearch,
|
|
7925
|
-
dataSource: list,
|
|
7926
|
-
rowKey: 'index',
|
|
7927
|
-
size: "small",
|
|
7928
|
-
pagination: false,
|
|
7929
|
-
scroll: {
|
|
7930
|
-
x: '100%'
|
|
7931
|
-
},
|
|
7932
|
-
locale: {
|
|
7933
|
-
emptyText: '暂无数据'
|
|
7934
|
-
},
|
|
7935
|
-
onRow: function onRow(record) {
|
|
7936
|
-
return {
|
|
7937
|
-
onClick: function onClick() {
|
|
7938
|
-
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, record), {}, {
|
|
7939
|
-
uuid: kmkfUtils.uuid()
|
|
7940
|
-
})]));
|
|
7941
|
-
setOpen(false);
|
|
7942
|
-
}
|
|
7943
|
-
};
|
|
7944
|
-
}
|
|
7945
|
-
})),
|
|
7946
|
-
trigger: "click",
|
|
7947
|
-
placement: "bottom",
|
|
7948
|
-
open: open,
|
|
7949
|
-
onOpenChange: handleOpenChange
|
|
7950
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
7951
|
-
allowClear: true,
|
|
7952
|
-
onChange: function onChange(e) {
|
|
7953
|
-
onChangeInput(e.target.value);
|
|
7954
|
-
}
|
|
7955
|
-
}))), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
7956
|
-
columns: column,
|
|
7957
|
-
dataSource: value,
|
|
7958
|
-
rowKey: 'uuid',
|
|
7959
|
-
size: "small",
|
|
7960
|
-
pagination: false,
|
|
7961
|
-
scroll: {
|
|
7962
|
-
x: '100%'
|
|
7963
|
-
},
|
|
7964
|
-
locale: {
|
|
7965
|
-
emptyText: '暂无数据'
|
|
7966
|
-
}
|
|
7967
|
-
}));
|
|
7968
|
-
};
|
|
7969
|
-
|
|
7970
7642
|
var BuyerNick = function BuyerNick(props) {
|
|
7971
7643
|
var _props$value = props.value,
|
|
7972
7644
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -8251,6 +7923,18 @@ var AliPay = function AliPay(props) {
|
|
|
8251
7923
|
})));
|
|
8252
7924
|
};
|
|
8253
7925
|
|
|
7926
|
+
/*
|
|
7927
|
+
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
7928
|
+
* @Date: 2022-09-13 11:06:09
|
|
7929
|
+
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
7930
|
+
* @LastEditTime: 2022-11-04 15:55:10
|
|
7931
|
+
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
7932
|
+
* @Description:
|
|
7933
|
+
*
|
|
7934
|
+
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
7935
|
+
*/
|
|
7936
|
+
var extendRequest = request.extend({});
|
|
7937
|
+
|
|
8254
7938
|
var css_248z$5 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.goodsBox .right-context {\n font-size: 12px;\n}\n.goodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.goodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.goodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n.goods-imgBox .add-btn {\n color: #86909c;\n}\n.goods-imgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
8255
7939
|
styleInject(css_248z$5);
|
|
8256
7940
|
|
|
@@ -10799,9 +10483,6 @@ var jstGoods = function jstGoods(props) {
|
|
|
10799
10483
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10800
10484
|
changeOrderInfo[type] = val;
|
|
10801
10485
|
changeOrderInfo['sendId'] = option.value;
|
|
10802
|
-
if (platformType === 'wdt' && type === 'sendName') {
|
|
10803
|
-
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
10804
|
-
}
|
|
10805
10486
|
var newList = _toConsumableArray(value);
|
|
10806
10487
|
newList[changeIndex] = changeOrderInfo;
|
|
10807
10488
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -12086,7 +11767,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12086
11767
|
width: 70
|
|
12087
11768
|
},
|
|
12088
11769
|
value: val,
|
|
12089
|
-
min:
|
|
11770
|
+
min: 0,
|
|
12090
11771
|
precision: 0,
|
|
12091
11772
|
onChange: function onChange(num) {
|
|
12092
11773
|
return updateHandle(num, index, 'num');
|
|
@@ -12458,7 +12139,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12458
12139
|
width: 70
|
|
12459
12140
|
},
|
|
12460
12141
|
value: val,
|
|
12461
|
-
min:
|
|
12142
|
+
min: 0,
|
|
12462
12143
|
precision: 0,
|
|
12463
12144
|
onChange: function onChange(num) {
|
|
12464
12145
|
return updateHandle(num, index, 'number');
|
|
@@ -13250,11 +12931,9 @@ var index$1 = (function (props) {
|
|
|
13250
12931
|
_onChange = props.onChange,
|
|
13251
12932
|
disabled = props.disabled,
|
|
13252
12933
|
type = props.type;
|
|
13253
|
-
var onceRef = React.useRef(false);
|
|
13254
12934
|
React.useEffect(function () {
|
|
13255
12935
|
var _value$orders, _value$showOrderInfo;
|
|
13256
|
-
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)
|
|
13257
|
-
onceRef.current = true;
|
|
12936
|
+
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
|
|
13258
12937
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
13259
12938
|
getOrderList(value.orderNo);
|
|
13260
12939
|
} else if (type === 'WLN_SYSTEM_ORDER') {
|
|
@@ -13263,7 +12942,7 @@ var index$1 = (function (props) {
|
|
|
13263
12942
|
getWdtOrderList(value.orderNo);
|
|
13264
12943
|
}
|
|
13265
12944
|
}
|
|
13266
|
-
}, [value, type]);
|
|
12945
|
+
}, [value === null || value === void 0 ? void 0 : value.orderNo, type]);
|
|
13267
12946
|
var columns = React.useMemo(function () {
|
|
13268
12947
|
var _columnsNameMap$type, _columnsNameMap$type2;
|
|
13269
12948
|
return [{
|
|
@@ -13306,8 +12985,7 @@ var index$1 = (function (props) {
|
|
|
13306
12985
|
})
|
|
13307
12986
|
}));
|
|
13308
12987
|
}
|
|
13309
|
-
|
|
13310
|
-
case 7:
|
|
12988
|
+
case 6:
|
|
13311
12989
|
case "end":
|
|
13312
12990
|
return _context.stop();
|
|
13313
12991
|
}
|
|
@@ -13352,8 +13030,7 @@ var index$1 = (function (props) {
|
|
|
13352
13030
|
})
|
|
13353
13031
|
}));
|
|
13354
13032
|
}
|
|
13355
|
-
|
|
13356
|
-
case 7:
|
|
13033
|
+
case 6:
|
|
13357
13034
|
case "end":
|
|
13358
13035
|
return _context2.stop();
|
|
13359
13036
|
}
|
|
@@ -13408,8 +13085,7 @@ var index$1 = (function (props) {
|
|
|
13408
13085
|
})
|
|
13409
13086
|
}));
|
|
13410
13087
|
}
|
|
13411
|
-
|
|
13412
|
-
case 7:
|
|
13088
|
+
case 6:
|
|
13413
13089
|
case "end":
|
|
13414
13090
|
return _context3.stop();
|
|
13415
13091
|
}
|
|
@@ -14076,7 +13752,9 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14076
13752
|
var _typeMap$type25;
|
|
14077
13753
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]);
|
|
14078
13754
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.wdtSystemOrderNo]]);
|
|
14079
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row,
|
|
13755
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
13756
|
+
gutter: 8
|
|
13757
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
14080
13758
|
className: "gutter-row",
|
|
14081
13759
|
xs: {
|
|
14082
13760
|
span: 11
|
|
@@ -14108,9 +13786,6 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14108
13786
|
},
|
|
14109
13787
|
md: {
|
|
14110
13788
|
span: 6
|
|
14111
|
-
},
|
|
14112
|
-
style: {
|
|
14113
|
-
marginLeft: '8px'
|
|
14114
13789
|
}
|
|
14115
13790
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
14116
13791
|
style: {
|
|
@@ -14957,7 +14632,6 @@ exports.Remark = RemarkInput;
|
|
|
14957
14632
|
exports.ReturnLogistics = ExpressLogistics;
|
|
14958
14633
|
exports.ShopName = ShopNameSelect;
|
|
14959
14634
|
exports.Status = Status;
|
|
14960
|
-
exports.SubForm = SubForm;
|
|
14961
14635
|
exports.Supplier = Supplier;
|
|
14962
14636
|
exports.TBGoodId = TBGoodId;
|
|
14963
14637
|
exports.TBGoodSerial = TBGoodSerial;
|
|
@@ -3,7 +3,6 @@ import { InputProps } from 'antd';
|
|
|
3
3
|
export interface ApaasInputProps extends InputProps {
|
|
4
4
|
isNumber?: boolean;
|
|
5
5
|
replaceWarn?: boolean;
|
|
6
|
-
precision?: 'limit' | number | undefined;
|
|
7
6
|
}
|
|
8
7
|
declare function ApaasInput(props: ApaasInputProps): React.JSX.Element;
|
|
9
8
|
export default ApaasInput;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export { default as ApaasAddress } from './apaas/ApaasAddress';
|
|
|
16
16
|
export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
17
17
|
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
18
18
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
19
|
-
export { default as SubForm } from './apaas/SubForm';
|
|
20
19
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
21
20
|
export { default as TradeId } from './business/TradeId';
|
|
22
21
|
export { default as ShopName } from './business/ShopName';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.0.10-beta.
|
|
3
|
+
"version": "1.0.10-beta.15",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "1.0.10-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "1.0.10-beta.15",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.8",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "916594b813a860a31527956d2d559780565b1d24"
|
|
69
69
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type subConfigType = {
|
|
3
|
-
name: string;
|
|
4
|
-
key: string;
|
|
5
|
-
workOrderComponentType: string;
|
|
6
|
-
isShow: boolean;
|
|
7
|
-
isEdit: boolean;
|
|
8
|
-
isRequired: boolean;
|
|
9
|
-
isNumber: boolean;
|
|
10
|
-
precision: string | number;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
13
|
-
type SubFormProps = {
|
|
14
|
-
value: any;
|
|
15
|
-
onChange: (val: any) => void;
|
|
16
|
-
needFilterShopByPermission: boolean;
|
|
17
|
-
subConfig: {
|
|
18
|
-
config: subConfigType[];
|
|
19
|
-
flowStatus: Array<string>;
|
|
20
|
-
flowTemplateKey: Array<any>;
|
|
21
|
-
nodeId: string;
|
|
22
|
-
workOrderTemplateId: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
declare const SubForm: (props: SubFormProps) => React.JSX.Element;
|
|
26
|
-
export default SubForm;
|