kmkf-work-order-service-component 0.4.11 → 0.4.13-alpha.1
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/FormRender/index.js +42 -7
- package/dist/esm/FormRender/index.less +1 -1
- package/dist/esm/SingleShopWorkOrder/components/Card/index.less +1 -1
- package/dist/esm/SingleShopWorkOrder/components/CustomizeFormModal/index.js +4 -4
- package/dist/esm/SingleShopWorkOrder/components/CustomizeFormModal/index.less +1 -1
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/CustomizeWorkOrderCard/index.js +40 -3
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/CustomizeWorkOrderCard/index.less +1 -1
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/RecordLog/index.js +2 -2
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/RepeatWorkOrderListModal/index.d.ts +4 -0
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/RepeatWorkOrderListModal/index.js +168 -0
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/RepeatWorkOrderListModal/index.less +30 -0
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/index.js +9 -3
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/PaymentWorkOrderCard/index.js +62 -13
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/PaymentWorkOrderCard/index.less +5 -0
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/RepeatWorkOrderListModal/index.d.ts +4 -0
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/RepeatWorkOrderListModal/index.js +49 -0
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/RepeatWorkOrderListModal/index.less +21 -0
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/index.js +4 -2
- package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.d.ts +3 -1
- package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.js +48 -10
- package/dist/esm/WorkOrder/components/Widget/index.d.ts +5 -1
- package/dist/esm/WorkOrder/components/Widget/index.js +16 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstItemSelect/index.d.ts +17 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstItemSelect/index.js +129 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstLogistics/index.d.ts +14 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstLogistics/index.js +121 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstSendGood/index.d.ts +14 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstSendGood/index.js +129 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstSupply/index.d.ts +14 -0
- package/dist/esm/WorkOrder/components/Widget/jst/JstSupply/index.js +117 -0
- package/dist/esm/assets/repeat.png +0 -0
- package/dist/esm/common/utils/express.d.ts +1 -0
- package/dist/esm/common/utils/express.js +7 -1
- package/dist/esm/common/utils/tools.d.ts +5 -1
- package/dist/esm/common/utils/tools.js +431 -181
- package/dist/esm/model/customizeWorkOrder/index.d.ts +2 -2
- package/dist/esm/model/customizeWorkOrder/index.js +18 -5
- package/dist/esm/model/customizeWorkOrder/selector.d.ts +24 -0
- package/dist/esm/model/customizeWorkOrder/selector.js +6 -0
- package/dist/esm/model/customizeWorkOrder/types.d.ts +11 -0
- package/dist/esm/model/paymentWorkOrder/index.d.ts +1 -1
- package/dist/esm/model/paymentWorkOrder/index.js +16 -3
- package/dist/esm/model/paymentWorkOrder/selector.d.ts +31 -0
- package/dist/esm/model/paymentWorkOrder/selector.js +6 -0
- package/dist/esm/model/paymentWorkOrder/types.d.ts +2 -0
- package/dist/esm/model/servers/api.d.ts +2 -0
- package/dist/esm/model/servers/api.js +16 -0
- package/dist/esm/model/workOrder.js +5 -4
- package/package.json +2 -2
@@ -0,0 +1,129 @@
|
|
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
|
+
|
3
|
+
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); }
|
4
|
+
|
5
|
+
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; }
|
6
|
+
|
7
|
+
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; }
|
8
|
+
|
9
|
+
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, descriptor.key, descriptor); } }
|
10
|
+
|
11
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
12
|
+
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14
|
+
|
15
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
16
|
+
|
17
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
18
|
+
|
19
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
20
|
+
|
21
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
22
|
+
|
23
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
24
|
+
|
25
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
26
|
+
|
27
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
28
|
+
|
29
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
30
|
+
|
31
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
32
|
+
|
33
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
34
|
+
|
35
|
+
import React from 'react';
|
36
|
+
import BasicComponent from "../../BasicComponent";
|
37
|
+
import { getFormItem, JstGoodImage } from "../../common/formItemWrap";
|
38
|
+
import { JstGoods } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
39
|
+
|
40
|
+
var JstSendGood = /*#__PURE__*/function (_BasicComponent) {
|
41
|
+
_inherits(JstSendGood, _BasicComponent);
|
42
|
+
|
43
|
+
var _super = _createSuper(JstSendGood);
|
44
|
+
|
45
|
+
function JstSendGood(options) {
|
46
|
+
var _thisSuper, _this;
|
47
|
+
|
48
|
+
_classCallCheck(this, JstSendGood);
|
49
|
+
|
50
|
+
_this = _super.call(this, options);
|
51
|
+
|
52
|
+
_defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
|
53
|
+
//兼容多个商品
|
54
|
+
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
55
|
+
list: value,
|
56
|
+
type: 3
|
57
|
+
});
|
58
|
+
});
|
59
|
+
|
60
|
+
_defineProperty(_assertThisInitialized(_this), "customRules", function (config) {
|
61
|
+
return [{
|
62
|
+
required: true,
|
63
|
+
validator: function validator(_, value) {
|
64
|
+
var showField = config.showField;
|
65
|
+
|
66
|
+
if (!value || !value.length) {
|
67
|
+
return Promise.reject(new Error('请选择宝贝'));
|
68
|
+
}
|
69
|
+
|
70
|
+
var hasNo = (value || []).some(function (item) {
|
71
|
+
if (['sendName'].includes(showField)) {
|
72
|
+
return item.sendName;
|
73
|
+
} else if (['sendId'].includes(showField)) {
|
74
|
+
return item.sendId;
|
75
|
+
} else {
|
76
|
+
return item.sendId && item.sendName;
|
77
|
+
}
|
78
|
+
});
|
79
|
+
|
80
|
+
if (!hasNo) {
|
81
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u53D1\u8D27\u4ED3\u4FE1\u606F"));
|
82
|
+
}
|
83
|
+
|
84
|
+
return Promise.resolve();
|
85
|
+
}
|
86
|
+
}];
|
87
|
+
});
|
88
|
+
|
89
|
+
_defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
|
90
|
+
var _assertThisInitialize, _assertThisInitialize2;
|
91
|
+
|
92
|
+
return getFormItem(_objectSpread({
|
93
|
+
title: _this.name,
|
94
|
+
name: _this.id,
|
95
|
+
rules: (_assertThisInitialize = _assertThisInitialized(_this)) !== null && _assertThisInitialize !== void 0 && (_assertThisInitialize2 = _assertThisInitialize.componentConfig) !== null && _assertThisInitialize2 !== void 0 && _assertThisInitialize2.required ? _this.customRules(_this.componentConfig) : [],
|
96
|
+
required: false,
|
97
|
+
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
98
|
+
type: 3
|
99
|
+
}))
|
100
|
+
}, value));
|
101
|
+
});
|
102
|
+
|
103
|
+
_defineProperty(_assertThisInitialized(_this), "renderExport", function (value, record) {
|
104
|
+
return value.map(function (item) {
|
105
|
+
return "jst\u53D1\u8D27\u4ED3\u540D\u79F0:".concat(item.sendName || '', "\n jst\u53D1\u8D27\u4ED3\u7F16\u7801:").concat(item.sendId || '');
|
106
|
+
});
|
107
|
+
});
|
108
|
+
|
109
|
+
_defineProperty(_assertThisInitialized(_this), "getColumns", function () {
|
110
|
+
return _objectSpread(_objectSpread({}, _get((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(JstSendGood.prototype)), "getColumns", _thisSuper).call(_thisSuper)), {}, {
|
111
|
+
renderExport: _this.renderExport
|
112
|
+
});
|
113
|
+
});
|
114
|
+
|
115
|
+
_this.name = 'jst发货仓编码/名称';
|
116
|
+
_this.width = 340;
|
117
|
+
_this.canFilter = false;
|
118
|
+
_this.canGroup = false;
|
119
|
+
_this.canHidden = true;
|
120
|
+
_this.editable = true;
|
121
|
+
_this.dataType = 'string';
|
122
|
+
_this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
123
|
+
return _this;
|
124
|
+
}
|
125
|
+
|
126
|
+
return _createClass(JstSendGood);
|
127
|
+
}(BasicComponent);
|
128
|
+
|
129
|
+
export default JstSendGood;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import BasicComponent from '../../BasicComponent';
|
3
|
+
declare class JstSupply extends BasicComponent {
|
4
|
+
constructor(options: any);
|
5
|
+
render: (value: any, record: any) => JSX.Element;
|
6
|
+
customRules: (config: any) => {
|
7
|
+
required: boolean;
|
8
|
+
validator: (_: any, value: any) => Promise<void>;
|
9
|
+
}[];
|
10
|
+
editRender: (value: any) => JSX.Element;
|
11
|
+
renderExport: (value: any, record: any) => any;
|
12
|
+
getColumns: () => any;
|
13
|
+
}
|
14
|
+
export default JstSupply;
|
@@ -0,0 +1,117 @@
|
|
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
|
+
|
3
|
+
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); }
|
4
|
+
|
5
|
+
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; }
|
6
|
+
|
7
|
+
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; }
|
8
|
+
|
9
|
+
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, descriptor.key, descriptor); } }
|
10
|
+
|
11
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
12
|
+
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14
|
+
|
15
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
16
|
+
|
17
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
18
|
+
|
19
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
20
|
+
|
21
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
22
|
+
|
23
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
24
|
+
|
25
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
26
|
+
|
27
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
28
|
+
|
29
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
30
|
+
|
31
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
32
|
+
|
33
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
34
|
+
|
35
|
+
import React from 'react';
|
36
|
+
import BasicComponent from "../../BasicComponent";
|
37
|
+
import { getFormItem, JstGoodImage } from "../../common/formItemWrap";
|
38
|
+
import { JstGoods } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
39
|
+
|
40
|
+
var JstSupply = /*#__PURE__*/function (_BasicComponent) {
|
41
|
+
_inherits(JstSupply, _BasicComponent);
|
42
|
+
|
43
|
+
var _super = _createSuper(JstSupply);
|
44
|
+
|
45
|
+
function JstSupply(options) {
|
46
|
+
var _thisSuper, _this;
|
47
|
+
|
48
|
+
_classCallCheck(this, JstSupply);
|
49
|
+
|
50
|
+
_this = _super.call(this, options);
|
51
|
+
|
52
|
+
_defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
|
53
|
+
//兼容多个商品
|
54
|
+
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
55
|
+
list: value,
|
56
|
+
type: 2
|
57
|
+
});
|
58
|
+
});
|
59
|
+
|
60
|
+
_defineProperty(_assertThisInitialized(_this), "customRules", function (config) {
|
61
|
+
return [{
|
62
|
+
required: true,
|
63
|
+
validator: function validator(_, value) {
|
64
|
+
var hasNo = (value || []).some(function (item) {
|
65
|
+
return item.supplyId;
|
66
|
+
});
|
67
|
+
|
68
|
+
if (!hasNo) {
|
69
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u4F9B\u9500\u5546\u7F16\u7801"));
|
70
|
+
}
|
71
|
+
|
72
|
+
return Promise.resolve();
|
73
|
+
}
|
74
|
+
}];
|
75
|
+
});
|
76
|
+
|
77
|
+
_defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
|
78
|
+
var _assertThisInitialize, _assertThisInitialize2, _assertThisInitialize3;
|
79
|
+
|
80
|
+
return getFormItem(_objectSpread({
|
81
|
+
title: _this.name,
|
82
|
+
name: _this.id,
|
83
|
+
rules: (_assertThisInitialize = _assertThisInitialized(_this)) !== null && _assertThisInitialize !== void 0 && (_assertThisInitialize2 = _assertThisInitialize.componentConfig) !== null && _assertThisInitialize2 !== void 0 && _assertThisInitialize2.required ? _this.customRules((_assertThisInitialize3 = _assertThisInitialized(_this)) === null || _assertThisInitialize3 === void 0 ? void 0 : _assertThisInitialize3.componentConfig) : [],
|
84
|
+
required: false,
|
85
|
+
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
86
|
+
type: 2
|
87
|
+
}))
|
88
|
+
}, value));
|
89
|
+
});
|
90
|
+
|
91
|
+
_defineProperty(_assertThisInitialized(_this), "renderExport", function (value, record) {
|
92
|
+
return value.map(function (item) {
|
93
|
+
return "".concat(item.supplyId || '', "\n");
|
94
|
+
});
|
95
|
+
});
|
96
|
+
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "getColumns", function () {
|
98
|
+
return _objectSpread(_objectSpread({}, _get((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(JstSupply.prototype)), "getColumns", _thisSuper).call(_thisSuper)), {}, {
|
99
|
+
renderExport: _this.renderExport
|
100
|
+
});
|
101
|
+
});
|
102
|
+
|
103
|
+
_this.name = 'jst供销商编码';
|
104
|
+
_this.width = 340;
|
105
|
+
_this.canFilter = false;
|
106
|
+
_this.canGroup = false;
|
107
|
+
_this.canHidden = true;
|
108
|
+
_this.editable = true;
|
109
|
+
_this.dataType = 'string';
|
110
|
+
_this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
111
|
+
return _this;
|
112
|
+
}
|
113
|
+
|
114
|
+
return _createClass(JstSupply);
|
115
|
+
}(BasicComponent);
|
116
|
+
|
117
|
+
export default JstSupply;
|
Binary file
|
@@ -33,7 +33,13 @@ var express = {
|
|
33
33
|
var item = (this.expressData || []).filter(function (item) {
|
34
34
|
return item.value === code;
|
35
35
|
});
|
36
|
-
return item.length ? item[0].label :
|
36
|
+
return item.length ? item[0].label : code;
|
37
|
+
},
|
38
|
+
getExpressNameByName: function getExpressNameByName(name) {
|
39
|
+
var item = (this.expressData || []).filter(function (item) {
|
40
|
+
return item.label === name;
|
41
|
+
});
|
42
|
+
return item.length ? item[0].value : name;
|
37
43
|
}
|
38
44
|
};
|
39
45
|
export default express;
|
@@ -34,7 +34,7 @@ export declare const submitDataTransOldFormat: (nowData: {
|
|
34
34
|
}) => any;
|
35
35
|
export declare const filterComponent: (originDataSource?: never[]) => never[];
|
36
36
|
export declare const radioTextHandle: (radioValue: any, radioOtherValue: any) => any;
|
37
|
-
export declare const jsonParseSecurity: (value: string, securityValue:
|
37
|
+
export declare const jsonParseSecurity: (value: string, securityValue: any) => any;
|
38
38
|
export interface TemplateColumnConfig {
|
39
39
|
componentConfig: any;
|
40
40
|
enabled: boolean;
|
@@ -54,6 +54,7 @@ export interface WorkOrderDetail {
|
|
54
54
|
platform: number;
|
55
55
|
shopId: string;
|
56
56
|
shopName: string;
|
57
|
+
repeatValueList: [];
|
57
58
|
templateDetailDto: {
|
58
59
|
componentDtoList: Partial<TemplateColumnConfig>[];
|
59
60
|
[prop: string]: any;
|
@@ -78,3 +79,6 @@ export declare const getReplaceWarnValues: (templateDetail: {
|
|
78
79
|
}, keyValues: {
|
79
80
|
[x: string]: any;
|
80
81
|
}) => any;
|
82
|
+
export declare const taobaoGoodHandle: (arr: any[], type: string, config: any) => any;
|
83
|
+
export declare const HasJstHandle: (templateDetail: any) => any;
|
84
|
+
export declare const updateJSTItemListHandle: (list: any[] | undefined, type: string | undefined, config: any) => any;
|