@kmkf-fe-packages/services-components 0.27.1-test.0 → 0.27.1-test.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/commonComponents/CopyText/index.d.ts +7 -0
- package/dist/esm/commonComponents/CopyText/index.js +14 -0
- package/dist/esm/commonComponents/ErpContext/index.d.ts +16 -0
- package/dist/esm/commonComponents/ErpContext/index.js +68 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
- package/dist/esm/components/BS/BsLogistics/index.js +12 -7
- package/dist/esm/components/BS/BsReissue/index.js +7 -7
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
- package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
- package/dist/esm/components/BS/common/expressCompany.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +5 -2
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +261 -171
- package/dist/esm/components/CommonHeaderGood/index.js +168 -0
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +15 -26
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +23 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +169 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.less +30 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/noImage.png +0 -0
- package/dist/esm/components/ErpTradeId/index.MD +1 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -29
- package/dist/esm/components/ErpTradeId/index.js +41 -104
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +9 -5
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/JST/JstLogistics/index.js +16 -11
- package/dist/esm/components/JST/JstSendGood/index.js +8 -5
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +57 -4
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js +80 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +26 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.js +14 -3
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +108 -0
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +22 -14
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +7 -19
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +35 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +181 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +148 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -3
- package/dist/esm/index.d.ts +10 -3
- package/dist/esm/index.js +10 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +36 -16
- package/dist/esm/type.d.ts +4 -2
- package/package.json +4 -4
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { WdtReissue as Reissue } from "@kmkf-fe-packages/basic-components";
|
|
16
|
+
import { SYMBOL } from "../../../constant";
|
|
17
|
+
import { BsGoodsTable } from "../../Common/index";
|
|
18
|
+
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
19
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
var typeMap = {
|
|
21
|
+
WDT_REISSUE_GOODS: {
|
|
22
|
+
key: "wdtReissueGoods",
|
|
23
|
+
name: "旺店通",
|
|
24
|
+
typeName: "wdtReissueType",
|
|
25
|
+
remark: "wdtReissueType_memo",
|
|
26
|
+
systemOrderNo: "wdtSystemOrderNo",
|
|
27
|
+
errMsg: "请选择旺店通补发商品"
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
31
|
+
var _this = this,
|
|
32
|
+
_typeMap$options$type,
|
|
33
|
+
_typeMap$options$type2,
|
|
34
|
+
_typeMap$options$type3,
|
|
35
|
+
_typeMap$options$type4,
|
|
36
|
+
_typeMap$options$type5,
|
|
37
|
+
_this$componentConfig4;
|
|
38
|
+
_classCallCheck(this, WdtReissue);
|
|
39
|
+
_defineProperty(this, "name", void 0);
|
|
40
|
+
_defineProperty(this, "id", void 0);
|
|
41
|
+
_defineProperty(this, "sortField", void 0);
|
|
42
|
+
_defineProperty(this, "type", void 0);
|
|
43
|
+
_defineProperty(this, "rules", void 0);
|
|
44
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
45
|
+
_defineProperty(this, "effects", void 0);
|
|
46
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
47
|
+
_defineProperty(this, "formField", void 0);
|
|
48
|
+
_defineProperty(this, "canSort", void 0);
|
|
49
|
+
_defineProperty(this, "children", void 0);
|
|
50
|
+
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "bsType", void 0);
|
|
52
|
+
_defineProperty(this, "bsMemo", void 0);
|
|
53
|
+
_defineProperty(this, "systemOrderNo", void 0);
|
|
54
|
+
_defineProperty(this, "reissueGoods", void 0);
|
|
55
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
56
|
+
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
57
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
58
|
+
id: _this.id,
|
|
59
|
+
label: _this.name,
|
|
60
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
61
|
+
list: (record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id)]) === null || _record2 === void 0 ? void 0 : _record2["".concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)]) || [],
|
|
62
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || [],
|
|
63
|
+
type: _this.type
|
|
64
|
+
})
|
|
65
|
+
}) : null) : null;
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(this, "renderPc", function () {
|
|
68
|
+
return null;
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
71
|
+
var _r, _typeMap$_this$type3, _typeMap$_this$type4, _r2, _typeMap$_this$type5, _typeMap$_this$type6, _this$componentConfig2;
|
|
72
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.typeName)]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.bsType.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u4FE1\u606F:", _this.bsMemo.renderLog(r))) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.systemOrderNo)] ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7:", _this.systemOrderNo.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
73
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)]) || [],
|
|
74
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || [],
|
|
75
|
+
type: _this.type
|
|
76
|
+
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
77
|
+
});
|
|
78
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
79
|
+
var _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11, _typeMap$_this$type12;
|
|
80
|
+
var obj = {};
|
|
81
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.typeName)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.typeName)];
|
|
82
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)] = 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)];
|
|
83
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.systemOrderNo)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.systemOrderNo)];
|
|
84
|
+
return obj;
|
|
85
|
+
});
|
|
86
|
+
_defineProperty(this, "renderExport", function () {
|
|
87
|
+
return null;
|
|
88
|
+
});
|
|
89
|
+
_defineProperty(this, "editRender", function (p) {
|
|
90
|
+
var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
|
|
91
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
92
|
+
title: _this.name,
|
|
93
|
+
name: _this.id,
|
|
94
|
+
rules: _this.rules,
|
|
95
|
+
required: false,
|
|
96
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
97
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
98
|
+
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
99
|
+
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
100
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
101
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
102
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
103
|
+
width: "90%",
|
|
104
|
+
type: _this.type
|
|
105
|
+
}))
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
109
|
+
var _item$templateConfig;
|
|
110
|
+
return [{
|
|
111
|
+
searchDefaultConditions: SYMBOL.in,
|
|
112
|
+
type: item.type,
|
|
113
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
|
|
114
|
+
name: "".concat(item.name, "-\u8865\u53D1\u7C7B\u578B"),
|
|
115
|
+
filterComponentType: "Cascader",
|
|
116
|
+
props: {
|
|
117
|
+
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
118
|
+
fieldNames: {
|
|
119
|
+
label: "label",
|
|
120
|
+
value: "value",
|
|
121
|
+
children: "children"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
125
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
126
|
+
return [val[val.length - 1]];
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
filterFn: function filterFn(value) {
|
|
130
|
+
return function (i) {
|
|
131
|
+
var _typeMap$_this$type13;
|
|
132
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.typeName)), value);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
searchDefaultConditions: SYMBOL.like,
|
|
137
|
+
type: item.type,
|
|
138
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
|
|
139
|
+
name: "".concat(_this.name),
|
|
140
|
+
filterComponentType: "Input"
|
|
141
|
+
}];
|
|
142
|
+
});
|
|
143
|
+
this.name = options.name;
|
|
144
|
+
this.id = options.id;
|
|
145
|
+
this.sortField = "".concat(options.id);
|
|
146
|
+
this.formField = "".concat(options.id);
|
|
147
|
+
this.type = options.type;
|
|
148
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
149
|
+
this.isCombinationComponent = true;
|
|
150
|
+
this.canSort = false;
|
|
151
|
+
this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
152
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
|
|
153
|
+
name: "补发类型"
|
|
154
|
+
}));
|
|
155
|
+
this.systemOrderNo = new SystemOrderNo(_objectSpread(_objectSpread({}, options), {}, {
|
|
156
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.systemOrderNo),
|
|
157
|
+
name: "补发系统订单号"
|
|
158
|
+
}));
|
|
159
|
+
this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
160
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.remark),
|
|
161
|
+
name: "补发备注"
|
|
162
|
+
}));
|
|
163
|
+
this.reissueGoods = this.type === "BS_REISSUE_GOODS" ? new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
164
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key),
|
|
165
|
+
name: "商品信息"
|
|
166
|
+
})) : new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
167
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.key),
|
|
168
|
+
name: "商品信息"
|
|
169
|
+
}));
|
|
170
|
+
this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
|
|
171
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
172
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
173
|
+
required: true,
|
|
174
|
+
validator: function validator(_, value) {
|
|
175
|
+
var _value, _typeMap$options$type6;
|
|
176
|
+
if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
|
|
177
|
+
var _typeMap$options$type7;
|
|
178
|
+
return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
|
|
179
|
+
}
|
|
180
|
+
return Promise.resolve();
|
|
181
|
+
}
|
|
182
|
+
}] : [];
|
|
183
|
+
this.dataType = "object";
|
|
184
|
+
});
|
|
185
|
+
export default WdtReissue;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BsType } from "../../BS/common/index";
|
|
4
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
5
|
+
declare class WdtReturn implements ComponentInterface {
|
|
6
|
+
name: string;
|
|
7
|
+
id: string;
|
|
8
|
+
sortField: string;
|
|
9
|
+
type: string;
|
|
10
|
+
rules: any[];
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
effects: ComponentInterface["effects"];
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
wdtType: BsType;
|
|
19
|
+
reissueGoods: CommonHeaderGoods;
|
|
20
|
+
constructor(options: PickOption);
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: () => null;
|
|
23
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
renderExport: () => null;
|
|
26
|
+
editRender: (p: any) => React.JSX.Element;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
28
|
+
searchDefaultConditions: "in";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Cascader";
|
|
33
|
+
props: {
|
|
34
|
+
options: any[] | undefined;
|
|
35
|
+
fieldNames: {
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
children: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
42
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
43
|
+
} | {
|
|
44
|
+
searchDefaultConditions: "like";
|
|
45
|
+
type: string;
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
filterComponentType: "Input";
|
|
49
|
+
props?: undefined;
|
|
50
|
+
formatFilterValue?: undefined;
|
|
51
|
+
filterFn?: undefined;
|
|
52
|
+
})[];
|
|
53
|
+
}
|
|
54
|
+
export default WdtReturn;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { SYMBOL } from "../../../constant";
|
|
16
|
+
import { BsGoodsTable } from "../../Common";
|
|
17
|
+
import { BsType } from "../../BS/common/index";
|
|
18
|
+
import { CommonReturnGoods } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
|
|
21
|
+
var _this = this,
|
|
22
|
+
_this$componentConfig4;
|
|
23
|
+
_classCallCheck(this, WdtReturn);
|
|
24
|
+
_defineProperty(this, "name", void 0);
|
|
25
|
+
_defineProperty(this, "id", void 0);
|
|
26
|
+
_defineProperty(this, "sortField", void 0);
|
|
27
|
+
_defineProperty(this, "type", void 0);
|
|
28
|
+
_defineProperty(this, "rules", void 0);
|
|
29
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
30
|
+
_defineProperty(this, "effects", void 0);
|
|
31
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
|
+
_defineProperty(this, "formField", void 0);
|
|
33
|
+
_defineProperty(this, "canSort", void 0);
|
|
34
|
+
_defineProperty(this, "children", void 0);
|
|
35
|
+
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "wdtType", void 0);
|
|
37
|
+
_defineProperty(this, "reissueGoods", void 0);
|
|
38
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
39
|
+
var _this$componentConfig;
|
|
40
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.wdtType.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].wdtReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
41
|
+
id: _this.id,
|
|
42
|
+
label: _this.name,
|
|
43
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
44
|
+
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)].wdtReturnGoods) || [],
|
|
45
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
46
|
+
})
|
|
47
|
+
}) : null) : null;
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "renderPc", function () {
|
|
50
|
+
return null;
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
53
|
+
var _r, _r2, _this$componentConfig2;
|
|
54
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_wdtReturnType")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.wdtType.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_wdtReturnGoods")]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtReturnGoods")]) || [],
|
|
56
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
57
|
+
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtReturnGoods")];
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "renderExport", function () {
|
|
63
|
+
return null;
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "editRender", function (p) {
|
|
66
|
+
var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
|
|
67
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
68
|
+
title: _this.name,
|
|
69
|
+
name: _this.id,
|
|
70
|
+
rules: _this.rules,
|
|
71
|
+
required: false,
|
|
72
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
73
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
74
|
+
component: /*#__PURE__*/React.createElement(CommonReturnGoods, _extends({}, _this.componentConfig, {
|
|
75
|
+
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
76
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
77
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
78
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
79
|
+
type: "WDT_RETURN_GOODS",
|
|
80
|
+
width: "90%"
|
|
81
|
+
}))
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
85
|
+
var _item$templateConfig;
|
|
86
|
+
return [{
|
|
87
|
+
searchDefaultConditions: SYMBOL.in,
|
|
88
|
+
type: item.type,
|
|
89
|
+
id: "".concat(item.id, "_wdtReturnType"),
|
|
90
|
+
name: "".concat(item.name, "-\u9000\u8D27\u7C7B\u578B"),
|
|
91
|
+
filterComponentType: "Cascader",
|
|
92
|
+
props: {
|
|
93
|
+
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
94
|
+
fieldNames: {
|
|
95
|
+
label: "label",
|
|
96
|
+
value: "value",
|
|
97
|
+
children: "children"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
101
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
102
|
+
return [val[val.length - 1]];
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
filterFn: function filterFn(value) {
|
|
106
|
+
return function (i) {
|
|
107
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "wdtReturnType"), value);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
searchDefaultConditions: SYMBOL.like,
|
|
112
|
+
type: item.type,
|
|
113
|
+
id: "".concat(item.id, "_wdtReturnGoods"),
|
|
114
|
+
name: "".concat(_this.name),
|
|
115
|
+
filterComponentType: "Input"
|
|
116
|
+
}];
|
|
117
|
+
});
|
|
118
|
+
this.name = options.name;
|
|
119
|
+
this.id = options.id;
|
|
120
|
+
this.sortField = "".concat(options.id);
|
|
121
|
+
this.formField = "".concat(options.id);
|
|
122
|
+
this.type = options.type;
|
|
123
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
124
|
+
this.isCombinationComponent = true;
|
|
125
|
+
this.canSort = false;
|
|
126
|
+
this.wdtType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
127
|
+
id: "".concat(options.id, "_wdtReturnType"),
|
|
128
|
+
name: "退货类型"
|
|
129
|
+
}));
|
|
130
|
+
this.reissueGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
131
|
+
id: "".concat(options.id, "_wdtReturnGoods"),
|
|
132
|
+
name: "商品信息"
|
|
133
|
+
}));
|
|
134
|
+
this.children = [this.wdtType, this.reissueGoods];
|
|
135
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
136
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
137
|
+
required: true,
|
|
138
|
+
validator: function validator(_, value) {
|
|
139
|
+
var _value$wdtReturnGoods;
|
|
140
|
+
if (!value || !(value !== null && value !== void 0 && (_value$wdtReturnGoods = value.wdtReturnGoods) !== null && _value$wdtReturnGoods !== void 0 && _value$wdtReturnGoods.length)) {
|
|
141
|
+
return Promise.reject(new Error("请选择wdt退货商品"));
|
|
142
|
+
}
|
|
143
|
+
return Promise.resolve();
|
|
144
|
+
}
|
|
145
|
+
}] : [];
|
|
146
|
+
this.dataType = "object";
|
|
147
|
+
});
|
|
148
|
+
export default WdtReturn;
|
|
@@ -6,15 +6,14 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface['dataType'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
|
-
copyHandle: (text: string) => void;
|
|
18
17
|
renderPc: (value: any, record: any) => React.JSX.Element;
|
|
19
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
19
|
getComponentValue: (r: Record) => any;
|
|
@@ -7,13 +7,11 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { message } from 'antd';
|
|
11
|
-
import { CopyOutlined } from '@ant-design/icons';
|
|
12
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
12
|
import GetFormItem from "../GetFormItem";
|
|
15
|
-
import copy from 'copy-to-clipboard';
|
|
16
13
|
import { SYMBOL } from "../../constant";
|
|
14
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
17
15
|
var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
18
16
|
var _this = this;
|
|
19
17
|
_classCallCheck(this, WorkOrderId);
|
|
@@ -29,25 +27,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
29
27
|
_defineProperty(this, "canSort", void 0);
|
|
30
28
|
_defineProperty(this, "children", void 0);
|
|
31
29
|
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "copyHandle", function (text) {
|
|
33
|
-
copy(text);
|
|
34
|
-
message.success('复制成功');
|
|
35
|
-
});
|
|
36
30
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
31
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
38
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
39
33
|
}
|
|
40
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
e.stopPropagation();
|
|
44
|
-
}
|
|
45
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
46
|
-
style: {
|
|
47
|
-
paddingLeft: '4px',
|
|
48
|
-
cursor: 'pointer'
|
|
49
|
-
}
|
|
50
|
-
}, /*#__PURE__*/React.createElement(CopyOutlined, null))));
|
|
34
|
+
return /*#__PURE__*/React.createElement(CopyText, {
|
|
35
|
+
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
|
|
36
|
+
});
|
|
51
37
|
});
|
|
52
38
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
39
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, WdtReissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => AliPay | JstSendGood | LogisticsInterception | WdtExchange | WdtReissue | WdtReturn | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | CommonInput | PaymentVoucherCode;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, WdtReissue } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -30,6 +30,7 @@ export var factory = function factory(type, options) {
|
|
|
30
30
|
return new BasicDataTime(options);
|
|
31
31
|
case "SELECT":
|
|
32
32
|
case "BUYER_MESSAGE_NOTICE":
|
|
33
|
+
case "NEW_PAYMENT_STATUS":
|
|
33
34
|
return new BasicSelect(options);
|
|
34
35
|
case "PICTURE":
|
|
35
36
|
return new BasicPicture(options);
|
|
@@ -140,11 +141,16 @@ export var factory = function factory(type, options) {
|
|
|
140
141
|
return new BsGoods(options);
|
|
141
142
|
case "BS_EXCHANGE_GOODS":
|
|
142
143
|
return new BsExchange(options);
|
|
144
|
+
case "WDT_EXCHANGE_GOODS":
|
|
145
|
+
return new WdtExchange(options);
|
|
143
146
|
case "BS_REISSUE_GOODS":
|
|
144
|
-
case "WDT_REISSUE_GOODS":
|
|
145
147
|
return new BsReissue(options);
|
|
148
|
+
case "WDT_REISSUE_GOODS":
|
|
149
|
+
return new WdtReissue(options);
|
|
146
150
|
case "BS_RETURN_GOODS":
|
|
147
151
|
return new BsReturn(options);
|
|
152
|
+
case "WDT_RETURN_GOODS":
|
|
153
|
+
return new WdtReturn(options);
|
|
148
154
|
case "REISSUE_TRADE_ID":
|
|
149
155
|
case "BS_DELIVERY_NO":
|
|
150
156
|
case "RETURN_GOODS_TRADE_ID":
|
|
@@ -195,9 +201,13 @@ export var factory = function factory(type, options) {
|
|
|
195
201
|
return new CommonDataTime(options);
|
|
196
202
|
case "FLOW_UPDATE_DATETIME":
|
|
197
203
|
return new CommonDataTime(options);
|
|
198
|
-
case
|
|
204
|
+
case "WDT_GOODS":
|
|
199
205
|
// 万里牛商品
|
|
200
206
|
return new WdtGoods(options);
|
|
207
|
+
case "BUSINESS_ORDER_NO":
|
|
208
|
+
return new CommonInput(options);
|
|
209
|
+
case "PAYMENT_VOUCHER_CODE":
|
|
210
|
+
return new PaymentVoucherCode(options);
|
|
201
211
|
default:
|
|
202
212
|
return new BasicInput(options);
|
|
203
213
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,10 +70,16 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
-
export { default as NodeInput } from
|
|
74
|
-
export { default as FlowWorkOrderStatus } from
|
|
75
|
-
export { default as MsgStatus } from
|
|
73
|
+
export { default as NodeInput } from "./components/NodeInput";
|
|
74
|
+
export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
|
|
75
|
+
export { default as MsgStatus } from "./components/MsgStatus";
|
|
76
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
|
+
export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
78
|
+
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
79
|
+
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
80
|
+
export { default as CommonInput } from "./components/CommonInput";
|
|
81
|
+
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
82
|
+
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
77
83
|
export { factory } from "./factory";
|
|
78
84
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
79
85
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
|
@@ -82,3 +88,4 @@ export { default as ShopList } from "./commonComponents/ShopList";
|
|
|
82
88
|
export { default as OperationLog } from "./commonComponents/OperationLog";
|
|
83
89
|
export { default as GetFormItem } from "./components/GetFormItem";
|
|
84
90
|
export { default as Global } from "./commonComponents/GlobalContext";
|
|
91
|
+
export * as ErpScenes from "./commonComponents/ErpContext";
|
package/dist/esm/index.js
CHANGED
|
@@ -74,6 +74,13 @@ export { default as NodeInput } from "./components/NodeInput";
|
|
|
74
74
|
export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
|
|
75
75
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
76
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
|
+
export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
78
|
+
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
79
|
+
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
80
|
+
export { default as CommonInput } from "./components/CommonInput";
|
|
81
|
+
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
82
|
+
// TODO: ERP 打款工单使用
|
|
83
|
+
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
77
84
|
export { factory } from "./factory";
|
|
78
85
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
79
86
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
|
@@ -81,4 +88,6 @@ export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
|
|
81
88
|
export { default as ShopList } from "./commonComponents/ShopList";
|
|
82
89
|
export { default as OperationLog } from "./commonComponents/OperationLog";
|
|
83
90
|
export { default as GetFormItem } from "./components/GetFormItem";
|
|
84
|
-
export { default as Global } from "./commonComponents/GlobalContext";
|
|
91
|
+
export { default as Global } from "./commonComponents/GlobalContext";
|
|
92
|
+
import * as _ErpScenes from "./commonComponents/ErpContext";
|
|
93
|
+
export { _ErpScenes as ErpScenes };
|
|
@@ -6,3 +6,6 @@ export declare const queryPlatData: () => Promise<void>;
|
|
|
6
6
|
export declare const queryExpressInterceptData: () => Promise<void>;
|
|
7
7
|
export declare const queryLogisticsAddressData: () => Promise<void>;
|
|
8
8
|
export declare const queryAllLogisticsCompany: () => Promise<void>;
|
|
9
|
+
export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
10
|
+
export declare const queryWdtSendData: () => Promise<void>;
|
|
11
|
+
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|