@kmkf-fe-packages/kmkf-utils 0.7.12-alpha.10 → 0.7.12-alpha.12
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/global.d.ts
CHANGED
|
@@ -48,4 +48,13 @@ declare enum TComponentType {
|
|
|
48
48
|
,JST_ITEM_SELECT_THIRD='JST_ITEM_SELECT_THIRD'
|
|
49
49
|
,JST_SUPPLY='JST_SUPPLY'
|
|
50
50
|
,JST_SEND_GOOD='JST_SEND_GOOD'
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare enum PlatForm {
|
|
54
|
+
TB = 'tb',
|
|
55
|
+
FXG = 'fxg',
|
|
56
|
+
KS = 'ks',
|
|
57
|
+
PDD = 'pdd',
|
|
58
|
+
JD = 'jd',
|
|
59
|
+
XIAOZHI = 'xiaozhi',
|
|
60
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import TComponentType from "../global.d.ts";
|
|
1
|
+
import { TComponentType, PlatForm } from "../global.d.ts";
|
|
2
2
|
interface OrderBackFormValuesI {
|
|
3
3
|
type?: "add" | "edit";
|
|
4
4
|
templateDetail: {
|
|
@@ -17,6 +17,7 @@ interface OrderBackFormValuesI {
|
|
|
17
17
|
formValue?: Record<string, unknown>;
|
|
18
18
|
order_no?: string | null;
|
|
19
19
|
detail: Record<string, unknown>;
|
|
20
|
+
platform: PlatForm;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: ({ detail, order_no, formValue, templateDetail, type, }: OrderBackFormValuesI) => Record<string, any>;
|
|
22
|
+
declare const _default: ({ detail, order_no, formValue, templateDetail, type, platform, }: OrderBackFormValuesI) => Record<string, any>;
|
|
22
23
|
export default _default;
|
|
@@ -7,6 +7,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7
7
|
import moment from "moment";
|
|
8
8
|
import ExpressData from "../expressData";
|
|
9
9
|
import ExpressInterceptData from "../expressInterceptData";
|
|
10
|
+
import { PlatForm } from "../global.d.ts";
|
|
10
11
|
//重组聚水潭商品数据
|
|
11
12
|
var updateJSTItemListHandle = function updateJSTItemListHandle() {
|
|
12
13
|
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -142,7 +143,8 @@ export default (function (_ref) {
|
|
|
142
143
|
_ref$templateDetail = _ref.templateDetail,
|
|
143
144
|
templateDetail = _ref$templateDetail === void 0 ? {} : _ref$templateDetail,
|
|
144
145
|
_ref$type = _ref.type,
|
|
145
|
-
type = _ref$type === void 0 ? "add" : _ref$type
|
|
146
|
+
type = _ref$type === void 0 ? "add" : _ref$type,
|
|
147
|
+
platform = _ref.platform;
|
|
146
148
|
return ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
|
|
147
149
|
var uniqueKey = next.uniqueKey;
|
|
148
150
|
var config = next.componentConfig;
|
|
@@ -208,10 +210,13 @@ export default (function (_ref) {
|
|
|
208
210
|
prv[uniqueKey] = taobaoGoodHandle(detail["itemList"], next.workOrderComponentType, next.componentConfig);
|
|
209
211
|
break;
|
|
210
212
|
case "REMARK_INPUT":
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
// 淘宝平台的备注信息不需要订单反填
|
|
214
|
+
if (platform !== PlatForm.TB) {
|
|
215
|
+
prv[uniqueKey] = {
|
|
216
|
+
remark: detail["remark"] || "",
|
|
217
|
+
flag: detail["flag"] ? Number(detail["flag"]) : detail["flag"]
|
|
218
|
+
};
|
|
219
|
+
}
|
|
215
220
|
break;
|
|
216
221
|
case "ENTERPRISE_PAYMENT":
|
|
217
222
|
//编辑的时候不能修改打款信息
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "0.7.12-alpha.
|
|
3
|
+
"version": "0.7.12-alpha.12",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"gitHooks": {
|
|
43
43
|
"pre-commit": "lint-staged"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "055cebb9bdfedb597816fbc4fe29785b33e582af"
|
|
46
46
|
}
|