@bit-sun/business-component 4.2.1-alpha.24-aiwei → 4.2.1-alpha.25-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 +61 -157
- package/dist/index.js +61 -157
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +2 -3
- package/src/components/Business/BsSulaQueryTable/index.tsx +3 -10
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +24 -126
- package/src/components/Functional/AddSelect/index.tsx +1 -3
- package/src/components/Functional/BillEntry/index.tsx +1 -0
- package/src/components/Functional/DataValidation/index.tsx +6 -9
- package/src/components/Functional/SearchSelect/index.tsx +1 -0
- package/src/components/Solution/RuleComponent/index.js +29 -12
package/dist/index.esm.js
CHANGED
|
@@ -2561,9 +2561,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2561
2561
|
cell.v = cell.m;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
+
// console.log(postion);
|
|
2564
2565
|
},
|
|
2565
2566
|
cellAllRenderBefore: function cellAllRenderBefore(data, sheetFile, ctx) {
|
|
2566
2567
|
sheetFile.config.borderInfo = [];
|
|
2568
|
+
// console.info(data,sheetFile,ctx)
|
|
2567
2569
|
}
|
|
2568
2570
|
},
|
|
2569
2571
|
showtoolbarConfig: {
|
|
@@ -2731,21 +2733,14 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2731
2733
|
};
|
|
2732
2734
|
};
|
|
2733
2735
|
_this.getData = function () {
|
|
2734
|
-
|
|
2735
|
-
var useStringValue = _this.props.useStringValue || false;
|
|
2736
|
+
console.time();
|
|
2736
2737
|
var sheetData = luckysheet.getSheetData();
|
|
2737
2738
|
var data = JSON.parse(JSON.stringify(sheetData)).filter(function (item) {
|
|
2738
2739
|
return item[0];
|
|
2739
2740
|
}).map(function (item) {
|
|
2740
2741
|
var obj = {};
|
|
2741
2742
|
item.slice(0, itemsTemp.length).map(function (innerItem, index) {
|
|
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
|
-
}
|
|
2743
|
+
obj[_this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
2749
2744
|
});
|
|
2750
2745
|
return obj;
|
|
2751
2746
|
});
|
|
@@ -2886,6 +2881,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2886
2881
|
errorListCheck: false,
|
|
2887
2882
|
resultData: res
|
|
2888
2883
|
});
|
|
2884
|
+
console.log(setExportData);
|
|
2889
2885
|
setExportData([123123]);
|
|
2890
2886
|
}).catch(function (err) {});
|
|
2891
2887
|
case 3:
|
|
@@ -3181,6 +3177,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3181
3177
|
left: '0px',
|
|
3182
3178
|
top: '0px'
|
|
3183
3179
|
};
|
|
3180
|
+
console.log('itemsTemp', itemsTemp);
|
|
3184
3181
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
3185
3182
|
className: "sheet_table_top"
|
|
3186
3183
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement("span", null, "\u6392\u5E8F\u5217"), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
@@ -5997,6 +5994,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5997
5994
|
};
|
|
5998
5995
|
var formItem = function formItem(list) {
|
|
5999
5996
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5997
|
+
debugger;
|
|
6000
5998
|
var setDisabled = function setDisabled(name) {
|
|
6001
5999
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
6002
6000
|
return item === name;
|
|
@@ -8430,8 +8428,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
8430
8428
|
});
|
|
8431
8429
|
};
|
|
8432
8430
|
var handleTableChange = function handleTableChange(pagination) {
|
|
8433
|
-
// 设置分页tablePagination
|
|
8434
|
-
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), pagination));
|
|
8435
8431
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
8436
8432
|
pageSize: pagination.pageSize,
|
|
8437
8433
|
currentPage: pagination.current
|
|
@@ -9024,6 +9020,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
9024
9020
|
// {
|
|
9025
9021
|
// body: {
|
|
9026
9022
|
// cell: ({index, record, ...props}) => {
|
|
9023
|
+
// debugger
|
|
9027
9024
|
// return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
|
|
9028
9025
|
// }
|
|
9029
9026
|
// }
|
|
@@ -11090,9 +11087,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11090
11087
|
}]
|
|
11091
11088
|
}, selectConfigProps);
|
|
11092
11089
|
var _tableSearchForm = handleHiddenFields([{
|
|
11093
|
-
name: 'qp-code-
|
|
11094
|
-
label: 'SKC编码'
|
|
11095
|
-
type: 'multipleQueryInput'
|
|
11090
|
+
name: 'qp-code-like',
|
|
11091
|
+
label: 'SKC编码'
|
|
11096
11092
|
}, {
|
|
11097
11093
|
name: 'qp-skcName-like',
|
|
11098
11094
|
label: 'SKC名称'
|
|
@@ -11144,25 +11140,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11144
11140
|
}
|
|
11145
11141
|
}
|
|
11146
11142
|
}
|
|
11147
|
-
},
|
|
11148
|
-
|
|
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',
|
|
11143
|
+
}, {
|
|
11144
|
+
name: 'qp-classId-in',
|
|
11164
11145
|
type: 'select',
|
|
11165
|
-
label: '
|
|
11146
|
+
label: '品类',
|
|
11166
11147
|
field: {
|
|
11167
11148
|
type: 'select',
|
|
11168
11149
|
props: {
|
|
@@ -11178,53 +11159,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11178
11159
|
}
|
|
11179
11160
|
}
|
|
11180
11161
|
}
|
|
11181
|
-
},
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
label: "品类",
|
|
11186
|
-
field: {
|
|
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: "中类",
|
|
11162
|
+
}, {
|
|
11163
|
+
name: 'qp-brandId-in',
|
|
11164
|
+
type: 'select',
|
|
11165
|
+
label: '品牌',
|
|
11226
11166
|
field: {
|
|
11227
|
-
type:
|
|
11167
|
+
type: 'select',
|
|
11228
11168
|
props: {
|
|
11229
11169
|
mode: 'multiple',
|
|
11230
11170
|
notFoundContent: '暂无数据',
|
|
@@ -11258,48 +11198,22 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11258
11198
|
currentPage: 1
|
|
11259
11199
|
},
|
|
11260
11200
|
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')
|
|
11278
11201
|
}, {
|
|
11279
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11202
|
+
url: "".concat(prefixUrl.formSelectFix, "/class/withProperty"),
|
|
11280
11203
|
params: {
|
|
11281
11204
|
pageSize: 5000,
|
|
11282
|
-
currentPage: 1
|
|
11283
|
-
'qp-propertyCode-eq': 'MAT_CATA'
|
|
11284
|
-
},
|
|
11285
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzdlbm-in')
|
|
11286
|
-
}, {
|
|
11287
|
-
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11288
|
-
params: {
|
|
11289
|
-
pageSize: 5000,
|
|
11290
|
-
currentPage: 1,
|
|
11291
|
-
'qp-propertyCode-eq': 'MID_CATA'
|
|
11205
|
+
currentPage: 1
|
|
11292
11206
|
},
|
|
11293
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11207
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-classId-in')
|
|
11294
11208
|
}, {
|
|
11295
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11209
|
+
url: "".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"),
|
|
11296
11210
|
params: {
|
|
11297
11211
|
pageSize: 5000,
|
|
11298
11212
|
currentPage: 1,
|
|
11299
|
-
'
|
|
11213
|
+
'ctl-withAuth': true
|
|
11300
11214
|
},
|
|
11301
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11302
|
-
}], ['colorName', 'categoryId', '
|
|
11215
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11216
|
+
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11303
11217
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11304
11218
|
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11305
11219
|
});
|
|
@@ -11316,11 +11230,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11316
11230
|
Promise.all(fieldLoadSource).then(function (x) {
|
|
11317
11231
|
formatSource(x, 0, getFieldIndex(_tableSearchForm, 'colorName'), _tableSearchForm, ['value', 'value']);
|
|
11318
11232
|
formatTreeDataSource(x, 1, getFieldIndex(_tableSearchForm, 'categoryId'), _tableSearchForm);
|
|
11319
|
-
|
|
11320
|
-
formatSource(x,
|
|
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']);
|
|
11233
|
+
formatSource(x, 2, getFieldIndex(_tableSearchForm, 'classId'), _tableSearchForm, ['id', 'name']);
|
|
11234
|
+
formatSource(x, 3, getFieldIndex(_tableSearchForm, 'brandId'), _tableSearchForm, ['id', 'name']);
|
|
11324
11235
|
});
|
|
11325
11236
|
modalTableProps = _objectSpread2({
|
|
11326
11237
|
modalTableTitle: '选择SKC',
|
|
@@ -11339,37 +11250,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11339
11250
|
defaultSort: 2
|
|
11340
11251
|
}, {
|
|
11341
11252
|
title: '商品名称',
|
|
11342
|
-
dataIndex: 'itemName'
|
|
11343
|
-
defaultSort: 3
|
|
11253
|
+
dataIndex: 'itemName'
|
|
11344
11254
|
}, {
|
|
11345
11255
|
title: '颜色',
|
|
11346
11256
|
dataIndex: 'colorName',
|
|
11347
|
-
defaultSort:
|
|
11257
|
+
defaultSort: 3
|
|
11348
11258
|
}, {
|
|
11349
11259
|
title: '类目',
|
|
11350
|
-
dataIndex: 'categoryText'
|
|
11351
|
-
defaultSort: 5
|
|
11352
|
-
},
|
|
11353
|
-
// {
|
|
11354
|
-
// title: '品类',
|
|
11355
|
-
// dataIndex: 'className',
|
|
11356
|
-
// },
|
|
11357
|
-
{
|
|
11358
|
-
title: '品牌',
|
|
11359
|
-
dataIndex: 'brandName',
|
|
11360
|
-
defaultSort: 6
|
|
11260
|
+
dataIndex: 'categoryText'
|
|
11361
11261
|
}, {
|
|
11362
11262
|
title: '品类',
|
|
11363
|
-
dataIndex: '
|
|
11364
|
-
defaultSort: 7
|
|
11365
|
-
}, {
|
|
11366
|
-
title: '大类',
|
|
11367
|
-
dataIndex: 'zzzlbm',
|
|
11368
|
-
defaultSort: 8
|
|
11263
|
+
dataIndex: 'className'
|
|
11369
11264
|
}, {
|
|
11370
|
-
title: '
|
|
11371
|
-
dataIndex: '
|
|
11372
|
-
defaultSort:
|
|
11265
|
+
title: '品牌',
|
|
11266
|
+
dataIndex: 'brandName',
|
|
11267
|
+
defaultSort: 4
|
|
11373
11268
|
}], hiddenFields)
|
|
11374
11269
|
}, modalTableBusProps);
|
|
11375
11270
|
}
|
|
@@ -11550,6 +11445,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11550
11445
|
headers: _objectSpread2({}, extralHeaders)
|
|
11551
11446
|
})]).then(function (x) {
|
|
11552
11447
|
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11448
|
+
debugger;
|
|
11553
11449
|
// 战区限制一级数据
|
|
11554
11450
|
var newData1 = [];
|
|
11555
11451
|
(_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) {
|
|
@@ -12588,6 +12484,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12588
12484
|
optionFilterProp: 'children',
|
|
12589
12485
|
filterOption: function filterOption(input, option) {
|
|
12590
12486
|
var _option$value;
|
|
12487
|
+
debugger;
|
|
12591
12488
|
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12592
12489
|
}
|
|
12593
12490
|
}
|
|
@@ -12735,6 +12632,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12735
12632
|
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12736
12633
|
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12737
12634
|
});
|
|
12635
|
+
debugger;
|
|
12738
12636
|
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12739
12637
|
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12740
12638
|
});
|
|
@@ -14581,7 +14479,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14581
14479
|
'ctl-withAuth': true
|
|
14582
14480
|
},
|
|
14583
14481
|
resType: 'list',
|
|
14584
|
-
resPosition: isNoUseItemBarcode ?
|
|
14482
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
14585
14483
|
resKeyValue: ['id', 'name']
|
|
14586
14484
|
}, {
|
|
14587
14485
|
url: "/items/category/queryCategoryTree",
|
|
@@ -14590,7 +14488,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14590
14488
|
currentPage: 1
|
|
14591
14489
|
},
|
|
14592
14490
|
resType: 'treeList',
|
|
14593
|
-
resPosition: isNoUseItemBarcode ?
|
|
14491
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
14594
14492
|
}];
|
|
14595
14493
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
14596
14494
|
var props = {
|
|
@@ -14627,8 +14525,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14627
14525
|
tableSearchForm: mTpTableSearchForm,
|
|
14628
14526
|
tableColumns: mTpTableColumn,
|
|
14629
14527
|
selectColumn: mTpSelectColumn,
|
|
14630
|
-
promiseLoadList: mTpPromiseLoadList
|
|
14631
|
-
topTablePagination: (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {}
|
|
14528
|
+
promiseLoadList: mTpPromiseLoadList
|
|
14632
14529
|
};
|
|
14633
14530
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
14634
14531
|
modalTableProps: modalTableProps
|
|
@@ -20383,16 +20280,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20383
20280
|
}
|
|
20384
20281
|
}));
|
|
20385
20282
|
}));
|
|
20283
|
+
} else {
|
|
20284
|
+
return undefined;
|
|
20386
20285
|
}
|
|
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;
|
|
20396
20286
|
};
|
|
20397
20287
|
var columnsDom = /*#__PURE__*/React$1.createElement("span", {
|
|
20398
20288
|
className: "ant-dropdown-link"
|
|
@@ -39330,12 +39220,24 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39330
39220
|
padding: '10px',
|
|
39331
39221
|
borderRadius: '4px'
|
|
39332
39222
|
}
|
|
39333
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
39223
|
+
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
39224
|
+
disabled: disabled,
|
|
39334
39225
|
style: {
|
|
39335
|
-
|
|
39336
|
-
|
|
39337
|
-
}
|
|
39338
|
-
|
|
39226
|
+
width: 150,
|
|
39227
|
+
marginRight: 10
|
|
39228
|
+
},
|
|
39229
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
39230
|
+
value: String(itemDetail.reqConditionData.reqParamType || '10'),
|
|
39231
|
+
onChange: function onChange(val) {
|
|
39232
|
+
return _this.handleReqDataChange(itemDetail, 'reqParamType', val);
|
|
39233
|
+
}
|
|
39234
|
+
}, /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
39235
|
+
value: "10"
|
|
39236
|
+
}, "\u8BF7\u6C42\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
39237
|
+
value: "20"
|
|
39238
|
+
}, "\u8BF7\u6C42\u5934\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
39239
|
+
value: "40"
|
|
39240
|
+
}, "\u6E90\u8BF7\u6C42\u5730\u5740")), String(itemDetail.reqConditionData.reqParamType || '10') !== '40' && /*#__PURE__*/React$1.createElement(Input, {
|
|
39339
39241
|
disabled: disabled,
|
|
39340
39242
|
style: {
|
|
39341
39243
|
width: 150,
|
|
@@ -39891,6 +39793,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39891
39793
|
if (valueNames) {
|
|
39892
39794
|
itemDetail.reqConditionData.paramNames = valueNames;
|
|
39893
39795
|
}
|
|
39796
|
+
} else if (field === 'reqParamType') {
|
|
39797
|
+
itemDetail.reqConditionData.reqParamType = value;
|
|
39894
39798
|
}
|
|
39895
39799
|
_this.setState({
|
|
39896
39800
|
ruleClassData: ruleClassData
|
package/dist/index.js
CHANGED
|
@@ -2584,9 +2584,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2584
2584
|
cell.v = cell.m;
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
|
+
// console.log(postion);
|
|
2587
2588
|
},
|
|
2588
2589
|
cellAllRenderBefore: function cellAllRenderBefore(data, sheetFile, ctx) {
|
|
2589
2590
|
sheetFile.config.borderInfo = [];
|
|
2591
|
+
// console.info(data,sheetFile,ctx)
|
|
2590
2592
|
}
|
|
2591
2593
|
},
|
|
2592
2594
|
showtoolbarConfig: {
|
|
@@ -2754,21 +2756,14 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2754
2756
|
};
|
|
2755
2757
|
};
|
|
2756
2758
|
_this.getData = function () {
|
|
2757
|
-
|
|
2758
|
-
var useStringValue = _this.props.useStringValue || false;
|
|
2759
|
+
console.time();
|
|
2759
2760
|
var sheetData = luckysheet.getSheetData();
|
|
2760
2761
|
var data = JSON.parse(JSON.stringify(sheetData)).filter(function (item) {
|
|
2761
2762
|
return item[0];
|
|
2762
2763
|
}).map(function (item) {
|
|
2763
2764
|
var obj = {};
|
|
2764
2765
|
item.slice(0, itemsTemp.length).map(function (innerItem, index) {
|
|
2765
|
-
|
|
2766
|
-
if (useStringValue) {
|
|
2767
|
-
obj[_this.state.items[index].code] = innerItem && innerItem.m;
|
|
2768
|
-
} else {
|
|
2769
|
-
// 否则根据值是否相等来判断是否使用字符串值
|
|
2770
|
-
obj[_this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
2771
|
-
}
|
|
2766
|
+
obj[_this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
2772
2767
|
});
|
|
2773
2768
|
return obj;
|
|
2774
2769
|
});
|
|
@@ -2909,6 +2904,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2909
2904
|
errorListCheck: false,
|
|
2910
2905
|
resultData: res
|
|
2911
2906
|
});
|
|
2907
|
+
console.log(setExportData);
|
|
2912
2908
|
setExportData([123123]);
|
|
2913
2909
|
}).catch(function (err) {});
|
|
2914
2910
|
case 3:
|
|
@@ -3204,6 +3200,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3204
3200
|
left: '0px',
|
|
3205
3201
|
top: '0px'
|
|
3206
3202
|
};
|
|
3203
|
+
console.log('itemsTemp', itemsTemp);
|
|
3207
3204
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3208
3205
|
className: "sheet_table_top"
|
|
3209
3206
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6392\u5E8F\u5217"), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
@@ -6020,6 +6017,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6020
6017
|
};
|
|
6021
6018
|
var formItem = function formItem(list) {
|
|
6022
6019
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
6020
|
+
debugger;
|
|
6023
6021
|
var setDisabled = function setDisabled(name) {
|
|
6024
6022
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
6025
6023
|
return item === name;
|
|
@@ -8453,8 +8451,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
8453
8451
|
});
|
|
8454
8452
|
};
|
|
8455
8453
|
var handleTableChange = function handleTableChange(pagination) {
|
|
8456
|
-
// 设置分页tablePagination
|
|
8457
|
-
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), pagination));
|
|
8458
8454
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
8459
8455
|
pageSize: pagination.pageSize,
|
|
8460
8456
|
currentPage: pagination.current
|
|
@@ -9047,6 +9043,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
9047
9043
|
// {
|
|
9048
9044
|
// body: {
|
|
9049
9045
|
// cell: ({index, record, ...props}) => {
|
|
9046
|
+
// debugger
|
|
9050
9047
|
// return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
|
|
9051
9048
|
// }
|
|
9052
9049
|
// }
|
|
@@ -11113,9 +11110,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11113
11110
|
}]
|
|
11114
11111
|
}, selectConfigProps);
|
|
11115
11112
|
var _tableSearchForm = handleHiddenFields([{
|
|
11116
|
-
name: 'qp-code-
|
|
11117
|
-
label: 'SKC编码'
|
|
11118
|
-
type: 'multipleQueryInput'
|
|
11113
|
+
name: 'qp-code-like',
|
|
11114
|
+
label: 'SKC编码'
|
|
11119
11115
|
}, {
|
|
11120
11116
|
name: 'qp-skcName-like',
|
|
11121
11117
|
label: 'SKC名称'
|
|
@@ -11167,25 +11163,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11167
11163
|
}
|
|
11168
11164
|
}
|
|
11169
11165
|
}
|
|
11170
|
-
},
|
|
11171
|
-
|
|
11172
|
-
// type: 'select',
|
|
11173
|
-
// props: {
|
|
11174
|
-
// mode: 'multiple',
|
|
11175
|
-
// notFoundContent: '暂无数据',
|
|
11176
|
-
// allowClear: true,
|
|
11177
|
-
// showSearch: true,
|
|
11178
|
-
// showArrow: true,
|
|
11179
|
-
// maxTagCount: 1,
|
|
11180
|
-
// optionFilterProp: 'children',
|
|
11181
|
-
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
11182
|
-
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
11183
|
-
// },
|
|
11184
|
-
// } },
|
|
11185
|
-
{
|
|
11186
|
-
name: 'qp-brandId-in',
|
|
11166
|
+
}, {
|
|
11167
|
+
name: 'qp-classId-in',
|
|
11187
11168
|
type: 'select',
|
|
11188
|
-
label: '
|
|
11169
|
+
label: '品类',
|
|
11189
11170
|
field: {
|
|
11190
11171
|
type: 'select',
|
|
11191
11172
|
props: {
|
|
@@ -11201,53 +11182,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11201
11182
|
}
|
|
11202
11183
|
}
|
|
11203
11184
|
}
|
|
11204
|
-
},
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
label: "品类",
|
|
11209
|
-
field: {
|
|
11210
|
-
type: "select",
|
|
11211
|
-
props: {
|
|
11212
|
-
mode: 'multiple',
|
|
11213
|
-
notFoundContent: '暂无数据',
|
|
11214
|
-
allowClear: true,
|
|
11215
|
-
showSearch: true,
|
|
11216
|
-
showArrow: true,
|
|
11217
|
-
maxTagCount: 1,
|
|
11218
|
-
optionFilterProp: 'children',
|
|
11219
|
-
filterOption: function filterOption(input, option) {
|
|
11220
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11221
|
-
}
|
|
11222
|
-
}
|
|
11223
|
-
}
|
|
11224
|
-
},
|
|
11225
|
-
// 商品属性 大类 == MID_CATA (zzzlbm)
|
|
11226
|
-
{
|
|
11227
|
-
name: "qp-zzzlbm-in",
|
|
11228
|
-
label: "大类",
|
|
11229
|
-
field: {
|
|
11230
|
-
type: "select",
|
|
11231
|
-
props: {
|
|
11232
|
-
mode: 'multiple',
|
|
11233
|
-
notFoundContent: '暂无数据',
|
|
11234
|
-
allowClear: true,
|
|
11235
|
-
showSearch: true,
|
|
11236
|
-
showArrow: true,
|
|
11237
|
-
maxTagCount: 1,
|
|
11238
|
-
optionFilterProp: 'children',
|
|
11239
|
-
filterOption: function filterOption(input, option) {
|
|
11240
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11241
|
-
}
|
|
11242
|
-
}
|
|
11243
|
-
}
|
|
11244
|
-
},
|
|
11245
|
-
// 商品属性 中类 == PROP_SUBCATEORY (zzxlbm)
|
|
11246
|
-
{
|
|
11247
|
-
name: "qp-zzxlbm-in",
|
|
11248
|
-
label: "中类",
|
|
11185
|
+
}, {
|
|
11186
|
+
name: 'qp-brandId-in',
|
|
11187
|
+
type: 'select',
|
|
11188
|
+
label: '品牌',
|
|
11249
11189
|
field: {
|
|
11250
|
-
type:
|
|
11190
|
+
type: 'select',
|
|
11251
11191
|
props: {
|
|
11252
11192
|
mode: 'multiple',
|
|
11253
11193
|
notFoundContent: '暂无数据',
|
|
@@ -11281,48 +11221,22 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11281
11221
|
currentPage: 1
|
|
11282
11222
|
},
|
|
11283
11223
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-categoryId-in')
|
|
11284
|
-
},
|
|
11285
|
-
// {
|
|
11286
|
-
// url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
11287
|
-
// params: {
|
|
11288
|
-
// pageSize: 5000,
|
|
11289
|
-
// currentPage: 1,
|
|
11290
|
-
// },
|
|
11291
|
-
// options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
11292
|
-
// },
|
|
11293
|
-
{
|
|
11294
|
-
url: "".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"),
|
|
11295
|
-
params: {
|
|
11296
|
-
pageSize: 5000,
|
|
11297
|
-
currentPage: 1,
|
|
11298
|
-
'ctl-withAuth': true
|
|
11299
|
-
},
|
|
11300
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11301
11224
|
}, {
|
|
11302
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11225
|
+
url: "".concat(prefixUrl.formSelectFix, "/class/withProperty"),
|
|
11303
11226
|
params: {
|
|
11304
11227
|
pageSize: 5000,
|
|
11305
|
-
currentPage: 1
|
|
11306
|
-
'qp-propertyCode-eq': 'MAT_CATA'
|
|
11307
|
-
},
|
|
11308
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzdlbm-in')
|
|
11309
|
-
}, {
|
|
11310
|
-
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11311
|
-
params: {
|
|
11312
|
-
pageSize: 5000,
|
|
11313
|
-
currentPage: 1,
|
|
11314
|
-
'qp-propertyCode-eq': 'MID_CATA'
|
|
11228
|
+
currentPage: 1
|
|
11315
11229
|
},
|
|
11316
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11230
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-classId-in')
|
|
11317
11231
|
}, {
|
|
11318
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11232
|
+
url: "".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"),
|
|
11319
11233
|
params: {
|
|
11320
11234
|
pageSize: 5000,
|
|
11321
11235
|
currentPage: 1,
|
|
11322
|
-
'
|
|
11236
|
+
'ctl-withAuth': true
|
|
11323
11237
|
},
|
|
11324
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11325
|
-
}], ['colorName', 'categoryId', '
|
|
11238
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11239
|
+
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11326
11240
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11327
11241
|
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11328
11242
|
});
|
|
@@ -11339,11 +11253,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11339
11253
|
Promise.all(fieldLoadSource).then(function (x) {
|
|
11340
11254
|
formatSource(x, 0, getFieldIndex(_tableSearchForm, 'colorName'), _tableSearchForm, ['value', 'value']);
|
|
11341
11255
|
formatTreeDataSource(x, 1, getFieldIndex(_tableSearchForm, 'categoryId'), _tableSearchForm);
|
|
11342
|
-
|
|
11343
|
-
formatSource(x,
|
|
11344
|
-
formatSource(x, 3, getFieldIndex(_tableSearchForm, 'zzdlbm'), _tableSearchForm, ['value', 'value']);
|
|
11345
|
-
formatSource(x, 4, getFieldIndex(_tableSearchForm, 'zzzlbm'), _tableSearchForm, ['value', 'value']);
|
|
11346
|
-
formatSource(x, 5, getFieldIndex(_tableSearchForm, 'zzxlbm'), _tableSearchForm, ['value', 'value']);
|
|
11256
|
+
formatSource(x, 2, getFieldIndex(_tableSearchForm, 'classId'), _tableSearchForm, ['id', 'name']);
|
|
11257
|
+
formatSource(x, 3, getFieldIndex(_tableSearchForm, 'brandId'), _tableSearchForm, ['id', 'name']);
|
|
11347
11258
|
});
|
|
11348
11259
|
modalTableProps = _objectSpread2({
|
|
11349
11260
|
modalTableTitle: '选择SKC',
|
|
@@ -11362,37 +11273,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11362
11273
|
defaultSort: 2
|
|
11363
11274
|
}, {
|
|
11364
11275
|
title: '商品名称',
|
|
11365
|
-
dataIndex: 'itemName'
|
|
11366
|
-
defaultSort: 3
|
|
11276
|
+
dataIndex: 'itemName'
|
|
11367
11277
|
}, {
|
|
11368
11278
|
title: '颜色',
|
|
11369
11279
|
dataIndex: 'colorName',
|
|
11370
|
-
defaultSort:
|
|
11280
|
+
defaultSort: 3
|
|
11371
11281
|
}, {
|
|
11372
11282
|
title: '类目',
|
|
11373
|
-
dataIndex: 'categoryText'
|
|
11374
|
-
defaultSort: 5
|
|
11375
|
-
},
|
|
11376
|
-
// {
|
|
11377
|
-
// title: '品类',
|
|
11378
|
-
// dataIndex: 'className',
|
|
11379
|
-
// },
|
|
11380
|
-
{
|
|
11381
|
-
title: '品牌',
|
|
11382
|
-
dataIndex: 'brandName',
|
|
11383
|
-
defaultSort: 6
|
|
11283
|
+
dataIndex: 'categoryText'
|
|
11384
11284
|
}, {
|
|
11385
11285
|
title: '品类',
|
|
11386
|
-
dataIndex: '
|
|
11387
|
-
defaultSort: 7
|
|
11388
|
-
}, {
|
|
11389
|
-
title: '大类',
|
|
11390
|
-
dataIndex: 'zzzlbm',
|
|
11391
|
-
defaultSort: 8
|
|
11286
|
+
dataIndex: 'className'
|
|
11392
11287
|
}, {
|
|
11393
|
-
title: '
|
|
11394
|
-
dataIndex: '
|
|
11395
|
-
defaultSort:
|
|
11288
|
+
title: '品牌',
|
|
11289
|
+
dataIndex: 'brandName',
|
|
11290
|
+
defaultSort: 4
|
|
11396
11291
|
}], hiddenFields)
|
|
11397
11292
|
}, modalTableBusProps);
|
|
11398
11293
|
}
|
|
@@ -11573,6 +11468,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11573
11468
|
headers: _objectSpread2({}, extralHeaders)
|
|
11574
11469
|
})]).then(function (x) {
|
|
11575
11470
|
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11471
|
+
debugger;
|
|
11576
11472
|
// 战区限制一级数据
|
|
11577
11473
|
var newData1 = [];
|
|
11578
11474
|
(_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) {
|
|
@@ -12611,6 +12507,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12611
12507
|
optionFilterProp: 'children',
|
|
12612
12508
|
filterOption: function filterOption(input, option) {
|
|
12613
12509
|
var _option$value;
|
|
12510
|
+
debugger;
|
|
12614
12511
|
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12615
12512
|
}
|
|
12616
12513
|
}
|
|
@@ -12758,6 +12655,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12758
12655
|
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12759
12656
|
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12760
12657
|
});
|
|
12658
|
+
debugger;
|
|
12761
12659
|
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12762
12660
|
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12763
12661
|
});
|
|
@@ -14604,7 +14502,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14604
14502
|
'ctl-withAuth': true
|
|
14605
14503
|
},
|
|
14606
14504
|
resType: 'list',
|
|
14607
|
-
resPosition: isNoUseItemBarcode ?
|
|
14505
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
14608
14506
|
resKeyValue: ['id', 'name']
|
|
14609
14507
|
}, {
|
|
14610
14508
|
url: "/items/category/queryCategoryTree",
|
|
@@ -14613,7 +14511,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14613
14511
|
currentPage: 1
|
|
14614
14512
|
},
|
|
14615
14513
|
resType: 'treeList',
|
|
14616
|
-
resPosition: isNoUseItemBarcode ?
|
|
14514
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
14617
14515
|
}];
|
|
14618
14516
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
14619
14517
|
var props = {
|
|
@@ -14650,8 +14548,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14650
14548
|
tableSearchForm: mTpTableSearchForm,
|
|
14651
14549
|
tableColumns: mTpTableColumn,
|
|
14652
14550
|
selectColumn: mTpSelectColumn,
|
|
14653
|
-
promiseLoadList: mTpPromiseLoadList
|
|
14654
|
-
topTablePagination: (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {}
|
|
14551
|
+
promiseLoadList: mTpPromiseLoadList
|
|
14655
14552
|
};
|
|
14656
14553
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
14657
14554
|
modalTableProps: modalTableProps
|
|
@@ -20406,16 +20303,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20406
20303
|
}
|
|
20407
20304
|
}));
|
|
20408
20305
|
}));
|
|
20306
|
+
} else {
|
|
20307
|
+
return undefined;
|
|
20409
20308
|
}
|
|
20410
|
-
// 判断summaryList 是否为reactNode
|
|
20411
|
-
if (/*#__PURE__*/React__default['default'].isValidElement(summaryList)) {
|
|
20412
|
-
return summaryList;
|
|
20413
|
-
}
|
|
20414
|
-
// 判断summaryList 是否为函数
|
|
20415
|
-
if (Object.prototype.toString.call(summaryList) === '[object Function]') {
|
|
20416
|
-
return summaryList();
|
|
20417
|
-
}
|
|
20418
|
-
return undefined;
|
|
20419
20309
|
};
|
|
20420
20310
|
var columnsDom = /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20421
20311
|
className: "ant-dropdown-link"
|
|
@@ -39353,12 +39243,24 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39353
39243
|
padding: '10px',
|
|
39354
39244
|
borderRadius: '4px'
|
|
39355
39245
|
}
|
|
39356
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
39246
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
39247
|
+
disabled: disabled,
|
|
39357
39248
|
style: {
|
|
39358
|
-
|
|
39359
|
-
|
|
39360
|
-
}
|
|
39361
|
-
|
|
39249
|
+
width: 150,
|
|
39250
|
+
marginRight: 10
|
|
39251
|
+
},
|
|
39252
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
39253
|
+
value: String(itemDetail.reqConditionData.reqParamType || '10'),
|
|
39254
|
+
onChange: function onChange(val) {
|
|
39255
|
+
return _this.handleReqDataChange(itemDetail, 'reqParamType', val);
|
|
39256
|
+
}
|
|
39257
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
39258
|
+
value: "10"
|
|
39259
|
+
}, "\u8BF7\u6C42\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
39260
|
+
value: "20"
|
|
39261
|
+
}, "\u8BF7\u6C42\u5934\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
39262
|
+
value: "40"
|
|
39263
|
+
}, "\u6E90\u8BF7\u6C42\u5730\u5740")), String(itemDetail.reqConditionData.reqParamType || '10') !== '40' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
39362
39264
|
disabled: disabled,
|
|
39363
39265
|
style: {
|
|
39364
39266
|
width: 150,
|
|
@@ -39914,6 +39816,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39914
39816
|
if (valueNames) {
|
|
39915
39817
|
itemDetail.reqConditionData.paramNames = valueNames;
|
|
39916
39818
|
}
|
|
39819
|
+
} else if (field === 'reqParamType') {
|
|
39820
|
+
itemDetail.reqConditionData.reqParamType = value;
|
|
39917
39821
|
}
|
|
39918
39822
|
_this.setState({
|
|
39919
39823
|
ruleClassData: ruleClassData
|
package/package.json
CHANGED
|
@@ -433,7 +433,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
433
433
|
'ctl-withAuth': true
|
|
434
434
|
},
|
|
435
435
|
resType: 'list',
|
|
436
|
-
resPosition: isNoUseItemBarcode ?
|
|
436
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
437
437
|
resKeyValue: ['id','name']
|
|
438
438
|
},
|
|
439
439
|
{
|
|
@@ -443,7 +443,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
443
443
|
currentPage: 1,
|
|
444
444
|
},
|
|
445
445
|
resType: 'treeList',
|
|
446
|
-
resPosition: isNoUseItemBarcode ?
|
|
446
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
447
447
|
},
|
|
448
448
|
]
|
|
449
449
|
const mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
@@ -486,7 +486,6 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
486
486
|
tableColumns: mTpTableColumn,
|
|
487
487
|
selectColumn: mTpSelectColumn,
|
|
488
488
|
promiseLoadList: mTpPromiseLoadList,
|
|
489
|
-
topTablePagination: parProps?.pagination || {},
|
|
490
489
|
}
|
|
491
490
|
|
|
492
491
|
return (
|
|
@@ -923,16 +923,9 @@ export default (props: any) => {
|
|
|
923
923
|
))}
|
|
924
924
|
</Table.Summary>
|
|
925
925
|
);
|
|
926
|
+
} else {
|
|
927
|
+
return undefined;
|
|
926
928
|
}
|
|
927
|
-
// 判断summaryList 是否为reactNode
|
|
928
|
-
if(React.isValidElement(summaryList)){
|
|
929
|
-
return summaryList;
|
|
930
|
-
}
|
|
931
|
-
// 判断summaryList 是否为函数
|
|
932
|
-
if(Object.prototype.toString.call(summaryList) === '[object Function]'){
|
|
933
|
-
return summaryList();
|
|
934
|
-
}
|
|
935
|
-
return undefined;
|
|
936
929
|
};
|
|
937
930
|
|
|
938
931
|
const columnsDom = <span className="ant-dropdown-link">
|
|
@@ -949,7 +942,7 @@ export default (props: any) => {
|
|
|
949
942
|
bsTableCode={bsTableCode}
|
|
950
943
|
/>
|
|
951
944
|
|
|
952
|
-
const memoConfig = useMemo(
|
|
945
|
+
const memoConfig = useMemo(
|
|
953
946
|
() => ({
|
|
954
947
|
...config,
|
|
955
948
|
summary: props.summary,
|
|
@@ -1007,7 +1007,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1007
1007
|
...selectConfigProps,
|
|
1008
1008
|
}
|
|
1009
1009
|
const tableSearchForm = handleHiddenFields([
|
|
1010
|
-
{ name: 'qp-code-
|
|
1010
|
+
{ name: 'qp-code-like', label: 'SKC编码' },
|
|
1011
1011
|
{ name: 'qp-skcName-like', label: 'SKC名称' },
|
|
1012
1012
|
{ name: 'qp-itemName-like', label: '商品名称' },
|
|
1013
1013
|
{ name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
|
|
@@ -1042,59 +1042,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1042
1042
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
1043
1043
|
},
|
|
1044
1044
|
} },
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
// props: {
|
|
1048
|
-
// mode: 'multiple',
|
|
1049
|
-
// notFoundContent: '暂无数据',
|
|
1050
|
-
// allowClear: true,
|
|
1051
|
-
// showSearch: true,
|
|
1052
|
-
// showArrow: true,
|
|
1053
|
-
// maxTagCount: 1,
|
|
1054
|
-
// optionFilterProp: 'children',
|
|
1055
|
-
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1056
|
-
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1057
|
-
// },
|
|
1058
|
-
// } },
|
|
1059
|
-
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
1060
|
-
type: 'select',
|
|
1061
|
-
props: {
|
|
1062
|
-
mode: 'multiple',
|
|
1063
|
-
notFoundContent: '暂无数据',
|
|
1064
|
-
allowClear: true,
|
|
1065
|
-
showSearch: true,
|
|
1066
|
-
showArrow: true,
|
|
1067
|
-
maxTagCount: 1,
|
|
1068
|
-
optionFilterProp: 'children',
|
|
1069
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1070
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1071
|
-
},
|
|
1072
|
-
} },
|
|
1073
|
-
// 商品属性 品类 == MAT_CATA (zzdlbm)
|
|
1074
|
-
{
|
|
1075
|
-
name: "qp-zzdlbm-in",
|
|
1076
|
-
label: "品类",
|
|
1077
|
-
field: {
|
|
1078
|
-
type: "select",
|
|
1079
|
-
props: {
|
|
1080
|
-
mode: 'multiple',
|
|
1081
|
-
notFoundContent: '暂无数据',
|
|
1082
|
-
allowClear: true,
|
|
1083
|
-
showSearch: true,
|
|
1084
|
-
showArrow: true,
|
|
1085
|
-
maxTagCount: 1,
|
|
1086
|
-
optionFilterProp: 'children',
|
|
1087
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1088
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1089
|
-
},
|
|
1090
|
-
},
|
|
1091
|
-
},
|
|
1092
|
-
// 商品属性 大类 == MID_CATA (zzzlbm)
|
|
1093
|
-
{
|
|
1094
|
-
name: "qp-zzzlbm-in",
|
|
1095
|
-
label: "大类",
|
|
1096
|
-
field: {
|
|
1097
|
-
type: "select",
|
|
1045
|
+
{ name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
1046
|
+
type: 'select',
|
|
1098
1047
|
props: {
|
|
1099
1048
|
mode: 'multiple',
|
|
1100
1049
|
notFoundContent: '暂无数据',
|
|
@@ -1106,14 +1055,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1106
1055
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1107
1056
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1108
1057
|
},
|
|
1109
|
-
},
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
{
|
|
1113
|
-
name: "qp-zzxlbm-in",
|
|
1114
|
-
label: "中类",
|
|
1115
|
-
field: {
|
|
1116
|
-
type: "select",
|
|
1058
|
+
} },
|
|
1059
|
+
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
1060
|
+
type: 'select',
|
|
1117
1061
|
props: {
|
|
1118
1062
|
mode: 'multiple',
|
|
1119
1063
|
notFoundContent: '暂无数据',
|
|
@@ -1125,9 +1069,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1125
1069
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1126
1070
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1127
1071
|
},
|
|
1128
|
-
},
|
|
1129
|
-
},
|
|
1130
|
-
|
|
1072
|
+
} },
|
|
1131
1073
|
], hiddenFields);
|
|
1132
1074
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1133
1075
|
const fieldsRequest = handleHiddenFieldsRequest(
|
|
@@ -1149,52 +1091,25 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1149
1091
|
},
|
|
1150
1092
|
options: getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')
|
|
1151
1093
|
},
|
|
1152
|
-
// {
|
|
1153
|
-
// url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
1154
|
-
// params: {
|
|
1155
|
-
// pageSize: 5000,
|
|
1156
|
-
// currentPage: 1,
|
|
1157
|
-
// },
|
|
1158
|
-
// options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
1159
|
-
// },
|
|
1160
1094
|
{
|
|
1161
|
-
url: `${prefixUrl.formSelectFix}/
|
|
1095
|
+
url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
1162
1096
|
params: {
|
|
1163
1097
|
pageSize: 5000,
|
|
1164
1098
|
currentPage: 1,
|
|
1165
|
-
'ctl-withAuth': true
|
|
1166
1099
|
},
|
|
1167
|
-
options: getQueryHeadersItem(queryHeaderParams,'qp-
|
|
1100
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
1168
1101
|
},
|
|
1169
1102
|
{
|
|
1170
|
-
url: `${prefixUrl.formSelectFix}/
|
|
1171
|
-
params: {
|
|
1172
|
-
pageSize: 5000,
|
|
1173
|
-
currentPage: 1,
|
|
1174
|
-
'qp-propertyCode-eq': 'MAT_CATA',
|
|
1175
|
-
},
|
|
1176
|
-
options: getQueryHeadersItem(queryHeaderParams,'qp-zzdlbm-in')
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
url: `${prefixUrl.formSelectFix}/item/propertyValue`,
|
|
1180
|
-
params: {
|
|
1181
|
-
pageSize: 5000,
|
|
1182
|
-
currentPage: 1,
|
|
1183
|
-
'qp-propertyCode-eq': 'MID_CATA',
|
|
1184
|
-
},
|
|
1185
|
-
options: getQueryHeadersItem(queryHeaderParams,'qp-zzzlbm-in')
|
|
1186
|
-
},
|
|
1187
|
-
{
|
|
1188
|
-
url: `${prefixUrl.formSelectFix}/item/propertyValue`,
|
|
1103
|
+
url: `${prefixUrl.formSelectFix}/brand/queryBrandList`,
|
|
1189
1104
|
params: {
|
|
1190
1105
|
pageSize: 5000,
|
|
1191
1106
|
currentPage: 1,
|
|
1192
|
-
'
|
|
1107
|
+
'ctl-withAuth': true
|
|
1193
1108
|
},
|
|
1194
|
-
options: getQueryHeadersItem(queryHeaderParams,'qp-
|
|
1195
|
-
}
|
|
1109
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')
|
|
1110
|
+
}
|
|
1196
1111
|
],
|
|
1197
|
-
['colorName', 'categoryId', '
|
|
1112
|
+
['colorName', 'categoryId', 'classId', 'brandId'],
|
|
1198
1113
|
hiddenFields,
|
|
1199
1114
|
);
|
|
1200
1115
|
const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params, i.options));
|
|
@@ -1213,11 +1128,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1213
1128
|
Promise.all(fieldLoadSource).then((x: any)=>{
|
|
1214
1129
|
formatSource(x,0, getFieldIndex(tableSearchForm, 'colorName'), tableSearchForm,['value','value']);
|
|
1215
1130
|
formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
|
|
1216
|
-
|
|
1217
|
-
formatSource(x,
|
|
1218
|
-
formatSource(x,3, getFieldIndex(tableSearchForm, 'zzdlbm'), tableSearchForm,['value','value']);
|
|
1219
|
-
formatSource(x,4, getFieldIndex(tableSearchForm, 'zzzlbm'), tableSearchForm,['value','value']);
|
|
1220
|
-
formatSource(x,5, getFieldIndex(tableSearchForm, 'zzxlbm'), tableSearchForm,['value','value']);
|
|
1131
|
+
formatSource(x,2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm,['id','name']);
|
|
1132
|
+
formatSource(x,3, getFieldIndex(tableSearchForm, 'brandId'), tableSearchForm,['id','name']);
|
|
1221
1133
|
})
|
|
1222
1134
|
modalTableProps = {
|
|
1223
1135
|
modalTableTitle: '选择SKC',
|
|
@@ -1241,41 +1153,24 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1241
1153
|
{
|
|
1242
1154
|
title: '商品名称',
|
|
1243
1155
|
dataIndex: 'itemName',
|
|
1244
|
-
defaultSort: 3,
|
|
1245
1156
|
},
|
|
1246
1157
|
{
|
|
1247
1158
|
title: '颜色',
|
|
1248
1159
|
dataIndex: 'colorName',
|
|
1249
|
-
defaultSort:
|
|
1160
|
+
defaultSort: 3,
|
|
1250
1161
|
},
|
|
1251
1162
|
{
|
|
1252
1163
|
title: '类目',
|
|
1253
1164
|
dataIndex: 'categoryText',
|
|
1254
|
-
defaultSort: 5,
|
|
1255
|
-
},
|
|
1256
|
-
// {
|
|
1257
|
-
// title: '品类',
|
|
1258
|
-
// dataIndex: 'className',
|
|
1259
|
-
// },
|
|
1260
|
-
{
|
|
1261
|
-
title: '品牌',
|
|
1262
|
-
dataIndex: 'brandName',
|
|
1263
|
-
defaultSort: 6,
|
|
1264
1165
|
},
|
|
1265
1166
|
{
|
|
1266
1167
|
title: '品类',
|
|
1267
|
-
dataIndex: '
|
|
1268
|
-
defaultSort: 7,
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
title: '大类',
|
|
1272
|
-
dataIndex: 'zzzlbm',
|
|
1273
|
-
defaultSort: 8,
|
|
1168
|
+
dataIndex: 'className',
|
|
1274
1169
|
},
|
|
1275
1170
|
{
|
|
1276
|
-
title: '
|
|
1277
|
-
dataIndex: '
|
|
1278
|
-
defaultSort:
|
|
1171
|
+
title: '品牌',
|
|
1172
|
+
dataIndex: 'brandName',
|
|
1173
|
+
defaultSort: 4,
|
|
1279
1174
|
},
|
|
1280
1175
|
], hiddenFields),
|
|
1281
1176
|
...modalTableBusProps
|
|
@@ -1464,6 +1359,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1464
1359
|
}
|
|
1465
1360
|
}),
|
|
1466
1361
|
]).then((x: any)=>{
|
|
1362
|
+
debugger
|
|
1467
1363
|
// 战区限制一级数据
|
|
1468
1364
|
const newData1 = [];
|
|
1469
1365
|
x[0]?.data[0]?.channelInfoSon?.forEach((item: any) => {
|
|
@@ -2430,6 +2326,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2430
2326
|
optionFilterProp: 'children',
|
|
2431
2327
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2432
2328
|
{
|
|
2329
|
+
debugger
|
|
2433
2330
|
return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2434
2331
|
}
|
|
2435
2332
|
},
|
|
@@ -2551,6 +2448,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2551
2448
|
const m1 = opList?.filter((r: any) => r?.field === 'manage_supervisor' && trim(r?.value));
|
|
2552
2449
|
const m2 = opList?.filter((r: any) => r?.field === 'direct_supervisor' && trim(r?.value));
|
|
2553
2450
|
const m3 = opList?.filter((r: any) => r?.field === 'distribution_item' && trim(r?.value));
|
|
2451
|
+
debugger
|
|
2554
2452
|
const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
|
|
2555
2453
|
const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
|
|
2556
2454
|
tableSearchForm[7] = { ...tableSearchForm[7], initialSource: m1 };
|
|
@@ -669,7 +669,7 @@ const AddSelect = (props: any) => {
|
|
|
669
669
|
}
|
|
670
670
|
// 数据源 不可以有重复key
|
|
671
671
|
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
672
|
-
|
|
672
|
+
|
|
673
673
|
setTableData(source)
|
|
674
674
|
setTablePagination({ ...tablePagination, total: Number(res?.total || res?.totalCount || source.length), pageSize: Number(res?.size || res?.pageSize || (params?.pageSize || pageSize)), current: Number(res?.page || res?.currentPage || (params?.currentPage || currentPage)) })
|
|
675
675
|
})
|
|
@@ -807,8 +807,6 @@ const AddSelect = (props: any) => {
|
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
const handleTableChange = (pagination) => {
|
|
810
|
-
// 设置分页tablePagination
|
|
811
|
-
setTablePagination({ ...tablePagination, ...pagination })
|
|
812
810
|
getData({ ...tableFormParams, pageSize: pagination.pageSize, currentPage: pagination.current }, 2)
|
|
813
811
|
}
|
|
814
812
|
|
|
@@ -242,9 +242,11 @@ class DataValidation extends React.Component {
|
|
|
242
242
|
cell.v = cell.m
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
+
// console.log(postion);
|
|
245
246
|
},
|
|
246
247
|
cellAllRenderBefore: function (data, sheetFile, ctx) {
|
|
247
248
|
sheetFile.config.borderInfo = [];
|
|
249
|
+
// console.info(data,sheetFile,ctx)
|
|
248
250
|
},
|
|
249
251
|
},
|
|
250
252
|
showtoolbarConfig: {
|
|
@@ -409,8 +411,7 @@ class DataValidation extends React.Component {
|
|
|
409
411
|
};
|
|
410
412
|
|
|
411
413
|
getData = () => {
|
|
412
|
-
|
|
413
|
-
const useStringValue = this.props.useStringValue || false;
|
|
414
|
+
console.time();
|
|
414
415
|
let sheetData = luckysheet.getSheetData();
|
|
415
416
|
let data = JSON.parse(JSON.stringify(sheetData))
|
|
416
417
|
.filter((item) => item[0])
|
|
@@ -418,13 +419,7 @@ class DataValidation extends React.Component {
|
|
|
418
419
|
let obj = {};
|
|
419
420
|
|
|
420
421
|
item.slice(0, itemsTemp.length).map((innerItem, index) => {
|
|
421
|
-
|
|
422
|
-
if (useStringValue) {
|
|
423
|
-
obj[this.state.items[index].code] = innerItem && innerItem.m;
|
|
424
|
-
} else {
|
|
425
|
-
// 否则根据值是否相等来判断是否使用字符串值
|
|
426
|
-
obj[this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
427
|
-
}
|
|
422
|
+
obj[this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
428
423
|
});
|
|
429
424
|
|
|
430
425
|
return obj;
|
|
@@ -575,6 +570,7 @@ customSort = (a, b) => {
|
|
|
575
570
|
resultData: res,
|
|
576
571
|
});
|
|
577
572
|
|
|
573
|
+
console.log(setExportData);
|
|
578
574
|
setExportData([123123]);
|
|
579
575
|
})
|
|
580
576
|
.catch((err:any) => { });
|
|
@@ -824,6 +820,7 @@ customSort = (a, b) => {
|
|
|
824
820
|
top: '0px',
|
|
825
821
|
};
|
|
826
822
|
|
|
823
|
+
console.log('itemsTemp', itemsTemp)
|
|
827
824
|
return (
|
|
828
825
|
<>
|
|
829
826
|
<div className="sheet_table_top">
|
|
@@ -594,6 +594,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
594
594
|
|
|
595
595
|
const formItem = (list) => {
|
|
596
596
|
if (isModalVisible && list?.length) {
|
|
597
|
+
debugger
|
|
597
598
|
const setDisabled = (name: any) => {
|
|
598
599
|
if (fixedparamsDisabled && fixedparameter?.length && fixedparameter.find((item: any) => item === name)) {
|
|
599
600
|
return true
|
|
@@ -1143,21 +1143,36 @@ class RuleObjectComponent extends Component {
|
|
|
1143
1143
|
borderRadius: '4px',
|
|
1144
1144
|
}}
|
|
1145
1145
|
>
|
|
1146
|
-
<
|
|
1147
|
-
请求参数名称:
|
|
1148
|
-
</span>
|
|
1149
|
-
<Input
|
|
1146
|
+
<Select
|
|
1150
1147
|
disabled={disabled}
|
|
1151
1148
|
style={{ width: 150, marginRight: 10 }}
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
)
|
|
1149
|
+
placeholder="请选择"
|
|
1150
|
+
value={String(
|
|
1151
|
+
itemDetail.reqConditionData.reqParamType || '10',
|
|
1152
|
+
)}
|
|
1153
|
+
onChange={(val) =>
|
|
1154
|
+
this.handleReqDataChange(itemDetail, 'reqParamType', val)
|
|
1159
1155
|
}
|
|
1160
|
-
|
|
1156
|
+
>
|
|
1157
|
+
<Select.Option value="10">请求参数名称</Select.Option>
|
|
1158
|
+
<Select.Option value="20">请求头参数名称</Select.Option>
|
|
1159
|
+
<Select.Option value="40">源请求地址</Select.Option>
|
|
1160
|
+
</Select>
|
|
1161
|
+
{String(itemDetail.reqConditionData.reqParamType || '10') !==
|
|
1162
|
+
'40' && (
|
|
1163
|
+
<Input
|
|
1164
|
+
disabled={disabled}
|
|
1165
|
+
style={{ width: 150, marginRight: 10 }}
|
|
1166
|
+
value={itemDetail.reqConditionData.reqParamName}
|
|
1167
|
+
onChange={(e) =>
|
|
1168
|
+
this.handleReqDataChange(
|
|
1169
|
+
itemDetail,
|
|
1170
|
+
'reqParamName',
|
|
1171
|
+
e.target.value,
|
|
1172
|
+
)
|
|
1173
|
+
}
|
|
1174
|
+
/>
|
|
1175
|
+
)}
|
|
1161
1176
|
|
|
1162
1177
|
<span style={{ marginRight: 8, flexShrink: 0 }}>类型:</span>
|
|
1163
1178
|
<Select
|
|
@@ -1843,6 +1858,8 @@ class RuleObjectComponent extends Component {
|
|
|
1843
1858
|
if (valueNames) {
|
|
1844
1859
|
itemDetail.reqConditionData.paramNames = valueNames;
|
|
1845
1860
|
}
|
|
1861
|
+
} else if (field === 'reqParamType') {
|
|
1862
|
+
itemDetail.reqConditionData.reqParamType = value;
|
|
1846
1863
|
}
|
|
1847
1864
|
|
|
1848
1865
|
this.setState(
|