Fix #90
This commit is contained in:
@@ -333,10 +333,14 @@ export const useDataStore = defineStore('data', () => {
|
||||
{
|
||||
key: "infoData.zip",
|
||||
label: "Postleitzahl",
|
||||
inputType: "number",
|
||||
inputType: "text",
|
||||
inputChangeFunction: async function (row) {
|
||||
if(row.infoData.zip) {
|
||||
row.infoData.city = (await useFunctions().useZipCheck(row.infoData.zip)).short
|
||||
const zip = String(row.infoData.zip || "").replace(/\D/g, "")
|
||||
row.infoData.zip = zip
|
||||
if ([4, 5].includes(zip.length)) {
|
||||
const zipData = await useFunctions().useZipCheck(zip)
|
||||
row.infoData.zip = zipData?.zip || row.infoData.zip
|
||||
row.infoData.city = zipData?.short || row.infoData.city
|
||||
}
|
||||
},
|
||||
disabledInTable: true,
|
||||
@@ -1291,11 +1295,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
{
|
||||
key: "infoData.zip",
|
||||
label: "Postleitzahl",
|
||||
inputType: "number",
|
||||
inputType: "text",
|
||||
disabledInTable: true,
|
||||
inputChangeFunction: async function (row) {
|
||||
if(row.infoData.zip) {
|
||||
row.infoData.city = (await useFunctions().useZipCheck(row.infoData.zip)).short
|
||||
const zip = String(row.infoData.zip || "").replace(/\D/g, "")
|
||||
row.infoData.zip = zip
|
||||
if ([4, 5].includes(zip.length)) {
|
||||
const zipData = await useFunctions().useZipCheck(zip)
|
||||
row.infoData.zip = zipData?.zip || row.infoData.zip
|
||||
row.infoData.city = zipData?.short || row.infoData.city
|
||||
}
|
||||
},
|
||||
},
|
||||
@@ -1474,12 +1482,16 @@ export const useDataStore = defineStore('data', () => {
|
||||
{
|
||||
key: "info_data.zip",
|
||||
label: "Postleitzahl",
|
||||
inputType: "number",
|
||||
inputType: "text",
|
||||
disabledInTable: true,
|
||||
inputColumn: "Ort",
|
||||
inputChangeFunction: async function (row) {
|
||||
if(row.infoData.zip) {
|
||||
row.infoData.city = (await useFunctions().useZipCheck(row.infoData.zip)).short
|
||||
const zip = String(row.info_data.zip || "").replace(/\D/g, "")
|
||||
row.info_data.zip = zip
|
||||
if ([4, 5].includes(zip.length)) {
|
||||
const zipData = await useFunctions().useZipCheck(zip)
|
||||
row.info_data.zip = zipData?.zip || row.info_data.zip
|
||||
row.info_data.city = zipData?.short || row.info_data.city
|
||||
}
|
||||
},
|
||||
},
|
||||
@@ -2617,4 +2629,4 @@ export const useDataStore = defineStore('data', () => {
|
||||
dataTypes,
|
||||
documentTypesForCreation,
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user