fantasy-ngzorro 1.5.23 → 1.5.25
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/bundles/fantasy-ngzorro.umd.js +176 -66
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-detail-lines/hd-detail-lines.component.js +99 -33
- package/esm2015/hd-form-lines/hd-form-lines.component.js +30 -14
- package/esm2015/hd-status/hd-status.component.js +12 -13
- package/esm2015/hd-status/hd-status.service.js +4 -5
- package/esm5/hd-detail-lines/hd-detail-lines.component.js +121 -39
- package/esm5/hd-form-lines/hd-form-lines.component.js +44 -14
- package/esm5/hd-status/hd-status.component.js +11 -12
- package/esm5/hd-status/hd-status.service.js +4 -5
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +142 -62
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +177 -67
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-detail-lines/hd-detail-lines.component.d.ts +11 -3
- package/hd-form-lines/hd-form-lines.component.d.ts +5 -0
- package/package.json +1 -1
|
@@ -826,7 +826,15 @@
|
|
|
826
826
|
this.listOfAllData = [];
|
|
827
827
|
this.mapOfCheckedId = {};
|
|
828
828
|
this.mapOfCheckList = {};
|
|
829
|
-
|
|
829
|
+
/**
|
|
830
|
+
* 表格实际展示的数据(筛选结果或全量)
|
|
831
|
+
*/
|
|
832
|
+
this.displayLines = [];
|
|
833
|
+
/**
|
|
834
|
+
* 是否处于筛选状态
|
|
835
|
+
*/
|
|
836
|
+
this.isFilterData = false;
|
|
837
|
+
this.storeFormLinesData = []; // 缓存的总的列表数据
|
|
830
838
|
}
|
|
831
839
|
/**
|
|
832
840
|
* @return {?}
|
|
@@ -835,18 +843,80 @@
|
|
|
835
843
|
* @return {?}
|
|
836
844
|
*/
|
|
837
845
|
function () {
|
|
838
|
-
|
|
839
|
-
this.
|
|
846
|
+
this.syncStoreFromLinesInput();
|
|
847
|
+
this.applyDisplayFromStore();
|
|
840
848
|
this.countSelected();
|
|
841
849
|
this.calculateTotal();
|
|
842
850
|
};
|
|
843
851
|
/**
|
|
852
|
+
* @param {?} changes
|
|
844
853
|
* @return {?}
|
|
845
854
|
*/
|
|
846
855
|
HdDetailLinesComponent.prototype.ngOnChanges = /**
|
|
856
|
+
* @param {?} changes
|
|
857
|
+
* @return {?}
|
|
858
|
+
*/
|
|
859
|
+
function (changes) {
|
|
860
|
+
if (changes["lines"]) {
|
|
861
|
+
if (!this.isFilterData) {
|
|
862
|
+
this.syncStoreFromLinesInput();
|
|
863
|
+
this.displayLines = this.lines || [];
|
|
864
|
+
}
|
|
865
|
+
else if (!this.storeFormLinesData ||
|
|
866
|
+
this.storeFormLinesData.length === 0) {
|
|
867
|
+
this.syncStoreFromLinesInput();
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
this.countSelected();
|
|
871
|
+
this.calculateTotal();
|
|
872
|
+
};
|
|
873
|
+
/**
|
|
874
|
+
* @private
|
|
875
|
+
* @param {?=} source
|
|
876
|
+
* @return {?}
|
|
877
|
+
*/
|
|
878
|
+
HdDetailLinesComponent.prototype.syncStoreFromLinesInput = /**
|
|
879
|
+
* @private
|
|
880
|
+
* @param {?=} source
|
|
881
|
+
* @return {?}
|
|
882
|
+
*/
|
|
883
|
+
function (source) {
|
|
884
|
+
/** @type {?} */
|
|
885
|
+
var data = source || this.lines;
|
|
886
|
+
this.storeFormLinesData = data ? JSON.parse(JSON.stringify(data)) : [];
|
|
887
|
+
};
|
|
888
|
+
/** 未筛选时与父组件 lines 同源,避免模板内 ngModel 与父数据脱节 */
|
|
889
|
+
/**
|
|
890
|
+
* 未筛选时与父组件 lines 同源,避免模板内 ngModel 与父数据脱节
|
|
891
|
+
* @private
|
|
892
|
+
* @return {?}
|
|
893
|
+
*/
|
|
894
|
+
HdDetailLinesComponent.prototype.applyDisplayFromStore = /**
|
|
895
|
+
* 未筛选时与父组件 lines 同源,避免模板内 ngModel 与父数据脱节
|
|
896
|
+
* @private
|
|
897
|
+
* @return {?}
|
|
898
|
+
*/
|
|
899
|
+
function () {
|
|
900
|
+
if (this.lines && this.lines.length > 0) {
|
|
901
|
+
this.displayLines = this.lines;
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
this.displayLines = this.storeFormLinesData
|
|
905
|
+
? JSON.parse(JSON.stringify(this.storeFormLinesData))
|
|
906
|
+
: [];
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* @private
|
|
910
|
+
* @return {?}
|
|
911
|
+
*/
|
|
912
|
+
HdDetailLinesComponent.prototype.restoreFromStore = /**
|
|
913
|
+
* @private
|
|
847
914
|
* @return {?}
|
|
848
915
|
*/
|
|
849
916
|
function () {
|
|
917
|
+
this.isFilterData = false;
|
|
918
|
+
this.applyDisplayFromStore();
|
|
919
|
+
this.tableLoading = false;
|
|
850
920
|
this.countSelected();
|
|
851
921
|
this.calculateTotal();
|
|
852
922
|
};
|
|
@@ -862,20 +932,22 @@
|
|
|
862
932
|
*/
|
|
863
933
|
function () {
|
|
864
934
|
var _this = this;
|
|
865
|
-
|
|
935
|
+
// 清空搜索:即使当前展示为空也要能从缓存恢复(对齐 hd-form-lines)
|
|
936
|
+
if (!this.filterStr || !this.filterStr.trim()) {
|
|
937
|
+
if (!this.storeFormLinesData || this.storeFormLinesData.length < 1) {
|
|
938
|
+
return;
|
|
939
|
+
}
|
|
940
|
+
this.tableLoading = true;
|
|
941
|
+
this.restoreFromStore();
|
|
866
942
|
return;
|
|
867
943
|
}
|
|
868
|
-
this.
|
|
869
|
-
console.log("filterStr", this.filterStr);
|
|
870
|
-
// 如果没有输入搜索字符串,则显示缓存内的所有数据
|
|
871
|
-
if (!this.filterStr) {
|
|
872
|
-
this.lines = this.storeFormLinesData;
|
|
873
|
-
this.tableLoading = false;
|
|
944
|
+
if (!this.storeFormLinesData || this.storeFormLinesData.length < 1) {
|
|
874
945
|
return;
|
|
875
946
|
}
|
|
947
|
+
this.tableLoading = true;
|
|
876
948
|
/** @type {?} */
|
|
877
949
|
var filterValue = this.filterStr.trim().toLowerCase();
|
|
878
|
-
|
|
950
|
+
this.isFilterData = true;
|
|
879
951
|
/** @type {?} */
|
|
880
952
|
var filteredData = this.storeFormLinesData.filter((/**
|
|
881
953
|
* @param {?} data
|
|
@@ -883,10 +955,8 @@
|
|
|
883
955
|
*/
|
|
884
956
|
function (data) {
|
|
885
957
|
var e_1, _a, e_2, _b;
|
|
886
|
-
// 如果没有传递搜索字段,则查询所有字段是否有匹配的
|
|
887
958
|
if (!_this.searchFields || _this.searchFields.length === 0) {
|
|
888
959
|
try {
|
|
889
|
-
// 查询所有字段是否有匹配的
|
|
890
960
|
for (var _c = __values(Object.keys(data)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
891
961
|
var item = _d.value;
|
|
892
962
|
if (data[item] &&
|
|
@@ -904,28 +974,28 @@
|
|
|
904
974
|
}
|
|
905
975
|
return false;
|
|
906
976
|
}
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
return true;
|
|
914
|
-
}
|
|
977
|
+
try {
|
|
978
|
+
for (var _e = __values(_this.searchFields), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
979
|
+
var item = _f.value;
|
|
980
|
+
if (data[item] &&
|
|
981
|
+
data[item].toString().toLowerCase().includes(filterValue)) {
|
|
982
|
+
return true;
|
|
915
983
|
}
|
|
916
984
|
}
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
finally { if (e_2) throw e_2.error; }
|
|
985
|
+
}
|
|
986
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
987
|
+
finally {
|
|
988
|
+
try {
|
|
989
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
923
990
|
}
|
|
924
|
-
|
|
991
|
+
finally { if (e_2) throw e_2.error; }
|
|
925
992
|
}
|
|
993
|
+
return false;
|
|
926
994
|
}));
|
|
927
|
-
this.
|
|
995
|
+
this.displayLines = JSON.parse(JSON.stringify(filteredData));
|
|
928
996
|
this.tableLoading = false;
|
|
997
|
+
this.countSelected();
|
|
998
|
+
this.calculateTotal();
|
|
929
999
|
};
|
|
930
1000
|
/**
|
|
931
1001
|
* @private
|
|
@@ -939,9 +1009,9 @@
|
|
|
939
1009
|
var _this = this;
|
|
940
1010
|
if (this.showSelected &&
|
|
941
1011
|
this.selectedField &&
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
1012
|
+
this.displayLines &&
|
|
1013
|
+
this.displayLines.length) {
|
|
1014
|
+
this.displayLines.forEach((/**
|
|
945
1015
|
* @param {?} item
|
|
946
1016
|
* @return {?}
|
|
947
1017
|
*/
|
|
@@ -951,7 +1021,7 @@
|
|
|
951
1021
|
_this.mapOfCheckList[item[_this.selectField]] = item;
|
|
952
1022
|
}
|
|
953
1023
|
}));
|
|
954
|
-
if (this.
|
|
1024
|
+
if (this.displayLines.length === Object.keys(this.mapOfCheckList).length) {
|
|
955
1025
|
this.isAllDisplayDataChecked = true;
|
|
956
1026
|
this.isIndeterminate = true;
|
|
957
1027
|
}
|
|
@@ -976,9 +1046,11 @@
|
|
|
976
1046
|
* @return {?}
|
|
977
1047
|
*/
|
|
978
1048
|
function (event) {
|
|
979
|
-
dragDrop.moveItemInArray(this.
|
|
980
|
-
|
|
981
|
-
|
|
1049
|
+
dragDrop.moveItemInArray(this.displayLines, event.previousIndex, event.currentIndex);
|
|
1050
|
+
this.displayLines = JSON.parse(JSON.stringify(this.displayLines));
|
|
1051
|
+
if (!this.isFilterData) {
|
|
1052
|
+
this.storeFormLinesData = JSON.parse(JSON.stringify(this.displayLines));
|
|
1053
|
+
}
|
|
982
1054
|
};
|
|
983
1055
|
/**
|
|
984
1056
|
* @return {?}
|
|
@@ -989,7 +1061,7 @@
|
|
|
989
1061
|
function () {
|
|
990
1062
|
var _this = this;
|
|
991
1063
|
// 这里处理合计数据
|
|
992
|
-
if (this.showTotal && this.
|
|
1064
|
+
if (this.showTotal && this.displayLines && this.displayLines.length) {
|
|
993
1065
|
this.totalOptionList = new Array(Number(this.columnsNumber) - 1).fill("");
|
|
994
1066
|
this.totalOption.forEach((/**
|
|
995
1067
|
* @param {?} item
|
|
@@ -1104,7 +1176,7 @@
|
|
|
1104
1176
|
HdDetailLinesComponent.decorators = [
|
|
1105
1177
|
{ type: core.Component, args: [{
|
|
1106
1178
|
selector: "hd-detail-lines",
|
|
1107
|
-
template: "<ng-container>\n <hd-button-group *ngIf=\"showSearch\">\n <ng-template #buttonGroupLeft>\n <nz-input-group [nzSuffix]=\"suffixIconSearch\">\n <input type=\"text\" nz-input (keyup.enter)=\"searchLines()\" placeholder=\"\u8BF7\u8F93\u5165\u5185\u5BB9\u641C\u7D22\" style=\"width: 300px;\"\n [(ngModel)]=\"filterStr\" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType=\"search\" (click)=\"searchLines()\"></i>\n </ng-template>\n </ng-template>\n </hd-button-group>\n\n <hd-space *ngIf=\"showSearch\" background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n\n <nz-table #hdTable [nzScroll]=\"scroll\" class=\"hd-table-container\" nzShowSizeChanger\n [nzFrontPagination]=\"hdFrontPagination\" [nzShowQuickJumper]=\"hdFrontPagination\" [nzShowTotal]=\"tableTotalTemplate\"\n nzSize=\"middle\" [nzData]=\"
|
|
1179
|
+
template: "<ng-container>\n <hd-button-group *ngIf=\"showSearch\">\n <ng-template #buttonGroupLeft>\n <nz-input-group [nzSuffix]=\"suffixIconSearch\">\n <input type=\"text\" nz-input (keyup.enter)=\"searchLines()\" placeholder=\"\u8BF7\u8F93\u5165\u5185\u5BB9\u641C\u7D22\" style=\"width: 300px;\"\n [(ngModel)]=\"filterStr\" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType=\"search\" (click)=\"searchLines()\"></i>\n </ng-template>\n </ng-template>\n </hd-button-group>\n\n <hd-space *ngIf=\"showSearch\" background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n\n <nz-table #hdTable [nzScroll]=\"scroll\" class=\"hd-table-container\" nzShowSizeChanger\n [nzFrontPagination]=\"hdFrontPagination\" [nzShowQuickJumper]=\"hdFrontPagination\" [nzShowTotal]=\"tableTotalTemplate\"\n nzSize=\"middle\" [nzData]=\"displayLines\" [nzLoading]=\"tableLoading\" [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\"\n (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\">\n <thead>\n <tr>\n <th *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngTemplateOutlet=\"detailLineHead\"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf=\"!allowDrop;else allowDropTemplate\">\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td *ngIf=\"showSelected\"></td>\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td *ngIf=\"!totalOption.isHide\" [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <tr *ngFor=\"let data of hdTable.data;index as i\" cdkDrag>\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td *ngIf=\"showSelected\"></td>\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td *ngIf=\"!totalOption.isHide\" [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{\n (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n <ng-template #tableTotalTemplate>\n \u5171 {{displayLines.length}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>\n",
|
|
1108
1180
|
styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}"]
|
|
1109
1181
|
}] }
|
|
1110
1182
|
];
|
|
@@ -1202,6 +1274,16 @@
|
|
|
1202
1274
|
HdDetailLinesComponent.prototype.mapOfCheckList;
|
|
1203
1275
|
/** @type {?} */
|
|
1204
1276
|
HdDetailLinesComponent.prototype.filterStr;
|
|
1277
|
+
/**
|
|
1278
|
+
* 表格实际展示的数据(筛选结果或全量)
|
|
1279
|
+
* @type {?}
|
|
1280
|
+
*/
|
|
1281
|
+
HdDetailLinesComponent.prototype.displayLines;
|
|
1282
|
+
/**
|
|
1283
|
+
* 是否处于筛选状态
|
|
1284
|
+
* @type {?}
|
|
1285
|
+
*/
|
|
1286
|
+
HdDetailLinesComponent.prototype.isFilterData;
|
|
1205
1287
|
/** @type {?} */
|
|
1206
1288
|
HdDetailLinesComponent.prototype.storeFormLinesData;
|
|
1207
1289
|
}
|
|
@@ -1244,13 +1326,12 @@
|
|
|
1244
1326
|
// 灰色
|
|
1245
1327
|
'#9FA4A2': ['initial', 'uncommitted', 'OFF_LINE', 'UN_PRINTED', 'unpublish', 'pastpublish', 'TO_COMMIT', 'unpublished', '未审核', 'returned'],
|
|
1246
1328
|
// 红色
|
|
1247
|
-
'#F5222D': ['delete', 'deleted', 'aborted', 'rejected', '停用', '禁用', 'unpicked', 'DELETED', 'AUDIT_REJECT', 'rejected'],
|
|
1329
|
+
'#F5222D': ['delete', 'deleted', 'aborted', 'rejected', '停用', '禁用', 'unpicked', 'DELETED', 'AUDIT_REJECT', 'rejected', 'invalid', 'disabled', ''],
|
|
1248
1330
|
// 蓝色
|
|
1249
|
-
'#3B77E3': ['audited', 'adjusted', 'invoiced', 'audit', 'submitted', 'TO_AUDIT', '已审核', '处理中', 'processing', 'firstReviewed'],
|
|
1331
|
+
'#3B77E3': ['audited', 'adjusted', 'invoiced', 'audit', 'submitted', 'TO_AUDIT', '已审核', '处理中', 'processing', 'firstReviewed', 'awaiting_effective'],
|
|
1250
1332
|
// 绿色
|
|
1251
1333
|
'#12A34F': ['shipped', 'received', 'checked', 'using', 'reverse', 'valid', 'approved', 'ON_LINE', 'finished', 'opened', 'PRINTED', '启用', 'picked', 'published', 'AUDITED', '已收票', '付款完成', '收款完成', '已收款', 'accepted',
|
|
1252
|
-
'offered', 'confirmed'
|
|
1253
|
-
],
|
|
1334
|
+
'offered', 'confirmed', 'effective'],
|
|
1254
1335
|
// 橙色
|
|
1255
1336
|
'#F05B24': ['partialReceived', 'partDelete', 'tender', 'MODIFIED_AFTER_PRINTED', '部分付款', '部分收款', 'partPublished']
|
|
1256
1337
|
};
|
|
@@ -2113,19 +2194,49 @@
|
|
|
2113
2194
|
for (var i = 0; i < pageLinesLength; i++) {
|
|
2114
2195
|
this.collectDomList.push(pageDomList.splice(0, interval));
|
|
2115
2196
|
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2197
|
+
this.disableInputNumberKeyboardStep();
|
|
2198
|
+
};
|
|
2199
|
+
/**
|
|
2200
|
+
* ng-zorro 8 在 input 的 onKeyDown 里用上下键调 up()/down() 改 step。
|
|
2201
|
+
* 只覆盖 onKeyDown(不动 up/down),键盘方向键交给表单跳转,+/- 按钮仍可用。
|
|
2202
|
+
*/
|
|
2203
|
+
/**
|
|
2204
|
+
* ng-zorro 8 在 input 的 onKeyDown 里用上下键调 up()/down() 改 step。
|
|
2205
|
+
* 只覆盖 onKeyDown(不动 up/down),键盘方向键交给表单跳转,+/- 按钮仍可用。
|
|
2206
|
+
* @private
|
|
2207
|
+
* @return {?}
|
|
2208
|
+
*/
|
|
2209
|
+
HdFormLinesComponent.prototype.disableInputNumberKeyboardStep = /**
|
|
2210
|
+
* ng-zorro 8 在 input 的 onKeyDown 里用上下键调 up()/down() 改 step。
|
|
2211
|
+
* 只覆盖 onKeyDown(不动 up/down),键盘方向键交给表单跳转,+/- 按钮仍可用。
|
|
2212
|
+
* @private
|
|
2213
|
+
* @return {?}
|
|
2214
|
+
*/
|
|
2215
|
+
function () {
|
|
2216
|
+
for (var i = 0; i < this.collectDomList.length; i++) {
|
|
2217
|
+
var _loop_1 = function (j) {
|
|
2218
|
+
/** @type {?} */
|
|
2219
|
+
var dom = this_1.collectDomList[i][j];
|
|
2220
|
+
if (dom instanceof ngZorroAntd.NzInputNumberComponent) {
|
|
2221
|
+
dom.onKeyDown = (/**
|
|
2222
|
+
* @param {?} e
|
|
2223
|
+
* @return {?}
|
|
2224
|
+
*/
|
|
2225
|
+
function (e) {
|
|
2226
|
+
if (e.keyCode === 38 || e.keyCode === 40) {
|
|
2227
|
+
return;
|
|
2228
|
+
}
|
|
2229
|
+
if (e.keyCode === 13) {
|
|
2230
|
+
dom.setValidateValue();
|
|
2231
|
+
}
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2234
|
+
};
|
|
2235
|
+
var this_1 = this;
|
|
2236
|
+
for (var j = 0; j < this.collectDomList[i].length; j++) {
|
|
2237
|
+
_loop_1(j);
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2129
2240
|
};
|
|
2130
2241
|
// 聚焦下一个dom
|
|
2131
2242
|
// 聚焦下一个dom
|
|
@@ -4839,21 +4950,20 @@
|
|
|
4839
4950
|
*/
|
|
4840
4951
|
function () {
|
|
4841
4952
|
/** @type {?} */
|
|
4842
|
-
var findKey =
|
|
4953
|
+
var findKey = "";
|
|
4954
|
+
/** @type {?} */
|
|
4955
|
+
var statusLower = this.status && this.status.toLowerCase();
|
|
4843
4956
|
for (var key in statusToColor) {
|
|
4844
|
-
if (
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4957
|
+
if (statusLower &&
|
|
4958
|
+
statusToColor[key].some((/**
|
|
4959
|
+
* @param {?} item
|
|
4960
|
+
* @return {?}
|
|
4961
|
+
*/
|
|
4962
|
+
function (item) { return item && item.toLowerCase() === statusLower; }))) {
|
|
4848
4963
|
findKey = key;
|
|
4849
4964
|
}
|
|
4850
4965
|
}
|
|
4851
|
-
|
|
4852
|
-
this.statusColor = findKey;
|
|
4853
|
-
}
|
|
4854
|
-
else {
|
|
4855
|
-
this.statusColor = '#9FA4A2';
|
|
4856
|
-
}
|
|
4966
|
+
this.statusColor = findKey || "#9FA4A2";
|
|
4857
4967
|
};
|
|
4858
4968
|
HdStatusComponent.decorators = [
|
|
4859
4969
|
{ type: core.Component, args: [{
|