Add spliceCompleted checkbox and update OAID handling in WorkorderMphBase
This commit is contained in:
@@ -40,7 +40,7 @@ Vue.component('wohneinheit-status-manager', {
|
||||
<div class="we-cell we-bezeichner">
|
||||
<strong>{{ we.bezeichner }}</strong>
|
||||
<div class="text-muted small">
|
||||
<i class="fas fa-id-card mr-1"></i>OAID: {{ we.wohneinheitId }}
|
||||
<i class="fas fa-id-card mr-1"></i>OAID: {{ we.oaid }}
|
||||
</div>
|
||||
<div v-if="we.contact" class="contact-info text-muted">
|
||||
<i class="fas fa-user mr-1"></i>{{ we.contact }}
|
||||
@@ -87,8 +87,7 @@ Vue.component('wohneinheit-status-manager', {
|
||||
this.wohneinheiten = data.wohneinheiten.map(we => ({
|
||||
...we,
|
||||
changed: false,
|
||||
saving: false,
|
||||
note: we.note || 'Tür 1, Tür 2, Tür 3'
|
||||
saving: false
|
||||
}));
|
||||
this.statusOptions = data.statusOptions || [];
|
||||
} catch (e) {
|
||||
@@ -185,6 +184,12 @@ Vue.component('checkbox-documentation', {
|
||||
<span class="checkmark"></span>
|
||||
<span class="checkbox-label">Dropkabel vorhanden</span>
|
||||
</label>
|
||||
|
||||
<label class="custom-checkbox-item" :class="{ disabled: isAdmin }">
|
||||
<input type="checkbox" v-model="checkboxes.spliceCompleted" :disabled="isAdmin">
|
||||
<span class="checkmark"></span>
|
||||
<span class="checkbox-label">Spleiß im HÜP/HAK erledigt</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="mt-3 text-right" v-if="!isAdmin">
|
||||
<tt-button @click="saveCheckboxes" text="Speichern"
|
||||
@@ -203,7 +208,8 @@ Vue.component('checkbox-documentation', {
|
||||
fttxLocationSupplied: false,
|
||||
conduitToHuepLaid: false,
|
||||
huepMounted: false,
|
||||
dropCableAvailable: false
|
||||
dropCableAvailable: false,
|
||||
spliceCompleted: false
|
||||
}
|
||||
}),
|
||||
methods: {
|
||||
@@ -219,7 +225,8 @@ Vue.component('checkbox-documentation', {
|
||||
fttxLocationSupplied: !!data.fttxLocationSupplied,
|
||||
conduitToHuepLaid: !!data.conduitToHuepLaid,
|
||||
huepMounted: !!data.huepMounted,
|
||||
dropCableAvailable: !!data.dropCableAvailable
|
||||
dropCableAvailable: !!data.dropCableAvailable,
|
||||
spliceCompleted: !!data.spliceCompleted
|
||||
};
|
||||
} catch (e) {
|
||||
window.notify('error', 'Checkboxen konnten nicht geladen werden.');
|
||||
|
||||
Reference in New Issue
Block a user