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.
@@ -3197,14 +3197,14 @@ var statusToColor = {
3197
3197
  'forTransfer', 'forWholesale', 'outTransit', 'unconfirmedPrice', 'reSubmitted', 'submit',
3198
3198
  'firstReview', 'Locked', 'beingUsed', 'transferLock', 'agvTransferLock', 'suspend',
3199
3199
  'collected', 'merged', 'planCared', 'toBeConfirm', 'toBePaid', 'UNRECEIVED',
3200
- '开票中', '红冲开票中', '待生效', '对账中', '可付款', '可对账',
3200
+ '开票中', '红冲开票中', '待生效', '可付款', '可对账',
3201
3201
  ],
3202
3202
  // 灰色:初始 / 未开始 / 未提交 / 线下停用 / 未读未打印
3203
3203
  '#9FA4A2': [
3204
3204
  'initial', 'INITIAL', 'INIT', 'uncommitted', 'OFF_LINE', 'UN_PRINTED', 'unpublish', 'pastpublish',
3205
3205
  'TO_COMMIT', 'unpublished', 'UNPUBLISHED', '未审核', 'returned', 'saved', 'SAVED', 'unaudited',
3206
3206
  'UN_AUDIT', 'unlock', 'free', 'unKnow', 'noSign', 'NOT_INVOICED', 'notConfirm', 'unshipped',
3207
- 'unPlanCar', 'UNREAD', 'UNSEND', '未提交', '未确认', '已保存', '未对账', '未登记', '未付款',
3207
+ 'unPlanCar', 'UNREAD', 'UNSEND', '未提交', '未确认', '已保存', '未对账', '未开票', '未收款', '未登记', '未付款',
3208
3208
  ],
3209
3209
  // 红色:删除 / 作废 / 拒绝 / 失效 / 禁用
3210
3210
  '#F5222D': [
@@ -3213,7 +3213,7 @@ var statusToColor = {
3213
3213
  '', 'canceled', 'cancelled', 'BLANK_OUT', 'complaintRejected', 'prepareRejected',
3214
3214
  'returnedBeforeAudit', 'RETURNED_BEFORE_AUDIT', 'returnedBeforeConfirm', 'handleReturned',
3215
3215
  'TAKE_DOWN', 'expired', 'paidFailed', 'submitFailed', 'exception',
3216
- '已作废', '已删除', '已失效',
3216
+ '已作废', '已删除', '已失效', '发票红冲',
3217
3217
  ],
3218
3218
  // 蓝色:已审核 / 提交后流转 / 处理中
3219
3219
  '#3B77E3': [
@@ -3236,7 +3236,7 @@ var statusToColor = {
3236
3236
  '#F05B24': [
3237
3237
  'partialReceived', 'partDelete', 'tender', 'MODIFIED_AFTER_PRINTED', '部分付款', '部分收款',
3238
3238
  'partPublished', 'partOffered', 'partInvoiced', 'partStatemented', '部分核销', 'willExpired',
3239
- 'supplierConfirmed',
3239
+ 'supplierConfirmed', '对账中',
3240
3240
  ],
3241
3241
  };
3242
3242
  var HdStatusService = /** @class */ (function () {
@@ -3981,7 +3981,7 @@ var HdFilterComponent = /** @class */ (function () {
3981
3981
  * @return {?}
3982
3982
  */
3983
3983
  function (item, index) {
3984
- formGroupList[item.name] = _this.fb.control(item.value, []);
3984
+ formGroupList[item.name] = _this.fb.control(_this.normalizeFilterControlValue(item, item.value), []);
3985
3985
  item.show = index < 7;
3986
3986
  }));
3987
3987
  this.validateFilterForm = this.fb.group(formGroupList);
@@ -4265,6 +4265,7 @@ var HdFilterComponent = /** @class */ (function () {
4265
4265
  * @return {?}
4266
4266
  */
4267
4267
  function () {
4268
+ var _this = this;
4268
4269
  /** @type {?} */
4269
4270
  var resetValue = {};
4270
4271
  this.filterList.forEach((/**
@@ -4272,7 +4273,7 @@ var HdFilterComponent = /** @class */ (function () {
4272
4273
  * @return {?}
4273
4274
  */
4274
4275
  function (item) {
4275
- resetValue[item.name] = item.value;
4276
+ resetValue[item.name] = _this.normalizeFilterControlValue(item, item.value);
4276
4277
  }));
4277
4278
  this.validateFilterForm.patchValue(resetValue);
4278
4279
  };
@@ -4938,6 +4939,32 @@ var HdFilterComponent = /** @class */ (function () {
4938
4939
  }));
4939
4940
  this.validateFilterForm.patchValue(patch);
4940
4941
  };
4942
+ /**
4943
+ * 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
4944
+ */
4945
+ /**
4946
+ * 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
4947
+ * @private
4948
+ * @param {?} filter
4949
+ * @param {?} value
4950
+ * @return {?}
4951
+ */
4952
+ HdFilterComponent.prototype.normalizeFilterControlValue = /**
4953
+ * 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
4954
+ * @private
4955
+ * @param {?} filter
4956
+ * @param {?} value
4957
+ * @return {?}
4958
+ */
4959
+ function (filter, value) {
4960
+ if (filter &&
4961
+ (filter.type === FilterListType.MultipleSelect ||
4962
+ filter.type === FilterListType.DateRange) &&
4963
+ value == null) {
4964
+ return [];
4965
+ }
4966
+ return value;
4967
+ };
4941
4968
  /**
4942
4969
  * @private
4943
4970
  * @param {?} filter
@@ -4953,7 +4980,7 @@ var HdFilterComponent = /** @class */ (function () {
4953
4980
  function (filter, value) {
4954
4981
  var _this = this;
4955
4982
  if (value == null) {
4956
- return value;
4983
+ return this.normalizeFilterControlValue(filter, value);
4957
4984
  }
4958
4985
  if (filter.type === FilterListType.DateRange) {
4959
4986
  if (Array.isArray(value)) {