feat: refs #7346 sonarLint warnings
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
3d5807463b
commit
b71d24cf3d
|
@ -103,10 +103,6 @@ select:-webkit-autofill {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-width {
|
|
||||||
width: 770px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vn-card-list {
|
.vn-card-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 60em;
|
max-width: 60em;
|
||||||
|
|
|
@ -94,11 +94,13 @@ const selectCustomerId = (id) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const statusText = computed(() => {
|
const statusText = computed(() => {
|
||||||
return status.value === 'invoicing'
|
const baseStatus = t(`status.${status.value}`);
|
||||||
? `${t(`status.${status.value}`)} ${
|
const clientId =
|
||||||
addresses.value[getAddressNumber.value]?.clientId
|
status.value === 'invoicing'
|
||||||
}`
|
? addresses.value[getAddressNumber.value]?.clientId || ''
|
||||||
: t(`status.${status.value}`);
|
: '';
|
||||||
|
|
||||||
|
return clientId ? `${baseStatus} ${clientId}`.trim() : baseStatus;
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => (stateStore.rightDrawer = true));
|
onMounted(() => (stateStore.rightDrawer = true));
|
||||||
|
|
|
@ -200,12 +200,7 @@ export const useInvoiceOutGlobalStore = defineStore({
|
||||||
this.addressIndex++;
|
this.addressIndex++;
|
||||||
this.isInvoicing = false;
|
this.isInvoicing = false;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (
|
if (err?.response?.status >= 400 && err?.response?.status < 500) {
|
||||||
err &&
|
|
||||||
err.response &&
|
|
||||||
err.response.status >= 400 &&
|
|
||||||
err.response.status < 500
|
|
||||||
) {
|
|
||||||
this.invoiceClientError(address, err.response?.data?.error?.message);
|
this.invoiceClientError(address, err.response?.data?.error?.message);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
@ -252,7 +247,7 @@ export const useInvoiceOutGlobalStore = defineStore({
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (data.data && data.data.error) throw new Error();
|
if (data?.data?.error) throw new Error();
|
||||||
|
|
||||||
const status = exportFile('negativeBases.csv', data, {
|
const status = exportFile('negativeBases.csv', data, {
|
||||||
encoding: 'windows-1252',
|
encoding: 'windows-1252',
|
||||||
|
|
Loading…
Reference in New Issue