mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 13:38:12 +00:00
Poprawiono generowanie daty
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<div class="flex-row">
|
<div class="flex-row">
|
||||||
dla pociągu nr <input type="text" v-model="order.header.trainNo" placeholder="nr pociągu" /> dnia
|
dla pociągu nr <input type="text" v-model="order.header.trainNo" placeholder="nr pociągu" /> dnia
|
||||||
<input type="text" v-model="order.header.date" placeholder="data" /> {{ new Date().getUTCFullYear() }}r.
|
<input type="text" v-model="order.header.date" placeholder="data" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="table-section">
|
<section class="table-section">
|
||||||
@@ -296,7 +296,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const message = `<i>Rozkaz pisemny "N" nr ${header.orderNo || '_'} dla pociągu nr ${
|
const message = `<i>Rozkaz pisemny "N" nr ${header.orderNo || '_'} dla pociągu nr ${
|
||||||
header.trainNo || '_'
|
header.trainNo || '_'
|
||||||
} dnia ${header.date} ${new Date().getUTCFullYear()}r.</i>`;
|
} dnia ${header.date}</i>`;
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<div class="flex-row" style="padding: 0 0.5em">
|
<div class="flex-row" style="padding: 0 0.5em">
|
||||||
dla pociągu nr <input type="text" v-model="order.header.trainNo" /> dnia
|
dla pociągu nr <input type="text" v-model="order.header.trainNo" /> dnia
|
||||||
<input type="text" v-model="order.header.date" /> {{ new Date().getUTCFullYear() }}r.
|
<input type="text" v-model="order.header.date" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="horizontal-bar"></div>
|
<div class="horizontal-bar"></div>
|
||||||
@@ -90,7 +90,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
return `<i>Rozkaz pisemny "O" nr ${header.orderNo || '_'} dla pociągu nr ${header.trainNo || '_'} dnia ${
|
return `<i>Rozkaz pisemny "O" nr ${header.orderNo || '_'} dla pociągu nr ${header.trainNo || '_'} dnia ${
|
||||||
header.date || '_'
|
header.date || '_'
|
||||||
} ${new Date().getUTCFullYear()}r.</i> <b> [ 1 ] </b> 1) zmniejszyć prędkość jazdy i zachować ostrożność, 2) jechać ostrożnie (j.o.)`;
|
}</i> <b> [ 1 ] </b> 1) zmniejszyć prędkość jazdy i zachować ostrożność, 2) jechać ostrożnie (j.o.)`;
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<option value="manewru">manewru</option>
|
<option value="manewru">manewru</option>
|
||||||
</select>
|
</select>
|
||||||
nr <input type="text" v-model="order.header.trainNo" :placeholder="`nr ${order.header.for}`" /> dnia
|
nr <input type="text" v-model="order.header.trainNo" :placeholder="`nr ${order.header.for}`" /> dnia
|
||||||
<input type="text" v-model="order.header.date" placeholder="data" /> {{ new Date().getUTCFullYear() }}r.
|
<input type="text" v-model="order.header.date" placeholder="data" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="table-section">
|
<section class="table-section">
|
||||||
@@ -238,7 +238,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
return `<i>Rozkaz pisemny "S" nr ${header.orderNo || '_'} dla ${header.for || '_'} nr ${
|
return `<i>Rozkaz pisemny "S" nr ${header.orderNo || '_'} dla ${header.for || '_'} nr ${
|
||||||
header.trainNo || '_'
|
header.trainNo || '_'
|
||||||
} dnia ${header.date || '_'} ${new Date().getUTCFullYear()}r.</i>`;
|
} dnia ${header.date || '_'}</i>`;
|
||||||
},
|
},
|
||||||
|
|
||||||
() => {
|
() => {
|
||||||
@@ -304,7 +304,7 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
this.generateMessage();
|
this.generateMessage();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -27,7 +27,7 @@ export const useStore = defineStore('store', {
|
|||||||
header: {
|
header: {
|
||||||
orderNo: '1',
|
orderNo: '1',
|
||||||
trainNo: '',
|
trainNo: '',
|
||||||
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'long' }),
|
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'numeric', year: 'numeric' }) + "r.",
|
||||||
},
|
},
|
||||||
|
|
||||||
orderList: [
|
orderList: [
|
||||||
@@ -79,7 +79,7 @@ export const useStore = defineStore('store', {
|
|||||||
header: {
|
header: {
|
||||||
orderNo: '1',
|
orderNo: '1',
|
||||||
trainNo: '',
|
trainNo: '',
|
||||||
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'long' }),
|
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'numeric', year: 'numeric' }) + "r.",
|
||||||
},
|
},
|
||||||
|
|
||||||
rows: [
|
rows: [
|
||||||
@@ -141,7 +141,7 @@ export const useStore = defineStore('store', {
|
|||||||
orderNo: '1',
|
orderNo: '1',
|
||||||
trainNo: '',
|
trainNo: '',
|
||||||
for: 'pociągu',
|
for: 'pociągu',
|
||||||
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'long' }),
|
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'numeric', year: 'numeric' }) + "r.",
|
||||||
},
|
},
|
||||||
|
|
||||||
rows: [
|
rows: [
|
||||||
@@ -183,3 +183,5 @@ export const useStore = defineStore('store', {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user