@kmkf-fe-packages/basic-components 0.5.2-alpha.0 → 0.6.0-alpha.1
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/README.md +13 -8
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +1 -184
- package/dist/index.js +0 -184
- package/package.json +2 -2
- package/dist/business/LogisticsInterception/index.d.ts +0 -22
package/README.md
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
## 开始
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
快麦工单 react 组件库
|
|
3
4
|
项目框架 dumi[https://d.umijs.org/zh-CN]
|
|
5
|
+
|
|
4
6
|
```
|
|
5
7
|
node >15
|
|
6
8
|
|
|
7
|
-
yarn
|
|
9
|
+
yarn
|
|
8
10
|
yarn start
|
|
9
11
|
```
|
|
10
12
|
|
|
11
13
|
### 目录
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
|
|
15
|
+
- apaas apaas 基础组件
|
|
16
|
+
- basice 基础组件
|
|
17
|
+
- business 快麦工单业务组件
|
|
18
|
+
- common 公共组件
|
|
19
|
+
- config 公共方法
|
|
20
|
+
- assets 静态资源
|
|
21
|
+
|
|
22
|
+
###
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export { default as Supplier } from './business/Supplier';
|
|
|
28
28
|
export { default as Invoice } from './business/Invoice';
|
|
29
29
|
export { default as Status } from './business/Status';
|
|
30
30
|
export { default as Payment } from './business/Payment';
|
|
31
|
-
export { default as LogisticsInterception } from './business/LogisticsInterception';
|
|
32
31
|
export { default as Goods } from './common/Goods';
|
|
33
32
|
export { default as JstGoods } from './jst/Goods';
|
|
34
33
|
export { default as JstItemList } from './jst/ItemList';
|
package/dist/index.esm.js
CHANGED
|
@@ -2367,7 +2367,6 @@ var Goods = function Goods(props) {
|
|
|
2367
2367
|
width = props.width;
|
|
2368
2368
|
var shopId = value.shopId,
|
|
2369
2369
|
imgList = value.imgList;
|
|
2370
|
-
console.log(props);
|
|
2371
2370
|
// 目前当type == 3 时需要讲item项水平排列
|
|
2372
2371
|
var goodsBoxClassName = 'goodsBox-item-horizontal--box';
|
|
2373
2372
|
var _useState = useState(false),
|
|
@@ -3116,188 +3115,6 @@ var Payment = function Payment(props) {
|
|
|
3116
3115
|
}));
|
|
3117
3116
|
};
|
|
3118
3117
|
|
|
3119
|
-
var Item = Form.Item;
|
|
3120
|
-
var LogisticsInterception = function LogisticsInterception(props) {
|
|
3121
|
-
var _props$value = props.value,
|
|
3122
|
-
value = _props$value === void 0 ? {} : _props$value,
|
|
3123
|
-
_props$logisticsOptio = props.logisticsOptions,
|
|
3124
|
-
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
3125
|
-
_props$required = props.required,
|
|
3126
|
-
required = _props$required === void 0 ? false : _props$required,
|
|
3127
|
-
onChange = props.onChange,
|
|
3128
|
-
_props$disabled = props.disabled,
|
|
3129
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3130
|
-
_props$isEditing = props.isEditing,
|
|
3131
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3132
|
-
var _useState = useState([]),
|
|
3133
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3134
|
-
typeOptions = _useState2[0],
|
|
3135
|
-
setTypeOptions = _useState2[1];
|
|
3136
|
-
var _useState3 = useState([]),
|
|
3137
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
3138
|
-
statusOptions = _useState4[0],
|
|
3139
|
-
setStatusOptions = _useState4[1];
|
|
3140
|
-
var _useState5 = useState(false),
|
|
3141
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
3142
|
-
isInterface = _useState6[0],
|
|
3143
|
-
setIsInterface = _useState6[1];
|
|
3144
|
-
var canEdit = useMemo(function () {
|
|
3145
|
-
//非对接公司可以修改
|
|
3146
|
-
if (!isInterface) return true;
|
|
3147
|
-
//已对接公司在拦截中可以修改
|
|
3148
|
-
var INTERCEPTING = statusOptions.some(function (item) {
|
|
3149
|
-
return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
|
|
3150
|
-
});
|
|
3151
|
-
return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
|
|
3152
|
-
}, [value, statusOptions, isInterface, isEditing]);
|
|
3153
|
-
useEffect(function () {
|
|
3154
|
-
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3155
|
-
setTypeOptions([]);
|
|
3156
|
-
setStatusOptions([]);
|
|
3157
|
-
setIsInterface(false);
|
|
3158
|
-
return;
|
|
3159
|
-
}
|
|
3160
|
-
var interceptCompany = logisticsOptions.find(function (item) {
|
|
3161
|
-
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3162
|
-
});
|
|
3163
|
-
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3164
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3165
|
-
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3166
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3167
|
-
//是否展示新地址
|
|
3168
|
-
var showNewAddress = useMemo(function () {
|
|
3169
|
-
var _find, _find$config;
|
|
3170
|
-
return (_find = (typeOptions || []).find(function (item) {
|
|
3171
|
-
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3172
|
-
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3173
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3174
|
-
var changeHandle = function changeHandle(val, type) {
|
|
3175
|
-
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3176
|
-
if (type === 'interceptCompany') {
|
|
3177
|
-
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3178
|
-
interceptCompany: val,
|
|
3179
|
-
interceptType: 'RETURN',
|
|
3180
|
-
interceptAddress: [],
|
|
3181
|
-
interceptDetail: '',
|
|
3182
|
-
interceptReceiverName: '',
|
|
3183
|
-
interceptReceiverMobile: '',
|
|
3184
|
-
interceptStatus: '',
|
|
3185
|
-
interceptOther: ''
|
|
3186
|
-
});
|
|
3187
|
-
}
|
|
3188
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3189
|
-
};
|
|
3190
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Item, {
|
|
3191
|
-
label: '物流信息',
|
|
3192
|
-
required: required,
|
|
3193
|
-
key: 'logistics'
|
|
3194
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3195
|
-
disabled: disabled || !canEdit,
|
|
3196
|
-
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3197
|
-
style: {
|
|
3198
|
-
width: '200px'
|
|
3199
|
-
},
|
|
3200
|
-
onChange: function onChange(val) {
|
|
3201
|
-
return changeHandle(val, 'interceptCompany');
|
|
3202
|
-
},
|
|
3203
|
-
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
3204
|
-
options: logisticsOptions,
|
|
3205
|
-
showSearch: true,
|
|
3206
|
-
filterOption: function filterOption(input, option) {
|
|
3207
|
-
return option.label.includes(input);
|
|
3208
|
-
}
|
|
3209
|
-
}), /*#__PURE__*/React.createElement(Input, {
|
|
3210
|
-
disabled: disabled || !canEdit,
|
|
3211
|
-
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3212
|
-
onChange: function onChange(e) {
|
|
3213
|
-
return changeHandle(e.target.value, 'interceptCode');
|
|
3214
|
-
},
|
|
3215
|
-
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
3216
|
-
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3217
|
-
label: '拦截类型',
|
|
3218
|
-
required: required,
|
|
3219
|
-
key: 'interceptType'
|
|
3220
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
3221
|
-
disabled: disabled || !canEdit,
|
|
3222
|
-
style: {
|
|
3223
|
-
width: '200px'
|
|
3224
|
-
},
|
|
3225
|
-
options: typeOptions,
|
|
3226
|
-
onChange: function onChange(val) {
|
|
3227
|
-
return changeHandle(val, 'interceptType');
|
|
3228
|
-
},
|
|
3229
|
-
value: value === null || value === void 0 ? void 0 : value.interceptType,
|
|
3230
|
-
placeholder: "\u62E6\u622A\u7C7B\u578B",
|
|
3231
|
-
showSearch: true,
|
|
3232
|
-
filterOption: function filterOption(input, option) {
|
|
3233
|
-
return option.label.includes(input);
|
|
3234
|
-
}
|
|
3235
|
-
})), /*#__PURE__*/React.createElement(Item, {
|
|
3236
|
-
label: '新派送地',
|
|
3237
|
-
required: true,
|
|
3238
|
-
key: 'newAddress',
|
|
3239
|
-
hidden: !showNewAddress
|
|
3240
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Province, {
|
|
3241
|
-
value: value === null || value === void 0 ? void 0 : value.interceptAddress,
|
|
3242
|
-
onChange: function onChange(val) {
|
|
3243
|
-
return changeHandle(val, 'interceptAddress');
|
|
3244
|
-
},
|
|
3245
|
-
options: [],
|
|
3246
|
-
disabled: disabled || !canEdit
|
|
3247
|
-
}), /*#__PURE__*/React.createElement(Input, {
|
|
3248
|
-
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3249
|
-
disabled: disabled || !canEdit,
|
|
3250
|
-
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3251
|
-
onChange: function onChange(e) {
|
|
3252
|
-
return changeHandle(e.target.value, 'interceptDetail');
|
|
3253
|
-
}
|
|
3254
|
-
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3255
|
-
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3256
|
-
disabled: disabled || !canEdit,
|
|
3257
|
-
style: {
|
|
3258
|
-
width: '200px'
|
|
3259
|
-
},
|
|
3260
|
-
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3261
|
-
onChange: function onChange(e) {
|
|
3262
|
-
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3263
|
-
}
|
|
3264
|
-
}), /*#__PURE__*/React.createElement(Input, {
|
|
3265
|
-
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3266
|
-
disabled: disabled || !canEdit,
|
|
3267
|
-
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3268
|
-
onChange: function onChange(e) {
|
|
3269
|
-
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3270
|
-
}
|
|
3271
|
-
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3272
|
-
label: '拦截状态',
|
|
3273
|
-
key: 'interceptStatus'
|
|
3274
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
3275
|
-
disabled: disabled || isInterface,
|
|
3276
|
-
style: {
|
|
3277
|
-
width: '200px'
|
|
3278
|
-
},
|
|
3279
|
-
options: statusOptions,
|
|
3280
|
-
onChange: function onChange(val) {
|
|
3281
|
-
return changeHandle(val, 'interceptStatus');
|
|
3282
|
-
},
|
|
3283
|
-
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3284
|
-
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3285
|
-
showSearch: true,
|
|
3286
|
-
filterOption: function filterOption(input, option) {
|
|
3287
|
-
return option.label.includes(input);
|
|
3288
|
-
}
|
|
3289
|
-
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
|
|
3290
|
-
disabled: disabled || canEdit,
|
|
3291
|
-
style: {
|
|
3292
|
-
width: '200px'
|
|
3293
|
-
},
|
|
3294
|
-
placeholder: "\u5176\u4ED6",
|
|
3295
|
-
onChange: function onChange(e) {
|
|
3296
|
-
return changeHandle(e.target.value, 'interceptOther');
|
|
3297
|
-
}
|
|
3298
|
-
})));
|
|
3299
|
-
};
|
|
3300
|
-
|
|
3301
3118
|
var jstGoods = function jstGoods(props) {
|
|
3302
3119
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
|
|
3303
3120
|
var _props$value = props.value,
|
|
@@ -3963,4 +3780,4 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
3963
3780
|
};
|
|
3964
3781
|
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
3965
3782
|
|
|
3966
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, Invoice, jstGoods as JstGoods, ItemList as JstItemList,
|
|
3783
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, Invoice, jstGoods as JstGoods, ItemList as JstItemList, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
|
package/dist/index.js
CHANGED
|
@@ -2377,7 +2377,6 @@ var Goods = function Goods(props) {
|
|
|
2377
2377
|
width = props.width;
|
|
2378
2378
|
var shopId = value.shopId,
|
|
2379
2379
|
imgList = value.imgList;
|
|
2380
|
-
console.log(props);
|
|
2381
2380
|
// 目前当type == 3 时需要讲item项水平排列
|
|
2382
2381
|
var goodsBoxClassName = 'goodsBox-item-horizontal--box';
|
|
2383
2382
|
var _useState = React.useState(false),
|
|
@@ -3126,188 +3125,6 @@ var Payment = function Payment(props) {
|
|
|
3126
3125
|
}));
|
|
3127
3126
|
};
|
|
3128
3127
|
|
|
3129
|
-
var Item = antd.Form.Item;
|
|
3130
|
-
var LogisticsInterception = function LogisticsInterception(props) {
|
|
3131
|
-
var _props$value = props.value,
|
|
3132
|
-
value = _props$value === void 0 ? {} : _props$value,
|
|
3133
|
-
_props$logisticsOptio = props.logisticsOptions,
|
|
3134
|
-
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
3135
|
-
_props$required = props.required,
|
|
3136
|
-
required = _props$required === void 0 ? false : _props$required,
|
|
3137
|
-
onChange = props.onChange,
|
|
3138
|
-
_props$disabled = props.disabled,
|
|
3139
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3140
|
-
_props$isEditing = props.isEditing,
|
|
3141
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3142
|
-
var _useState = React.useState([]),
|
|
3143
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3144
|
-
typeOptions = _useState2[0],
|
|
3145
|
-
setTypeOptions = _useState2[1];
|
|
3146
|
-
var _useState3 = React.useState([]),
|
|
3147
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
3148
|
-
statusOptions = _useState4[0],
|
|
3149
|
-
setStatusOptions = _useState4[1];
|
|
3150
|
-
var _useState5 = React.useState(false),
|
|
3151
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
3152
|
-
isInterface = _useState6[0],
|
|
3153
|
-
setIsInterface = _useState6[1];
|
|
3154
|
-
var canEdit = React.useMemo(function () {
|
|
3155
|
-
//非对接公司可以修改
|
|
3156
|
-
if (!isInterface) return true;
|
|
3157
|
-
//已对接公司在拦截中可以修改
|
|
3158
|
-
var INTERCEPTING = statusOptions.some(function (item) {
|
|
3159
|
-
return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
|
|
3160
|
-
});
|
|
3161
|
-
return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
|
|
3162
|
-
}, [value, statusOptions, isInterface, isEditing]);
|
|
3163
|
-
React.useEffect(function () {
|
|
3164
|
-
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3165
|
-
setTypeOptions([]);
|
|
3166
|
-
setStatusOptions([]);
|
|
3167
|
-
setIsInterface(false);
|
|
3168
|
-
return;
|
|
3169
|
-
}
|
|
3170
|
-
var interceptCompany = logisticsOptions.find(function (item) {
|
|
3171
|
-
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3172
|
-
});
|
|
3173
|
-
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3174
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3175
|
-
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3176
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3177
|
-
//是否展示新地址
|
|
3178
|
-
var showNewAddress = React.useMemo(function () {
|
|
3179
|
-
var _find, _find$config;
|
|
3180
|
-
return (_find = (typeOptions || []).find(function (item) {
|
|
3181
|
-
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3182
|
-
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3183
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3184
|
-
var changeHandle = function changeHandle(val, type) {
|
|
3185
|
-
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3186
|
-
if (type === 'interceptCompany') {
|
|
3187
|
-
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3188
|
-
interceptCompany: val,
|
|
3189
|
-
interceptType: 'RETURN',
|
|
3190
|
-
interceptAddress: [],
|
|
3191
|
-
interceptDetail: '',
|
|
3192
|
-
interceptReceiverName: '',
|
|
3193
|
-
interceptReceiverMobile: '',
|
|
3194
|
-
interceptStatus: '',
|
|
3195
|
-
interceptOther: ''
|
|
3196
|
-
});
|
|
3197
|
-
}
|
|
3198
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3199
|
-
};
|
|
3200
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3201
|
-
label: '物流信息',
|
|
3202
|
-
required: required,
|
|
3203
|
-
key: 'logistics'
|
|
3204
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3205
|
-
disabled: disabled || !canEdit,
|
|
3206
|
-
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3207
|
-
style: {
|
|
3208
|
-
width: '200px'
|
|
3209
|
-
},
|
|
3210
|
-
onChange: function onChange(val) {
|
|
3211
|
-
return changeHandle(val, 'interceptCompany');
|
|
3212
|
-
},
|
|
3213
|
-
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
3214
|
-
options: logisticsOptions,
|
|
3215
|
-
showSearch: true,
|
|
3216
|
-
filterOption: function filterOption(input, option) {
|
|
3217
|
-
return option.label.includes(input);
|
|
3218
|
-
}
|
|
3219
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3220
|
-
disabled: disabled || !canEdit,
|
|
3221
|
-
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3222
|
-
onChange: function onChange(e) {
|
|
3223
|
-
return changeHandle(e.target.value, 'interceptCode');
|
|
3224
|
-
},
|
|
3225
|
-
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
3226
|
-
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3227
|
-
label: '拦截类型',
|
|
3228
|
-
required: required,
|
|
3229
|
-
key: 'interceptType'
|
|
3230
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3231
|
-
disabled: disabled || !canEdit,
|
|
3232
|
-
style: {
|
|
3233
|
-
width: '200px'
|
|
3234
|
-
},
|
|
3235
|
-
options: typeOptions,
|
|
3236
|
-
onChange: function onChange(val) {
|
|
3237
|
-
return changeHandle(val, 'interceptType');
|
|
3238
|
-
},
|
|
3239
|
-
value: value === null || value === void 0 ? void 0 : value.interceptType,
|
|
3240
|
-
placeholder: "\u62E6\u622A\u7C7B\u578B",
|
|
3241
|
-
showSearch: true,
|
|
3242
|
-
filterOption: function filterOption(input, option) {
|
|
3243
|
-
return option.label.includes(input);
|
|
3244
|
-
}
|
|
3245
|
-
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3246
|
-
label: '新派送地',
|
|
3247
|
-
required: true,
|
|
3248
|
-
key: 'newAddress',
|
|
3249
|
-
hidden: !showNewAddress
|
|
3250
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Province, {
|
|
3251
|
-
value: value === null || value === void 0 ? void 0 : value.interceptAddress,
|
|
3252
|
-
onChange: function onChange(val) {
|
|
3253
|
-
return changeHandle(val, 'interceptAddress');
|
|
3254
|
-
},
|
|
3255
|
-
options: [],
|
|
3256
|
-
disabled: disabled || !canEdit
|
|
3257
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3258
|
-
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3259
|
-
disabled: disabled || !canEdit,
|
|
3260
|
-
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3261
|
-
onChange: function onChange(e) {
|
|
3262
|
-
return changeHandle(e.target.value, 'interceptDetail');
|
|
3263
|
-
}
|
|
3264
|
-
})), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3265
|
-
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3266
|
-
disabled: disabled || !canEdit,
|
|
3267
|
-
style: {
|
|
3268
|
-
width: '200px'
|
|
3269
|
-
},
|
|
3270
|
-
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3271
|
-
onChange: function onChange(e) {
|
|
3272
|
-
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3273
|
-
}
|
|
3274
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3275
|
-
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3276
|
-
disabled: disabled || !canEdit,
|
|
3277
|
-
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3278
|
-
onChange: function onChange(e) {
|
|
3279
|
-
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3280
|
-
}
|
|
3281
|
-
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3282
|
-
label: '拦截状态',
|
|
3283
|
-
key: 'interceptStatus'
|
|
3284
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3285
|
-
disabled: disabled || isInterface,
|
|
3286
|
-
style: {
|
|
3287
|
-
width: '200px'
|
|
3288
|
-
},
|
|
3289
|
-
options: statusOptions,
|
|
3290
|
-
onChange: function onChange(val) {
|
|
3291
|
-
return changeHandle(val, 'interceptStatus');
|
|
3292
|
-
},
|
|
3293
|
-
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3294
|
-
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3295
|
-
showSearch: true,
|
|
3296
|
-
filterOption: function filterOption(input, option) {
|
|
3297
|
-
return option.label.includes(input);
|
|
3298
|
-
}
|
|
3299
|
-
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3300
|
-
disabled: disabled || canEdit,
|
|
3301
|
-
style: {
|
|
3302
|
-
width: '200px'
|
|
3303
|
-
},
|
|
3304
|
-
placeholder: "\u5176\u4ED6",
|
|
3305
|
-
onChange: function onChange(e) {
|
|
3306
|
-
return changeHandle(e.target.value, 'interceptOther');
|
|
3307
|
-
}
|
|
3308
|
-
})));
|
|
3309
|
-
};
|
|
3310
|
-
|
|
3311
3128
|
var jstGoods = function jstGoods(props) {
|
|
3312
3129
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
|
|
3313
3130
|
var _props$value = props.value,
|
|
@@ -3998,7 +3815,6 @@ exports.GoodsTable = index;
|
|
|
3998
3815
|
exports.Invoice = Invoice;
|
|
3999
3816
|
exports.JstGoods = jstGoods;
|
|
4000
3817
|
exports.JstItemList = ItemList;
|
|
4001
|
-
exports.LogisticsInterception = LogisticsInterception;
|
|
4002
3818
|
exports.Payment = Payment;
|
|
4003
3819
|
exports.Remark = RemarkInput;
|
|
4004
3820
|
exports.ReturnLogistics = ExpressLogistics;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-alpha.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "ffacd4ef83d8b0e323d65b183e4ab0d0da9ae732"
|
|
41
41
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface LogisticsInterceptionValueType {
|
|
2
|
-
interceptCompany: string;
|
|
3
|
-
interceptCode: string;
|
|
4
|
-
interceptType: string;
|
|
5
|
-
interceptAddress: any[];
|
|
6
|
-
interceptDetail: string;
|
|
7
|
-
interceptReceiverName: string;
|
|
8
|
-
interceptReceiverMobile: string;
|
|
9
|
-
interceptStatus: string | number;
|
|
10
|
-
interceptOther: string;
|
|
11
|
-
}
|
|
12
|
-
interface LogisticsInterceptionProps {
|
|
13
|
-
value: Partial<LogisticsInterceptionValueType>;
|
|
14
|
-
logisticsOptions: any[];
|
|
15
|
-
required: boolean;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
isEditing: boolean;
|
|
18
|
-
id: string;
|
|
19
|
-
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
20
|
-
}
|
|
21
|
-
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => JSX.Element;
|
|
22
|
-
export default LogisticsInterception;
|