@kmkf-fe-packages/services-components 2.9.0-rc.0 → 2.9.0
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/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +437 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
- package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -4
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsGoods/index.js +0 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
- package/dist/esm/components/BS/BsLogistics/index.js +50 -9
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
- package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
- package/dist/esm/components/BS/common/BsMemo.js +5 -1
- package/dist/esm/components/BS/common/BsType.js +5 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
- package/dist/esm/components/BS/common/expressCode.js +6 -0
- package/dist/esm/components/BS/common/expressCompany.js +20 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +45 -24
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +96 -36
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
- package/dist/esm/components/JST/JstSendGood/index.js +66 -18
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
- package/dist/esm/components/LogisticsInterception/index.js +30 -7
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
- package/dist/esm/components/OrderSubForm/index.js +18 -1
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/PictureName.js +1 -3
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +43 -28
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +46 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +80 -4
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +43 -30
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +18 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +22 -2
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +6 -5
- package/dist/esm/components/TradeId/index.js +31 -15
- package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +40 -10
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +41 -14
- package/dist/esm/service/request.js +1 -4
- package/dist/esm/type.d.ts +43 -3
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
|
@@ -17,6 +17,14 @@ var INPUT_MAP = {
|
|
|
17
17
|
key: "businessOrderNo",
|
|
18
18
|
disabled: true,
|
|
19
19
|
placeholder: "自动获取无需填写"
|
|
20
|
+
},
|
|
21
|
+
REPAIR_ORDER_SN: {
|
|
22
|
+
key: "repairOrderSn",
|
|
23
|
+
placeholder: "请输入维修单编号"
|
|
24
|
+
},
|
|
25
|
+
REPAIR_ORDER_ID: {
|
|
26
|
+
key: "repairOrderId",
|
|
27
|
+
placeholder: "请输入维修单id"
|
|
20
28
|
}
|
|
21
29
|
};
|
|
22
30
|
var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
@@ -62,7 +70,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
62
70
|
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
|
|
63
71
|
});
|
|
64
72
|
_defineProperty(this, "editRender", function (p) {
|
|
65
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
73
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
|
|
66
74
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
75
|
title: _this.name,
|
|
68
76
|
name: _this.id,
|
|
@@ -70,10 +78,10 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
70
78
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
79
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
72
80
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
73
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
81
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
74
82
|
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
75
83
|
placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
76
|
-
disabled: INPUT_MAP[_this.type].disabled
|
|
84
|
+
disabled: INPUT_MAP[_this.type].disabled || ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.disabled)
|
|
77
85
|
}))
|
|
78
86
|
});
|
|
79
87
|
});
|
|
@@ -133,6 +133,64 @@ var typeMap = {
|
|
|
133
133
|
idKey: "systemOrderId",
|
|
134
134
|
failValue: "失败",
|
|
135
135
|
dataType: "array_object"
|
|
136
|
+
},
|
|
137
|
+
WLN_WAREHOUSING_STATUS: {
|
|
138
|
+
options: [{
|
|
139
|
+
value: "1",
|
|
140
|
+
label: "未入库",
|
|
141
|
+
color: "#ff4d4f"
|
|
142
|
+
}, {
|
|
143
|
+
value: "2",
|
|
144
|
+
label: "部分入库",
|
|
145
|
+
color: "#e7780f"
|
|
146
|
+
}, {
|
|
147
|
+
value: "3",
|
|
148
|
+
label: "已入库",
|
|
149
|
+
color: "#52c41a"
|
|
150
|
+
}],
|
|
151
|
+
key: "wlnInStockStatusItemList",
|
|
152
|
+
code: "wlnInStockStatusList",
|
|
153
|
+
name: "商品入库状态",
|
|
154
|
+
type: 2,
|
|
155
|
+
valueKey: "status",
|
|
156
|
+
idKey: "systemOrderId",
|
|
157
|
+
failValue: "失败",
|
|
158
|
+
dataType: "array_object"
|
|
159
|
+
},
|
|
160
|
+
JKY_WAREHOUSING_STATUS: {
|
|
161
|
+
options: [{
|
|
162
|
+
value: "0",
|
|
163
|
+
label: "未收货",
|
|
164
|
+
color: "#ff4d4f"
|
|
165
|
+
}, {
|
|
166
|
+
value: "1",
|
|
167
|
+
label: "部分收货",
|
|
168
|
+
color: "#e7780f"
|
|
169
|
+
}, {
|
|
170
|
+
value: "2",
|
|
171
|
+
label: "收货完成",
|
|
172
|
+
color: "#52c41a"
|
|
173
|
+
}, {
|
|
174
|
+
label: "收货完成-少收",
|
|
175
|
+
value: "3",
|
|
176
|
+
color: "#e7780f"
|
|
177
|
+
}, {
|
|
178
|
+
label: "收货完成-超收",
|
|
179
|
+
value: "4",
|
|
180
|
+
color: "#e7780f"
|
|
181
|
+
}, {
|
|
182
|
+
label: "无需收货",
|
|
183
|
+
value: "5",
|
|
184
|
+
color: "#52c41a"
|
|
185
|
+
}],
|
|
186
|
+
key: "jkyInStockStatusItemList",
|
|
187
|
+
code: "jkyInStockStatusList",
|
|
188
|
+
name: "商品入库状态(勿填)",
|
|
189
|
+
type: 2,
|
|
190
|
+
valueKey: "status",
|
|
191
|
+
idKey: "sourceTradeNo",
|
|
192
|
+
failValue: "失败",
|
|
193
|
+
dataType: "array_object"
|
|
136
194
|
}
|
|
137
195
|
};
|
|
138
196
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
@@ -158,7 +216,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
158
216
|
_defineProperty(this, "dataType", void 0);
|
|
159
217
|
_defineProperty(this, "isSingleValue", void 0);
|
|
160
218
|
_defineProperty(this, "renderClient", function (record) {
|
|
161
|
-
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
219
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
|
|
162
220
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
163
221
|
return !isNull(item);
|
|
164
222
|
}) : false;
|
|
@@ -167,16 +225,17 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
167
225
|
label: _this.name,
|
|
168
226
|
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
169
227
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
228
|
+
idKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.idKey,
|
|
229
|
+
valueKey: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.valueKey,
|
|
230
|
+
failValue: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.failValue,
|
|
231
|
+
options: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.options,
|
|
173
232
|
isShowPopover: !_this.isSingleValue
|
|
174
233
|
})
|
|
175
234
|
}) : null;
|
|
176
235
|
});
|
|
177
236
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
178
|
-
var _typeMap$_this$
|
|
179
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
237
|
+
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9;
|
|
238
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)];
|
|
180
239
|
//兼容多个商品
|
|
181
240
|
return /*#__PURE__*/React.createElement("span", {
|
|
182
241
|
onClick: function onClick(e) {
|
|
@@ -184,40 +243,41 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
184
243
|
}
|
|
185
244
|
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
186
245
|
list: list,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
246
|
+
idKey: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.idKey,
|
|
247
|
+
valueKey: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.valueKey,
|
|
248
|
+
failValue: (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.failValue,
|
|
249
|
+
options: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.options,
|
|
190
250
|
isShowPopover: !_this.isSingleValue
|
|
191
251
|
}));
|
|
192
252
|
});
|
|
193
253
|
_defineProperty(this, "renderLog", function (r) {
|
|
194
|
-
var _typeMap$_this$
|
|
195
|
-
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
254
|
+
var _typeMap$_this$type10;
|
|
255
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
196
256
|
if (isNull(list)) return null;
|
|
197
257
|
return _this.renderPc(undefined, r);
|
|
198
258
|
});
|
|
199
259
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
200
|
-
var _typeMap$_this$
|
|
201
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
260
|
+
var _typeMap$_this$type11;
|
|
261
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key)];
|
|
202
262
|
});
|
|
203
263
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
204
|
-
var _typeMap$_this$
|
|
205
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
264
|
+
var _typeMap$_this$type12;
|
|
265
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key)];
|
|
206
266
|
return (list || []).map(function (item) {
|
|
207
|
-
var _typeMap$_this$
|
|
208
|
-
var currentOption = (_typeMap$_this$
|
|
209
|
-
var _typeMap$_this$
|
|
210
|
-
return item[(_typeMap$_this$
|
|
267
|
+
var _typeMap$_this$type13, _typeMap$_this$type14, _typeMap$_this$type15, _typeMap$_this$type18, _typeMap$_this$type19;
|
|
268
|
+
var currentOption = (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : (_typeMap$_this$type14 = _typeMap$_this$type13.options) === null || _typeMap$_this$type14 === void 0 ? void 0 : (_typeMap$_this$type15 = _typeMap$_this$type14.find) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.call(_typeMap$_this$type14, function (option) {
|
|
269
|
+
var _typeMap$_this$type16;
|
|
270
|
+
return item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey] === option.value;
|
|
211
271
|
});
|
|
212
272
|
if (_this.isSingleValue) {
|
|
213
|
-
var _typeMap$_this$
|
|
214
|
-
return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$
|
|
273
|
+
var _typeMap$_this$type17;
|
|
274
|
+
return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.valueKey]) || "";
|
|
215
275
|
}
|
|
216
|
-
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$
|
|
276
|
+
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.valueKey]) || "");
|
|
217
277
|
}).join(",");
|
|
218
278
|
});
|
|
219
279
|
_defineProperty(this, "editRender", function (p) {
|
|
220
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$
|
|
280
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type20;
|
|
221
281
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
222
282
|
title: _this.name,
|
|
223
283
|
name: _this.id,
|
|
@@ -227,19 +287,19 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
227
287
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
228
288
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
229
289
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
230
|
-
type: (_typeMap$_this$
|
|
290
|
+
type: (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.type,
|
|
231
291
|
failValue: typeMap[_this.type].failValue
|
|
232
292
|
}))
|
|
233
293
|
});
|
|
234
294
|
});
|
|
235
295
|
_defineProperty(this, "filterConfig", function (item) {
|
|
236
|
-
var _typeMap$_this$
|
|
296
|
+
var _typeMap$_this$type21, _item$templateConfig;
|
|
237
297
|
return {
|
|
238
|
-
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
298
|
+
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
239
299
|
type: item.type,
|
|
240
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
300
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
|
|
241
301
|
name: "".concat(_this.name),
|
|
242
|
-
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
302
|
+
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
243
303
|
props: {
|
|
244
304
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
245
305
|
fieldNames: {
|
|
@@ -250,11 +310,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
250
310
|
},
|
|
251
311
|
filterFn: function filterFn(value) {
|
|
252
312
|
return function (i) {
|
|
253
|
-
var _typeMap$_this$
|
|
254
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$
|
|
313
|
+
var _typeMap$_this$type22;
|
|
314
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
|
|
255
315
|
};
|
|
256
316
|
},
|
|
257
|
-
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
317
|
+
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
258
318
|
if (value.type === "in") {
|
|
259
319
|
return value.keywords;
|
|
260
320
|
} else {
|
|
@@ -279,17 +339,17 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
279
339
|
required: true,
|
|
280
340
|
validator: function validator(_, value) {
|
|
281
341
|
var hasNo = (value || []).some(function (item) {
|
|
282
|
-
var _typeMap$_this$
|
|
283
|
-
return item[(_typeMap$_this$
|
|
342
|
+
var _typeMap$_this$type23;
|
|
343
|
+
return item[(_typeMap$_this$type23 = typeMap[_this.type]) === null || _typeMap$_this$type23 === void 0 ? void 0 : _typeMap$_this$type23.valueKey];
|
|
284
344
|
});
|
|
285
345
|
if (!hasNo) {
|
|
286
|
-
var _typeMap$_this$
|
|
287
|
-
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$
|
|
346
|
+
var _typeMap$_this$type24;
|
|
347
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type24 = typeMap[_this.type]) === null || _typeMap$_this$type24 === void 0 ? void 0 : _typeMap$_this$type24.name)));
|
|
288
348
|
}
|
|
289
349
|
return Promise.resolve();
|
|
290
350
|
}
|
|
291
351
|
}] : [];
|
|
292
352
|
this.align = "left";
|
|
293
|
-
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS";
|
|
353
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
|
|
294
354
|
});
|
|
295
355
|
export default CommonMultiStatus;
|
|
@@ -36,6 +36,13 @@ var typeMap = {
|
|
|
36
36
|
type: 3,
|
|
37
37
|
valueKey: "billNo"
|
|
38
38
|
},
|
|
39
|
+
SWAP_OUT_TRADE_ID: {
|
|
40
|
+
key: "tradeItemList",
|
|
41
|
+
code: "tradeIdList",
|
|
42
|
+
name: "换出系统订单号",
|
|
43
|
+
type: 3,
|
|
44
|
+
valueKey: "billNo"
|
|
45
|
+
},
|
|
39
46
|
EXCHANGE_TRADE_ID: {
|
|
40
47
|
key: "tradeItemList",
|
|
41
48
|
code: "tradeIdList",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// 查询订单详情
|
|
2
2
|
export var queryOrderDetail = function queryOrderDetail(tid) {
|
|
3
3
|
var _window, _window$parent;
|
|
4
|
-
console.log('请求ERP订单详情', tid);
|
|
5
4
|
(_window = window) === null || _window === void 0 ? void 0 : (_window$parent = _window.parent) === null || _window$parent === void 0 ? void 0 : _window$parent.postMessage({
|
|
6
5
|
method: 'queryOrder',
|
|
7
6
|
data: {
|
|
@@ -13,7 +12,6 @@ export var queryOrderDetail = function queryOrderDetail(tid) {
|
|
|
13
12
|
// 查询抖店openId
|
|
14
13
|
export var queryDouDianOpenId = function queryDouDianOpenId(originTid) {
|
|
15
14
|
var _window2, _window2$parent;
|
|
16
|
-
console.log('查询抖音店铺买家id', originTid);
|
|
17
15
|
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$parent = _window2.parent) === null || _window2$parent === void 0 ? void 0 : _window2$parent.postMessage({
|
|
18
16
|
method: 'queryDouDianOpenId',
|
|
19
17
|
data: {
|
|
@@ -13,7 +13,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13
13
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
15
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
-
import React from
|
|
16
|
+
import React from "react";
|
|
17
17
|
import GetFormItem from "../GetFormItem";
|
|
18
18
|
import TradeId from "../TradeId";
|
|
19
19
|
import OrderNo from "./components/OrderNum";
|
|
@@ -30,8 +30,11 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
|
|
|
30
30
|
_defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
|
|
31
31
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
32
32
|
var onTradeIdBlur = function onTradeIdBlur(value) {
|
|
33
|
-
var _p$onBlur;
|
|
34
|
-
|
|
33
|
+
var _this$effects, _this$effects$form, _p$onBlur;
|
|
34
|
+
(_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue({
|
|
35
|
+
skx_return_billNo_blur_from: _this.id
|
|
36
|
+
});
|
|
37
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, "tradeId");
|
|
35
38
|
};
|
|
36
39
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
37
40
|
title: _this.name,
|
|
@@ -40,7 +43,7 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
|
|
|
40
43
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
41
44
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
42
45
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
43
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
46
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
44
47
|
component: /*#__PURE__*/React.createElement(OrderNo, _extends({}, _this.componentConfig, {
|
|
45
48
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
46
49
|
onTradeIdBlur: onTradeIdBlur
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicFile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -7,14 +7,14 @@ declare class BasicFile implements ComponentInterface {
|
|
|
7
7
|
formField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
effects: ComponentInterface[
|
|
15
|
-
dataType: ComponentInterface[
|
|
14
|
+
effects: ComponentInterface['effects'];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
exampleValue?: string;
|
|
17
|
-
standardDateType: ComponentInterface[
|
|
17
|
+
standardDateType: ComponentInterface['standardDateType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderPc: (value: any, record: Record) => any;
|
|
20
20
|
renderLog: (r: Record) => any;
|
|
@@ -12,11 +12,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
14
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
-
import React from
|
|
16
|
-
import { ApaasUploadFile } from
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { ApaasUploadFile } from '@kmkf-fe-packages/basic-components';
|
|
17
17
|
import GetFormItem from "../GetFormItem";
|
|
18
18
|
import ItemView from "../../commonComponents/ItemView";
|
|
19
|
-
import { isNull } from
|
|
19
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
20
|
import { FileRender } from "../Common";
|
|
21
21
|
import { PlatForm } from "../../type";
|
|
22
22
|
var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
@@ -46,7 +46,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
46
46
|
href: file.url,
|
|
47
47
|
target: "_blank",
|
|
48
48
|
style: {
|
|
49
|
-
display:
|
|
49
|
+
display: 'block'
|
|
50
50
|
}
|
|
51
51
|
}, file.name);
|
|
52
52
|
});
|
|
@@ -60,7 +60,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
60
60
|
});
|
|
61
61
|
_defineProperty(this, "renderClient", function (record) {
|
|
62
62
|
var _this$effects;
|
|
63
|
-
var _this$id$split = _this.id.split(
|
|
63
|
+
var _this$id$split = _this.id.split('_'),
|
|
64
64
|
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
65
65
|
id = _this$id$split2[0];
|
|
66
66
|
var canDownload = ![PlatForm.KS, PlatForm.FXG].includes((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env);
|
|
@@ -83,9 +83,8 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
83
83
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
84
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
85
85
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
86
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
86
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
87
87
|
component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
|
|
88
|
-
uniqueKey: _this.id,
|
|
89
88
|
platform: p === null || p === void 0 ? void 0 : p.platform,
|
|
90
89
|
canDownload: canDownload,
|
|
91
90
|
hostUrl: "https://kefu.kuaimai.com"
|
|
@@ -97,7 +96,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
97
96
|
prv.push(next.url);
|
|
98
97
|
return prv;
|
|
99
98
|
}, []);
|
|
100
|
-
return textArr === null || textArr === void 0 ? void 0 : textArr.join(
|
|
99
|
+
return textArr === null || textArr === void 0 ? void 0 : textArr.join(',');
|
|
101
100
|
});
|
|
102
101
|
_defineProperty(this, "filterConfig", function () {
|
|
103
102
|
return [];
|
|
@@ -112,9 +111,9 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
112
111
|
this.isCombinationComponent = false;
|
|
113
112
|
this.canSort = false;
|
|
114
113
|
this.children = [];
|
|
115
|
-
this.dataType =
|
|
114
|
+
this.dataType = 'array';
|
|
116
115
|
this.effects = options.effects;
|
|
117
116
|
this.exampleValue = '[{"name":"c.jpeg","url":"https://kefu.kuaimai.com/pic/c.jpeg"}]';
|
|
118
|
-
this.standardDateType =
|
|
117
|
+
this.standardDateType = 'Array';
|
|
119
118
|
});
|
|
120
119
|
export default BasicFile;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class FlowOverallStatusSelect implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
workOrderStatus: any;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
options: ComponentInterface["options"];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
renderClient: () => null;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "in";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "MultipleSelect";
|
|
31
|
+
props: {
|
|
32
|
+
options: {
|
|
33
|
+
label: any;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export default FlowOverallStatusSelect;
|