@bit-sun/business-component 2.2.19 → 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.
@@ -30,6 +30,8 @@ export declare const choiceType: Readonly<{
30
30
  280: "库存组织选择器";
31
31
  310: "配送方式选择器";
32
32
  330: "变量";
33
+ 340: "规则场景选择器";
34
+ 350: "营销区域选择器";
33
35
  }>;
34
36
  export declare const inputType: any;
35
37
  export declare const valueType: any;
package/dist/index.esm.js CHANGED
@@ -12938,10 +12938,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
12938
12938
  }
12939
12939
  }
12940
12940
  }];
12941
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
12942
- pageSize: 5000,
12941
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue/sizeBySkcConfig"), {
12942
+ pageSize: 10000,
12943
12943
  currentPage: 1,
12944
- 'qp-propertyId-eq': '1467042217951883265'
12944
+ type: 2 // 类型:1尺码;2颜色
12945
12945
  }), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
12946
12946
  pageSize: 5000,
12947
12947
  currentPage: 1
@@ -14505,7 +14505,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14505
14505
  requestConfig: _objectSpread2({
14506
14506
  url: "/items/skc/skcSelect",
14507
14507
  filter: 'qp-name-like',
14508
- otherParams: {},
14508
+ otherParams: {
14509
+ 'qp-skcStatus-eq': 1
14510
+ },
14509
14511
  mappingTextField: 'name',
14510
14512
  mappingValueField: 'code'
14511
14513
  }, parProps.requestConfig),
@@ -15153,7 +15155,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15153
15155
  switch (_context.prev = _context.next) {
15154
15156
  case 0:
15155
15157
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15156
- if (!(resData.status === '0')) {
15158
+ if (!(resData.status === '0' || resData.code === '000000')) {
15157
15159
  _context.next = 13;
15158
15160
  break;
15159
15161
  }
@@ -15336,6 +15338,15 @@ var handleDefaultProps = function handleDefaultProps(type) {
15336
15338
  }
15337
15339
  };
15338
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;
15339
15350
  default:
15340
15351
  result = {
15341
15352
  treeCheckable: true,
@@ -15372,7 +15383,7 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
15372
15383
  return true;
15373
15384
  });
15374
15385
 
15375
- var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\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: #005CFF;\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: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px 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 #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px 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: 48px;\n height: 48px;\n border: 24px 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: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 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: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
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";
15376
15387
  styleInject(css_248z$8);
15377
15388
 
