@kmkf-fe-packages/kmkf-work-order-service-component 2.0.54-beta.2 → 2.0.54-beta.21
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 +2 -1
- package/dist/esm/FlowTemplateDetailV2/constant.js +1 -1
- package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
- package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
- package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
- package/dist/esm/common/utils/constant.js +7 -1
- package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +899 -0
- package/dist/esm/common/utils/dist/tools.js +1326 -0
- package/dist/esm/common/utils/dist/transformWorkOrderData.js +965 -0
- package/dist/esm/common/utils/submitDataTransOldFormat.js +26 -13
- package/dist/esm/common/utils/tools.js +8 -2
- package/dist/esm/common/utils/tools_constants.js +2 -2
- package/dist/esm/common/utils/transformWorkOrderData.js +33 -22
- package/dist/esm/model/customizeWorkOrder/dist/api.js +48 -0
- package/dist/esm/model/customizeWorkOrder/dist/index.js +370 -0
- package/dist/esm/model/customizeWorkOrder/dist/selector.js +63 -0
- package/dist/esm/model/customizeWorkOrder/dist/types.js +3 -0
- package/dist/esm/model/dist/global.js +44 -0
- package/dist/esm/model/dist/hooks.js +15 -0
- package/dist/esm/model/dist/login.js +245 -0
- package/dist/esm/model/dist/store.js +30 -0
- package/dist/esm/model/dist/userData.js +41 -0
- package/dist/esm/model/dist/workOrder.js +329 -0
- package/dist/esm/model/flowTemplateDetail/dist/api.js +192 -0
- package/dist/esm/model/flowTemplateDetail/dist/types.js +48 -0
- package/dist/esm/model/logicFlow/dist/api.js +14 -0
- package/dist/esm/model/logicFlow/dist/index.js +235 -0
- package/dist/esm/model/logicFlow/dist/selector.js +18 -0
- package/dist/esm/model/logicFlow/dist/types.js +3 -0
- package/dist/esm/model/paymentWorkOrder/dist/index.js +77 -0
- package/dist/esm/model/paymentWorkOrder/dist/selector.js +36 -0
- package/dist/esm/model/paymentWorkOrder/dist/types.js +3 -0
- package/dist/esm/model/servers/api.js +21 -0
- package/dist/esm/model/servers/dist/api.js +545 -0
- package/dist/esm/model/servers/dist/request.js +63 -0
- package/dist/esm/model/singleShopWorkOrder/dist/index.js +216 -0
- package/dist/esm/model/singleShopWorkOrder/dist/selector.js +24 -0
- package/dist/esm/model/singleShopWorkOrder/dist/types.js +3 -0
- package/dist/esm/model/types/dist/login.js +3 -0
- package/dist/esm/model/types/dist/singleWorkOrder.js +3 -0
- package/dist/esm/model/types/dist/workOrder.js +3 -0
- package/package.json +5 -5
|
@@ -662,24 +662,33 @@ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref48) {
|
|
|
662
662
|
});
|
|
663
663
|
};
|
|
664
664
|
};
|
|
665
|
-
var
|
|
665
|
+
var handleWdtShopSelect = function handleWdtShopSelect(_ref49) {
|
|
666
666
|
var addContent = _ref49.addContent,
|
|
667
667
|
getNowData = _ref49.getNowData;
|
|
668
668
|
return function (item) {
|
|
669
|
-
|
|
669
|
+
['shopCode'].map(function (key) {
|
|
670
|
+
addContent(key, getNowData("".concat(item.uniqueKey), ''));
|
|
671
|
+
});
|
|
670
672
|
};
|
|
671
673
|
};
|
|
672
|
-
var
|
|
674
|
+
var handleDefault = function handleDefault(_ref50) {
|
|
673
675
|
var addContent = _ref50.addContent,
|
|
674
676
|
getNowData = _ref50.getNowData;
|
|
675
677
|
return function (item) {
|
|
676
|
-
addContent(
|
|
677
|
-
addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
|
|
678
|
+
addContent(V.camelCase(item.workOrderComponentType), getNowData(item.uniqueKey, ''));
|
|
678
679
|
};
|
|
679
680
|
};
|
|
680
|
-
var
|
|
681
|
+
var handleStatusField = function handleStatusField(_ref51) {
|
|
681
682
|
var addContent = _ref51.addContent,
|
|
682
683
|
getNowData = _ref51.getNowData;
|
|
684
|
+
return function (item) {
|
|
685
|
+
addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey, ".status"), ''));
|
|
686
|
+
addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
var handleGoodStatus = function handleGoodStatus(_ref52) {
|
|
690
|
+
var addContent = _ref52.addContent,
|
|
691
|
+
getNowData = _ref52.getNowData;
|
|
683
692
|
return function (item) {
|
|
684
693
|
addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].list, getNowData("".concat(item.uniqueKey), []));
|
|
685
694
|
addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey), []).map(function (item) {
|
|
@@ -687,13 +696,13 @@ var handleGoodStatus = function handleGoodStatus(_ref51) {
|
|
|
687
696
|
}));
|
|
688
697
|
};
|
|
689
698
|
};
|
|
690
|
-
var processComponent = function processComponent(
|
|
691
|
-
var params =
|
|
692
|
-
nowData =
|
|
693
|
-
updateFlag =
|
|
694
|
-
detail =
|
|
695
|
-
accountName =
|
|
696
|
-
getValueByField =
|
|
699
|
+
var processComponent = function processComponent(_ref53) {
|
|
700
|
+
var params = _ref53.params,
|
|
701
|
+
nowData = _ref53.nowData,
|
|
702
|
+
updateFlag = _ref53.updateFlag,
|
|
703
|
+
detail = _ref53.detail,
|
|
704
|
+
accountName = _ref53.accountName,
|
|
705
|
+
getValueByField = _ref53.getValueByField;
|
|
697
706
|
return function (item) {
|
|
698
707
|
var contentVoList = [];
|
|
699
708
|
var uniqueKeyPrefix = "".concat(item.uniqueKey, "_");
|
|
@@ -848,6 +857,7 @@ var processComponent = function processComponent(_ref52) {
|
|
|
848
857
|
case 'WLN_LOGISTICS':
|
|
849
858
|
case 'WDT_LOGISTICS':
|
|
850
859
|
case 'KM_LOGISTICS':
|
|
860
|
+
case 'GY_LOGISTICS':
|
|
851
861
|
wrapFn(handleErpLogistics);
|
|
852
862
|
break;
|
|
853
863
|
case 'BS_SEND_GOOD':
|
|
@@ -929,6 +939,9 @@ var processComponent = function processComponent(_ref52) {
|
|
|
929
939
|
case 'BS_E3_REISSUE_GOODS':
|
|
930
940
|
wrapFn(handleBsE3ReissueGoods);
|
|
931
941
|
break;
|
|
942
|
+
case 'WDT_SHOP':
|
|
943
|
+
wrapFn(handleWdtShopSelect);
|
|
944
|
+
break;
|
|
932
945
|
default:
|
|
933
946
|
wrapFn(handleDefault);
|
|
934
947
|
}
|
|
@@ -385,7 +385,10 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
385
385
|
gyGoods: [],
|
|
386
386
|
orders: []
|
|
387
387
|
});
|
|
388
|
-
|
|
388
|
+
gyInfo.gyLogistics = [{
|
|
389
|
+
logisticsCompany: null,
|
|
390
|
+
logisticsCode: ''
|
|
391
|
+
}];
|
|
389
392
|
gyInfo.gySendGood = [{
|
|
390
393
|
sendId: '',
|
|
391
394
|
sendName: ''
|
|
@@ -934,6 +937,9 @@ export var reversalFormValues = function reversalFormValues() {
|
|
|
934
937
|
prv["".concat(next.uniqueKey, "_jstGoods")] = JSON.stringify(values[next.uniqueKey]['_jstGoods']);
|
|
935
938
|
prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
|
|
936
939
|
break;
|
|
940
|
+
case 'WDT_SHOP':
|
|
941
|
+
prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey];
|
|
942
|
+
break;
|
|
937
943
|
}
|
|
938
944
|
return prv;
|
|
939
945
|
}, {});
|
|
@@ -1107,7 +1113,7 @@ export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref11) {
|
|
|
1107
1113
|
//如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
|
|
1108
1114
|
if (!(value !== null && value !== void 0 && value.selectedRows)) return;
|
|
1109
1115
|
var gyGoodsComponent = (_templateList$compone9 = templateList.componentDtoList) === null || _templateList$compone9 === void 0 ? void 0 : _templateList$compone9.filter(function (item) {
|
|
1110
|
-
return ['GY_GOODS', 'GY_SEND_GOOD'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1116
|
+
return ['GY_GOODS', 'GY_SEND_GOOD', 'GY_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
|
|
1111
1117
|
});
|
|
1112
1118
|
if (!(gyGoodsComponent !== null && gyGoodsComponent !== void 0 && gyGoodsComponent.length)) return;
|
|
1113
1119
|
var tIdCom = (_templateList$compone10 = templateList.componentDtoList) === null || _templateList$compone10 === void 0 ? void 0 : _templateList$compone10.find(function (item) {
|
|
@@ -5,10 +5,10 @@ var orderBackKeyListMap = {
|
|
|
5
5
|
hasJst: ['JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD'],
|
|
6
6
|
hasBs: ['BS_SIGNING_TIME', 'BS_SEND_TIME', 'BS_TRADE_PAYMENT_TIME', 'BS_NET_RECEIPTS', 'BS_PACKAGE_WEIGHT', 'BS_GOODS', 'BS_DEPOSIT', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_POSTING', 'BS_SYSTEM_ORDER', 'BS_DELIVERY_NO'],
|
|
7
7
|
hasKm: ['KM_SYSTEM_ORDER', 'KM_LOGISTICS'],
|
|
8
|
-
hasWdt: ['WDT_SYSTEM_ORDER', 'WDT_GOODS', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_REISSUE_GOODS'],
|
|
8
|
+
hasWdt: ['WDT_SYSTEM_ORDER', 'WDT_GOODS', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_REISSUE_GOODS', 'WDT_SHOP'],
|
|
9
9
|
hasBsE3: ['BS_E3_SYSTEM_ORDER', 'BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD'],
|
|
10
10
|
hasWln: ['WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD'],
|
|
11
|
-
hasGy: ['GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS']
|
|
11
|
+
hasGy: ['GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS']
|
|
12
12
|
};
|
|
13
13
|
export var orderBackMap = function orderBackMap(_ref) {
|
|
14
14
|
var templateDetail = _ref.templateDetail,
|
|
@@ -56,6 +56,11 @@ var processSelect = function processSelect(getValue) {
|
|
|
56
56
|
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_select")) || select);
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
var gyPaymentMethod = function gyPaymentMethod(getValue) {
|
|
60
|
+
return function (nex, config) {
|
|
61
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_gyPaymentMethod")));
|
|
62
|
+
};
|
|
63
|
+
};
|
|
59
64
|
var processRate = function processRate(getValue) {
|
|
60
65
|
return function (nex, config) {
|
|
61
66
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_rate")), []));
|
|
@@ -92,11 +97,11 @@ var processBuyerNickInput = function processBuyerNickInput(getValue) {
|
|
|
92
97
|
};
|
|
93
98
|
var processAliPayInput = function processAliPayInput(getValue) {
|
|
94
99
|
return function (nex, config) {
|
|
95
|
-
var
|
|
96
|
-
return
|
|
100
|
+
var _ref11;
|
|
101
|
+
return _ref11 = {}, _defineProperty(_ref11, nex.uniqueKey, {
|
|
97
102
|
name: getValue("".concat(nex.uniqueKey, "_alipayName")),
|
|
98
103
|
user: getValue("".concat(nex.uniqueKey, "_alipayAccount"))
|
|
99
|
-
}), _defineProperty(
|
|
104
|
+
}), _defineProperty(_ref11, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref11, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref11;
|
|
100
105
|
};
|
|
101
106
|
};
|
|
102
107
|
var processCheckbox = function processCheckbox(getValue) {
|
|
@@ -199,20 +204,20 @@ var processSubForm = function processSubForm(getValue) {
|
|
|
199
204
|
};
|
|
200
205
|
var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
|
|
201
206
|
return function (nex, config) {
|
|
202
|
-
var
|
|
203
|
-
return
|
|
207
|
+
var _ref21;
|
|
208
|
+
return _ref21 = {}, _defineProperty(_ref21, nex.uniqueKey, {
|
|
204
209
|
company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
|
|
205
210
|
order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
|
|
206
|
-
}), _defineProperty(
|
|
211
|
+
}), _defineProperty(_ref21, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref21, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref21;
|
|
207
212
|
};
|
|
208
213
|
};
|
|
209
214
|
var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
|
|
210
215
|
return function (nex, config) {
|
|
211
|
-
var
|
|
212
|
-
return
|
|
216
|
+
var _ref22;
|
|
217
|
+
return _ref22 = {}, _defineProperty(_ref22, nex.uniqueKey, {
|
|
213
218
|
company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
|
|
214
219
|
order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
|
|
215
|
-
}), _defineProperty(
|
|
220
|
+
}), _defineProperty(_ref22, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref22, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref22;
|
|
216
221
|
};
|
|
217
222
|
};
|
|
218
223
|
var processRemarkInput = function processRemarkInput(getValue) {
|
|
@@ -227,25 +232,25 @@ var processRemarkInput = function processRemarkInput(getValue) {
|
|
|
227
232
|
};
|
|
228
233
|
var processStatus = function processStatus(getValue) {
|
|
229
234
|
return function (nex, config) {
|
|
230
|
-
var
|
|
235
|
+
var _ref24;
|
|
231
236
|
var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
|
|
232
|
-
return
|
|
237
|
+
return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
|
|
233
238
|
status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
|
|
234
239
|
customerService: jsonParseSecurity(customerService, customerService)
|
|
235
|
-
}), _defineProperty(
|
|
240
|
+
}), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref24;
|
|
236
241
|
};
|
|
237
242
|
};
|
|
238
243
|
var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
|
|
239
244
|
return function (nex, config) {
|
|
240
|
-
var
|
|
245
|
+
var _ref25;
|
|
241
246
|
var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
|
|
242
247
|
var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
|
|
243
248
|
var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
|
|
244
|
-
return
|
|
249
|
+
return _ref25 = {}, _defineProperty(_ref25, nex.uniqueKey, {
|
|
245
250
|
ordinaryMoney: ordinaryMoney,
|
|
246
251
|
ordinarySerial: ordinarySerial,
|
|
247
252
|
ordinaryTaitou: ordinaryTaitou
|
|
248
|
-
}), _defineProperty(
|
|
253
|
+
}), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref25;
|
|
249
254
|
};
|
|
250
255
|
};
|
|
251
256
|
var processLogisticsInterception = function processLogisticsInterception(getValue) {
|
|
@@ -302,12 +307,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
302
307
|
};
|
|
303
308
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
304
309
|
return function (nex, config) {
|
|
305
|
-
var
|
|
310
|
+
var _ref32;
|
|
306
311
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
307
312
|
var map = subFields.reduce(function (cur, nxt) {
|
|
308
313
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
309
314
|
}, {});
|
|
310
|
-
return
|
|
315
|
+
return _ref32 = {}, _defineProperty(_ref32, nex.uniqueKey, map), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref32;
|
|
311
316
|
};
|
|
312
317
|
};
|
|
313
318
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -443,6 +448,9 @@ var processErpLogistics = function processErpLogistics(getValue) {
|
|
|
443
448
|
},
|
|
444
449
|
KM_LOGISTICS: {
|
|
445
450
|
listKey: 'kmLogisticsList'
|
|
451
|
+
},
|
|
452
|
+
GY_LOGISTICS: {
|
|
453
|
+
listKey: 'gyLogisticsList'
|
|
446
454
|
}
|
|
447
455
|
};
|
|
448
456
|
var initValue = [{
|
|
@@ -927,14 +935,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
927
935
|
};
|
|
928
936
|
var processLabel = function processLabel(getValue) {
|
|
929
937
|
return function (nex, config) {
|
|
930
|
-
var
|
|
931
|
-
return
|
|
938
|
+
var _ref65;
|
|
939
|
+
return _ref65 = {}, _defineProperty(_ref65, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref65, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref65;
|
|
932
940
|
};
|
|
933
941
|
};
|
|
934
942
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
935
943
|
return function (nex, config) {
|
|
936
|
-
var
|
|
937
|
-
return
|
|
944
|
+
var _ref66;
|
|
945
|
+
return _ref66 = {}, _defineProperty(_ref66, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref66, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref66;
|
|
938
946
|
};
|
|
939
947
|
};
|
|
940
948
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -978,6 +986,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
978
986
|
NUMERICAL_CALCULATION: processNumericalCalculation,
|
|
979
987
|
TEXTAREA: processTextarea,
|
|
980
988
|
SELECT: processSelect,
|
|
989
|
+
GY_PAYMENT_METHOD: gyPaymentMethod,
|
|
981
990
|
RATE: processRate,
|
|
982
991
|
FILE: processFile,
|
|
983
992
|
POSTING: processPosting,
|
|
@@ -1031,6 +1040,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
1031
1040
|
BS_LOGISTICS: processErpLogistics,
|
|
1032
1041
|
WLN_LOGISTICS: processErpLogistics,
|
|
1033
1042
|
WDT_LOGISTICS: processErpLogistics,
|
|
1043
|
+
GY_LOGISTICS: processErpLogistics,
|
|
1034
1044
|
BS_E3_LOGISTICS: processErpLogistics,
|
|
1035
1045
|
KM_LOGISTICS: processErpLogistics,
|
|
1036
1046
|
BS_SEND_GOOD: processErpSendGood,
|
|
@@ -1097,7 +1107,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
1097
1107
|
BUSINESS_ORDER_NO: processSingleField,
|
|
1098
1108
|
PAYMENT_VOUCHER_CODE: processSingleField,
|
|
1099
1109
|
BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
|
|
1100
|
-
ACTUAL_RECEIPT_PAYMENT: processSingleField
|
|
1110
|
+
ACTUAL_RECEIPT_PAYMENT: processSingleField,
|
|
1111
|
+
WDT_SHOP: processSingleField
|
|
1101
1112
|
};
|
|
1102
1113
|
return templateColumns.reduce(function (cur, nex) {
|
|
1103
1114
|
var _componentProcessors;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __spreadArrays = this && this.__spreadArrays || function () {
|
|
4
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
5
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
|
6
|
+
return r;
|
|
7
|
+
};
|
|
8
|
+
exports.__esModule = true;
|
|
9
|
+
exports.fetchShowPayment = exports.flatWorkOrder = exports.getPlatList = exports.queryAllComponentList = void 0;
|
|
10
|
+
var request_1 = require("../servers/request");
|
|
11
|
+
// 所有组件信息
|
|
12
|
+
exports.queryAllComponentList = function (data) {
|
|
13
|
+
return request_1["default"]({
|
|
14
|
+
url: '/qy/column/header/queryConfig',
|
|
15
|
+
method: 'get',
|
|
16
|
+
data: data
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
// 平台信息
|
|
20
|
+
exports.getPlatList = function (data) {
|
|
21
|
+
return request_1["default"]({
|
|
22
|
+
url: '/qy/platform/listPlatform',
|
|
23
|
+
method: 'get',
|
|
24
|
+
data: data
|
|
25
|
+
}).then(function (res) {
|
|
26
|
+
var platType = res.data || {};
|
|
27
|
+
platType.alreadyJoinedList = platType.alreadyJoinedList || [];
|
|
28
|
+
platType.notJoinList = platType.notJoinList || [];
|
|
29
|
+
var list = __spreadArrays(platType.alreadyJoinedList, platType.notJoinList);
|
|
30
|
+
return list;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//打标
|
|
34
|
+
exports.flatWorkOrder = function (data) {
|
|
35
|
+
return request_1["default"]({
|
|
36
|
+
url: '/qy/flow/operate/flagWorkOrder',
|
|
37
|
+
method: 'post',
|
|
38
|
+
data: data
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
// 是否展示打款工单入口
|
|
42
|
+
exports.fetchShowPayment = function (data) {
|
|
43
|
+
return request_1["default"]({
|
|
44
|
+
url: '/qy/userConfig/getConfig',
|
|
45
|
+
method: 'post',
|
|
46
|
+
data: data
|
|
47
|
+
});
|
|
48
|
+
};
|