@kmkf-fe-packages/kmkf-utils 0.7.14-alpha.0 → 0.7.14-alpha.2

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.
@@ -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 } 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
+ fromQNCreateWorkOrderByOrderNo: boolean;
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, fromQNCreateWorkOrderByOrderNo, }: OrderBackFormValuesI) => Record<string, any>;
22
23
  export default _default;
@@ -142,7 +142,9 @@ export default (function (_ref) {
142
142
  _ref$templateDetail = _ref.templateDetail,
143
143
  templateDetail = _ref$templateDetail === void 0 ? {} : _ref$templateDetail,
144
144
  _ref$type = _ref.type,
145
- type = _ref$type === void 0 ? "add" : _ref$type;
145
+ type = _ref$type === void 0 ? "add" : _ref$type,
146
+ _ref$fromQNCreateWork = _ref.fromQNCreateWorkOrderByOrderNo,
147
+ fromQNCreateWorkOrderByOrderNo = _ref$fromQNCreateWork === void 0 ? false : _ref$fromQNCreateWork;
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
- prv[uniqueKey] = {
212
- remark: detail["remark"] || "",
213
- flag: detail["flag"] ? Number(detail["flag"]) : detail["flag"]
214
- };
213
+ // 淘宝平台的备注信息不需要订单反填
214
+ if (!fromQNCreateWorkOrderByOrderNo) {
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.14-alpha.0",
3
+ "version": "0.7.14-alpha.2",
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": "678546f4f78df3f93ba9fb2d57382c81e37ea8db"
45
+ "gitHead": "e6bed88e5673c72f7cf01987a0d4aa6dc9be626a"
46
46
  }