awing-library 2.1.151-beta → 2.1.152-beta

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.
@@ -110,9 +110,7 @@ function Container() {
110
110
  {
111
111
  field: 'totalRun',
112
112
  headerName: "".concat(t('CampaignPlan.HasRun'), " (").concat(t('Common.BillingUnit'), ")"),
113
- valueGetter: function (row) {
114
- return (0, Helpers_1.formatNumber)(row.totalRun);
115
- },
113
+ type: 'number',
116
114
  width: 200,
117
115
  TableCellProps: {
118
116
  align: 'right',
@@ -186,7 +186,7 @@ function Container() {
186
186
  },
187
187
  type: 'number',
188
188
  valueGetter: function (row) {
189
- return (0, Helpers_1.formatNumber)(row.rate.toFixed(2));
189
+ return (0, Helpers_1.formatNumber)(row.rate.toFixed(2) || 0);
190
190
  },
191
191
  },
192
192
  ], rows: (0, Helpers_1.offlinePaginate)(schedules, queryInput.pageIndex, queryInput.pageSize), sortModel: sortModels, onSortModelChange: setSortModels, getRowId: function (row) {
@@ -37,7 +37,6 @@ function CompletionRateDate() {
37
37
  var _a = (0, Router_1.useParams)(), campaignId = _a.campaignId, groupId = _a.groupId, date = _a.date;
38
38
  var service = (0, Hooks_1.default)().service;
39
39
  var completionRateDateInfo = (0, recoil_1.useRecoilValue)((0, Recoils_1.detailCompletionRateDateItem)(date));
40
- console.log('completionRateDateInfo =================>', completionRateDateInfo);
41
40
  var type = (0, recoil_1.useRecoilValue)(Recoils_1.ScheduleCompletionRateTypeViewState).type;
42
41
  var schedule = (0, recoil_1.useRecoilValue)(Recoils_1.scheduleCompletionRateAtom);
43
42
  var _b = (0, react_1.useState)(true), loading = _b[0], setLoading = _b[1];
@@ -47,7 +46,6 @@ function CompletionRateDate() {
47
46
  service
48
47
  .scheduleCompletionRatesPaging((0, moment_1.default)(date, 'DD-MM-YYYY').format('YYYY-MM-DD'), (0, moment_1.default)(date, 'DD-MM-YYYY').format('YYYY-MM-DD'), campaignId, Number(groupId), 'placeId', queryInput.pageIndex, queryInput.pageSize)
49
48
  .then(function (res) {
50
- console.log('res =================>', res);
51
49
  var valueNew = (0, Utils_1.converData)((res === null || res === void 0 ? void 0 : res.items) || [], type, completionRateDateInfo === null || completionRateDateInfo === void 0 ? void 0 : completionRateDateInfo.billingUnit);
52
50
  setScheduleGroupByDate(__assign(__assign({}, res), { items: valueNew.length ? valueNew : [] }));
53
51
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.151-beta",
3
+ "version": "2.1.152-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",