kts-components-document-access-point 2.0.1 → 2.0.2

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.
@@ -28,6 +28,10 @@ export interface ISelectedRowKey {
28
28
  *单据类型
29
29
  */
30
30
  type?: string;
31
+ /**
32
+ * 单据子类
33
+ */
34
+ profile?: string;
31
35
  }
32
36
  export interface IBillEnum {
33
37
  name: string;
package/dist/index.esm.js CHANGED
@@ -4,8 +4,8 @@ import GreyReactBox from 'grey-react-box';
4
4
  import { v4 } from 'uuid';
5
5
  import Icon, { InfoCircleOutlined } from '@ant-design/icons';
6
6
  import moment from 'moment';
7
- import { Modal, Search, Select as Select$2, searchUnFormat, Radio as Radio$2, PageHeaderFoot, Button as Button$1, Dropdown, AutoTableContainer, Table as Table$1, Pagination, Form as Form$1, message as message$1, Input as Input$1 } from 'kts-xui';
8
- import { Select as Select$1, DatePicker as DatePicker$1, Radio as Radio$1, Checkbox } from 'antd';
7
+ import { Modal, Search, Select as Select$1, searchUnFormat, Radio as Radio$2, PageHeaderFoot, Button as Button$1, Dropdown, AutoTableContainer, Table as Table$1, Pagination, Form as Form$1, message as message$1, Input as Input$1 } from 'kts-xui';
8
+ import { DatePicker as DatePicker$1, Radio as Radio$1, Checkbox, Select as Select$2 } from 'antd';
9
9
  import { useHistory, MemoryRouter, Switch as Switch$1, Route, Redirect } from 'react-router-dom';
10
10
  import zhCN from 'kts-components-antd-x4/lib/locale/zh_CN';
11
11
  import qs from 'query-string';
@@ -2891,10 +2891,6 @@ function modalcomfirm(props) {
2891
2891
  }))));
2892
2892
  }
2893
2893
 
2894
- var css_248z$3 = ".underline :global(.ktsAntX-select-selector) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.underline :global(.ant-input) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n";
2895
- styleInject(css_248z$3);
2896
-
2897
- var Option$2 = Select$1.Option;
2898
2894
  var RangePicker = DatePicker$1.RangePicker;
2899
2895
  var RadioGroup = Radio$1.Group;
2900
2896
  var CheckboxGroup = Checkbox.Group;
