@bit-sun/business-component 2.2.20 → 2.2.21
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/components/Business/JsonQueryTable/static.d.ts +2 -0
- package/dist/index.esm.js +50 -11
- package/dist/index.js +50 -11
- package/package.json +1 -1
- package/src/assets/arrow_top.svg +18 -0
- package/src/components/Business/CommonGuideWrapper/index.less +3 -1
- package/src/components/Business/CommonGuideWrapper/index.tsx +3 -3
- package/src/components/Business/JsonQueryTable/static.ts +35 -1
- package/src/components/Business/StateFlow/index.less +49 -28
- package/src/components/Business/StateFlow/index.md +5 -5
- package/src/components/Business/StateFlow/index.tsx +18 -15
- package/src/components/Business/TreeSearchSelect/index.md +29 -1
- package/src/components/Business/TreeSearchSelect/utils.ts +9 -0
- package/src/components/Functional/TreeSearchSelect/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15155,7 +15155,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15155
15155
|
switch (_context.prev = _context.next) {
|
|
15156
15156
|
case 0:
|
|
15157
15157
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15158
|
-
if (!(resData.status === '0')) {
|
|
15158
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15159
15159
|
_context.next = 13;
|
|
15160
15160
|
break;
|
|
15161
15161
|
}
|
|
@@ -15338,6 +15338,15 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
15338
15338
|
}
|
|
15339
15339
|
};
|
|
15340
15340
|
break;
|
|
15341
|
+
case 'market-area':
|
|
15342
|
+
result = {
|
|
15343
|
+
isChoose: true,
|
|
15344
|
+
remoteSource: {
|
|
15345
|
+
url: "/channel-manage/tagNode/getTree/10",
|
|
15346
|
+
resKeyValue: ['code', 'name']
|
|
15347
|
+
}
|
|
15348
|
+
};
|
|
15349
|
+
break;
|
|
15341
15350
|
default:
|
|
15342
15351
|
result = {
|
|
15343
15352
|
treeCheckable: true,
|
|
@@ -15374,7 +15383,7 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
15374
15383
|
return true;
|
|
15375
15384
|
});
|
|
15376
15385
|
|
|
15377
|
-
var css_248z$8 = ".form-status-label {\n height:
|
|
15386
|
+
var css_248z$8 = ".form-status-label {\n height: 38px;\n margin-right: 7px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #68C900;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -38px;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #68C900;\n z-index: 9;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #68C900;\n z-index: 10;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -38px;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n z-index: 9;\n}\n.status-label-index {\n display: inline-block;\n width: 16px;\n height: 16px;\n background: #FFFFFF;\n color: #68C900;\n border-radius: 50%;\n font-family: Montserrat;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n margin: 0 4px 0 20px;\n}\n.choosed-status-label-index {\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n font-family: Montserrat;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n margin: 0 4px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 10px;\n height: 14px;\n line-height: 14px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 300;\n}\n.status-label-operate > div:first-child {\n font-size: 12px;\n font-weight: 500;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15378
15387
|
styleInject(css_248z$8);
|
|
15379
15388
|
|
|
15380
15389
|
var index$2 = (function (props) {
|
|
@@ -15383,7 +15392,6 @@ var index$2 = (function (props) {
|
|
|
15383
15392
|
return /*#__PURE__*/React.createElement("div", {
|
|
15384
15393
|
style: {
|
|
15385
15394
|
display: 'flex',
|
|
15386
|
-
padding: '10px 60px 0px',
|
|
15387
15395
|
background: '#FFFFFF'
|
|
15388
15396
|
}
|
|
15389
15397
|
}, formStatusMapping.map(function (item, index) {
|
|
@@ -15395,13 +15403,14 @@ var index$2 = (function (props) {
|
|
|
15395
15403
|
}, /*#__PURE__*/React.createElement("div", {
|
|
15396
15404
|
className: 'status-label-key'
|
|
15397
15405
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15398
|
-
className
|
|
15406
|
+
// className='status-label-index'
|
|
15407
|
+
className: "".concat(item.isDone ? 'status-label-index' : 'choosed-status-label-index')
|
|
15399
15408
|
}, index + 1)), /*#__PURE__*/React.createElement("div", {
|
|
15400
15409
|
className: 'status-label-operate'
|
|
15401
15410
|
}, /*#__PURE__*/React.createElement("div", {
|
|
15402
15411
|
style: !item.isDone ? {
|
|
15403
|
-
height: '
|
|
15404
|
-
lineHeight: '
|
|
15412
|
+
height: '30px',
|
|
15413
|
+
lineHeight: '30px'
|
|
15405
15414
|
} : {}
|
|
15406
15415
|
}, item.text), item.isDone ? /*#__PURE__*/React.createElement("div", {
|
|
15407
15416
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
@@ -15415,9 +15424,9 @@ var index$2 = (function (props) {
|
|
|
15415
15424
|
|
|
15416
15425
|
var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%203%E5%A4%87%E4%BB%BD%204%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE-%E8%AF%A6%E6%83%85%E9%A1%B5%EF%BC%88%E4%BA%8C%E7%BA%A7%E9%A1%B5%EF%BC%89-%E4%B8%8B%E6%8B%89%22%20transform%3D%22translate%28-1858.000000%2C%20-1326.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-20%22%20transform%3D%22translate%28280.000000%2C%20866.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%281554.000000%2C%20179.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%E5%A4%87%E4%BB%BD-4%22%20transform%3D%22translate%2824.000000%2C%20281.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%203.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.99072727%2C0.237481917%20C6.50454545%2C-0.0418576482%206.56509091%2C-0.0745634228%206.97254545%2C0.138292264%20L7.15527271%2C0.236945765%20C7.31727271%2C0.445512161%207.34672726%2C0.483579531%207.3761818%2C0.664265595%20L7.39690908%2C0.809565049%20L7.39690908%2C17%20L5.76054545%2C17%20L5.76054545%2C2.73974241%20L1.15690909%2C7.26654448%20L0%2C6.12934831%20L5.99072727%2C0.237481917%20Z%20M13.0909091%2C13.6720525%20L13.0909091%2C15.2805337%20L9.81818182%2C15.2805337%20L9.81818182%2C13.6720525%20L13.0909091%2C13.6720525%20Z%20M14.7272727%2C9.91892987%20L14.7272727%2C11.527411%20L9.81818182%2C11.527411%20L9.81818182%2C9.91892987%20L14.7272727%2C9.91892987%20Z%20M16.3636364%2C6.16580723%20L16.3636364%2C7.77428836%20L9.81818182%2C7.77428836%20L9.81818182%2C6.16580723%20L16.3636364%2C6.16580723%20Z%20M18%2C2.41268459%20L18%2C4.02116572%20L9.81818182%2C4.02116572%20L9.81818182%2C2.41268459%20L18%2C2.41268459%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15417
15426
|
|
|
15418
|
-
var arrow_top = "data:image/
|
|
15427
|
+
var arrow_top = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Earrow_icon_up%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%9B%B6%E5%94%AE%E3%80%90%E5%8D%95%E6%8D%AE%E8%AF%A6%E6%83%85%E3%80%91%E6%94%B9%E9%80%A0%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28-462.000000%2C%20-1828.000000%29%22%20id%3D%22%E7%BC%96%E7%BB%84-5%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28372.000000%2C%201534.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%20286.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-17%22%20transform%3D%22translate%2880.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22arrow_icon_up%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%282.500000%2C%202.500000%29%22%20fill%3D%22%23B6B6B6%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M7.5%2C0%20C11.6422059%2C0%2015%2C3.35779411%2015%2C7.5%20C15%2C11.6422059%2011.6422059%2C15%207.5%2C15%20C3.35779411%2C15%200%2C11.6422059%200%2C7.5%20C0%2C3.35779411%203.35779411%2C0%207.5%2C0%20Z%20M7.61029411%2C4.79955883%20L3.58632353%2C8.82352941%20L4.52205883%2C9.7592647%20L7.61029411%2C6.67102942%20L10.6985294%2C9.7592647%20L11.6342647%2C8.82352941%20L7.61029411%2C4.79955883%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15419
15428
|
|
|
15420
|
-
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size:
|
|
15429
|
+
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 14px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n border-bottom: 1px solid #F0F0F0;\n border-radius: 4px 4px 0 0;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
|
|
15421
15430
|
styleInject(css_248z$9);
|
|
15422
15431
|
|
|
15423
15432
|
var _excluded$5 = ["children"],
|
|
@@ -15440,10 +15449,10 @@ var Field = function Field(_ref) {
|
|
|
15440
15449
|
className: 'title-left-line'
|
|
15441
15450
|
}), /*#__PURE__*/React.createElement("span", {
|
|
15442
15451
|
style: {
|
|
15443
|
-
marginRight: '
|
|
15452
|
+
marginRight: '4px'
|
|
15444
15453
|
}
|
|
15445
15454
|
}, props === null || props === void 0 ? void 0 : props.title), /*#__PURE__*/React.createElement("img", {
|
|
15446
|
-
width:
|
|
15455
|
+
width: 20,
|
|
15447
15456
|
style: {
|
|
15448
15457
|
transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
|
|
15449
15458
|
cursor: 'pointer'
|
|
@@ -29231,6 +29240,20 @@ var inputTypes = {
|
|
|
29231
29240
|
310: {
|
|
29232
29241
|
type: 'bs-deliveryModeSearchSelect',
|
|
29233
29242
|
props: _objectSpread2({}, normalSingleSelectProps)
|
|
29243
|
+
},
|
|
29244
|
+
340: {
|
|
29245
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
29246
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
29247
|
+
requestConfig: {
|
|
29248
|
+
filter: 'qp-name,code-orGroup-in'
|
|
29249
|
+
}
|
|
29250
|
+
})
|
|
29251
|
+
},
|
|
29252
|
+
350: {
|
|
29253
|
+
type: 'bs-marketAreaOrgSelect',
|
|
29254
|
+
props: _objectSpread2({
|
|
29255
|
+
treeCheckable: false
|
|
29256
|
+
}, normalSingleSelectProps)
|
|
29234
29257
|
}
|
|
29235
29258
|
},
|
|
29236
29259
|
30: {
|
|
@@ -29367,6 +29390,20 @@ var inputTypes = {
|
|
|
29367
29390
|
filter: 'qp-name,code-orGroup,in'
|
|
29368
29391
|
}
|
|
29369
29392
|
})
|
|
29393
|
+
},
|
|
29394
|
+
340: {
|
|
29395
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
29396
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
29397
|
+
requestConfig: {
|
|
29398
|
+
filter: 'qp-name,code-orGroup-in'
|
|
29399
|
+
}
|
|
29400
|
+
})
|
|
29401
|
+
},
|
|
29402
|
+
350: {
|
|
29403
|
+
type: 'bs-marketAreaOrgSelect',
|
|
29404
|
+
props: _objectSpread2({
|
|
29405
|
+
treeCheckable: false
|
|
29406
|
+
}, normalSingleSelectProps)
|
|
29370
29407
|
}
|
|
29371
29408
|
}
|
|
29372
29409
|
};
|
|
@@ -29395,7 +29432,9 @@ var choiceType = Object.freeze({
|
|
|
29395
29432
|
270: '员工选择器',
|
|
29396
29433
|
280: '库存组织选择器',
|
|
29397
29434
|
310: '配送方式选择器',
|
|
29398
|
-
330: '变量'
|
|
29435
|
+
330: '变量',
|
|
29436
|
+
340: '规则场景选择器',
|
|
29437
|
+
350: '营销区域选择器'
|
|
29399
29438
|
});
|
|
29400
29439
|
var inputType = {
|
|
29401
29440
|
10: '输入',
|
package/dist/index.js
CHANGED
|
@@ -15173,7 +15173,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15173
15173
|
switch (_context.prev = _context.next) {
|
|
15174
15174
|
case 0:
|
|
15175
15175
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15176
|
-
if (!(resData.status === '0')) {
|
|
15176
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15177
15177
|
_context.next = 13;
|
|
15178
15178
|
break;
|
|
15179
15179
|
}
|
|
@@ -15356,6 +15356,15 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
15356
15356
|
}
|
|
15357
15357
|
};
|
|
15358
15358
|
break;
|
|
15359
|
+
case 'market-area':
|
|
15360
|
+
result = {
|
|
15361
|
+
isChoose: true,
|
|
15362
|
+
remoteSource: {
|
|
15363
|
+
url: "/channel-manage/tagNode/getTree/10",
|
|
15364
|
+
resKeyValue: ['code', 'name']
|
|
15365
|
+
}
|
|
15366
|
+
};
|
|
15367
|
+
break;
|
|
15359
15368
|
default:
|
|
15360
15369
|
result = {
|
|
15361
15370
|
treeCheckable: true,
|
|
@@ -15392,7 +15401,7 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
|
|
|
15392
15401
|
return true;
|
|
15393
15402
|
});
|
|
15394
15403
|
|
|
15395
|
-
var css_248z$8 = ".form-status-label {\n height:
|
|
15404
|
+
var css_248z$8 = ".form-status-label {\n height: 38px;\n margin-right: 7px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #68C900;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -38px;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #68C900;\n z-index: 9;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #68C900;\n z-index: 10;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -38px;\n top: 0;\n width: 38px;\n height: 38px;\n border: 19px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n z-index: 9;\n}\n.status-label-index {\n display: inline-block;\n width: 16px;\n height: 16px;\n background: #FFFFFF;\n color: #68C900;\n border-radius: 50%;\n font-family: Montserrat;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n margin: 0 4px 0 20px;\n}\n.choosed-status-label-index {\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n font-family: Montserrat;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n margin: 0 4px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 10px;\n height: 14px;\n line-height: 14px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 300;\n}\n.status-label-operate > div:first-child {\n font-size: 12px;\n font-weight: 500;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15396
15405
|
styleInject(css_248z$8);
|
|
15397
15406
|
|
|
15398
15407
|
var index$2 = (function (props) {
|
|
@@ -15401,7 +15410,6 @@ var index$2 = (function (props) {
|
|
|
15401
15410
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15402
15411
|
style: {
|
|
15403
15412
|
display: 'flex',
|
|
15404
|
-
padding: '10px 60px 0px',
|
|
15405
15413
|
background: '#FFFFFF'
|
|
15406
15414
|
}
|
|
15407
15415
|
}, formStatusMapping.map(function (item, index) {
|
|
@@ -15413,13 +15421,14 @@ var index$2 = (function (props) {
|
|
|
15413
15421
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15414
15422
|
className: 'status-label-key'
|
|
15415
15423
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15416
|
-
className
|
|
15424
|
+
// className='status-label-index'
|
|
15425
|
+
className: "".concat(item.isDone ? 'status-label-index' : 'choosed-status-label-index')
|
|
15417
15426
|
}, index + 1)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15418
15427
|
className: 'status-label-operate'
|
|
15419
15428
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15420
15429
|
style: !item.isDone ? {
|
|
15421
|
-
height: '
|
|
15422
|
-
lineHeight: '
|
|
15430
|
+
height: '30px',
|
|
15431
|
+
lineHeight: '30px'
|
|
15423
15432
|
} : {}
|
|
15424
15433
|
}, item.text), item.isDone ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15425
15434
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
@@ -15433,9 +15442,9 @@ var index$2 = (function (props) {
|
|
|
15433
15442
|
|
|
15434
15443
|
var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%203%E5%A4%87%E4%BB%BD%204%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE-%E8%AF%A6%E6%83%85%E9%A1%B5%EF%BC%88%E4%BA%8C%E7%BA%A7%E9%A1%B5%EF%BC%89-%E4%B8%8B%E6%8B%89%22%20transform%3D%22translate%28-1858.000000%2C%20-1326.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-20%22%20transform%3D%22translate%28280.000000%2C%20866.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%281554.000000%2C%20179.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%E5%A4%87%E4%BB%BD-4%22%20transform%3D%22translate%2824.000000%2C%20281.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%203.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.99072727%2C0.237481917%20C6.50454545%2C-0.0418576482%206.56509091%2C-0.0745634228%206.97254545%2C0.138292264%20L7.15527271%2C0.236945765%20C7.31727271%2C0.445512161%207.34672726%2C0.483579531%207.3761818%2C0.664265595%20L7.39690908%2C0.809565049%20L7.39690908%2C17%20L5.76054545%2C17%20L5.76054545%2C2.73974241%20L1.15690909%2C7.26654448%20L0%2C6.12934831%20L5.99072727%2C0.237481917%20Z%20M13.0909091%2C13.6720525%20L13.0909091%2C15.2805337%20L9.81818182%2C15.2805337%20L9.81818182%2C13.6720525%20L13.0909091%2C13.6720525%20Z%20M14.7272727%2C9.91892987%20L14.7272727%2C11.527411%20L9.81818182%2C11.527411%20L9.81818182%2C9.91892987%20L14.7272727%2C9.91892987%20Z%20M16.3636364%2C6.16580723%20L16.3636364%2C7.77428836%20L9.81818182%2C7.77428836%20L9.81818182%2C6.16580723%20L16.3636364%2C6.16580723%20Z%20M18%2C2.41268459%20L18%2C4.02116572%20L9.81818182%2C4.02116572%20L9.81818182%2C2.41268459%20L18%2C2.41268459%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15435
15444
|
|
|
15436
|
-
var arrow_top = "data:image/
|
|
15445
|
+
var arrow_top = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Earrow_icon_up%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%9B%B6%E5%94%AE%E3%80%90%E5%8D%95%E6%8D%AE%E8%AF%A6%E6%83%85%E3%80%91%E6%94%B9%E9%80%A0%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28-462.000000%2C%20-1828.000000%29%22%20id%3D%22%E7%BC%96%E7%BB%84-5%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28372.000000%2C%201534.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%20286.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-17%22%20transform%3D%22translate%2880.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22arrow_icon_up%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%282.500000%2C%202.500000%29%22%20fill%3D%22%23B6B6B6%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M7.5%2C0%20C11.6422059%2C0%2015%2C3.35779411%2015%2C7.5%20C15%2C11.6422059%2011.6422059%2C15%207.5%2C15%20C3.35779411%2C15%200%2C11.6422059%200%2C7.5%20C0%2C3.35779411%203.35779411%2C0%207.5%2C0%20Z%20M7.61029411%2C4.79955883%20L3.58632353%2C8.82352941%20L4.52205883%2C9.7592647%20L7.61029411%2C6.67102942%20L10.6985294%2C9.7592647%20L11.6342647%2C8.82352941%20L7.61029411%2C4.79955883%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15437
15446
|
|
|
15438
|
-
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size:
|
|
15447
|
+
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 14px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n border-bottom: 1px solid #F0F0F0;\n border-radius: 4px 4px 0 0;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
|
|
15439
15448
|
styleInject(css_248z$9);
|
|
15440
15449
|
|
|
15441
15450
|
var _excluded$5 = ["children"],
|
|
@@ -15458,10 +15467,10 @@ var Field = function Field(_ref) {
|
|
|
15458
15467
|
className: 'title-left-line'
|
|
15459
15468
|
}), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15460
15469
|
style: {
|
|
15461
|
-
marginRight: '
|
|
15470
|
+
marginRight: '4px'
|
|
15462
15471
|
}
|
|
15463
15472
|
}, props === null || props === void 0 ? void 0 : props.title), /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15464
|
-
width:
|
|
15473
|
+
width: 20,
|
|
15465
15474
|
style: {
|
|
15466
15475
|
transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
|
|
15467
15476
|
cursor: 'pointer'
|
|
@@ -29249,6 +29258,20 @@ var inputTypes = {
|
|
|
29249
29258
|
310: {
|
|
29250
29259
|
type: 'bs-deliveryModeSearchSelect',
|
|
29251
29260
|
props: _objectSpread2({}, normalSingleSelectProps)
|
|
29261
|
+
},
|
|
29262
|
+
340: {
|
|
29263
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
29264
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
29265
|
+
requestConfig: {
|
|
29266
|
+
filter: 'qp-name,code-orGroup-in'
|
|
29267
|
+
}
|
|
29268
|
+
})
|
|
29269
|
+
},
|
|
29270
|
+
350: {
|
|
29271
|
+
type: 'bs-marketAreaOrgSelect',
|
|
29272
|
+
props: _objectSpread2({
|
|
29273
|
+
treeCheckable: false
|
|
29274
|
+
}, normalSingleSelectProps)
|
|
29252
29275
|
}
|
|
29253
29276
|
},
|
|
29254
29277
|
30: {
|
|
@@ -29385,6 +29408,20 @@ var inputTypes = {
|
|
|
29385
29408
|
filter: 'qp-name,code-orGroup,in'
|
|
29386
29409
|
}
|
|
29387
29410
|
})
|
|
29411
|
+
},
|
|
29412
|
+
340: {
|
|
29413
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
29414
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
29415
|
+
requestConfig: {
|
|
29416
|
+
filter: 'qp-name,code-orGroup-in'
|
|
29417
|
+
}
|
|
29418
|
+
})
|
|
29419
|
+
},
|
|
29420
|
+
350: {
|
|
29421
|
+
type: 'bs-marketAreaOrgSelect',
|
|
29422
|
+
props: _objectSpread2({
|
|
29423
|
+
treeCheckable: false
|
|
29424
|
+
}, normalSingleSelectProps)
|
|
29388
29425
|
}
|
|
29389
29426
|
}
|
|
29390
29427
|
};
|
|
@@ -29413,7 +29450,9 @@ var choiceType = Object.freeze({
|
|
|
29413
29450
|
270: '员工选择器',
|
|
29414
29451
|
280: '库存组织选择器',
|
|
29415
29452
|
310: '配送方式选择器',
|
|
29416
|
-
330: '变量'
|
|
29453
|
+
330: '变量',
|
|
29454
|
+
340: '规则场景选择器',
|
|
29455
|
+
350: '营销区域选择器'
|
|
29417
29456
|
});
|
|
29418
29457
|
var inputType = {
|
|
29419
29458
|
10: '输入',
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>arrow_icon_up</title>
|
|
4
|
+
<g id="零售【单据详情】改造" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g transform="translate(-462.000000, -1828.000000)" id="编组-5">
|
|
6
|
+
<g transform="translate(372.000000, 1534.000000)">
|
|
7
|
+
<g id="编组-2" transform="translate(10.000000, 286.000000)">
|
|
8
|
+
<g id="编组-17" transform="translate(80.000000, 8.000000)">
|
|
9
|
+
<rect id="arrow_icon_up" fill="#D8D8D8" opacity="0" x="0" y="0" width="20" height="20"></rect>
|
|
10
|
+
<g id="编组" transform="translate(2.500000, 2.500000)" fill="#B6B6B6" fill-rule="nonzero">
|
|
11
|
+
<path d="M7.5,0 C11.6422059,0 15,3.35779411 15,7.5 C15,11.6422059 11.6422059,15 7.5,15 C3.35779411,15 0,11.6422059 0,7.5 C0,3.35779411 3.35779411,0 7.5,0 Z M7.61029411,4.79955883 L3.58632353,8.82352941 L4.52205883,9.7592647 L7.61029411,6.67102942 L10.6985294,9.7592647 L11.6342647,8.82352941 L7.61029411,4.79955883 Z" id="形状"></path>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
@@ -87,13 +87,15 @@
|
|
|
87
87
|
.ant-card-head-title {
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
font-size:
|
|
90
|
+
font-size: 14px;
|
|
91
91
|
color: #000000;
|
|
92
92
|
font-weight: 600;
|
|
93
93
|
font-family: PingFangSC;
|
|
94
94
|
background-color: #FFFFFF;
|
|
95
95
|
padding: 8px 0;
|
|
96
96
|
margin: 0px;
|
|
97
|
+
border-bottom: 1px solid #F0F0F0;
|
|
98
|
+
border-radius: 4px 4px 0 0;
|
|
97
99
|
.title-left-line {
|
|
98
100
|
display: inline-block;
|
|
99
101
|
width: 4px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from "react";
|
|
2
2
|
import dragImg from '../../../assets/drag.svg';
|
|
3
3
|
import label_icon_bottom from '../../../assets/label_icon_bottom.svg';
|
|
4
|
-
import arrow_top from '../../../assets/arrow_top.
|
|
4
|
+
import arrow_top from '../../../assets/arrow_top.svg';
|
|
5
5
|
import './index.less';
|
|
6
6
|
|
|
7
7
|
const Field = ({ children, ...props }: any) => {
|
|
@@ -19,11 +19,11 @@ const Field = ({ children, ...props }: any) => {
|
|
|
19
19
|
<div className="ant-card-head">
|
|
20
20
|
<div className="ant-card-head-title">
|
|
21
21
|
<span className='title-left-line'></span>
|
|
22
|
-
<span style={{ marginRight: '
|
|
22
|
+
<span style={{ marginRight: '4px' }}>
|
|
23
23
|
{props?.title}
|
|
24
24
|
</span>
|
|
25
25
|
<img
|
|
26
|
-
width={
|
|
26
|
+
width={20}
|
|
27
27
|
style={{
|
|
28
28
|
transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
|
|
29
29
|
cursor: 'pointer'
|
|
@@ -145,6 +145,22 @@ export const inputTypes:any = {
|
|
|
145
145
|
...normalSingleSelectProps,
|
|
146
146
|
},
|
|
147
147
|
},
|
|
148
|
+
340: {
|
|
149
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
150
|
+
props: {
|
|
151
|
+
...normalMultipleSelectProps,
|
|
152
|
+
requestConfig: {
|
|
153
|
+
filter: 'qp-name,code-orGroup-in',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
350: {
|
|
158
|
+
type: 'bs-marketAreaOrgSelect',
|
|
159
|
+
props: {
|
|
160
|
+
treeCheckable: false,
|
|
161
|
+
...normalSingleSelectProps,
|
|
162
|
+
},
|
|
163
|
+
},
|
|
148
164
|
},
|
|
149
165
|
30: {
|
|
150
166
|
10: {
|
|
@@ -295,6 +311,22 @@ export const inputTypes:any = {
|
|
|
295
311
|
},
|
|
296
312
|
},
|
|
297
313
|
},
|
|
314
|
+
340: {
|
|
315
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
316
|
+
props: {
|
|
317
|
+
...normalMultipleSelectProps,
|
|
318
|
+
requestConfig: {
|
|
319
|
+
filter: 'qp-name,code-orGroup-in',
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
350: {
|
|
324
|
+
type: 'bs-marketAreaOrgSelect',
|
|
325
|
+
props: {
|
|
326
|
+
treeCheckable: false,
|
|
327
|
+
...normalSingleSelectProps,
|
|
328
|
+
},
|
|
329
|
+
},
|
|
298
330
|
},
|
|
299
331
|
};
|
|
300
332
|
|
|
@@ -332,7 +364,9 @@ export const choiceType = Object.freeze({
|
|
|
332
364
|
280: '库存组织选择器',
|
|
333
365
|
|
|
334
366
|
310: '配送方式选择器',
|
|
335
|
-
330: '变量'
|
|
367
|
+
330: '变量',
|
|
368
|
+
340: '规则场景选择器',
|
|
369
|
+
350: '营销区域选择器',
|
|
336
370
|
});
|
|
337
371
|
export const inputType:any ={
|
|
338
372
|
10: '输入',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.form-status-label {
|
|
2
|
-
height:
|
|
3
|
-
margin-right:
|
|
2
|
+
height: 38px;
|
|
3
|
+
margin-right: 7px;
|
|
4
4
|
// flex-grow: 1;
|
|
5
5
|
// flex-shrink: 1;
|
|
6
6
|
display: inline-block;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
align-items: center;
|
|
10
10
|
}
|
|
11
11
|
.choosed-status-label.form-status-label {
|
|
12
|
-
background-color: #
|
|
12
|
+
background-color: #68C900;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.form-status-label:last-child {
|
|
@@ -20,21 +20,23 @@
|
|
|
20
20
|
position: absolute;
|
|
21
21
|
display: block;
|
|
22
22
|
content: '';
|
|
23
|
-
right: -
|
|
23
|
+
right: -38px;
|
|
24
24
|
top: 0;
|
|
25
|
-
width:
|
|
26
|
-
height:
|
|
27
|
-
border:
|
|
25
|
+
width: 38px;
|
|
26
|
+
height: 38px;
|
|
27
|
+
border: 19px solid;
|
|
28
28
|
border-color: transparent transparent transparent transparent;
|
|
29
29
|
border-left: 12px solid #B0B4B7;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.choosed-status-label.form-status-label::after {
|
|
33
|
-
border-left: 12px solid #
|
|
33
|
+
border-left: 12px solid #68C900;
|
|
34
|
+
z-index: 9;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {
|
|
37
|
-
border-left: 12px solid #
|
|
38
|
+
border-left: 12px solid #68C900;
|
|
39
|
+
z-index: 10;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.form-status-label:last-child::after {
|
|
@@ -43,9 +45,9 @@
|
|
|
43
45
|
content: '';
|
|
44
46
|
left: 0;
|
|
45
47
|
top: 0;
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
48
|
-
border:
|
|
48
|
+
width: 38px;
|
|
49
|
+
height: 38px;
|
|
50
|
+
border: 19px solid;
|
|
49
51
|
border-color: transparent transparent transparent transparent;
|
|
50
52
|
border-left: 12px solid #ffffff;
|
|
51
53
|
}
|
|
@@ -56,9 +58,9 @@
|
|
|
56
58
|
content: '';
|
|
57
59
|
left: 0;
|
|
58
60
|
top: 0;
|
|
59
|
-
width:
|
|
60
|
-
height:
|
|
61
|
-
border:
|
|
61
|
+
width: 38px;
|
|
62
|
+
height: 38px;
|
|
63
|
+
border: 19px solid;
|
|
62
64
|
border-color: transparent transparent transparent transparent;
|
|
63
65
|
border-left: 12px solid #ffffff;
|
|
64
66
|
}
|
|
@@ -67,26 +69,44 @@
|
|
|
67
69
|
position: absolute;
|
|
68
70
|
display: block;
|
|
69
71
|
content: '';
|
|
70
|
-
right: -
|
|
72
|
+
right: -38px;
|
|
71
73
|
top: 0;
|
|
72
|
-
width:
|
|
73
|
-
height:
|
|
74
|
-
border:
|
|
74
|
+
width: 38px;
|
|
75
|
+
height: 38px;
|
|
76
|
+
border: 19px solid;
|
|
75
77
|
border-color: transparent transparent transparent transparent;
|
|
76
78
|
border-left: 12px solid #B0B4B7;
|
|
79
|
+
z-index: 9;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
.status-label-index {
|
|
80
83
|
display: inline-block;
|
|
81
|
-
width:
|
|
82
|
-
height:
|
|
84
|
+
width: 16px;
|
|
85
|
+
height: 16px;
|
|
86
|
+
// border: 1px solid #FFFFFF;
|
|
87
|
+
// color: #FFFFFF;
|
|
88
|
+
background: #FFFFFF;
|
|
89
|
+
color: #68C900;
|
|
90
|
+
border-radius: 50%;
|
|
91
|
+
font-family: Montserrat;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
font-size: 12px;line-height: 16px;
|
|
94
|
+
text-align: center;
|
|
95
|
+
margin: 0 4px 0 20px;
|
|
96
|
+
}
|
|
97
|
+
.choosed-status-label-index{
|
|
83
98
|
border: 1px solid #FFFFFF;
|
|
84
99
|
color: #FFFFFF;
|
|
100
|
+
display: inline-block;
|
|
101
|
+
width: 16px;
|
|
102
|
+
height: 16px;
|
|
85
103
|
border-radius: 50%;
|
|
86
104
|
font-family: Montserrat;
|
|
87
|
-
font-
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
font-size: 12px;
|
|
107
|
+
line-height: 16px;
|
|
88
108
|
text-align: center;
|
|
89
|
-
margin: 0
|
|
109
|
+
margin: 0 4px 0 20px;
|
|
90
110
|
}
|
|
91
111
|
|
|
92
112
|
.status-label-key {
|
|
@@ -111,18 +131,19 @@
|
|
|
111
131
|
height: 100%;
|
|
112
132
|
margin: 4px 0;
|
|
113
133
|
&>div {
|
|
114
|
-
font-size:
|
|
115
|
-
height:
|
|
116
|
-
line-height:
|
|
134
|
+
font-size: 10px;
|
|
135
|
+
height: 14px;
|
|
136
|
+
line-height: 14px;
|
|
117
137
|
color: #FFFFFF;
|
|
118
138
|
font-family: PingFangSC;
|
|
119
139
|
overflow: hidden;
|
|
120
140
|
text-overflow: ellipsis;
|
|
121
141
|
white-space: nowrap;
|
|
142
|
+
font-weight: 300;
|
|
122
143
|
}
|
|
123
144
|
&>div:first-child {
|
|
124
|
-
font-size:
|
|
125
|
-
font-weight:
|
|
145
|
+
font-size: 12px;
|
|
146
|
+
font-weight: 500;
|
|
126
147
|
}
|
|
127
148
|
}
|
|
128
149
|
|
|
@@ -23,32 +23,32 @@ export default () => {
|
|
|
23
23
|
{
|
|
24
24
|
text: '状态1',
|
|
25
25
|
modifyUserName: '张三',
|
|
26
|
-
modifyTime: '2022
|
|
26
|
+
modifyTime: '2022/09/01 12:20:20',
|
|
27
27
|
isDone: true,
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
text: '状态2',
|
|
31
31
|
modifyUserName: '李四',
|
|
32
|
-
modifyTime: '2022
|
|
32
|
+
modifyTime: '2022/09/01 12:20:20',
|
|
33
33
|
isDone: true,
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
text: '状态3',
|
|
37
37
|
modifyUserName: '王五',
|
|
38
|
-
modifyTime: '2022
|
|
38
|
+
modifyTime: '2022/09/01 12:20:20',
|
|
39
39
|
isDone: true,
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
text: '状态4',
|
|
43
43
|
modifyUserName: '韩梅梅',
|
|
44
44
|
isDone: true,
|
|
45
|
-
modifyTime: '2022
|
|
45
|
+
modifyTime: '2022/09/01 12:20:20',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
text: '状态5',
|
|
49
49
|
modifyUserName: '李雷',
|
|
50
50
|
isDone: true,
|
|
51
|
-
modifyTime: '2022
|
|
51
|
+
modifyTime: '2022/09/01 12:20:20',
|
|
52
52
|
},
|
|
53
53
|
]
|
|
54
54
|
return (
|
|
@@ -4,24 +4,27 @@ import './index.less'
|
|
|
4
4
|
export default (props: any) => {
|
|
5
5
|
const { formStatusMapping = [] } = props;
|
|
6
6
|
return (
|
|
7
|
-
<div style={{display: 'flex',
|
|
7
|
+
<div style={{display: 'flex', background: '#FFFFFF'}}>
|
|
8
8
|
{
|
|
9
9
|
formStatusMapping.map((item:any, index:number) => {
|
|
10
10
|
return (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
<div style={{width: `${(100/formStatusMapping.length).toFixed(2)}%`}} className={`form-status-label ${item.isDone ? 'choosed-status-label' : ''} ${formStatusMapping.length === 1 ? 'only-one-child' : ''}`}>
|
|
12
|
+
<div className='status-label-key'>
|
|
13
|
+
<span
|
|
14
|
+
// className='status-label-index'
|
|
15
|
+
className={`${item.isDone?'status-label-index':'choosed-status-label-index' }`}
|
|
16
|
+
>{index+1}</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div className='status-label-operate'>
|
|
19
|
+
<div style={!item.isDone ? {height: '30px', lineHeight: '30px'} : {}}>{item.text}</div>
|
|
20
|
+
{
|
|
21
|
+
item.isDone ? (
|
|
22
|
+
<div title={`${item.modifyUserName || '--'} ${item.modifyTime || '--'}`}>{`${item.modifyUserName || '--'} ${item.modifyTime || '--'}`}</div>
|
|
23
|
+
) : null
|
|
24
|
+
}
|
|
25
|
+
</div>
|
|
26
|
+
<div style={{clear: 'both'}}></div>
|
|
27
|
+
</div>
|
|
25
28
|
)
|
|
26
29
|
})
|
|
27
30
|
}
|
|
@@ -13,7 +13,7 @@ order: 2
|
|
|
13
13
|
|
|
14
14
|
Demo
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
行政组织(部门)选择器:
|
|
17
17
|
|
|
18
18
|
```tsx
|
|
19
19
|
import React, { useState } from 'react';
|
|
@@ -123,4 +123,32 @@ export default () => {
|
|
|
123
123
|
};
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
+
|
|
127
|
+
营销区域选择器:
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
import React, { useState } from 'react';
|
|
131
|
+
import { BusinessTreeSearchSelect } from '../../../index';
|
|
132
|
+
|
|
133
|
+
export default () => {
|
|
134
|
+
|
|
135
|
+
const [value, setValue] = useState();
|
|
136
|
+
|
|
137
|
+
const props = {
|
|
138
|
+
mode: 'create',
|
|
139
|
+
value,
|
|
140
|
+
onChange: (v) => {
|
|
141
|
+
setValue(v)
|
|
142
|
+
},
|
|
143
|
+
businessType: 'market-area'
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<div>
|
|
148
|
+
<BusinessTreeSearchSelect {...props} />
|
|
149
|
+
</div>
|
|
150
|
+
);
|
|
151
|
+
};
|
|
152
|
+
```
|
|
153
|
+
|
|
126
154
|
More skills for writing demo: https://d.umijs.org/guide/demo-principle
|
|
@@ -42,6 +42,15 @@ const handleDefaultProps = (type: string) => {
|
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
break;
|
|
45
|
+
case 'market-area':
|
|
46
|
+
result = {
|
|
47
|
+
isChoose: true,
|
|
48
|
+
remoteSource: {
|
|
49
|
+
url: `/channel-manage/tagNode/getTree/10`,
|
|
50
|
+
resKeyValue: ['code', 'name'],
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
break;
|
|
45
54
|
default:
|
|
46
55
|
result = {
|
|
47
56
|
treeCheckable: true,
|
|
@@ -69,7 +69,7 @@ const TreeSearchSelect = (props: any) => {
|
|
|
69
69
|
const resData = res?.data || [];
|
|
70
70
|
let coverData;
|
|
71
71
|
|
|
72
|
-
if(resData.status === '0') {
|
|
72
|
+
if(resData.status === '0' || resData.code === '000000') {
|
|
73
73
|
const { data } = resData;
|
|
74
74
|
if (remoteSource.converter) {
|
|
75
75
|
coverData = await remoteSource.converter({ data: [data] })
|