@kmkf-fe-packages/kmkf-work-order-service-component 2.10.9-beta.69 → 2.10.9-beta.70
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/FlowTemplateDetailV2/components/FormRender/index.js +10 -4
- package/dist/esm/WorkOrder/index.js +1 -1
- package/dist/esm/common/utils/tools.js +74 -68
- package/dist/esm/model/logicFlow/selector.d.ts +0 -3
- package/package.json +5 -5
- package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +0 -899
- package/dist/esm/common/utils/dist/tools.js +0 -1326
- package/dist/esm/common/utils/dist/transformWorkOrderData.js +0 -965
- package/dist/esm/model/customizeWorkOrder/dist/api.js +0 -48
- package/dist/esm/model/customizeWorkOrder/dist/index.js +0 -370
- package/dist/esm/model/customizeWorkOrder/dist/selector.js +0 -63
- package/dist/esm/model/customizeWorkOrder/dist/types.js +0 -3
- package/dist/esm/model/dist/global.js +0 -44
- package/dist/esm/model/dist/hooks.js +0 -15
- package/dist/esm/model/dist/login.js +0 -245
- package/dist/esm/model/dist/store.js +0 -30
- package/dist/esm/model/dist/userData.js +0 -41
- package/dist/esm/model/dist/workOrder.js +0 -329
- package/dist/esm/model/flowTemplateDetail/dist/api.js +0 -192
- package/dist/esm/model/flowTemplateDetail/dist/types.js +0 -48
- package/dist/esm/model/logicFlow/dist/api.js +0 -14
- package/dist/esm/model/logicFlow/dist/index.js +0 -235
- package/dist/esm/model/logicFlow/dist/selector.js +0 -18
- package/dist/esm/model/logicFlow/dist/types.js +0 -3
- package/dist/esm/model/paymentWorkOrder/dist/index.js +0 -77
- package/dist/esm/model/paymentWorkOrder/dist/selector.js +0 -36
- package/dist/esm/model/paymentWorkOrder/dist/types.js +0 -3
- package/dist/esm/model/servers/dist/api.js +0 -545
- package/dist/esm/model/servers/dist/request.js +0 -63
- package/dist/esm/model/singleShopWorkOrder/dist/index.js +0 -216
- package/dist/esm/model/singleShopWorkOrder/dist/selector.js +0 -24
- package/dist/esm/model/singleShopWorkOrder/dist/types.js +0 -3
- package/dist/esm/model/types/dist/login.js +0 -3
- package/dist/esm/model/types/dist/singleWorkOrder.js +0 -3
- package/dist/esm/model/types/dist/workOrder.js +0 -3
|
@@ -1132,11 +1132,17 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
1134
|
if (workOrderComponentType === 'PLATFORM_AFTER_SALES_ORDER') {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
form: form
|
|
1135
|
+
var _afterSalesOrderField;
|
|
1136
|
+
var afterSalesOrderField = [].concat(_toConsumableArray(templateDetail.componentDtoList), _toConsumableArray(templateDetail.preNodeComponentDtoList)).find(function (item) {
|
|
1137
|
+
return item.workOrderComponentType === 'PLATFORM_AFTER_SALES_ORDER';
|
|
1139
1138
|
});
|
|
1139
|
+
if ((afterSalesOrderField === null || afterSalesOrderField === void 0 ? void 0 : (_afterSalesOrderField = afterSalesOrderField.componentConfig) === null || _afterSalesOrderField === void 0 ? void 0 : _afterSalesOrderField.selectMode) !== 'multiple') {
|
|
1140
|
+
afterSaleOrderBackValues({
|
|
1141
|
+
templateList: templateDetail,
|
|
1142
|
+
value: value,
|
|
1143
|
+
form: form
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1140
1146
|
}
|
|
1141
1147
|
if (workOrderComponentType === 'DXD_SYSTEM_ORDER') {
|
|
1142
1148
|
dxdSystemOrderBackValues({
|
|
@@ -317,7 +317,7 @@ var WorkOrder = function WorkOrder(props) {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
// 其他平台映射
|
|
320
|
-
var otherPlatformMap = (_otherPlatformMap = {}, _defineProperty(_otherPlatformMap, PlatForm.FXG, 'dy'), _defineProperty(_otherPlatformMap, PlatForm.TB, 'qn'), _defineProperty(_otherPlatformMap, PlatForm.KS, 'ks'), _defineProperty(_otherPlatformMap, PlatForm.JD, 'jd'), _defineProperty(_otherPlatformMap, PlatForm.WEB, 'green'), _otherPlatformMap);
|
|
320
|
+
var otherPlatformMap = (_otherPlatformMap = {}, _defineProperty(_otherPlatformMap, PlatForm.FXG, 'dy'), _defineProperty(_otherPlatformMap, PlatForm.TB, 'qn'), _defineProperty(_otherPlatformMap, PlatForm.KS, 'ks'), _defineProperty(_otherPlatformMap, PlatForm.PDD, 'pdd'), _defineProperty(_otherPlatformMap, PlatForm.JD, 'jd'), _defineProperty(_otherPlatformMap, PlatForm.WEB, 'green'), _otherPlatformMap);
|
|
321
321
|
if (platform === PlatForm.XIAOZHI) {
|
|
322
322
|
var clientType = String(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType);
|
|
323
323
|
var featureKey = xiaozhiClientMap[clientType];
|
|
@@ -147,7 +147,7 @@ var getBasicsOrderInfo = function getBasicsOrderInfo(orderInfo, xiaozhiOrder) {
|
|
|
147
147
|
export var orderBack = /*#__PURE__*/function () {
|
|
148
148
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
149
149
|
var _form$getFieldValue;
|
|
150
|
-
var companyKey, order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, matchLogisticsNo, skipCache, skipOrderBackUniqueKeys, shopId, canModifyShopFieldValue, shouldTryAutoSetShopId, trySetShopId, _res$data, res, _res$data2, _res$data3, JOIN_SHOP, hasFlagMap, _ref4, shopSourceStr, _ref4$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _wdtReturnBillNoCompo, _data$value, _data$value3, _data$value4, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _jyOrder$value, _skxOrder$value, _skxReturnOrder$value, _jkyOrder$value, _wdtReturnOrder$value, _dxdOrder$value, _ttxOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _wdtInfo$wdtSystemOrd, _wdtInfo$wdtSystemOrd2, _gyOrders$trades, _jyOrders$trades, _jkyOrders$trades, _kmOrders$orderDetail, _kmInfo$kmSystemOrder, _kmInfo$kmSystemOrder2, _dxdOrders$doOrders, _dxdInfo$dxdSystemOrd, _dxdInfo$dxdSystemOrd2, _ttxInfo$ttxSystemOrd, _ttxInfo$ttxSystemOrd2, _ttxInfo$ttxSystemOrd3, _ttxInfo$ttxSystemOrd4, _value$selectIds, _value$showOrderInfo, _afterSaleOrders$valu, promise, kmVideoComponent, OrderSubFormComponent, wdtReturnBillNoComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, afterSaleOrders, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, jyOrder, skxOrder, skxReturnOrder, jkyOrder, dxdOrder, ttxOrder, kmVideoOrder, orderSubFormOrder, wdtReturnOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, jyOrders, skxOrders, skxReturnOrders, jkyOrders, wdtReturnOrders, dxdOrders, ttxOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, orderSubFormInfo, gyInfo, jyInfo, jkyInfo, jstInfo, skxInfo, skxReturnInfo, dxdInfo, ttxInfo, formValue, afterSalesOrderField, value, afterSalesOrderSelectOrder, afterSaleOrderInfo, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
|
|
150
|
+
var companyKey, order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, matchLogisticsNo, skipCache, skipOrderBackUniqueKeys, shopId, canModifyShopFieldValue, shouldTryAutoSetShopId, trySetShopId, _res$data, res, _res$data2, _res$data3, JOIN_SHOP, hasFlagMap, _ref4, shopSourceStr, _ref4$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _wdtReturnBillNoCompo, _data$value, _data$value3, _data$value4, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _jyOrder$value, _skxOrder$value, _skxReturnOrder$value, _jkyOrder$value, _wdtReturnOrder$value, _dxdOrder$value, _ttxOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _wdtInfo$wdtSystemOrd, _wdtInfo$wdtSystemOrd2, _gyOrders$trades, _jyOrders$trades, _jkyOrders$trades, _kmOrders$orderDetail, _kmInfo$kmSystemOrder, _kmInfo$kmSystemOrder2, _dxdOrders$doOrders, _dxdInfo$dxdSystemOrd, _dxdInfo$dxdSystemOrd2, _ttxInfo$ttxSystemOrd, _ttxInfo$ttxSystemOrd2, _ttxInfo$ttxSystemOrd3, _ttxInfo$ttxSystemOrd4, _value$selectIds, _value$showOrderInfo, _afterSalesOrderField, _afterSaleOrders$valu, promise, kmVideoComponent, OrderSubFormComponent, wdtReturnBillNoComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, afterSaleOrders, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, jyOrder, skxOrder, skxReturnOrder, jkyOrder, dxdOrder, ttxOrder, kmVideoOrder, orderSubFormOrder, wdtReturnOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, jyOrders, skxOrders, skxReturnOrders, jkyOrders, wdtReturnOrders, dxdOrders, ttxOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, orderSubFormInfo, gyInfo, jyInfo, jkyInfo, jstInfo, skxInfo, skxReturnInfo, dxdInfo, ttxInfo, formValue, afterSalesOrderField, value, afterSalesOrderSelectOrder, isAfterSalesOrderMultiple, afterSaleOrderInfo, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
|
|
151
151
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
152
152
|
while (1) switch (_context.prev = _context.next) {
|
|
153
153
|
case 0:
|
|
@@ -701,11 +701,13 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
701
701
|
var _value$selectIds2;
|
|
702
702
|
return item.afterSaleOrderId === (value === null || value === void 0 ? void 0 : (_value$selectIds2 = value.selectIds) === null || _value$selectIds2 === void 0 ? void 0 : _value$selectIds2[0]);
|
|
703
703
|
}));
|
|
704
|
+
isAfterSalesOrderMultiple = (afterSalesOrderField === null || afterSalesOrderField === void 0 ? void 0 : (_afterSalesOrderField = afterSalesOrderField.componentConfig) === null || _afterSalesOrderField === void 0 ? void 0 : _afterSalesOrderField.selectMode) === 'multiple';
|
|
704
705
|
afterSaleOrderInfo = platformAfterSalesOrderTransform({
|
|
705
706
|
orderNo: order_no,
|
|
706
707
|
shopId: shopId,
|
|
707
708
|
allOrders: (afterSaleOrders === null || afterSaleOrders === void 0 ? void 0 : (_afterSaleOrders$valu = afterSaleOrders.value) === null || _afterSaleOrders$valu === void 0 ? void 0 : _afterSaleOrders$valu.data) || [],
|
|
708
|
-
selectOrders: afterSalesOrderSelectOrder ? [afterSalesOrderSelectOrder] : []
|
|
709
|
+
selectOrders: afterSalesOrderSelectOrder ? [afterSalesOrderSelectOrder] : [],
|
|
710
|
+
skipBackfill: isAfterSalesOrderMultiple
|
|
709
711
|
}); // //获取当前表单字段
|
|
710
712
|
// const formValue = form.getFieldsValue();
|
|
711
713
|
detail = _objectSpread(_objectSpread({}, orderInfo || {}), {}, {
|
|
@@ -728,7 +730,7 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
728
730
|
pushGyLog('detail', detail);
|
|
729
731
|
//抖音数据特殊处理
|
|
730
732
|
if (!orderInfo) {
|
|
731
|
-
_context.next =
|
|
733
|
+
_context.next = 167;
|
|
732
734
|
break;
|
|
733
735
|
}
|
|
734
736
|
if (shopSourceStr === 'FXG') {
|
|
@@ -740,7 +742,7 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
740
742
|
hasSelectItem = HasErpItemSelectHandle(templateDetail);
|
|
741
743
|
erpPromiseList = [];
|
|
742
744
|
if (!(shopSourceStr === 'TAOBAO' && hasSelectItem)) {
|
|
743
|
-
_context.next =
|
|
745
|
+
_context.next = 151;
|
|
744
746
|
break;
|
|
745
747
|
}
|
|
746
748
|
list = detail['itemList'];
|
|
@@ -758,10 +760,10 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
758
760
|
resolve({});
|
|
759
761
|
});
|
|
760
762
|
});
|
|
761
|
-
_context.prev =
|
|
762
|
-
_context.next =
|
|
763
|
+
_context.prev = 141;
|
|
764
|
+
_context.next = 144;
|
|
763
765
|
return Promise.all(promises);
|
|
764
|
-
case
|
|
766
|
+
case 144:
|
|
765
767
|
erpPromiseList = _context.sent;
|
|
766
768
|
detail['itemList'] = (_detail$itemList = detail['itemList']) === null || _detail$itemList === void 0 ? void 0 : _detail$itemList.map(function (item, index) {
|
|
767
769
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -771,25 +773,25 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
771
773
|
})
|
|
772
774
|
});
|
|
773
775
|
});
|
|
774
|
-
_context.next =
|
|
776
|
+
_context.next = 151;
|
|
775
777
|
break;
|
|
776
|
-
case
|
|
777
|
-
_context.prev =
|
|
778
|
-
_context.t1 = _context["catch"](
|
|
778
|
+
case 148:
|
|
779
|
+
_context.prev = 148;
|
|
780
|
+
_context.t1 = _context["catch"](141);
|
|
779
781
|
console.error('调用erp获取宝贝编码错误', _context.t1);
|
|
780
|
-
case
|
|
782
|
+
case 151:
|
|
781
783
|
// 判断是否存在签收时间组件
|
|
782
784
|
hasSigningDatetime = HasTradeSigningDatetime(templateDetail); // 如存在签收时间组件且订单也有返回相应物流单号跟物流公司编码,则调用接口获取签收时间
|
|
783
785
|
if (!hasSigningDatetime) {
|
|
784
|
-
_context.next =
|
|
786
|
+
_context.next = 167;
|
|
785
787
|
break;
|
|
786
788
|
}
|
|
787
789
|
if (!(orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCompany && orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCode)) {
|
|
788
|
-
_context.next =
|
|
790
|
+
_context.next = 166;
|
|
789
791
|
break;
|
|
790
792
|
}
|
|
791
|
-
_context.prev =
|
|
792
|
-
_context.next =
|
|
793
|
+
_context.prev = 154;
|
|
794
|
+
_context.next = 157;
|
|
793
795
|
return request({
|
|
794
796
|
url: '/qy/logistics/logisticsSignTime',
|
|
795
797
|
method: 'post',
|
|
@@ -799,21 +801,21 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
799
801
|
mailNo: orderInfo.expressLogisticsCode
|
|
800
802
|
}
|
|
801
803
|
});
|
|
802
|
-
case
|
|
804
|
+
case 157:
|
|
803
805
|
signDatetime = _context.sent;
|
|
804
806
|
detail['tradeSigningDateTime'] = signDatetime === null || signDatetime === void 0 ? void 0 : (_signDatetime$data = signDatetime.data) === null || _signDatetime$data === void 0 ? void 0 : _signDatetime$data.signTime;
|
|
805
|
-
_context.next =
|
|
807
|
+
_context.next = 164;
|
|
806
808
|
break;
|
|
807
|
-
case
|
|
808
|
-
_context.prev =
|
|
809
|
-
_context.t2 = _context["catch"](
|
|
809
|
+
case 161:
|
|
810
|
+
_context.prev = 161;
|
|
811
|
+
_context.t2 = _context["catch"](154);
|
|
810
812
|
console.error('调用签收时间错误', _context.t2);
|
|
811
|
-
case
|
|
812
|
-
_context.next =
|
|
813
|
+
case 164:
|
|
814
|
+
_context.next = 167;
|
|
813
815
|
break;
|
|
814
|
-
case 165:
|
|
815
|
-
detail['tradeSigningDateTime'] = '';
|
|
816
816
|
case 166:
|
|
817
|
+
detail['tradeSigningDateTime'] = '';
|
|
818
|
+
case 167:
|
|
817
819
|
values = orderBackFormValues({
|
|
818
820
|
shopId: shopId,
|
|
819
821
|
detail: detail,
|
|
@@ -870,21 +872,21 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
870
872
|
shopId: shopId
|
|
871
873
|
}));
|
|
872
874
|
callback === null || callback === void 0 ? void 0 : callback(detail, templateDetail);
|
|
873
|
-
_context.next =
|
|
875
|
+
_context.next = 179;
|
|
874
876
|
break;
|
|
875
|
-
case
|
|
876
|
-
_context.prev =
|
|
877
|
+
case 176:
|
|
878
|
+
_context.prev = 176;
|
|
877
879
|
_context.t3 = _context["catch"](28);
|
|
878
880
|
console.error(_context.t3);
|
|
879
|
-
case
|
|
880
|
-
_context.prev =
|
|
881
|
+
case 179:
|
|
882
|
+
_context.prev = 179;
|
|
881
883
|
setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
|
|
882
|
-
return _context.finish(
|
|
883
|
-
case
|
|
884
|
+
return _context.finish(179);
|
|
885
|
+
case 182:
|
|
884
886
|
case "end":
|
|
885
887
|
return _context.stop();
|
|
886
888
|
}
|
|
887
|
-
}, _callee, null, [[8, 15, 18, 21], [28,
|
|
889
|
+
}, _callee, null, [[8, 15, 18, 21], [28, 176, 179, 182], [141, 148], [154, 161]]);
|
|
888
890
|
}));
|
|
889
891
|
return function orderBack(_x) {
|
|
890
892
|
return _ref2.apply(this, arguments);
|
|
@@ -1335,13 +1337,17 @@ export var deleteCacheOrder = function deleteCacheOrder(_ref6) {
|
|
|
1335
1337
|
};
|
|
1336
1338
|
// 平台时候单信息反填
|
|
1337
1339
|
export var afterSaleOrderBackValues = function afterSaleOrderBackValues(_ref7) {
|
|
1338
|
-
var _templateList$compone;
|
|
1340
|
+
var _templateList$compone, _afterSalesOrderField2, _templateList$compone2;
|
|
1339
1341
|
var templateList = _ref7.templateList,
|
|
1340
1342
|
value = _ref7.value,
|
|
1341
1343
|
form = _ref7.form;
|
|
1342
1344
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1343
1345
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1344
|
-
var
|
|
1346
|
+
var afterSalesOrderField = (_templateList$compone = templateList.componentDtoList) === null || _templateList$compone === void 0 ? void 0 : _templateList$compone.find(function (item) {
|
|
1347
|
+
return item.workOrderComponentType === 'PLATFORM_AFTER_SALES_ORDER';
|
|
1348
|
+
});
|
|
1349
|
+
if ((afterSalesOrderField === null || afterSalesOrderField === void 0 ? void 0 : (_afterSalesOrderField2 = afterSalesOrderField.componentConfig) === null || _afterSalesOrderField2 === void 0 ? void 0 : _afterSalesOrderField2.selectMode) === 'multiple') return;
|
|
1350
|
+
var afterSaleComponent = (_templateList$compone2 = templateList.componentDtoList) === null || _templateList$compone2 === void 0 ? void 0 : _templateList$compone2.filter(function (item) {
|
|
1345
1351
|
return ['RETURN_LOGISTICS_SELECT', 'LOGISTICS_TRAJECTORY'].includes(item.workOrderComponentType);
|
|
1346
1352
|
});
|
|
1347
1353
|
if (!(afterSaleComponent !== null && afterSaleComponent !== void 0 && afterSaleComponent.length)) return;
|
|
@@ -1355,13 +1361,13 @@ export var afterSaleOrderBackValues = function afterSaleOrderBackValues(_ref7) {
|
|
|
1355
1361
|
};
|
|
1356
1362
|
//wdt售后商品信息返填
|
|
1357
1363
|
export var wdtReturnBillNoBackValues = function wdtReturnBillNoBackValues(_ref8) {
|
|
1358
|
-
var _templateList$
|
|
1364
|
+
var _templateList$compone3;
|
|
1359
1365
|
var templateList = _ref8.templateList,
|
|
1360
1366
|
value = _ref8.value,
|
|
1361
1367
|
form = _ref8.form;
|
|
1362
1368
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1363
1369
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1364
|
-
var wdtAftersaleGoodsComponent = (_templateList$
|
|
1370
|
+
var wdtAftersaleGoodsComponent = (_templateList$compone3 = templateList.componentDtoList) === null || _templateList$compone3 === void 0 ? void 0 : _templateList$compone3.filter(function (item) {
|
|
1365
1371
|
return ['WDT_AFTERSALE_GOODS'].includes(item.workOrderComponentType);
|
|
1366
1372
|
});
|
|
1367
1373
|
if (!(wdtAftersaleGoodsComponent !== null && wdtAftersaleGoodsComponent !== void 0 && wdtAftersaleGoodsComponent.length)) return;
|
|
@@ -1379,13 +1385,13 @@ export var wdtReturnBillNoBackValues = function wdtReturnBillNoBackValues(_ref8)
|
|
|
1379
1385
|
};
|
|
1380
1386
|
//bs商品信息返填
|
|
1381
1387
|
export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref9) {
|
|
1382
|
-
var _templateList$
|
|
1388
|
+
var _templateList$compone4;
|
|
1383
1389
|
var templateList = _ref9.templateList,
|
|
1384
1390
|
value = _ref9.value,
|
|
1385
1391
|
form = _ref9.form;
|
|
1386
1392
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1387
1393
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1388
|
-
var bsGoodsComponent = (_templateList$
|
|
1394
|
+
var bsGoodsComponent = (_templateList$compone4 = templateList.componentDtoList) === null || _templateList$compone4 === void 0 ? void 0 : _templateList$compone4.filter(function (item) {
|
|
1389
1395
|
return ['BS_GOODS', 'BS_DELIVERY_NO', 'BS_SEND_GOOD', 'BS_LOGISTICS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_EXCHANGE_GOODS', 'LOGISTICS_TRAJECTORY_MORE', 'LOGISTICS_INTERCEPTION_MORE'].includes(item.workOrderComponentType);
|
|
1390
1396
|
});
|
|
1391
1397
|
if (!(bsGoodsComponent !== null && bsGoodsComponent !== void 0 && bsGoodsComponent.length)) return;
|
|
@@ -1403,17 +1409,17 @@ export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref9) {
|
|
|
1403
1409
|
};
|
|
1404
1410
|
// bs e3商品信息返填
|
|
1405
1411
|
export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref10) {
|
|
1406
|
-
var _templateList$
|
|
1412
|
+
var _templateList$compone5, _templateList$compone6;
|
|
1407
1413
|
var templateList = _ref10.templateList,
|
|
1408
1414
|
value = _ref10.value,
|
|
1409
1415
|
form = _ref10.form;
|
|
1410
1416
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1411
1417
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1412
|
-
var bsE3GoodsComponent = (_templateList$
|
|
1418
|
+
var bsE3GoodsComponent = (_templateList$compone5 = templateList.componentDtoList) === null || _templateList$compone5 === void 0 ? void 0 : _templateList$compone5.filter(function (item) {
|
|
1413
1419
|
return ['BS_E3_GOODS', 'BS_E3_SEND_GOOD', 'BS_E3_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1414
1420
|
});
|
|
1415
1421
|
if (!(bsE3GoodsComponent !== null && bsE3GoodsComponent !== void 0 && bsE3GoodsComponent.length)) return;
|
|
1416
|
-
var tIdCom = (_templateList$
|
|
1422
|
+
var tIdCom = (_templateList$compone6 = templateList.componentDtoList) === null || _templateList$compone6 === void 0 ? void 0 : _templateList$compone6.find(function (item) {
|
|
1417
1423
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1418
1424
|
});
|
|
1419
1425
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1431,13 +1437,13 @@ export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref10
|
|
|
1431
1437
|
|
|
1432
1438
|
//wln商品信息返填
|
|
1433
1439
|
export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref11) {
|
|
1434
|
-
var _templateList$
|
|
1440
|
+
var _templateList$compone7;
|
|
1435
1441
|
var templateList = _ref11.templateList,
|
|
1436
1442
|
value = _ref11.value,
|
|
1437
1443
|
form = _ref11.form;
|
|
1438
1444
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1439
1445
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1440
|
-
var wlnGoodsComponent = (_templateList$
|
|
1446
|
+
var wlnGoodsComponent = (_templateList$compone7 = templateList.componentDtoList) === null || _templateList$compone7 === void 0 ? void 0 : _templateList$compone7.filter(function (item) {
|
|
1441
1447
|
return ['WLN_GOODS', 'WLN_SEND_GOOD', 'WLN_LOGISTICS'].includes(item.workOrderComponentType);
|
|
1442
1448
|
});
|
|
1443
1449
|
if (!(wlnGoodsComponent !== null && wlnGoodsComponent !== void 0 && wlnGoodsComponent.length)) return;
|
|
@@ -1457,17 +1463,17 @@ export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref11)
|
|
|
1457
1463
|
|
|
1458
1464
|
// km 商品信息返填
|
|
1459
1465
|
export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref12) {
|
|
1460
|
-
var _templateList$
|
|
1466
|
+
var _templateList$compone8, _templateList$compone9;
|
|
1461
1467
|
var templateList = _ref12.templateList,
|
|
1462
1468
|
value = _ref12.value,
|
|
1463
1469
|
form = _ref12.form;
|
|
1464
1470
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1465
1471
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1466
|
-
var kmGoodsComponent = (_templateList$
|
|
1472
|
+
var kmGoodsComponent = (_templateList$compone8 = templateList.componentDtoList) === null || _templateList$compone8 === void 0 ? void 0 : _templateList$compone8.filter(function (item) {
|
|
1467
1473
|
return ['KM_GOODS', 'KM_SEND_GOOD', 'KM_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1468
1474
|
});
|
|
1469
1475
|
if (!(kmGoodsComponent !== null && kmGoodsComponent !== void 0 && kmGoodsComponent.length)) return;
|
|
1470
|
-
var tIdCom = (_templateList$
|
|
1476
|
+
var tIdCom = (_templateList$compone9 = templateList.componentDtoList) === null || _templateList$compone9 === void 0 ? void 0 : _templateList$compone9.find(function (item) {
|
|
1471
1477
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1472
1478
|
});
|
|
1473
1479
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1485,17 +1491,17 @@ export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref12) {
|
|
|
1485
1491
|
|
|
1486
1492
|
// wdt商品信息返填
|
|
1487
1493
|
export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref13) {
|
|
1488
|
-
var _templateList$
|
|
1494
|
+
var _templateList$compone10, _templateList$compone11, _wdtGoodsComponent$;
|
|
1489
1495
|
var templateList = _ref13.templateList,
|
|
1490
1496
|
value = _ref13.value,
|
|
1491
1497
|
form = _ref13.form;
|
|
1492
1498
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1493
1499
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1494
|
-
var wdtGoodsComponent = (_templateList$
|
|
1500
|
+
var wdtGoodsComponent = (_templateList$compone10 = templateList.componentDtoList) === null || _templateList$compone10 === void 0 ? void 0 : _templateList$compone10.filter(function (item) {
|
|
1495
1501
|
return ['WDT_GOODS', 'WDT_DELIVERY_NO', 'WDT_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_TAGS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1496
1502
|
});
|
|
1497
1503
|
if (!(wdtGoodsComponent !== null && wdtGoodsComponent !== void 0 && wdtGoodsComponent.length)) return;
|
|
1498
|
-
var tIdCom = (_templateList$
|
|
1504
|
+
var tIdCom = (_templateList$compone11 = templateList.componentDtoList) === null || _templateList$compone11 === void 0 ? void 0 : _templateList$compone11.find(function (item) {
|
|
1499
1505
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1500
1506
|
});
|
|
1501
1507
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1520,7 +1526,7 @@ export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref13)
|
|
|
1520
1526
|
// dxd 商品信息返填
|
|
1521
1527
|
export var dxdSystemOrderBackValues = /*#__PURE__*/function () {
|
|
1522
1528
|
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref14) {
|
|
1523
|
-
var _templateList$
|
|
1529
|
+
var _templateList$compone12, _templateList$compone13;
|
|
1524
1530
|
var templateList, value, form, dxdGoodsComponent, tIdCom, orderNo, orderInfo, values;
|
|
1525
1531
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1526
1532
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1532,7 +1538,7 @@ export var dxdSystemOrderBackValues = /*#__PURE__*/function () {
|
|
|
1532
1538
|
}
|
|
1533
1539
|
return _context2.abrupt("return");
|
|
1534
1540
|
case 3:
|
|
1535
|
-
dxdGoodsComponent = (_templateList$
|
|
1541
|
+
dxdGoodsComponent = (_templateList$compone12 = templateList.componentDtoList) === null || _templateList$compone12 === void 0 ? void 0 : _templateList$compone12.filter(function (item) {
|
|
1536
1542
|
return ['DXD_GOODS', 'DXD_SUPPLIERS', 'DXD_SEND_GOOD', 'DXD_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1537
1543
|
});
|
|
1538
1544
|
if (dxdGoodsComponent !== null && dxdGoodsComponent !== void 0 && dxdGoodsComponent.length) {
|
|
@@ -1541,7 +1547,7 @@ export var dxdSystemOrderBackValues = /*#__PURE__*/function () {
|
|
|
1541
1547
|
}
|
|
1542
1548
|
return _context2.abrupt("return");
|
|
1543
1549
|
case 6:
|
|
1544
|
-
tIdCom = (_templateList$
|
|
1550
|
+
tIdCom = (_templateList$compone13 = templateList.componentDtoList) === null || _templateList$compone13 === void 0 ? void 0 : _templateList$compone13.find(function (item) {
|
|
1545
1551
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1546
1552
|
});
|
|
1547
1553
|
orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1569,16 +1575,16 @@ export var dxdSystemOrderBackValues = /*#__PURE__*/function () {
|
|
|
1569
1575
|
|
|
1570
1576
|
// 通天晓系统订单选择后的商品、物流和发货仓二次反填
|
|
1571
1577
|
export var ttxSystemOrderBackValues = function ttxSystemOrderBackValues(_ref16) {
|
|
1572
|
-
var _templateList$
|
|
1578
|
+
var _templateList$compone14, _templateList$compone15;
|
|
1573
1579
|
var templateList = _ref16.templateList,
|
|
1574
1580
|
value = _ref16.value,
|
|
1575
1581
|
form = _ref16.form;
|
|
1576
1582
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1577
|
-
var ttxComponents = (_templateList$
|
|
1583
|
+
var ttxComponents = (_templateList$compone14 = templateList.componentDtoList) === null || _templateList$compone14 === void 0 ? void 0 : _templateList$compone14.filter(function (item) {
|
|
1578
1584
|
return ['TTX_GOODS', 'TTX_SEND_GOOD', 'TTX_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1579
1585
|
});
|
|
1580
1586
|
if (!(ttxComponents !== null && ttxComponents !== void 0 && ttxComponents.length)) return;
|
|
1581
|
-
var tIdCom = (_templateList$
|
|
1587
|
+
var tIdCom = (_templateList$compone15 = templateList.componentDtoList) === null || _templateList$compone15 === void 0 ? void 0 : _templateList$compone15.find(function (item) {
|
|
1582
1588
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1583
1589
|
});
|
|
1584
1590
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1596,17 +1602,17 @@ export var ttxSystemOrderBackValues = function ttxSystemOrderBackValues(_ref16)
|
|
|
1596
1602
|
|
|
1597
1603
|
//gy商品信息返填
|
|
1598
1604
|
export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref17) {
|
|
1599
|
-
var _templateList$
|
|
1605
|
+
var _templateList$compone16, _templateList$compone17;
|
|
1600
1606
|
var templateList = _ref17.templateList,
|
|
1601
1607
|
value = _ref17.value,
|
|
1602
1608
|
form = _ref17.form;
|
|
1603
1609
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1604
1610
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1605
|
-
var gyGoodsComponent = (_templateList$
|
|
1611
|
+
var gyGoodsComponent = (_templateList$compone16 = templateList.componentDtoList) === null || _templateList$compone16 === void 0 ? void 0 : _templateList$compone16.filter(function (item) {
|
|
1606
1612
|
return ['GY_GOODS', 'GY_SEND_GOOD', 'GY_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1607
1613
|
});
|
|
1608
1614
|
if (!(gyGoodsComponent !== null && gyGoodsComponent !== void 0 && gyGoodsComponent.length)) return;
|
|
1609
|
-
var tIdCom = (_templateList$
|
|
1615
|
+
var tIdCom = (_templateList$compone17 = templateList.componentDtoList) === null || _templateList$compone17 === void 0 ? void 0 : _templateList$compone17.find(function (item) {
|
|
1610
1616
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1611
1617
|
});
|
|
1612
1618
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1624,17 +1630,17 @@ export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref17) {
|
|
|
1624
1630
|
|
|
1625
1631
|
//聚水潭商品信息返填
|
|
1626
1632
|
export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref18) {
|
|
1627
|
-
var _templateList$
|
|
1633
|
+
var _templateList$compone18, _templateList$compone19;
|
|
1628
1634
|
var templateList = _ref18.templateList,
|
|
1629
1635
|
value = _ref18.value,
|
|
1630
1636
|
form = _ref18.form;
|
|
1631
1637
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1632
1638
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1633
|
-
var jstGoodsComponent = (_templateList$
|
|
1639
|
+
var jstGoodsComponent = (_templateList$compone18 = templateList.componentDtoList) === null || _templateList$compone18 === void 0 ? void 0 : _templateList$compone18.filter(function (item) {
|
|
1634
1640
|
return ['JST_GOODS', 'JST_SEND_GOOD', 'JST_LOGISTICS', 'JST_SUPPLY', 'JST_ITEM_SELECT_THIRD'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1635
1641
|
});
|
|
1636
1642
|
if (!(jstGoodsComponent !== null && jstGoodsComponent !== void 0 && jstGoodsComponent.length)) return;
|
|
1637
|
-
var tIdCom = (_templateList$
|
|
1643
|
+
var tIdCom = (_templateList$compone19 = templateList.componentDtoList) === null || _templateList$compone19 === void 0 ? void 0 : _templateList$compone19.find(function (item) {
|
|
1638
1644
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1639
1645
|
});
|
|
1640
1646
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1651,17 +1657,17 @@ export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref18)
|
|
|
1651
1657
|
};
|
|
1652
1658
|
// 巨益商品信息反填
|
|
1653
1659
|
export var jySystemOrderBackValues = function jySystemOrderBackValues(_ref19) {
|
|
1654
|
-
var _templateList$
|
|
1660
|
+
var _templateList$compone20, _templateList$compone21;
|
|
1655
1661
|
var templateList = _ref19.templateList,
|
|
1656
1662
|
value = _ref19.value,
|
|
1657
1663
|
form = _ref19.form;
|
|
1658
1664
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1659
1665
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1660
|
-
var jyGoodsComponent = (_templateList$
|
|
1666
|
+
var jyGoodsComponent = (_templateList$compone20 = templateList.componentDtoList) === null || _templateList$compone20 === void 0 ? void 0 : _templateList$compone20.filter(function (item) {
|
|
1661
1667
|
return ['JY_GOODS', 'JY_SEND_GOOD', 'JY_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1662
1668
|
});
|
|
1663
1669
|
if (!(jyGoodsComponent !== null && jyGoodsComponent !== void 0 && jyGoodsComponent.length)) return;
|
|
1664
|
-
var tIdCom = (_templateList$
|
|
1670
|
+
var tIdCom = (_templateList$compone21 = templateList.componentDtoList) === null || _templateList$compone21 === void 0 ? void 0 : _templateList$compone21.find(function (item) {
|
|
1665
1671
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1666
1672
|
});
|
|
1667
1673
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -1678,17 +1684,17 @@ export var jySystemOrderBackValues = function jySystemOrderBackValues(_ref19) {
|
|
|
1678
1684
|
};
|
|
1679
1685
|
// 吉客云商票信息反填
|
|
1680
1686
|
export var jkySystemOrderBackValues = function jkySystemOrderBackValues(_ref20) {
|
|
1681
|
-
var _templateList$
|
|
1687
|
+
var _templateList$compone22, _templateList$compone23;
|
|
1682
1688
|
var templateList = _ref20.templateList,
|
|
1683
1689
|
value = _ref20.value,
|
|
1684
1690
|
form = _ref20.form;
|
|
1685
1691
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1686
1692
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1687
|
-
var jkyGoodsComponent = (_templateList$
|
|
1693
|
+
var jkyGoodsComponent = (_templateList$compone22 = templateList.componentDtoList) === null || _templateList$compone22 === void 0 ? void 0 : _templateList$compone22.filter(function (item) {
|
|
1688
1694
|
return ['JKY_GOODS', 'JKY_SEND_GOOD', 'JKY_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1689
1695
|
});
|
|
1690
1696
|
if (!(jkyGoodsComponent !== null && jkyGoodsComponent !== void 0 && jkyGoodsComponent.length)) return;
|
|
1691
|
-
var tIdCom = (_templateList$
|
|
1697
|
+
var tIdCom = (_templateList$compone23 = templateList.componentDtoList) === null || _templateList$compone23 === void 0 ? void 0 : _templateList$compone23.find(function (item) {
|
|
1692
1698
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
1693
1699
|
});
|
|
1694
1700
|
var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
|
|
@@ -6,7 +6,6 @@ export declare const selectFlowList: ((state: {
|
|
|
6
6
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
7
7
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
8
8
|
logicFlow: import("./types").LogicFlowState;
|
|
9
|
-
kmErpTradeList: import("../kmErpTradeList").WorkOrderState;
|
|
10
9
|
}) => import("./types").LogicFlow[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").LogicFlow[], {
|
|
11
10
|
clearCache: () => void;
|
|
12
11
|
}> & {
|
|
@@ -20,7 +19,6 @@ export declare const selectGroupFlowList: ((state: {
|
|
|
20
19
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
21
20
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
22
21
|
logicFlow: import("./types").LogicFlowState;
|
|
23
|
-
kmErpTradeList: import("../kmErpTradeList").WorkOrderState;
|
|
24
22
|
}) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
|
|
25
23
|
clearCache: () => void;
|
|
26
24
|
}> & {
|
|
@@ -34,7 +32,6 @@ export declare const selectFlowTemplateGroupWorkOrderTemplateList: ((state: {
|
|
|
34
32
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
35
33
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
36
34
|
logicFlow: import("./types").LogicFlowState;
|
|
37
|
-
kmErpTradeList: import("../kmErpTradeList").WorkOrderState;
|
|
38
35
|
}) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
|
|
39
36
|
clearCache: () => void;
|
|
40
37
|
}> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.70",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "2.10.9-beta.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.10.9-beta.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.10.9-beta.70",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.70",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.10.9-beta.70",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "dfbfdf8e76a9491dcfb496208f2cd2a599d5a5a4",
|
|
79
79
|
"gitHooks": {
|
|
80
80
|
"pre-commit": "lint-staged"
|
|
81
81
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var react_1 = require('react');
|
|
5
|
-
var react_redux_1 = require('react-redux');
|
|
6
|
-
var toolkit_1 = require('@reduxjs/toolkit');
|
|
7
|
-
var getTemplate = function getTemplate(companyUserConfig) {
|
|
8
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
9
|
-
return JSON.stringify({
|
|
10
|
-
hasWln: (_c = (_b = (_a = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _a === void 0 ? void 0 : _a.wln) === null || _b === void 0 ? void 0 : _b.show) !== null && _c !== void 0 ? _c : false,
|
|
11
|
-
hasWdt: (_f = (_e = (_d = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _d === void 0 ? void 0 : _d.wdt) === null || _e === void 0 ? void 0 : _e.show) !== null && _f !== void 0 ? _f : false,
|
|
12
|
-
hasBs: (_j = (_h = (_g = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _g === void 0 ? void 0 : _g.bs) === null || _h === void 0 ? void 0 : _h.show) !== null && _j !== void 0 ? _j : false,
|
|
13
|
-
hasE3: (_m = (_l = (_k = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _k === void 0 ? void 0 : _k.bse3) === null || _l === void 0 ? void 0 : _l.show) !== null && _m !== void 0 ? _m : false,
|
|
14
|
-
hasJst: (_q = (_p = (_o = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _o === void 0 ? void 0 : _o.jst) === null || _p === void 0 ? void 0 : _p.show) !== null && _q !== void 0 ? _q : false,
|
|
15
|
-
hasGy: (_t = (_s = (_r = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _r === void 0 ? void 0 : _r.gy) === null || _s === void 0 ? void 0 : _s.show) !== null && _t !== void 0 ? _t : false
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
function useGetHasErpData() {
|
|
19
|
-
var companyUserConfig = react_redux_1.useSelector(toolkit_1.createSelector([function (state) {
|
|
20
|
-
var _a, _b, _c, _d;
|
|
21
|
-
console.log('state--useSelector', state);
|
|
22
|
-
/**
|
|
23
|
-
* pc main
|
|
24
|
-
* 端 workOrder
|
|
25
|
-
* **/
|
|
26
|
-
return (_d = (_b = (_a = state === null || state === void 0 ? void 0 : state.main) === null || _a === void 0 ? void 0 : _a.userInfo) !== null && _b !== void 0 ? _b : (_c = state === null || state === void 0 ? void 0 : state.workOrder) === null || _c === void 0 ? void 0 : _c.userInfo) !== null && _d !== void 0 ? _d : {};
|
|
27
|
-
}], function (state) {
|
|
28
|
-
var _a;
|
|
29
|
-
var companyUserConfig = (_a = state === null || state === void 0 ? void 0 : state.companyUserConfig) !== null && _a !== void 0 ? _a : {};
|
|
30
|
-
if (typeof companyUserConfig === 'string') {
|
|
31
|
-
try {
|
|
32
|
-
companyUserConfig = JSON.parse(companyUserConfig);
|
|
33
|
-
} catch (e) {
|
|
34
|
-
console.error('companyUserConfig转换异常', companyUserConfig);
|
|
35
|
-
companyUserConfig = {};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return companyUserConfig;
|
|
39
|
-
}));
|
|
40
|
-
var _a = react_1.useState(getTemplate({})),
|
|
41
|
-
hasErpDataJson = _a[0],
|
|
42
|
-
setHasErpDataJson = _a[1];
|
|
43
|
-
react_1.useEffect(function () {
|
|
44
|
-
setHasErpDataJson(getTemplate(companyUserConfig));
|
|
45
|
-
console.log('companyUserConfig---', companyUserConfig);
|
|
46
|
-
}, [companyUserConfig]);
|
|
47
|
-
var hasErpData = react_1.useMemo(function () {
|
|
48
|
-
return JSON.parse(hasErpDataJson);
|
|
49
|
-
}, [hasErpDataJson]);
|
|
50
|
-
return hasErpData;
|
|
51
|
-
}
|
|
52
|
-
exports['default'] = useGetHasErpData;
|