@@ -2918,10 +2914,10 @@ var PageHeader = (function () {
2918
2914
  var visible = controller.useMemo(function (s) {
2919
2915
  return s.visible;
2920
2916
  }, []);
2921
- var profileEnumRef = useRef([]);
2922
- var _useState3 = useState({}),
2917
+ var _useState3 = useState([]),
2923
2918
  _useState4 = _slicedToArray(_useState3, 2),
2924
- forceUpdate = _useState4[1];
2919
+ profileEnum = _useState4[0],
2920
+ setProfileEnum = _useState4[1];
2925
2921
  var ktsRef = useRef(null);
2926
2922
  var _useState5 = useState([]),
2927
2923
  _useState6 = _slicedToArray(_useState5, 2),
@@ -3029,14 +3025,17 @@ var PageHeader = (function () {
3029
3025
  var target = billEnum.find(function (item) {
3030
3026
  return item.value === value;
3031
3027
  });
3032
- profileEnumRef.current = (target === null || target === void 0 ? void 0 : (_target$profileList = target.profileList) === null || _target$profileList === void 0 ? void 0 : _target$profileList.map(function (item) {
3028
+ var newProfileEnum = (target === null || target === void 0 ? void 0 : (_target$profileList = target.profileList) === null || _target$profileList === void 0 ? void 0 : _target$profileList.map(function (item) {
3033
3029
  return {
3034
3030
  label: item.name,
3035
3031
  value: item.value
3036
3032
  };
3037
3033
  })) || [];
3038
- forceUpdate({});
3039
- }, [billEnum]);
3034
+ setProfileEnum(newProfileEnum);
3035
+ form === null || form === void 0 ? void 0 : form.setFieldsValue({
3036
+ profile: undefined
3037
+ });
3038
+ }, [billEnum, controller]);
3040
3039
  var switchType = React.useCallback(function (e) {
3041
3040
  controller.pipeline(/*#__PURE__*/function () {
3042
3041
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(s) {
@@ -3063,6 +3062,8 @@ var PageHeader = (function () {
3063
3062
  return _ref4.apply(this, arguments);
3064
3063
  };
3065
3064
  }())();
3065
+ // 切换类型时也清空单据子类的值并重新创建表单
3066
+ setProfileEnum([]);
3066
3067
  }, []);
3067
3068
  var handleCancel = React.useCallback(function () {
3068
3069
  controller.pipeline(/*#__PURE__*/function () {
@@ -3118,31 +3119,24 @@ var PageHeader = (function () {
3118
3119
  items.push({
3119
3120
  name: "type",
3120
3121
  label: "单据大类",
3121
- children: (/*#__PURE__*/React.createElement(Select$2, {
3122
- className: css_248z$3.underline,
3122
+ children: (/*#__PURE__*/React.createElement(Select$1, {
3123
+ className: "underline",
3123
3124
  allowClear: true,
3124
- onChange: handleTypeChange
3125
- }, billEnum.map(function (item) {
3126
- return /*#__PURE__*/React.createElement(Option$2, {
3127
- key: item.value,
3128
- value: item.value
3129
- }, item.label);
3130
- })))
3125
+ onChange: handleTypeChange,
3126
+ options: billEnum
3127
+ }))
3131
3128
  });
3132
3129
  // 单据子类
3133
3130
  items.push({
3134
3131
  name: 'profile',
3135
3132
  label: '单据子类',
3136
- hidden: profileEnumRef.current.length === 0,
3137
- children: (/*#__PURE__*/React.createElement(Select$2, {
3138
- className: css_248z$3.underline,
3139
- allowClear: true
3140
- }, profileEnumRef.current.map(function (item) {
3141
- return /*#__PURE__*/React.createElement(Option$2, {
3142
- key: item.value,
3143
- value: item.value
3144
- }, item.label);
3145
- })))
3133
+ hidden: profileEnum.length === 0,
3134
+ children: (/*#__PURE__*/React.createElement(Select$1, {
3135
+ key: "profile-".concat((params === null || params === void 0 ? void 0 : params.type) || 'none'),
3136
+ className: "underline",
3137
+ allowClear: true,
3138
+ options: profileEnum
3139
+ }))
3146
3140
  });
3147
3141
  // 收发角色
3148
3142
  items.push({
@@ -3163,7 +3157,7 @@ var PageHeader = (function () {
3163
3157
  name: "createTime",
3164
3158
  label: "创建时间",
3165
3159
  children: /*#__PURE__*/React.createElement(RangePicker, {
3166
- className: css_248z$3.underline
3160
+ className: "underline-datepicker"
3167
3161
  })
3168
3162
  });
3169
3163
  // 更新时间
@@ -3171,7 +3165,7 @@ var PageHeader = (function () {
3171
3165
  name: "sendTime",
3172
3166
  label: "更新时间",
3173
3167
  children: /*#__PURE__*/React.createElement(RangePicker, {
3174
- className: css_248z$3.underline
3168
+ className: "underline-datepicker"
3175
3169
  })
3176
3170
  });
3177
3171
  } else if (type === 2) {
@@ -3190,6 +3184,10 @@ var PageHeader = (function () {
3190
3184
  }, "\u5DF2\u5931\u6548"), /*#__PURE__*/React.createElement(Radio$1, {
3191
3185
  value: 1
3192
3186
  }, "\u4F7F\u7528\u4E2D")))
3187
+ // options: [
3188
+ // { label: '已失效', value: 0 },
3189
+ // { label: '使用中', value: 1 },
3190
+ // ],
3193
3191
  });
3194
3192
  // 我的收发角色
3195
3193
  items.push({
@@ -3200,20 +3198,20 @@ var PageHeader = (function () {
3200
3198
  }, "\u53D1\u9001\u65B9"), /*#__PURE__*/React.createElement(Radio$1, {
3201
3199
  value: 2
3202
3200
  }, "\u63A5\u6536\u65B9")))
3201
+ // options: [
3202
+ // { label: '发送方', value: 1 },
3203
+ // { label: '接收方', value: 2 },
3204
+ // ],
3203
3205
  });
3204
3206
  // 我司对应DID
3205
3207
  items.push({
3206
3208
  name: "senderParticipantId",
3207
3209
  label: "我司对应DID",
3208
- children: (/*#__PURE__*/React.createElement(Select$2, {
3209
- className: css_248z$3.underline,
3210
- allowClear: true
3211
- }, didEnum.map(function (item) {
3212
- return /*#__PURE__*/React.createElement(Option$2, {
3213
- key: item.value,
3214
- value: item.value
3215
- }, item.label);
3216
- })))
3210
+ children: (/*#__PURE__*/React.createElement(Select$1, {
3211
+ className: "underline",
3212
+ allowClear: true,
3213
+ options: didEnum
3214
+ }))
3217
3215
  });
3218
3216
  // 接受对象
3219
3217
  items.push({
@@ -3231,43 +3229,35 @@ var PageHeader = (function () {
3231
3229
  items.push({
3232
3230
  name: "type",
3233
3231
  label: "单据大类",
3234
- children: (/*#__PURE__*/React.createElement(Select$2, {
3235
- className: css_248z$3.underline,
3232
+ children: (/*#__PURE__*/React.createElement(Select$1, {
3233
+ className: "underline",
3236
3234
  allowClear: true,
3237
- onChange: handleTypeChange
3238
- }, billEnum.map(function (item) {
3239
- return /*#__PURE__*/React.createElement(Option$2, {
3240
- key: item.value,
3241
- value: item.value
3242
- }, item.label);
3243
- })))
3235
+ onChange: handleTypeChange,
3236
+ options: billEnum
3237
+ }))
3244
3238
  });
3245
3239
  // 单据子类
3246
3240
  items.push({
3247
3241
  name: 'profile',
3248
3242
  label: '单据子类',
3249
- hidden: profileEnumRef.current.length === 0,
3250
- children: (/*#__PURE__*/React.createElement(Select$2, {
3251
- className: css_248z$3.underline,
3252
- allowClear: true
3253
- }, profileEnumRef.current.map(function (item) {
3254
- return /*#__PURE__*/React.createElement(Option$2, {
3255
- key: item.value,
3256
- value: item.value
3257
- }, item.label);
3258
- })))
3243
+ hidden: profileEnum.length === 0,
3244
+ children: (/*#__PURE__*/React.createElement(Select$1, {
3245
+ className: "underline",
3246
+ allowClear: true,
3247
+ options: profileEnum
3248
+ }))
3259
3249
  });
3260
3250
  // 发布时间
3261
3251
  items.push({
3262
3252
  name: "createTime",
3263
3253
  label: "发布时间",
3264
3254
  children: /*#__PURE__*/React.createElement(RangePicker, {
3265
- className: css_248z$3.underline
3255
+ className: "underline-datepicker"
3266
3256
  })
3267
3257
  });
3268
3258
  }
3269
3259
  return items;
3270
- }, [billEnum, type, didlist]);
3260
+ }, [billEnum, type, didlist, profileEnum]);
3271
3261
  var onCreateType = useCallback(function (category, record) {
3272
3262
  history.push({
3273
3263
  pathname: "/rule",
@@ -3285,46 +3275,29 @@ var PageHeader = (function () {
3285
3275
  }, [params, formItems]),
3286
3276
  formItems: formItems
3287
3277
  }),
3288
- search = _SearchXui$useCreate.search;
3278
+ search = _SearchXui$useCreate.search,
3279
+ inventory = _SearchXui$useCreate.inventory,
3280
+ form = _SearchXui$useCreate.form;
3289
3281
  var topExpand = useCallback(function () {
3290
3282
  return /*#__PURE__*/React.createElement("div", {
3291
3283
  style: {
3292
- display: 'flex'
3284
+ width: "100%"
3293
3285
  }
3294
3286
  }, /*#__PURE__*/React.createElement("div", {
3295
- style: {
3296
- marginRight: 10
3297
- }
3298
- }, /*#__PURE__*/React.createElement(Radio$2.Group, {
3299
- value: type,
3300
- onChange: switchType
3301
- }, /*#__PURE__*/React.createElement(Radio$2.Button, {
3302
- value: 1,
3303
- style: {
3304
- whiteSpace: 'nowrap'
3305
- }
3306
- }, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$2.Button, {
3307
- value: 2,
3308
- style: {
3309
- whiteSpace: 'nowrap'
3310
- }
3311
- }, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement("div", {
3312
- style: {
3313
- width: "100%",
3314
- paddingTop: '10px'
3315
- }
3287
+ className: 'unifiedSearch'
3316
3288
  }, /*#__PURE__*/React.createElement("div", {
3317
3289
  style: {
3318
3290
  display: "flex",
3319
3291
  alignItems: "flex-start",
3320
- gap: "16px"
3292
+ gap: "16px",
3293
+ padding: '10px 0px'
3321
3294
  }
3322
3295
  }, /*#__PURE__*/React.createElement("div", {
3323
3296
  style: {
3324
3297
  flex: 1
3325
3298
  }
3326
- }, search))));
3327
- }, [type, search]);
3299
+ }, search)), inventory));
3300
+ }, [type, search, inventory]);
3328
3301
  var menu = useMemo(function () {
3329
3302
  return /*#__PURE__*/React.createElement(Menu, null, billEnum && billEnum.map(function (item, key) {
3330
3303
  if (item.profileList) {
@@ -3349,7 +3322,25 @@ var PageHeader = (function () {
3349
3322
  }
3350
3323
  }));
3351
3324
  }, [billEnum]);
3352
- return /*#__PURE__*/React.createElement("div", {
3325
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3326
+ style: {
3327
+ padding: "16px 20px",
3328
+ borderBottom: "1px solid rgb(240, 240, 240)"
3329
+ }
3330
+ }, /*#__PURE__*/React.createElement(Radio$2.Group, {
3331
+ value: type,
3332
+ onChange: switchType
3333
+ }, /*#__PURE__*/React.createElement(Radio$2.Button, {
3334
+ value: 1,
3335
+ style: {
3336
+ whiteSpace: 'nowrap'
3337
+ }
3338
+ }, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$2.Button, {
3339
+ value: 2,
3340
+ style: {
3341
+ whiteSpace: 'nowrap'
3342
+ }
3343
+ }, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement("div", {
3353
3344
  style: {
3354
3345
  flex: 'none',
3355
3346
  position: 'relative',
@@ -3373,11 +3364,11 @@ var PageHeader = (function () {
3373
3364
  }), visible && /*#__PURE__*/React.createElement(modalcomfirm, {
3374
3365
  handleCancel: handleCancel,
3375
3366
  list: selectedRowKey
3376
- }));
3367
+ })));
3377
3368
  });
3378
3369
 
3379
- var css_248z$4 = "";
3380
- styleInject(css_248z$4);
3370
+ var css_248z$3 = "";
3371
+ styleInject(css_248z$3);
3381
3372
 
3382
3373
  var attributionEnum = {
3383
3374
  '1': '发送方',
@@ -5016,10 +5007,10 @@ function Rule(props) {
5016
5007
  message: '请输入必填项'
5017
5008
  }],
5018
5009
  initialValue: queryType
5019
- }, /*#__PURE__*/React.createElement(Select$2, {
5010
+ }, /*#__PURE__*/React.createElement(Select$1, {
5020
5011
  disabled: true
5021
5012
  }, billEnum && billEnum.map(function (item, key) {
5022
- return /*#__PURE__*/React.createElement(Select$2.Option, {
5013
+ return /*#__PURE__*/React.createElement(Select$1.Option, {
5023
5014
  value: item.value,
5024
5015
  key: key
5025
5016
  }, item.label);
@@ -5032,15 +5023,15 @@ function Rule(props) {
5032
5023
  required: true,
5033
5024
  message: '请输入必填项'
5034
5025
  }]
5035
- }, /*#__PURE__*/React.createElement(Select$2, {
5026
+ }, /*#__PURE__*/React.createElement(Select$1, {
5036
5027
  disabled: disabled
5037
- }, /*#__PURE__*/React.createElement(Select$2.Option, {
5028
+ }, /*#__PURE__*/React.createElement(Select$1.Option, {
5038
5029
  value: 1,
5039
5030
  key: 1
5040
- }, "\u53D1\u9001\u65B9"), /*#__PURE__*/React.createElement(Select$2.Option, {
5031
+ }, "\u53D1\u9001\u65B9"), /*#__PURE__*/React.createElement(Select$1.Option, {
5041
5032
  value: 2,
5042
5033
  key: 2
5043
- }, "\u63A5\u6536\u65B9"), /*#__PURE__*/React.createElement(Select$2.Option, {
5034
+ }, "\u63A5\u6536\u65B9"), /*#__PURE__*/React.createElement(Select$1.Option, {
5044
5035
  value: 3,
5045
5036
  key: 3
5046
5037
  }, "\u63A5\u6536\u65B9,\u53D1\u9001\u65B9"))))), profile && /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
@@ -5053,10 +5044,10 @@ function Rule(props) {
5053
5044
  message: '请输入必填项'
5054
5045
  }],
5055
5046
  initialValue: profile
5056
- }, /*#__PURE__*/React.createElement(Select$2, {
5047
+ }, /*#__PURE__*/React.createElement(Select$1, {
5057
5048
  disabled: true
5058
5049
  }, profileEnum && profileEnum.map(function (item, key) {
5059
- return /*#__PURE__*/React.createElement(Select$2.Option, {
5050
+ return /*#__PURE__*/React.createElement(Select$1.Option, {
5060
5051
  value: item.value,
5061
5052
  key: key
5062
5053
  }, item.label);
@@ -5703,10 +5694,7 @@ var Controller$1 = /*#__PURE__*/function (_GreyReactBox) {
5703
5694
  return _createClass(Controller);
5704
5695
  }(GreyReactBox);
5705
5696
 
5706
- var css_248z$5 = ".underline :global(.ktsAntX-select-selector) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.underline :global(.ant-input) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n";
5707
- styleInject(css_248z$5);
5708
-
5709
- var Option$3 = Select$1.Option;
5697
+ var Option$2 = Select$2.Option;
5710
5698
  var RangePicker$1 = DatePicker$1.RangePicker;
5711
5699
  var Header = (function () {
5712
5700
  var controller = WhiteList.useController();
@@ -5810,35 +5798,34 @@ var Header = (function () {
5810
5798
  items.push({
5811
5799
  name: "companyDid",
5812
5800
  label: "我司对应DID",
5813
- children: (/*#__PURE__*/React.createElement(Select$2, {
5814
- className: css_248z$5.underline,
5815
- allowClear: true
5816
- }, didEnum === null || didEnum === void 0 ? void 0 : didEnum.map(function (item) {
5817
- return /*#__PURE__*/React.createElement(Option$3, {
5818
- key: item.value,
5819
- value: item.value
5820
- }, item.label);
5821
- })))
5801
+ children: (/*#__PURE__*/React.createElement(Select$1, {
5802
+ className: "underline",
5803
+ allowClear: true,
5804
+ options: didEnum
5805
+ }))
5822
5806
  });
5823
5807
  // 数据状态
5824
5808
  items.push({
5825
5809
  name: "dataStatus",
5826
5810
  label: "数据状态",
5827
- children: (/*#__PURE__*/React.createElement(Select$2, {
5828
- className: css_248z$5.underline,
5829
- allowClear: true
5830
- }, /*#__PURE__*/React.createElement(Option$3, {
5831
- value: 1
5832
- }, "\u4F7F\u7528\u4E2D"), /*#__PURE__*/React.createElement(Option$3, {
5833
- value: 2
5834
- }, "\u505C\u7528")))
5811
+ children: (/*#__PURE__*/React.createElement(Select$1, {
5812
+ className: "underline",
5813
+ allowClear: true,
5814
+ options: [{
5815
+ label: '使用中',
5816
+ value: 1
5817
+ }, {
5818
+ label: '停用',
5819
+ value: 2
5820
+ }]
5821
+ }))
5835
5822
  });
5836
5823
  // 创建时间
5837
5824
  items.push({
5838
5825
  name: "createTime",
5839
5826
  label: "创建时间",
5840
5827
  children: /*#__PURE__*/React.createElement(RangePicker$1, {
5841
- className: css_248z$5.underline
5828
+ className: "underline-datepicker"
5842
5829
  })
5843
5830
  });
5844
5831
  return items;
@@ -5912,25 +5899,28 @@ var Header = (function () {
5912
5899
  }, [whiteParams, formItems]),
5913
5900
  formItems: formItems
5914
5901
  }),
5915
- search = _SearchXui$useCreate.search;
5902
+ search = _SearchXui$useCreate.search,
5903
+ inventory = _SearchXui$useCreate.inventory;
5916
5904
  var topExpand = useCallback(function () {
5917
5905
  return /*#__PURE__*/React.createElement("div", {
5918
5906
  style: {
5919
5907
  width: "100%"
5920
- },
5908
+ }
5909
+ }, /*#__PURE__*/React.createElement("div", {
5921
5910
  className: 'unifiedSearch'
5922
5911
  }, /*#__PURE__*/React.createElement("div", {
5923
5912
  style: {
5924
5913
  display: "flex",
5925
5914
  alignItems: "flex-start",
5926
- gap: "16px"
5915
+ gap: "16px",
5916
+ padding: '10px 0px'
5927
5917
  }
5928
5918
  }, /*#__PURE__*/React.createElement("div", {
5929
5919
  style: {
5930
5920
  flex: 1
5931
5921
  }
5932
- }, search)));
5933
- }, [search]);
5922
+ }, search))), inventory);
5923
+ }, [search, inventory]);
5934
5924
  return /*#__PURE__*/React.createElement("div", {
5935
5925
  style: {
5936
5926
  flex: 'none',
@@ -6182,7 +6172,7 @@ function Rule$1(props) {
6182
6172
  }));
6183
6173
  }
6184
6174
 
6185
- var Option$4 = Select$1.Option;
6175
+ var Option$3 = Select$2.Option;
6186
6176
  var RangePicker$2 = DatePicker$1.RangePicker;
6187
6177
  var Header$1 = (function () {
6188
6178
  var controller = WhiteList.useController();
@@ -6256,35 +6246,34 @@ var Header$1 = (function () {
6256
6246
  items.push({
6257
6247
  name: "companyDid",
6258
6248
  label: "我司对应DID",
6259
- children: (/*#__PURE__*/React.createElement(Select$2, {
6260
- className: css_248z$5.underline,
6261
- allowClear: true
6262
- }, didEnum === null || didEnum === void 0 ? void 0 : didEnum.map(function (item) {
6263
- return /*#__PURE__*/React.createElement(Option$4, {
6264
- key: item.value,
6265
- value: item.value
6266
- }, item.label);
6267
- })))
6249
+ children: (/*#__PURE__*/React.createElement(Select$1, {
6250
+ className: "underline",
6251
+ allowClear: true,
6252
+ options: didEnum
6253
+ }))
6268
6254
  });
6269
6255
  // 数据状态
6270
6256
  items.push({
6271
6257
  name: "dataStatus",
6272
6258
  label: "数据状态",
6273
- children: (/*#__PURE__*/React.createElement(Select$2, {
6274
- className: css_248z$5.underline,
6275
- allowClear: true
6276
- }, /*#__PURE__*/React.createElement(Option$4, {
6277
- value: 1
6278
- }, "\u4F7F\u7528\u4E2D"), /*#__PURE__*/React.createElement(Option$4, {
6279
- value: 2
6280
- }, "\u505C\u7528")))
6259
+ children: (/*#__PURE__*/React.createElement(Select$1, {
6260
+ className: "underline",
6261
+ allowClear: true,
6262
+ options: [{
6263
+ label: '使用中',
6264
+ value: 1
6265
+ }, {
6266
+ label: '停用',
6267
+ value: 2
6268
+ }]
6269
+ }))
6281
6270
  });
6282
6271
  // 创建时间
6283
6272
  items.push({
6284
6273
  name: "createTime",
6285
6274
  label: "创建时间",
6286
6275
  children: /*#__PURE__*/React.createElement(RangePicker$2, {
6287
- className: css_248z$5.underline
6276
+ className: "underline-datepicker"
6288
6277
  })
6289
6278
  });
6290
6279
  return items;
@@ -6358,7 +6347,8 @@ var Header$1 = (function () {
6358
6347
  }, [params, formItems]),
6359
6348
  formItems: formItems
6360
6349
  }),
6361
- search = _SearchXui$useCreate.search;
6350
+ search = _SearchXui$useCreate.search,
6351
+ inventory = _SearchXui$useCreate.inventory;
6362
6352
  var topExpand = useCallback(function () {
6363
6353
  return /*#__PURE__*/React.createElement("div", {
6364
6354
  style: {
@@ -6368,14 +6358,15 @@ var Header$1 = (function () {
6368
6358
  style: {
6369
6359
  display: "flex",
6370
6360
  alignItems: "flex-start",
6371
- gap: "16px"
6361
+ gap: "16px",
6362
+ padding: '10px 0px'
6372
6363
  }
6373
6364
  }, /*#__PURE__*/React.createElement("div", {
6374
6365
  style: {
6375
6366
  flex: 1
6376
6367
  }
6377
- }, search)));
6378
- }, [search]);
6368
+ }, search)), inventory);
6369
+ }, [search, inventory]);
6379
6370
  return /*#__PURE__*/React.createElement("div", {
6380
6371
  style: {
6381
6372
  flex: 'none',