15378
15389
  var index$2 = (function (props) {
@@ -15381,7 +15392,6 @@ var index$2 = (function (props) {
15381
15392
  return /*#__PURE__*/React.createElement("div", {
15382
15393
  style: {
15383
15394
  display: 'flex',
15384
- padding: '10px 60px 0px',
15385
15395
  background: '#FFFFFF'
15386
15396
  }
15387
15397
  }, formStatusMapping.map(function (item, index) {
@@ -15393,13 +15403,14 @@ var index$2 = (function (props) {
15393
15403
  }, /*#__PURE__*/React.createElement("div", {
15394
15404
  className: 'status-label-key'
15395
15405
  }, /*#__PURE__*/React.createElement("span", {
15396
- className: 'status-label-index'
15406
+ // className='status-label-index'
15407
+ className: "".concat(item.isDone ? 'status-label-index' : 'choosed-status-label-index')
15397
15408
  }, index + 1)), /*#__PURE__*/React.createElement("div", {
15398
15409
  className: 'status-label-operate'
15399
15410
  }, /*#__PURE__*/React.createElement("div", {
15400
15411
  style: !item.isDone ? {
15401
- height: '40px',
15402
- lineHeight: '40px'
15412
+ height: '30px',
15413
+ lineHeight: '30px'
15403
15414
  } : {}
15404
15415
  }, item.text), item.isDone ? /*#__PURE__*/React.createElement("div", {
15405
15416
  title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
@@ -15413,9 +15424,9 @@ var index$2 = (function (props) {
15413
15424
 
15414
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";
15415
15426
 
15416
- var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAuBJREFUaEPtl0urjlEUx3/HXUkpErkkJAYoGbhkJB2SW2IgBibKVL6Cz2BgQMqAXCKXiHIGBhiIDJEJyjXlfu2vtWp36nj2fvZ+HG/tXW/n7bz7Wft/WXut9fTR46uvx/FTCQy3g9WB6kCmAjWFMgXMfrw6kC1hZoDqQKaA2Y//Cwd0xq9spEME6JLACOCnnRt+L8qlKwIOeDT8GRi/Ap2Q6ILASOAHsAo4DEwGDgAnAP+tmAulCTjANcBpA6/812e3kRgFfC/FoCQBByblzxl4Tx399hnYA5wq6UQpAq78ClN+mqWR/q+llNL3T8BO4AJQxIkSBBz8cgM2FfgCjAXOAC+A/cA3QJf6vZG4UoJELgEHvww4C8wMgF40oB+BI8Bey30p/xbYDtzITaccAg5+CXAJmB4oL3UF8IMBVD84DuwK9rwCNgO3cki0JeDgF9uFnRMof83AK1VU+7VEYBxwDNgR7H0GbAVutyXRhoCDXwhcBmYHql4HtlmeD+7EKqW6A6pCm4JnRGI9cL8NiVQCDn6RKT/fuuwY4CawBXg3BBAnNAE4aaD9Yj+ydHqYSiKFgIOfByjH5wYqDlgqvGkYGZzERCu3a4MYIrEOeJxCIpaAT5RSXE1KDqhJSXldQqXE68iDXYhJwHlgdRDrgTnxxGaoxik2hoCrNgu4CiwIVBN4pc3LxGHNY04xQVYGMXUX+oHnMTFjCPjYouoiyzUSqKLcBTYY+DZd1Z1Q41NKLg1iq4dsjJmXmgh46owHngJSTOuOKa8KkjMmh+4qndRTtHSXZtjo8dcXoiYCCuYB1IQOAfeAfTYitFF+sLDuhMrxUXPioHXvxre5GALhgarjGszUmBqDx6SA7fFYEkSENEtFrRQCfoj+6uOvi1EHRWxyLKo80eKkEIjAUGRLNHjP7yKnDleQ/9GBJC0qgSS5OthcHehA1KSQ1YEkuTrYXB3oQNSkkNWBJLk62NzzDvwGGnWoMahVpG4AAAAASUVORK5CYII=";
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";
15417
15428
 
15418
- 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: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\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";
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";
15419
15430
  styleInject(css_248z$9);
15420
15431
 
15421
15432
  var _excluded$5 = ["children"],
@@ -15438,10 +15449,10 @@ var Field = function Field(_ref) {
15438
15449
  className: 'title-left-line'
15439
15450
  }), /*#__PURE__*/React.createElement("span", {
15440
15451
  style: {
15441
- marginRight: '5px'
15452
+ marginRight: '4px'
15442
15453
  }
15443
15454
  }, props === null || props === void 0 ? void 0 : props.title), /*#__PURE__*/React.createElement("img", {
15444
- width: 24,
15455
+ width: 20,
15445
15456
  style: {
15446
15457
  transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
15447
15458
  cursor: 'pointer'
@@ -29229,6 +29240,20 @@ var inputTypes = {
29229
29240
  310: {
29230
29241
  type: 'bs-deliveryModeSearchSelect',
29231
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)
29232
29257
  }
29233
29258
  },
29234
29259
  30: {
@@ -29365,6 +29390,20 @@ var inputTypes = {
29365
29390
  filter: 'qp-name,code-orGroup,in'
29366
29391
  }
29367
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)
29368
29407
  }
29369
29408
  }
29370
29409
  };
@@ -29393,7 +29432,9 @@ var choiceType = Object.freeze({
29393
29432
  270: '员工选择器',
29394
29433
  280: '库存组织选择器',
29395
29434
  310: '配送方式选择器',
29396
- 330: '变量'
29435
+ 330: '变量',
29436
+ 340: '规则场景选择器',
29437
+ 350: '营销区域选择器'
29397
29438
  });
29398
29439
  var inputType = {
29399
29440
  10: '输入',
package/dist/index.js CHANGED
@@ -12956,10 +12956,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
12956
12956
  }
12957
12957
  }
12958
12958
  }];
12959
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
12960
- pageSize: 5000,
12959
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue/sizeBySkcConfig"), {
12960
+ pageSize: 10000,
12961
12961
  currentPage: 1,
12962
- 'qp-propertyId-eq': '1467042217951883265'
12962
+ type: 2 // 类型:1尺码;2颜色
12963
12963
  }), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
12964
12964
  pageSize: 5000,
12965
12965
  currentPage: 1
@@ -14523,7 +14523,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14523
14523
  requestConfig: _objectSpread2({
14524
14524
  url: "/items/skc/skcSelect",
14525
14525
  filter: 'qp-name-like',
14526
- otherParams: {},
14526
+ otherParams: {
14527
+ 'qp-skcStatus-eq': 1
14528
+ },
14527
14529
  mappingTextField: 'name',
14528
14530
  mappingValueField: 'code'
14529
14531
  }, parProps.requestConfig),
@@ -15171,7 +15173,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15171
15173
  switch (_context.prev = _context.next) {
15172
15174
  case 0:
15173
15175
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15174
- if (!(resData.status === '0')) {
15176
+ if (!(resData.status === '0' || resData.code === '000000')) {
15175
15177
  _context.next = 13;
15176
15178
  break;
15177
15179
  }
@@ -15354,6 +15356,15 @@ var handleDefaultProps = function handleDefaultProps(type) {
15354
15356
  }
15355
15357
  };
15356
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;
15357
15368
  default:
15358
15369
  result = {
15359
15370
  treeCheckable: true,
@@ -15390,7 +15401,7 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
15390
15401
  return true;
15391
15402
  });
15392
15403
 
15393
- var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\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: #005CFF;\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: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px 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 #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px 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: 48px;\n height: 48px;\n border: 24px 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: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 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: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
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";
15394
15405
  styleInject(css_248z$8);
15395
15406
 
15396
15407
  var index$2 = (function (props) {
@@ -15399,7 +15410,6 @@ var index$2 = (function (props) {
15399
15410
  return /*#__PURE__*/React__default['default'].createElement("div", {
15400
15411
  style: {
15401
15412
  display: 'flex',
15402
- padding: '10px 60px 0px',
15403
15413
  background: '#FFFFFF'
15404
15414
  }
15405
15415
  }, formStatusMapping.map(function (item, index) {
@@ -15411,13 +15421,14 @@ var index$2 = (function (props) {
15411
15421
  }, /*#__PURE__*/React__default['default'].createElement("div", {
15412
15422
  className: 'status-label-key'
15413
15423
  }, /*#__PURE__*/React__default['default'].createElement("span", {
15414
- className: 'status-label-index'
15424
+ // className='status-label-index'
15425
+ className: "".concat(item.isDone ? 'status-label-index' : 'choosed-status-label-index')
15415
15426
  }, index + 1)), /*#__PURE__*/React__default['default'].createElement("div", {
15416
15427
  className: 'status-label-operate'
15417
15428
  }, /*#__PURE__*/React__default['default'].createElement("div", {
15418
15429
  style: !item.isDone ? {
15419
- height: '40px',
15420
- lineHeight: '40px'
15430
+ height: '30px',
15431
+ lineHeight: '30px'
15421
15432
  } : {}
15422
15433
  }, item.text), item.isDone ? /*#__PURE__*/React__default['default'].createElement("div", {
15423
15434
  title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
@@ -15431,9 +15442,9 @@ var index$2 = (function (props) {
15431
15442
 
15432
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";
15433
15444
 
15434
- var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAuBJREFUaEPtl0urjlEUx3/HXUkpErkkJAYoGbhkJB2SW2IgBibKVL6Cz2BgQMqAXCKXiHIGBhiIDJEJyjXlfu2vtWp36nj2fvZ+HG/tXW/n7bz7Wft/WXut9fTR46uvx/FTCQy3g9WB6kCmAjWFMgXMfrw6kC1hZoDqQKaA2Y//Cwd0xq9spEME6JLACOCnnRt+L8qlKwIOeDT8GRi/Ap2Q6ILASOAHsAo4DEwGDgAnAP+tmAulCTjANcBpA6/812e3kRgFfC/FoCQBByblzxl4Tx399hnYA5wq6UQpAq78ClN+mqWR/q+llNL3T8BO4AJQxIkSBBz8cgM2FfgCjAXOAC+A/cA3QJf6vZG4UoJELgEHvww4C8wMgF40oB+BI8Bey30p/xbYDtzITaccAg5+CXAJmB4oL3UF8IMBVD84DuwK9rwCNgO3cki0JeDgF9uFnRMof83AK1VU+7VEYBxwDNgR7H0GbAVutyXRhoCDXwhcBmYHql4HtlmeD+7EKqW6A6pCm4JnRGI9cL8NiVQCDn6RKT/fuuwY4CawBXg3BBAnNAE4aaD9Yj+ydHqYSiKFgIOfByjH5wYqDlgqvGkYGZzERCu3a4MYIrEOeJxCIpaAT5RSXE1KDqhJSXldQqXE68iDXYhJwHlgdRDrgTnxxGaoxik2hoCrNgu4CiwIVBN4pc3LxGHNY04xQVYGMXUX+oHnMTFjCPjYouoiyzUSqKLcBTYY+DZd1Z1Q41NKLg1iq4dsjJmXmgh46owHngJSTOuOKa8KkjMmh+4qndRTtHSXZtjo8dcXoiYCCuYB1IQOAfeAfTYitFF+sLDuhMrxUXPioHXvxre5GALhgarjGszUmBqDx6SA7fFYEkSENEtFrRQCfoj+6uOvi1EHRWxyLKo80eKkEIjAUGRLNHjP7yKnDleQ/9GBJC0qgSS5OthcHehA1KSQ1YEkuTrYXB3oQNSkkNWBJLk62NzzDvwGGnWoMahVpG4AAAAASUVORK5CYII=";
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";
15435
15446
 
15436
- 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: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\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";
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";
15437
15448
  styleInject(css_248z$9);
15438
15449
 
15439
15450
  var _excluded$5 = ["children"],
@@ -15456,10 +15467,10 @@ var Field = function Field(_ref) {
15456
15467
  className: 'title-left-line'
15457
15468
  }), /*#__PURE__*/React__default['default'].createElement("span", {
15458
15469
  style: {
15459
- marginRight: '5px'
15470
+ marginRight: '4px'
15460
15471
  }
15461
15472
  }, props === null || props === void 0 ? void 0 : props.title), /*#__PURE__*/React__default['default'].createElement("img", {
15462
- width: 24,
15473
+ width: 20,
15463
15474
  style: {
15464
15475
  transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
15465
15476
  cursor: 'pointer'
@@ -29247,6 +29258,20 @@ var inputTypes = {
29247
29258
  310: {
29248
29259
  type: 'bs-deliveryModeSearchSelect',
29249
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)
29250
29275
  }
29251
29276
  },
29252
29277
  30: {
@@ -29383,6 +29408,20 @@ var inputTypes = {
29383
29408
  filter: 'qp-name,code-orGroup,in'
29384
29409
  }
29385
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)
29386
29425
  }
29387
29426
  }
29388
29427
  };
@@ -29411,7 +29450,9 @@ var choiceType = Object.freeze({
29411
29450
  270: '员工选择器',
29412
29451
  280: '库存组织选择器',
29413
29452
  310: '配送方式选择器',
29414
- 330: '变量'
29453
+ 330: '变量',
29454
+ 340: '规则场景选择器',
29455
+ 350: '营销区域选择器'
29415
29456
  });
29416
29457
  var inputType = {
29417
29458
  10: '输入',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.2.19",
3
+ "version": "2.2.21",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -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>
@@ -423,7 +423,7 @@ export const AddSkcSelect = (parProps: any) => {
423
423
  requestConfig: {
424
424
  url: `/items/skc/skcSelect`,
425
425
  filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
426
- otherParams: {}, // 默认参数
426
+ otherParams: { 'qp-skcStatus-eq': 1, }, // 默认参数
427
427
  mappingTextField: 'name',
428
428
  mappingValueField: 'code',
429
429
  ...parProps.requestConfig
@@ -87,13 +87,15 @@
87
87
  .ant-card-head-title {
88
88
  display: flex;
89
89
  align-items: center;
90
- font-size: 16px;
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.png';
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: '5px' }}>
22
+ <span style={{ marginRight: '4px' }}>
23
23
  {props?.title}
24
24
  </span>
25
25
  <img
26
- width={24}
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: '输入',
@@ -688,10 +688,10 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
688
688
  } },
689
689
  ]
690
690
  Promise.all([
691
- loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
692
- pageSize: 5000,
691
+ loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue/sizeBySkcConfig`, {
692
+ pageSize: 10000,
693
693
  currentPage: 1,
694
- 'qp-propertyId-eq': '1467042217951883265'
694
+ type: 2, // 类型:1尺码;2颜色
695
695
  }),
696
696
  loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
697
697
  pageSize: 5000,
@@ -1,6 +1,6 @@
1
1
  .form-status-label {
2
- height: 48px;
3
- margin-right: 12px;
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: #005CFF;
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: -48px;
23
+ right: -38px;
24
24
  top: 0;
25
- width: 48px;
26
- height: 48px;
27
- border: 24px solid;
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 #005CFF;
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 #005CFF;
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: 48px;
47
- height: 48px;
48
- border: 24px solid;
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: 48px;
60
- height: 48px;
61
- border: 24px solid;
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: -48px;
72
+ right: -38px;
71
73
  top: 0;
72
- width: 48px;
73
- height: 48px;
74
- border: 24px solid;
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: 24px;
82
- height: 24px;
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-size: 14px;line-height: 24px;
105
+ font-weight: 500;
106
+ font-size: 12px;
107
+ line-height: 16px;
88
108
  text-align: center;
89
- margin: 0 6px 0 20px;
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: 12px;
115
- height: 20px;
116
- line-height: 20px;
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: 14px;
125
- font-weight: 600;
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-09-01 12:20:20',
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-09-01 12:20:20',
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-09-01 12:20:20',
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-09-01 12:20:20',
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-09-01 12:20:20',
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', padding: '10px 60px 0px', background: '#FFFFFF'}}>
7
+ <div style={{display: 'flex', background: '#FFFFFF'}}>
8
8
  {
9
9
  formStatusMapping.map((item:any, index:number) => {
10
10
  return (
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 className='status-label-index'>{index+1}</span>
14
- </div>
15
- <div className='status-label-operate'>
16
- <div style={!item.isDone ? {height: '40px', lineHeight: '40px'} : {}}>{item.text}</div>
17
- {
18
- item.isDone ? (
19
- <div title={`${item.modifyUserName || '--'} ${item.modifyTime || '--'}`}>{`${item.modifyUserName || '--'} ${item.modifyTime || '--'}`}</div>
20
- ) : null
21
- }
22
- </div>
23
- <div style={{clear: 'both'}}></div>
24
- </div>
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] })