@neutron.co.id/operasional-interfaces 1.17.15 → 1.17.16
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/build/@office/common/providers/api/apiUrl.mjs +1 -1
- package/build/@office/models/personalia/attendance/AttendanceDelegate.vue +0 -13
- package/build/@office/models/personalia/attendance/AttendanceSupervisor.vue +0 -5
- package/build/mock/index.cjs +4 -10
- package/build/mock/index.mjs +4 -10
- package/build/mock/style.css +2 -2
- package/build/module.json +1 -1
- package/build/nuxt.json +1 -1
- package/package.json +4 -4
|
@@ -196,14 +196,11 @@ const officeAppUrl = computed(() => {
|
|
|
196
196
|
|
|
197
197
|
const type = ref('')
|
|
198
198
|
const showLeaveQuota = ref(true)
|
|
199
|
-
// const authStore = useAuthStore()
|
|
200
|
-
// const createdBy = authStore.userId
|
|
201
199
|
const quota = ref(0)
|
|
202
200
|
const maxDuration = ref(0)
|
|
203
201
|
const quotaTaken = ref(0)
|
|
204
202
|
|
|
205
203
|
function checkDurationLeave() {
|
|
206
|
-
console.log('cek', values.value)
|
|
207
204
|
if (!values.value.startedAt || !values.value.endedAt) {
|
|
208
205
|
return true
|
|
209
206
|
}
|
|
@@ -215,7 +212,6 @@ function checkDurationLeave() {
|
|
|
215
212
|
|
|
216
213
|
const days = Math.floor(durationMilliseconds / (1000 * 60 * 60 * 24))
|
|
217
214
|
quotaTaken.value = days
|
|
218
|
-
console.log('days', days, maxDuration.value)
|
|
219
215
|
|
|
220
216
|
if (days > maxDuration.value) return false
|
|
221
217
|
|
|
@@ -225,9 +221,6 @@ function checkDurationLeave() {
|
|
|
225
221
|
watch(
|
|
226
222
|
() => values.value,
|
|
227
223
|
async (newType) => {
|
|
228
|
-
// console.log('new', newType)
|
|
229
|
-
// console.log('new val', values.value)
|
|
230
|
-
// console.log('type', values.value.type)
|
|
231
224
|
const response = await ofetch(`${officeAppUrl.value}/getAttendanceType`, {
|
|
232
225
|
method: 'POST',
|
|
233
226
|
headers: {
|
|
@@ -237,7 +230,6 @@ watch(
|
|
|
237
230
|
id: values.value.attendanceTypeId,
|
|
238
231
|
},
|
|
239
232
|
})
|
|
240
|
-
// console.log(response)
|
|
241
233
|
type.value = response.data[0].code
|
|
242
234
|
showLeaveQuota.value = response.data[0].showLeaveQuota
|
|
243
235
|
quota.value = response.data[0].leaveQuota
|
|
@@ -251,15 +243,11 @@ const showDurationAlert = ref(false)
|
|
|
251
243
|
async function saveData() {
|
|
252
244
|
const result = await checkDurationLeave()
|
|
253
245
|
|
|
254
|
-
console.log('dur', result)
|
|
255
|
-
|
|
256
246
|
if (result == true && isLeaveStaff.value == true) {
|
|
257
247
|
showDurationAlert.value = false
|
|
258
|
-
console.log('save')
|
|
259
248
|
await saveOne()
|
|
260
249
|
} else {
|
|
261
250
|
showDurationAlert.value = true
|
|
262
|
-
console.log('error')
|
|
263
251
|
}
|
|
264
252
|
}
|
|
265
253
|
</script>
|
|
@@ -358,7 +346,6 @@ async function saveData() {
|
|
|
358
346
|
/>
|
|
359
347
|
</NeonForm>
|
|
360
348
|
</OfficeTab>
|
|
361
|
-
<!-- <AttendanceNoteTab /> -->
|
|
362
349
|
</OfficeTabs>
|
|
363
350
|
</NeonSingle>
|
|
364
351
|
</template>
|
|
@@ -193,8 +193,6 @@ function checkDurationLeave() {
|
|
|
193
193
|
watch(
|
|
194
194
|
() => values.value,
|
|
195
195
|
async (newType) => {
|
|
196
|
-
// console.log('values', values.value)
|
|
197
|
-
// console.log('initial values', initialValues.value)
|
|
198
196
|
checkDurationLeave()
|
|
199
197
|
const response = await ofetch(`${officeAppUrl.value}/getAttendanceType`, {
|
|
200
198
|
method: 'POST',
|
|
@@ -205,11 +203,8 @@ watch(
|
|
|
205
203
|
id: values.value.attendanceTypeId,
|
|
206
204
|
},
|
|
207
205
|
})
|
|
208
|
-
|
|
209
|
-
// console.log(response)
|
|
210
206
|
type.value = response.data[0]?.code
|
|
211
207
|
showLeaveQuota.value = response.data[0]?.showLeaveQuota
|
|
212
|
-
// quota.value = response.data[0]?.leaveQuota
|
|
213
208
|
maxDuration.value = response.data[0]?.maxDurationDays
|
|
214
209
|
},
|
|
215
210
|
)
|
package/build/mock/index.cjs
CHANGED
|
@@ -12988,7 +12988,7 @@ function switchUrl(subdomain, isDev) {
|
|
|
12988
12988
|
case "office":
|
|
12989
12989
|
action = "api.office.ion.neutron.neon.id";
|
|
12990
12990
|
break;
|
|
12991
|
-
case "
|
|
12991
|
+
case "kantor":
|
|
12992
12992
|
action = "api.office.holding.neutron.neon.id";
|
|
12993
12993
|
break;
|
|
12994
12994
|
case "operasional":
|
|
@@ -15173,7 +15173,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
15173
15173
|
};
|
|
15174
15174
|
}
|
|
15175
15175
|
});
|
|
15176
|
-
const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-
|
|
15176
|
+
const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-9c040f0b"]]);
|
|
15177
15177
|
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
15178
15178
|
__name: "AttendanceDelegate",
|
|
15179
15179
|
setup(__props) {
|
|
@@ -15253,7 +15253,6 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
15253
15253
|
const maxDuration = vue.ref(0);
|
|
15254
15254
|
const quotaTaken = vue.ref(0);
|
|
15255
15255
|
function checkDurationLeave() {
|
|
15256
|
-
console.log("cek", values.value);
|
|
15257
15256
|
if (!values.value.startedAt || !values.value.endedAt) {
|
|
15258
15257
|
return true;
|
|
15259
15258
|
}
|
|
@@ -15262,7 +15261,6 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
15262
15261
|
const durationMilliseconds = endedAt.getTime() - startedAt.getTime();
|
|
15263
15262
|
const days = Math.floor(durationMilliseconds / (1e3 * 60 * 60 * 24));
|
|
15264
15263
|
quotaTaken.value = days;
|
|
15265
|
-
console.log("days", days, maxDuration.value);
|
|
15266
15264
|
if (days > maxDuration.value) return false;
|
|
15267
15265
|
return true;
|
|
15268
15266
|
}
|
|
@@ -15288,14 +15286,11 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
15288
15286
|
const showDurationAlert = vue.ref(false);
|
|
15289
15287
|
async function saveData() {
|
|
15290
15288
|
const result = await checkDurationLeave();
|
|
15291
|
-
console.log("dur", result);
|
|
15292
15289
|
if (result == true && isLeaveStaff.value == true) {
|
|
15293
15290
|
showDurationAlert.value = false;
|
|
15294
|
-
console.log("save");
|
|
15295
15291
|
await saveOne();
|
|
15296
15292
|
} else {
|
|
15297
15293
|
showDurationAlert.value = true;
|
|
15298
|
-
console.log("error");
|
|
15299
15294
|
}
|
|
15300
15295
|
}
|
|
15301
15296
|
return (_ctx, _cache) => {
|
|
@@ -15389,8 +15384,7 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
15389
15384
|
]),
|
|
15390
15385
|
_: 1
|
|
15391
15386
|
/* STABLE */
|
|
15392
|
-
})
|
|
15393
|
-
vue.createCommentVNode(" <AttendanceNoteTab /> ")
|
|
15387
|
+
})
|
|
15394
15388
|
]),
|
|
15395
15389
|
_: 1
|
|
15396
15390
|
/* STABLE */
|
|
@@ -15402,7 +15396,7 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
15402
15396
|
};
|
|
15403
15397
|
}
|
|
15404
15398
|
});
|
|
15405
|
-
const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-
|
|
15399
|
+
const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-18479d27"]]);
|
|
15406
15400
|
const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
15407
15401
|
...{ name: "AttendanceTypeCollection" },
|
|
15408
15402
|
__name: "AttendanceTypeCollection",
|
package/build/mock/index.mjs
CHANGED
|
@@ -12969,7 +12969,7 @@ function switchUrl(subdomain, isDev) {
|
|
|
12969
12969
|
case "office":
|
|
12970
12970
|
action = "api.office.ion.neutron.neon.id";
|
|
12971
12971
|
break;
|
|
12972
|
-
case "
|
|
12972
|
+
case "kantor":
|
|
12973
12973
|
action = "api.office.holding.neutron.neon.id";
|
|
12974
12974
|
break;
|
|
12975
12975
|
case "operasional":
|
|
@@ -15154,7 +15154,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
15154
15154
|
};
|
|
15155
15155
|
}
|
|
15156
15156
|
});
|
|
15157
|
-
const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-
|
|
15157
|
+
const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-9c040f0b"]]);
|
|
15158
15158
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
15159
15159
|
__name: "AttendanceDelegate",
|
|
15160
15160
|
setup(__props) {
|
|
@@ -15234,7 +15234,6 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
15234
15234
|
const maxDuration = ref(0);
|
|
15235
15235
|
const quotaTaken = ref(0);
|
|
15236
15236
|
function checkDurationLeave() {
|
|
15237
|
-
console.log("cek", values.value);
|
|
15238
15237
|
if (!values.value.startedAt || !values.value.endedAt) {
|
|
15239
15238
|
return true;
|
|
15240
15239
|
}
|
|
@@ -15243,7 +15242,6 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
15243
15242
|
const durationMilliseconds = endedAt.getTime() - startedAt.getTime();
|
|
15244
15243
|
const days = Math.floor(durationMilliseconds / (1e3 * 60 * 60 * 24));
|
|
15245
15244
|
quotaTaken.value = days;
|
|
15246
|
-
console.log("days", days, maxDuration.value);
|
|
15247
15245
|
if (days > maxDuration.value) return false;
|
|
15248
15246
|
return true;
|
|
15249
15247
|
}
|
|
@@ -15269,14 +15267,11 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
15269
15267
|
const showDurationAlert = ref(false);
|
|
15270
15268
|
async function saveData() {
|
|
15271
15269
|
const result = await checkDurationLeave();
|
|
15272
|
-
console.log("dur", result);
|
|
15273
15270
|
if (result == true && isLeaveStaff.value == true) {
|
|
15274
15271
|
showDurationAlert.value = false;
|
|
15275
|
-
console.log("save");
|
|
15276
15272
|
await saveOne();
|
|
15277
15273
|
} else {
|
|
15278
15274
|
showDurationAlert.value = true;
|
|
15279
|
-
console.log("error");
|
|
15280
15275
|
}
|
|
15281
15276
|
}
|
|
15282
15277
|
return (_ctx, _cache) => {
|
|
@@ -15370,8 +15365,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
15370
15365
|
]),
|
|
15371
15366
|
_: 1
|
|
15372
15367
|
/* STABLE */
|
|
15373
|
-
})
|
|
15374
|
-
createCommentVNode(" <AttendanceNoteTab /> ")
|
|
15368
|
+
})
|
|
15375
15369
|
]),
|
|
15376
15370
|
_: 1
|
|
15377
15371
|
/* STABLE */
|
|
@@ -15383,7 +15377,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
15383
15377
|
};
|
|
15384
15378
|
}
|
|
15385
15379
|
});
|
|
15386
|
-
const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-
|
|
15380
|
+
const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-18479d27"]]);
|
|
15387
15381
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
15388
15382
|
...{ name: "AttendanceTypeCollection" },
|
|
15389
15383
|
__name: "AttendanceTypeCollection",
|
package/build/mock/style.css
CHANGED
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
display: block
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.neu-attendance-single[data-v-
|
|
112
|
+
.neu-attendance-single[data-v-9c040f0b] {
|
|
113
113
|
display: block
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.neu-attendance-single[data-v-
|
|
116
|
+
.neu-attendance-single[data-v-18479d27] {
|
|
117
117
|
display: block
|
|
118
118
|
}
|
|
119
119
|
|
package/build/module.json
CHANGED
package/build/nuxt.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.16",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@neon.id/nuxt": "^1.5.0",
|
|
79
79
|
"@neon.id/office": "1.46.0",
|
|
80
80
|
"@neon.id/utils": "^1.51.0",
|
|
81
|
-
"@neutron.co.id/operasional-modules": "1.12.
|
|
81
|
+
"@neutron.co.id/operasional-modules": "1.12.20",
|
|
82
82
|
"@neutron.co.id/personalia-models": "1.13.17",
|
|
83
83
|
"@nuxt/kit": "^3.12.3",
|
|
84
84
|
"file-saver": "^2.0.5",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@neon.id/nuxt": "^1.5.0",
|
|
154
154
|
"@neon.id/office": "1.46.0",
|
|
155
155
|
"@neon.id/utils": "^1.51.0",
|
|
156
|
-
"@neutron.co.id/operasional-modules": "1.12.
|
|
156
|
+
"@neutron.co.id/operasional-modules": "1.12.20",
|
|
157
157
|
"@neutron.co.id/personalia-models": "1.13.17",
|
|
158
158
|
"@nuxt/kit": "^3.12.3",
|
|
159
159
|
"file-saver": "^2.0.5",
|
|
@@ -164,5 +164,5 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
|
-
"build":
|
|
167
|
+
"build": 198
|
|
168
168
|
}
|