@bit-sun/business-component 4.2.1-alpha.25-aiwei → 4.2.1-alpha.27-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +252 -66
- package/dist/index.js +259 -73
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +3 -2
- package/src/components/Business/BsSulaQueryTable/index.tsx +10 -3
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +126 -24
- package/src/components/Functional/AddSelect/index.tsx +3 -1
- package/src/components/Functional/BillEntry/index.tsx +0 -1
- package/src/components/Functional/DataValidation/index.tsx +9 -6
- package/src/components/Functional/SearchSelect/index.tsx +0 -1
- package/src/components/Solution/RuleComponent/index.d.ts +2 -0
- package/src/components/Solution/RuleComponent/index.js +131 -20
package/dist/index.esm.js
CHANGED
|
@@ -2561,11 +2561,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2561
2561
|
cell.v = cell.m;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
// console.log(postion);
|
|
2565
2564
|
},
|
|
2566
2565
|
cellAllRenderBefore: function cellAllRenderBefore(data, sheetFile, ctx) {
|
|
2567
2566
|
sheetFile.config.borderInfo = [];
|
|
2568
|
-
// console.info(data,sheetFile,ctx)
|
|
2569
2567
|
}
|
|
2570
2568
|
},
|
|
2571
2569
|
showtoolbarConfig: {
|
|
@@ -2733,14 +2731,21 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2733
2731
|
};
|
|
2734
2732
|
};
|
|
2735
2733
|
_this.getData = function () {
|
|
2736
|
-
|
|
2734
|
+
// 是否使用字符串值 默认为false
|
|
2735
|
+
var useStringValue = _this.props.useStringValue || false;
|
|
2737
2736
|
var sheetData = luckysheet.getSheetData();
|
|
2738
2737
|
var data = JSON.parse(JSON.stringify(sheetData)).filter(function (item) {
|
|
2739
2738
|
return item[0];
|
|
2740
2739
|
}).map(function (item) {
|
|
2741
2740
|
var obj = {};
|
|
2742
2741
|
item.slice(0, itemsTemp.length).map(function (innerItem, index) {
|
|
2743
|
-
|
|
2742
|
+
// 如果使用字符串值,直接赋值字符串
|
|
2743
|
+
if (useStringValue) {
|
|
2744
|
+
obj[_this.state.items[index].code] = innerItem && innerItem.m;
|
|
2745
|
+
} else {
|
|
2746
|
+
// 否则根据值是否相等来判断是否使用字符串值
|
|
2747
|
+
obj[_this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
2748
|
+
}
|
|
2744
2749
|
});
|
|
2745
2750
|
return obj;
|
|
2746
2751
|
});
|
|
@@ -2881,7 +2886,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2881
2886
|
errorListCheck: false,
|
|
2882
2887
|
resultData: res
|
|
2883
2888
|
});
|
|
2884
|
-
console.log(setExportData);
|
|
2885
2889
|
setExportData([123123]);
|
|
2886
2890
|
}).catch(function (err) {});
|
|
2887
2891
|
case 3:
|
|
@@ -3177,7 +3181,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3177
3181
|
left: '0px',
|
|
3178
3182
|
top: '0px'
|
|
3179
3183
|
};
|
|
3180
|
-
console.log('itemsTemp', itemsTemp);
|
|
3181
3184
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
3182
3185
|
className: "sheet_table_top"
|
|
3183
3186
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement("span", null, "\u6392\u5E8F\u5217"), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
@@ -5994,7 +5997,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5994
5997
|
};
|
|
5995
5998
|
var formItem = function formItem(list) {
|
|
5996
5999
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5997
|
-
debugger;
|
|
5998
6000
|
var setDisabled = function setDisabled(name) {
|
|
5999
6001
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
6000
6002
|
return item === name;
|
|
@@ -8428,6 +8430,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8428
8430
|
});
|
|
8429
8431
|
};
|
|
8430
8432
|
var handleTableChange = function handleTableChange(pagination) {
|
|
8433
|
+
// 设置分页tablePagination
|
|
8434
|
+
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), pagination));
|
|
8431
8435
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
8432
8436
|
pageSize: pagination.pageSize,
|
|
8433
8437
|
currentPage: pagination.current
|
|
@@ -9020,7 +9024,6 @@ var InputElement = function InputElement(_ref) {
|
|
|
9020
9024
|
// {
|
|
9021
9025
|
// body: {
|
|
9022
9026
|
// cell: ({index, record, ...props}) => {
|
|
9023
|
-
// debugger
|
|
9024
9027
|
// return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
|
|
9025
9028
|
// }
|
|
9026
9029
|
// }
|
|
@@ -11087,8 +11090,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11087
11090
|
}]
|
|
11088
11091
|
}, selectConfigProps);
|
|
11089
11092
|
var _tableSearchForm = handleHiddenFields([{
|
|
11090
|
-
name: 'qp-code-
|
|
11091
|
-
label: 'SKC编码'
|
|
11093
|
+
name: 'qp-code-in',
|
|
11094
|
+
label: 'SKC编码',
|
|
11095
|
+
type: 'multipleQueryInput'
|
|
11092
11096
|
}, {
|
|
11093
11097
|
name: 'qp-skcName-like',
|
|
11094
11098
|
label: 'SKC名称'
|
|
@@ -11140,10 +11144,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11140
11144
|
}
|
|
11141
11145
|
}
|
|
11142
11146
|
}
|
|
11143
|
-
},
|
|
11144
|
-
|
|
11147
|
+
},
|
|
11148
|
+
// { name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
11149
|
+
// type: 'select',
|
|
11150
|
+
// props: {
|
|
11151
|
+
// mode: 'multiple',
|
|
11152
|
+
// notFoundContent: '暂无数据',
|
|
11153
|
+
// allowClear: true,
|
|
11154
|
+
// showSearch: true,
|
|
11155
|
+
// showArrow: true,
|
|
11156
|
+
// maxTagCount: 1,
|
|
11157
|
+
// optionFilterProp: 'children',
|
|
11158
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
11159
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
11160
|
+
// },
|
|
11161
|
+
// } },
|
|
11162
|
+
{
|
|
11163
|
+
name: 'qp-brandId-in',
|
|
11145
11164
|
type: 'select',
|
|
11146
|
-
label: '
|
|
11165
|
+
label: '品牌',
|
|
11147
11166
|
field: {
|
|
11148
11167
|
type: 'select',
|
|
11149
11168
|
props: {
|
|
@@ -11159,12 +11178,53 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11159
11178
|
}
|
|
11160
11179
|
}
|
|
11161
11180
|
}
|
|
11162
|
-
},
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11181
|
+
},
|
|
11182
|
+
// 商品属性 品类 == MAT_CATA (zzdlbm)
|
|
11183
|
+
{
|
|
11184
|
+
name: "qp-zzdlbm-in",
|
|
11185
|
+
label: "品类",
|
|
11166
11186
|
field: {
|
|
11167
|
-
type:
|
|
11187
|
+
type: "select",
|
|
11188
|
+
props: {
|
|
11189
|
+
mode: 'multiple',
|
|
11190
|
+
notFoundContent: '暂无数据',
|
|
11191
|
+
allowClear: true,
|
|
11192
|
+
showSearch: true,
|
|
11193
|
+
showArrow: true,
|
|
11194
|
+
maxTagCount: 1,
|
|
11195
|
+
optionFilterProp: 'children',
|
|
11196
|
+
filterOption: function filterOption(input, option) {
|
|
11197
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11198
|
+
}
|
|
11199
|
+
}
|
|
11200
|
+
}
|
|
11201
|
+
},
|
|
11202
|
+
// 商品属性 大类 == MID_CATA (zzzlbm)
|
|
11203
|
+
{
|
|
11204
|
+
name: "qp-zzzlbm-in",
|
|
11205
|
+
label: "大类",
|
|
11206
|
+
field: {
|
|
11207
|
+
type: "select",
|
|
11208
|
+
props: {
|
|
11209
|
+
mode: 'multiple',
|
|
11210
|
+
notFoundContent: '暂无数据',
|
|
11211
|
+
allowClear: true,
|
|
11212
|
+
showSearch: true,
|
|
11213
|
+
showArrow: true,
|
|
11214
|
+
maxTagCount: 1,
|
|
11215
|
+
optionFilterProp: 'children',
|
|
11216
|
+
filterOption: function filterOption(input, option) {
|
|
11217
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11218
|
+
}
|
|
11219
|
+
}
|
|
11220
|
+
}
|
|
11221
|
+
},
|
|
11222
|
+
// 商品属性 中类 == PROP_SUBCATEORY (zzxlbm)
|
|
11223
|
+
{
|
|
11224
|
+
name: "qp-zzxlbm-in",
|
|
11225
|
+
label: "中类",
|
|
11226
|
+
field: {
|
|
11227
|
+
type: "select",
|
|
11168
11228
|
props: {
|
|
11169
11229
|
mode: 'multiple',
|
|
11170
11230
|
notFoundContent: '暂无数据',
|
|
@@ -11198,22 +11258,48 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11198
11258
|
currentPage: 1
|
|
11199
11259
|
},
|
|
11200
11260
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-categoryId-in')
|
|
11261
|
+
},
|
|
11262
|
+
// {
|
|
11263
|
+
// url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
11264
|
+
// params: {
|
|
11265
|
+
// pageSize: 5000,
|
|
11266
|
+
// currentPage: 1,
|
|
11267
|
+
// },
|
|
11268
|
+
// options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
11269
|
+
// },
|
|
11270
|
+
{
|
|
11271
|
+
url: "".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"),
|
|
11272
|
+
params: {
|
|
11273
|
+
pageSize: 5000,
|
|
11274
|
+
currentPage: 1,
|
|
11275
|
+
'ctl-withAuth': true
|
|
11276
|
+
},
|
|
11277
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11201
11278
|
}, {
|
|
11202
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11279
|
+
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11203
11280
|
params: {
|
|
11204
11281
|
pageSize: 5000,
|
|
11205
|
-
currentPage: 1
|
|
11282
|
+
currentPage: 1,
|
|
11283
|
+
'qp-propertyCode-eq': 'MAT_CATA'
|
|
11206
11284
|
},
|
|
11207
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11285
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzdlbm-in')
|
|
11208
11286
|
}, {
|
|
11209
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11287
|
+
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11210
11288
|
params: {
|
|
11211
11289
|
pageSize: 5000,
|
|
11212
11290
|
currentPage: 1,
|
|
11213
|
-
'
|
|
11291
|
+
'qp-propertyCode-eq': 'MID_CATA'
|
|
11214
11292
|
},
|
|
11215
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11216
|
-
}
|
|
11293
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzzlbm-in')
|
|
11294
|
+
}, {
|
|
11295
|
+
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11296
|
+
params: {
|
|
11297
|
+
pageSize: 5000,
|
|
11298
|
+
currentPage: 1,
|
|
11299
|
+
'qp-propertyCode-eq': 'PROP_SUBCATEORY'
|
|
11300
|
+
},
|
|
11301
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzxlbm-in')
|
|
11302
|
+
}], ['colorName', 'categoryId', 'brandId', 'zzdlbm', 'zzzlbm', 'zzxlbm'], hiddenFields);
|
|
11217
11303
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11218
11304
|
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11219
11305
|
});
|
|
@@ -11230,8 +11316,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11230
11316
|
Promise.all(fieldLoadSource).then(function (x) {
|
|
11231
11317
|
formatSource(x, 0, getFieldIndex(_tableSearchForm, 'colorName'), _tableSearchForm, ['value', 'value']);
|
|
11232
11318
|
formatTreeDataSource(x, 1, getFieldIndex(_tableSearchForm, 'categoryId'), _tableSearchForm);
|
|
11233
|
-
formatSource(x,
|
|
11234
|
-
formatSource(x,
|
|
11319
|
+
// formatSource(x,2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm,['id','name']);
|
|
11320
|
+
formatSource(x, 2, getFieldIndex(_tableSearchForm, 'brandId'), _tableSearchForm, ['id', 'name']);
|
|
11321
|
+
formatSource(x, 3, getFieldIndex(_tableSearchForm, 'zzdlbm'), _tableSearchForm, ['value', 'value']);
|
|
11322
|
+
formatSource(x, 4, getFieldIndex(_tableSearchForm, 'zzzlbm'), _tableSearchForm, ['value', 'value']);
|
|
11323
|
+
formatSource(x, 5, getFieldIndex(_tableSearchForm, 'zzxlbm'), _tableSearchForm, ['value', 'value']);
|
|
11235
11324
|
});
|
|
11236
11325
|
modalTableProps = _objectSpread2({
|
|
11237
11326
|
modalTableTitle: '选择SKC',
|
|
@@ -11250,21 +11339,37 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11250
11339
|
defaultSort: 2
|
|
11251
11340
|
}, {
|
|
11252
11341
|
title: '商品名称',
|
|
11253
|
-
dataIndex: 'itemName'
|
|
11342
|
+
dataIndex: 'itemName',
|
|
11343
|
+
defaultSort: 3
|
|
11254
11344
|
}, {
|
|
11255
11345
|
title: '颜色',
|
|
11256
11346
|
dataIndex: 'colorName',
|
|
11257
|
-
defaultSort:
|
|
11347
|
+
defaultSort: 4
|
|
11258
11348
|
}, {
|
|
11259
11349
|
title: '类目',
|
|
11260
|
-
dataIndex: 'categoryText'
|
|
11350
|
+
dataIndex: 'categoryText',
|
|
11351
|
+
defaultSort: 5
|
|
11352
|
+
},
|
|
11353
|
+
// {
|
|
11354
|
+
// title: '品类',
|
|
11355
|
+
// dataIndex: 'className',
|
|
11356
|
+
// },
|
|
11357
|
+
{
|
|
11358
|
+
title: '品牌',
|
|
11359
|
+
dataIndex: 'brandName',
|
|
11360
|
+
defaultSort: 6
|
|
11261
11361
|
}, {
|
|
11262
11362
|
title: '品类',
|
|
11263
|
-
dataIndex: '
|
|
11363
|
+
dataIndex: 'zzdlbm',
|
|
11364
|
+
defaultSort: 7
|
|
11264
11365
|
}, {
|
|
11265
|
-
title: '
|
|
11266
|
-
dataIndex: '
|
|
11267
|
-
defaultSort:
|
|
11366
|
+
title: '大类',
|
|
11367
|
+
dataIndex: 'zzzlbm',
|
|
11368
|
+
defaultSort: 8
|
|
11369
|
+
}, {
|
|
11370
|
+
title: '中类',
|
|
11371
|
+
dataIndex: 'zzxlbm',
|
|
11372
|
+
defaultSort: 9
|
|
11268
11373
|
}], hiddenFields)
|
|
11269
11374
|
}, modalTableBusProps);
|
|
11270
11375
|
}
|
|
@@ -11445,7 +11550,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11445
11550
|
headers: _objectSpread2({}, extralHeaders)
|
|
11446
11551
|
})]).then(function (x) {
|
|
11447
11552
|
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11448
|
-
debugger;
|
|
11449
11553
|
// 战区限制一级数据
|
|
11450
11554
|
var newData1 = [];
|
|
11451
11555
|
(_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
|
|
@@ -12484,7 +12588,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12484
12588
|
optionFilterProp: 'children',
|
|
12485
12589
|
filterOption: function filterOption(input, option) {
|
|
12486
12590
|
var _option$value;
|
|
12487
|
-
debugger;
|
|
12488
12591
|
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12489
12592
|
}
|
|
12490
12593
|
}
|
|
@@ -12632,7 +12735,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12632
12735
|
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12633
12736
|
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12634
12737
|
});
|
|
12635
|
-
debugger;
|
|
12636
12738
|
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12637
12739
|
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12638
12740
|
});
|
|
@@ -14479,7 +14581,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14479
14581
|
'ctl-withAuth': true
|
|
14480
14582
|
},
|
|
14481
14583
|
resType: 'list',
|
|
14482
|
-
resPosition: isNoUseItemBarcode ?
|
|
14584
|
+
resPosition: isNoUseItemBarcode ? 4 : 5,
|
|
14483
14585
|
resKeyValue: ['id', 'name']
|
|
14484
14586
|
}, {
|
|
14485
14587
|
url: "/items/category/queryCategoryTree",
|
|
@@ -14488,7 +14590,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14488
14590
|
currentPage: 1
|
|
14489
14591
|
},
|
|
14490
14592
|
resType: 'treeList',
|
|
14491
|
-
resPosition: isNoUseItemBarcode ?
|
|
14593
|
+
resPosition: isNoUseItemBarcode ? 5 : 6
|
|
14492
14594
|
}];
|
|
14493
14595
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
14494
14596
|
var props = {
|
|
@@ -14525,7 +14627,8 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14525
14627
|
tableSearchForm: mTpTableSearchForm,
|
|
14526
14628
|
tableColumns: mTpTableColumn,
|
|
14527
14629
|
selectColumn: mTpSelectColumn,
|
|
14528
|
-
promiseLoadList: mTpPromiseLoadList
|
|
14630
|
+
promiseLoadList: mTpPromiseLoadList,
|
|
14631
|
+
topTablePagination: (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {}
|
|
14529
14632
|
};
|
|
14530
14633
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
14531
14634
|
modalTableProps: modalTableProps
|
|
@@ -15261,7 +15364,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15261
15364
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15262
15365
|
* @LastEditors: rodchen
|
|
15263
15366
|
*/
|
|
15264
|
-
var index
|
|
15367
|
+
var index = (function (storageKeyString) {
|
|
15265
15368
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15266
15369
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15267
15370
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15734,7 +15837,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessTreeSearchSel
|
|
|
15734
15837
|
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .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: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .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.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 12px;\n margin: 8px 0;\n margin-left: 8px;\n padding-left: 8px;\n font-size: 10px;\n border-left: 1px solid #FFFFFF;\n}\n.state-flow .status-label-operate > div {\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.state-flow .status-label-operate > div:first-child {\n font-size: 10px;\n font-weight: 400;\n}\n.state-flow .only-one-child.form-status-label::after,\n.state-flow .only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15735
15838
|
styleInject(css_248z$b);
|
|
15736
15839
|
|
|
15737
|
-
var index$
|
|
15840
|
+
var index$1 = (function (props) {
|
|
15738
15841
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15739
15842
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15740
15843
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -17801,7 +17904,7 @@ var iconMap = {
|
|
|
17801
17904
|
src: cancelIcon
|
|
17802
17905
|
}, iconStyle))
|
|
17803
17906
|
};
|
|
17804
|
-
var index$
|
|
17907
|
+
var index$2 = (function (props) {
|
|
17805
17908
|
var _useLocation = useLocation(),
|
|
17806
17909
|
pathname = _useLocation.pathname;
|
|
17807
17910
|
var _useState = useState(pathname + 'id'),
|
|
@@ -18038,7 +18141,7 @@ var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n backgroun
|
|
|
18038
18141
|
styleInject(css_248z$h);
|
|
18039
18142
|
|
|
18040
18143
|
var _excluded$f = ["children"];
|
|
18041
|
-
var index$
|
|
18144
|
+
var index$3 = (function (props) {
|
|
18042
18145
|
var _useLocation = useLocation(),
|
|
18043
18146
|
pathname = _useLocation.pathname;
|
|
18044
18147
|
var _useState = useState(pathname + 'id'),
|
|
@@ -20280,9 +20383,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20280
20383
|
}
|
|
20281
20384
|
}));
|
|
20282
20385
|
}));
|
|
20283
|
-
} else {
|
|
20284
|
-
return undefined;
|
|
20285
20386
|
}
|
|
20387
|
+
// 判断summaryList 是否为reactNode
|
|
20388
|
+
if (/*#__PURE__*/React$1.isValidElement(summaryList)) {
|
|
20389
|
+
return summaryList;
|
|
20390
|
+
}
|
|
20391
|
+
// 判断summaryList 是否为函数
|
|
20392
|
+
if (Object.prototype.toString.call(summaryList) === '[object Function]') {
|
|
20393
|
+
return summaryList();
|
|
20394
|
+
}
|
|
20395
|
+
return undefined;
|
|
20286
20396
|
};
|
|
20287
20397
|
var columnsDom = /*#__PURE__*/React$1.createElement("span", {
|
|
20288
20398
|
className: "ant-dropdown-link"
|
|
@@ -24041,7 +24151,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
24041
24151
|
}
|
|
24042
24152
|
}]);
|
|
24043
24153
|
}(React$1.Component);
|
|
24044
|
-
var index$
|
|
24154
|
+
var index$4 = (function (props) {
|
|
24045
24155
|
var _useModel = useModel('@@initialState'),
|
|
24046
24156
|
_useModel$initialStat = _useModel.initialState,
|
|
24047
24157
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -24283,7 +24393,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
24283
24393
|
};
|
|
24284
24394
|
var FixedScrollBar$1 = /*#__PURE__*/React$1.forwardRef(FixedScrollBar);
|
|
24285
24395
|
|
|
24286
|
-
var index$
|
|
24396
|
+
var index$5 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24287
24397
|
var _useState = useState(false),
|
|
24288
24398
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24289
24399
|
show = _useState2[0],
|
|
@@ -38636,7 +38746,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38636
38746
|
needShowAction = _this$props$needShowA === void 0 ? true : _this$props$needShowA,
|
|
38637
38747
|
extraConfig = _this$props.extraConfig,
|
|
38638
38748
|
customTitleSubStyle = _this$props.customTitleSubStyle,
|
|
38639
|
-
customTitlePreStyle = _this$props.customTitlePreStyle
|
|
38749
|
+
customTitlePreStyle = _this$props.customTitlePreStyle,
|
|
38750
|
+
_this$props$enableRul = _this$props.enableRuleNameEdit,
|
|
38751
|
+
enableRuleNameEdit = _this$props$enableRul === void 0 ? false : _this$props$enableRul;
|
|
38640
38752
|
var isRuleInstance = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$type = ruleGroupInfo.type) === null || _ruleGroupInfo$type === void 0 ? void 0 : _ruleGroupInfo$type.indexOf('instance')) > -1; // 业务调用规则实例设计器
|
|
38641
38753
|
var ruleGroupName = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$ruleGr = ruleGroupInfo.ruleGroupList) === null || _ruleGroupInfo$ruleGr === void 0 ? void 0 : (_ruleGroupInfo$ruleGr2 = _ruleGroupInfo$ruleGr[0]) === null || _ruleGroupInfo$ruleGr2 === void 0 ? void 0 : _ruleGroupInfo$ruleGr2.name) || '规则分组';
|
|
38642
38754
|
var priorityList = ((ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.groupOtherPriorityList) || []).concat(ruleClassData || []);
|
|
@@ -38698,8 +38810,63 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38698
38810
|
className: 'rule-line-class',
|
|
38699
38811
|
style: ruleListBox
|
|
38700
38812
|
}, !onlyOneRule && !ruleGroupInfo && /*#__PURE__*/React$1.createElement("div", {
|
|
38701
|
-
style: titlePre
|
|
38702
|
-
|
|
38813
|
+
style: _objectSpread2(_objectSpread2({}, titlePre), enableRuleNameEdit ? {
|
|
38814
|
+
display: 'inline-flex',
|
|
38815
|
+
alignItems: 'center',
|
|
38816
|
+
width: 'auto',
|
|
38817
|
+
textAlign: 'left'
|
|
38818
|
+
} : {})
|
|
38819
|
+
}, enableRuleNameEdit && isEdit && editNameIndex == classDataIndex ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Input, {
|
|
38820
|
+
disabled: disabled,
|
|
38821
|
+
value: currentRuleName,
|
|
38822
|
+
style: {
|
|
38823
|
+
width: '120px'
|
|
38824
|
+
},
|
|
38825
|
+
size: "small",
|
|
38826
|
+
onChange: function onChange(e) {
|
|
38827
|
+
_this.setState({
|
|
38828
|
+
currentRuleName: e.target.value
|
|
38829
|
+
});
|
|
38830
|
+
}
|
|
38831
|
+
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
38832
|
+
disabled: disabled,
|
|
38833
|
+
type: "link",
|
|
38834
|
+
size: "small",
|
|
38835
|
+
onClick: function onClick() {
|
|
38836
|
+
var _this$state3 = _this.state,
|
|
38837
|
+
ruleClassData = _this$state3.ruleClassData,
|
|
38838
|
+
currentRuleName = _this$state3.currentRuleName;
|
|
38839
|
+
ruleClassData[editNameIndex].ruleName = currentRuleName || "\u89C4\u5219".concat(editNameIndex + 1);
|
|
38840
|
+
_this.setState({
|
|
38841
|
+
ruleClassData: ruleClassData,
|
|
38842
|
+
isEdit: false
|
|
38843
|
+
}, function () {
|
|
38844
|
+
callBack(ruleClassData);
|
|
38845
|
+
});
|
|
38846
|
+
}
|
|
38847
|
+
}, "\u4FDD\u5B58"), /*#__PURE__*/React$1.createElement(Button, {
|
|
38848
|
+
disabled: disabled,
|
|
38849
|
+
type: "link",
|
|
38850
|
+
size: "small",
|
|
38851
|
+
onClick: function onClick() {
|
|
38852
|
+
_this.setState({
|
|
38853
|
+
isEdit: false
|
|
38854
|
+
});
|
|
38855
|
+
}
|
|
38856
|
+
}, "\u53D6\u6D88")) : enableRuleNameEdit ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.ruleName || "\u89C4\u5219".concat(classDataIndex + 1), !disabled && /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
38857
|
+
style: {
|
|
38858
|
+
marginLeft: 4,
|
|
38859
|
+
fontSize: 12,
|
|
38860
|
+
color: 'rgba(0, 0, 0, 0.45)'
|
|
38861
|
+
},
|
|
38862
|
+
onClick: function onClick() {
|
|
38863
|
+
_this.setState({
|
|
38864
|
+
editNameIndex: classDataIndex,
|
|
38865
|
+
currentRuleName: item.ruleName || "\u89C4\u5219".concat(classDataIndex + 1),
|
|
38866
|
+
isEdit: true
|
|
38867
|
+
});
|
|
38868
|
+
}
|
|
38869
|
+
})) : "\u89C4\u5219".concat(classDataIndex + 1)), ruleGroupInfo && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
38703
38870
|
style: titlePre
|
|
38704
38871
|
}, /*#__PURE__*/React$1.createElement(EllipsisTooltip, {
|
|
38705
38872
|
visible: true,
|
|
@@ -38809,9 +38976,26 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38809
38976
|
},
|
|
38810
38977
|
type: "link",
|
|
38811
38978
|
danger: true
|
|
38812
|
-
}, "\u5220\u9664\u89C4\u5219")), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
38979
|
+
}, "\u5220\u9664\u89C4\u5219")), enableRuleNameEdit && (onlyOneRule || ruleGroupInfo) && /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
38980
|
+
style: {
|
|
38981
|
+
display: isEdit && editNameIndex == classDataIndex ? 'none' : 'block'
|
|
38982
|
+
}
|
|
38983
|
+
}, /*#__PURE__*/React$1.createElement("span", null, item.ruleName), !disabled && /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
38984
|
+
style: {
|
|
38985
|
+
marginLeft: 4,
|
|
38986
|
+
fontSize: 12,
|
|
38987
|
+
color: 'rgba(0, 0, 0, 0.45)'
|
|
38988
|
+
},
|
|
38989
|
+
onClick: function onClick() {
|
|
38990
|
+
_this.setState({
|
|
38991
|
+
editNameIndex: classDataIndex,
|
|
38992
|
+
currentRuleName: item.ruleName,
|
|
38993
|
+
isEdit: true
|
|
38994
|
+
});
|
|
38995
|
+
}
|
|
38996
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
38813
38997
|
style: {
|
|
38814
|
-
display: isEdit && editNameIndex ==
|
|
38998
|
+
display: isEdit && editNameIndex == classDataIndex ? 'block' : 'none',
|
|
38815
38999
|
marginTop: '10px'
|
|
38816
39000
|
}
|
|
38817
39001
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
@@ -38829,13 +39013,15 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38829
39013
|
disabled: disabled,
|
|
38830
39014
|
type: "link",
|
|
38831
39015
|
onClick: function onClick() {
|
|
38832
|
-
var _this$
|
|
38833
|
-
ruleClassData = _this$
|
|
38834
|
-
currentRuleName = _this$
|
|
39016
|
+
var _this$state4 = _this.state,
|
|
39017
|
+
ruleClassData = _this$state4.ruleClassData,
|
|
39018
|
+
currentRuleName = _this$state4.currentRuleName;
|
|
38835
39019
|
ruleClassData[editNameIndex].ruleName = currentRuleName;
|
|
38836
39020
|
_this.setState({
|
|
38837
39021
|
ruleClassData: ruleClassData,
|
|
38838
39022
|
isEdit: false
|
|
39023
|
+
}, function () {
|
|
39024
|
+
callBack(ruleClassData);
|
|
38839
39025
|
});
|
|
38840
39026
|
}
|
|
38841
39027
|
}, "\u4FDD\u5B58"), /*#__PURE__*/React$1.createElement(Button, {
|
|
@@ -39835,10 +40021,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39835
40021
|
}, {
|
|
39836
40022
|
key: "componentWillReceiveProps",
|
|
39837
40023
|
value: function componentWillReceiveProps(nextProps) {
|
|
39838
|
-
var _this$
|
|
39839
|
-
ruleClassData = _this$
|
|
39840
|
-
operationList = _this$
|
|
39841
|
-
regularDataList = _this$
|
|
40024
|
+
var _this$state5 = this.state,
|
|
40025
|
+
ruleClassData = _this$state5.ruleClassData,
|
|
40026
|
+
operationList = _this$state5.operationList,
|
|
40027
|
+
regularDataList = _this$state5.regularDataList;
|
|
39842
40028
|
if (nextProps.ruleClassData && this.props.ruleClassData != nextProps.ruleClassData && JSON.stringify(nextProps.ruleClassData) != JSON.stringify(ruleClassData)) {
|
|
39843
40029
|
this.setState({
|
|
39844
40030
|
ruleClassData: nextProps.ruleClassData
|
|
@@ -39862,9 +40048,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39862
40048
|
callBack = _this$props7.callBack,
|
|
39863
40049
|
disabled = _this$props7.disabled,
|
|
39864
40050
|
headerButtonComponentFun = _this$props7.headerButtonComponentFun;
|
|
39865
|
-
var _this$
|
|
39866
|
-
ruleClassData = _this$
|
|
39867
|
-
modalParams = _this$
|
|
40051
|
+
var _this$state6 = this.state,
|
|
40052
|
+
ruleClassData = _this$state6.ruleClassData,
|
|
40053
|
+
modalParams = _this$state6.modalParams;
|
|
39868
40054
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
39869
40055
|
className: 'base_rule'
|
|
39870
40056
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -40698,7 +40884,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40698
40884
|
}, "\u6A21\u677F")))))));
|
|
40699
40885
|
});
|
|
40700
40886
|
|
|
40701
|
-
var index$
|
|
40887
|
+
var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
40702
40888
|
var currentSceneId = (props === null || props === void 0 ? void 0 : props.id) || (props === null || props === void 0 ? void 0 : props.sceneId); // 规则模板id
|
|
40703
40889
|
var extStrField01 = props === null || props === void 0 ? void 0 : props.extStrField01; // 上层业务关键字段
|
|
40704
40890
|
var instanceName = props === null || props === void 0 ? void 0 : props.name; // 实例名称
|
|
@@ -40962,7 +41148,7 @@ var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
|
40962
41148
|
bordered: bordered
|
|
40963
41149
|
}), children));
|
|
40964
41150
|
};
|
|
40965
|
-
var index$
|
|
41151
|
+
var index$7 = Object.assign(ExtendedCollapse, {
|
|
40966
41152
|
Board: ExtendedPanel
|
|
40967
41153
|
});
|
|
40968
41154
|
|
|
@@ -41141,4 +41327,4 @@ var SystemLog = function SystemLog(_ref) {
|
|
|
41141
41327
|
});
|
|
41142
41328
|
};
|
|
41143
41329
|
|
|
41144
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$
|
|
41330
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$4 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$2 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$7 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$3 as HomePageWrapper, JsonQueryTable, ModalUtils, index$5 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$6 as RuleSetter, SearchSelect, Section, index$1 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|