fantasy-ngzorro 2.2.30 → 2.2.32

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/README.md CHANGED
@@ -32,6 +32,8 @@
32
32
 
33
33
  | 更新人 | 更新时间 | 更新内容 |
34
34
  | ------ | -------- | -------- |
35
+ | — | 2026-10-29 | `hd-filter`:MultipleSelect / DateRange 空值规范为 `[]`,避免 FormControl 为 null 时不显示 placeholder(筛选组回填场景)(2.2.32) |
36
+ | — | 2026-10-29 | `hd-status`:补充客户对账明细开票/收款状态色(未开票、未收款为灰;对账中改橙;发票红冲为红)(2.2.31) |
35
37
  | — | 2026-10-28 | `hd-table`:列设置按钮尺寸恢复 32×32(2.2.30) |
36
38
  | — | 2026-10-28 | `hd-table`:列设置按钮尺寸改为 38×38(2.2.29) |
37
39
  | — | 2026-10-27 | `hd-form-lines`:工具栏左侧按钮去掉 margin 与 gap 叠加,间距恢复为 12px(2.2.28) |
@@ -3401,14 +3401,14 @@
3401
3401
  'forTransfer', 'forWholesale', 'outTransit', 'unconfirmedPrice', 'reSubmitted', 'submit',
3402
3402
  'firstReview', 'Locked', 'beingUsed', 'transferLock', 'agvTransferLock', 'suspend',
3403
3403
  'collected', 'merged', 'planCared', 'toBeConfirm', 'toBePaid', 'UNRECEIVED',
3404
- '开票中', '红冲开票中', '待生效', '对账中', '可付款', '可对账',
3404
+ '开票中', '红冲开票中', '待生效', '可付款', '可对账',
3405
3405
  ],
3406
3406
  // 灰色:初始 / 未开始 / 未提交 / 线下停用 / 未读未打印
3407
3407
  '#9FA4A2': [
3408
3408
  'initial', 'INITIAL', 'INIT', 'uncommitted', 'OFF_LINE', 'UN_PRINTED', 'unpublish', 'pastpublish',
3409
3409
  'TO_COMMIT', 'unpublished', 'UNPUBLISHED', '未审核', 'returned', 'saved', 'SAVED', 'unaudited',
3410
3410
  'UN_AUDIT', 'unlock', 'free', 'unKnow', 'noSign', 'NOT_INVOICED', 'notConfirm', 'unshipped',
3411
- 'unPlanCar', 'UNREAD', 'UNSEND', '未提交', '未确认', '已保存', '未对账', '未登记', '未付款',
3411
+ 'unPlanCar', 'UNREAD', 'UNSEND', '未提交', '未确认', '已保存', '未对账', '未开票', '未收款', '未登记', '未付款',
3412
3412
  ],
3413
3413
  // 红色:删除 / 作废 / 拒绝 / 失效 / 禁用
3414
3414
  '#F5222D': [
@@ -3417,7 +3417,7 @@
3417
3417
  '', 'canceled', 'cancelled', 'BLANK_OUT', 'complaintRejected', 'prepareRejected',
3418
3418
  'returnedBeforeAudit', 'RETURNED_BEFORE_AUDIT', 'returnedBeforeConfirm', 'handleReturned',
3419
3419
  'TAKE_DOWN', 'expired', 'paidFailed', 'submitFailed', 'exception',
3420
- '已作废', '已删除', '已失效',
3420
+ '已作废', '已删除', '已失效', '发票红冲',
3421
3421
  ],
3422
3422
  // 蓝色:已审核 / 提交后流转 / 处理中
3423
3423
  '#3B77E3': [
@@ -3440,7 +3440,7 @@
3440
3440
  '#F05B24': [
3441
3441
  'partialReceived', 'partDelete', 'tender', 'MODIFIED_AFTER_PRINTED', '部分付款', '部分收款',
3442
3442
  'partPublished', 'partOffered', 'partInvoiced', 'partStatemented', '部分核销', 'willExpired',
3443
- 'supplierConfirmed',
3443
+ 'supplierConfirmed', '对账中',
3444
3444
  ],
3445
3445
  };
3446
3446
  var HdStatusService = /** @class */ (function () {
@@ -4185,7 +4185,7 @@
4185
4185
  * @return {?}
4186
4186
  */
4187
4187
  function (item, index) {
4188
- formGroupList[item.name] = _this.fb.control(item.value, []);
4188
+ formGroupList[item.name] = _this.fb.control(_this.normalizeFilterControlValue(item, item.value), []);
4189
4189
  item.show = index < 7;
4190
4190
  }));
4191
4191
  this.validateFilterForm = this.fb.group(formGroupList);
@@ -4469,6 +4469,7 @@
4469
4469
  * @return {?}
4470
4470
  */
4471
4471
  function () {
4472
+ var _this = this;
4472
4473
  /** @type {?} */
4473
4474
  var resetValue = {};
4474
4475
  this.filterList.forEach((/**
@@ -4476,7 +4477,7 @@
4476
4477
  * @return {?}
4477
4478
  */
4478
4479
  function (item) {
4479
- resetValue[item.name] = item.value;
4480
+ resetValue[item.name] = _this.normalizeFilterControlValue(item, item.value);
4480
4481
  }));
4481
4482
  this.validateFilterForm.patchValue(resetValue);
4482
4483
  };
@@ -5142,6 +5143,32 @@
5142
5143
  }));
5143
5144
  this.validateFilterForm.patchValue(patch);
5144
5145
  };
5146
+ /**
5147
+ * 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
5148
+ */
5149
+ /**
5150
+ * 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
5151
+ * @private
5152
+ * @param {?} filter
5153
+ * @param {?} value
5154
+ * @return {?}
5155
+ */
5156
+ HdFilterComponent.prototype.normalizeFilterControlValue = /**
5157
+ * 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
5158
+ * @private
5159
+ * @param {?} filter
5160
+ * @param {?} value
5161
+ * @return {?}
5162
+ */
5163
+ function (filter, value) {
5164
+ if (filter &&
5165
+ (filter.type === FilterListType.MultipleSelect ||
5166
+ filter.type === FilterListType.DateRange) &&
5167
+ value == null) {
5168
+ return [];
5169
+ }
5170
+ return value;
5171
+ };
5145
5172
  /**
5146
5173
  * @private
5147
5174
  * @param {?} filter
@@ -5157,7 +5184,7 @@
5157
5184
  function (filter, value) {
5158
5185
  var _this = this;
5159
5186
  if (value == null) {
5160
- return value;
5187
+ return this.normalizeFilterControlValue(filter, value);
5161
5188
  }
5162
5189
  if (filter.type === FilterListType.DateRange) {
5163
5190
  if (Array.isArray(value)) {