kmkf-work-order-service-component 0.3.4-alpha.4 → 0.3.4
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/WorkOrder/components/CustomizeWorkOrderList/components/CustomizeFormModal/index.js
CHANGED
@@ -376,10 +376,14 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
|
|
376
376
|
while (1) {
|
377
377
|
switch (_context3.prev = _context3.next) {
|
378
378
|
case 0:
|
379
|
+
_context3.next = 2;
|
380
|
+
return filterStarValues(componentValue);
|
381
|
+
|
382
|
+
case 2:
|
379
383
|
needCheckComponentList = getReplaceWarnValues(templateDetail, componentValue);
|
380
384
|
|
381
385
|
if (!needCheckComponentList.length) {
|
382
|
-
_context3.next =
|
386
|
+
_context3.next = 11;
|
383
387
|
break;
|
384
388
|
}
|
385
389
|
|
@@ -388,10 +392,10 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
|
|
388
392
|
workOrderUniqueKey: workOrderDetail === null || workOrderDetail === void 0 ? void 0 : workOrderDetail.uniqueKey,
|
389
393
|
needCheckComponentList: needCheckComponentList
|
390
394
|
};
|
391
|
-
_context3.next =
|
395
|
+
_context3.next = 7;
|
392
396
|
return replaceCheck(params);
|
393
397
|
|
394
|
-
case
|
398
|
+
case 7:
|
395
399
|
_yield$replaceCheck = _context3.sent;
|
396
400
|
resultList = _yield$replaceCheck.data.resultList;
|
397
401
|
resultParams = (resultList || []).reduce(function (prv, next) {
|
@@ -407,7 +411,7 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
|
|
407
411
|
return _objectSpread(_objectSpread({}, prev), resultParams);
|
408
412
|
});
|
409
413
|
|
410
|
-
case
|
414
|
+
case 11:
|
411
415
|
case "end":
|
412
416
|
return _context3.stop();
|
413
417
|
}
|
@@ -418,7 +422,23 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
|
|
418
422
|
return function queryReplaceCount(_x5) {
|
419
423
|
return _ref3.apply(this, arguments);
|
420
424
|
};
|
421
|
-
}();
|
425
|
+
}(); //带*参数提示清空
|
426
|
+
|
427
|
+
|
428
|
+
var filterStarValues = function filterStarValues() {
|
429
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
430
|
+
var obj = {};
|
431
|
+
Object.keys(params).forEach(function (key) {
|
432
|
+
var _params$key;
|
433
|
+
|
434
|
+
if (params[key] && ((_params$key = params[key]) === null || _params$key === void 0 ? void 0 : _params$key.indexOf('*')) > -1) {
|
435
|
+
obj[key] = 0;
|
436
|
+
}
|
437
|
+
});
|
438
|
+
setReplaceValue(function (value) {
|
439
|
+
return _objectSpread(_objectSpread({}, value), obj);
|
440
|
+
});
|
441
|
+
}; //订单返填
|
422
442
|
|
423
443
|
|
424
444
|
var changeHandle = function changeHandle(order_no) {
|