@kmkf-fe-packages/services-components 2.0.79-beta.104 → 2.0.79-beta.105
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.
|
@@ -187,7 +187,10 @@ function OrderSubForm(options) {
|
|
|
187
187
|
// this.workOrderUniqueKey = options?.workOrderUniqueKey;
|
|
188
188
|
this.rules = [{
|
|
189
189
|
validator: function validator(_, value) {
|
|
190
|
-
var _this$componentConfig8, _this$componentConfig9, _value$
|
|
190
|
+
var _value$subOrderList, _this$componentConfig8, _this$componentConfig9, _value$subOrderList2;
|
|
191
|
+
if (!(value !== null && value !== void 0 && (_value$subOrderList = value.subOrderList) !== null && _value$subOrderList !== void 0 && _value$subOrderList.length)) {
|
|
192
|
+
return Promise.reject(new Error("请填写子订单"));
|
|
193
|
+
}
|
|
191
194
|
var result = (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : (_this$componentConfig9 = _this$componentConfig8.tableHeader) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.reduce(function (prv, next) {
|
|
192
195
|
if (next.isRequired && next.isShow && !next.isEdit) {
|
|
193
196
|
prv[next.key] = "".concat(next.name, "\u5FC5\u586B");
|
|
@@ -195,7 +198,7 @@ function OrderSubForm(options) {
|
|
|
195
198
|
return prv;
|
|
196
199
|
}, {});
|
|
197
200
|
// TODO: 补充确省字段
|
|
198
|
-
var fillKeysValue = value === null || value === void 0 ? void 0 : (_value$
|
|
201
|
+
var fillKeysValue = value === null || value === void 0 ? void 0 : (_value$subOrderList2 = value.subOrderList) === null || _value$subOrderList2 === void 0 ? void 0 : _value$subOrderList2.map(function (item) {
|
|
199
202
|
var _this$componentConfig10, _this$componentConfig11;
|
|
200
203
|
var lostKeys = difference((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : (_this$componentConfig11 = _this$componentConfig10.tableHeader) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.map(function (item) {
|
|
201
204
|
return item.key;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.79-beta.
|
|
3
|
+
"version": "2.0.79-beta.105",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "9407e39f2e900d61933191ea26f963a9ea113302",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|