[WIP] Добавил автоматический поиск категорий льгот при вводе трех символов, поменял местами ОМС и ДМС, добавил чек выбранной льготы
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
:close-modal-categories="closeModalCategories",
|
||||
:save-categories="saveCategories",
|
||||
:show-modal="showModalCategories",
|
||||
:basic="basic.benefit",
|
||||
@search="filterDataBenefit"
|
||||
)
|
||||
.flex.font-medium.text-smm.absolute.top-11(
|
||||
@@ -81,7 +82,7 @@
|
||||
q-icon.my-auto.text-lg.label-field.cursor-pointer(
|
||||
size="18px",
|
||||
name="app:icon-copy",
|
||||
v-if="checkCopiedFields(field.key)",
|
||||
v-if="checkCopiedFields(field.key, basic[insurance.insuranceKey])",
|
||||
@click="copyValue(basic[insurance.insuranceKey][field.key])"
|
||||
)
|
||||
</template>
|
||||
@@ -142,8 +143,12 @@ export default {
|
||||
localStorage.removeItem("searchBenefit", text);
|
||||
}
|
||||
},
|
||||
checkCopiedFields(key) {
|
||||
return !this.isEdit && this.copiedFields.some((elem) => elem === key);
|
||||
checkCopiedFields(key, item) {
|
||||
return (
|
||||
!this.isEdit &&
|
||||
this.copiedFields.some((elem) => elem === key) &&
|
||||
item[key]
|
||||
);
|
||||
},
|
||||
copyValue(text) {
|
||||
navigator.clipboard.writeText(text);
|
||||
|
||||
@@ -292,29 +292,6 @@ export const baseInfoMenu = [
|
||||
];
|
||||
|
||||
export const baseInsuranceForm = [
|
||||
{
|
||||
insuranceLabel: "ДМС",
|
||||
insuranceKey: "insuranceDMS",
|
||||
fields: [
|
||||
{
|
||||
key: "series",
|
||||
label: "Серия",
|
||||
type: "text",
|
||||
inputMask: "####",
|
||||
},
|
||||
{
|
||||
key: "number",
|
||||
label: "Номер",
|
||||
type: "text",
|
||||
inputMask: "####-####-####",
|
||||
},
|
||||
{
|
||||
key: "photo",
|
||||
label: "Фото ДМС",
|
||||
type: "avatar",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
insuranceLabel: "ОМС",
|
||||
insuranceKey: "insuranceOMS",
|
||||
@@ -338,6 +315,29 @@ export const baseInsuranceForm = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
insuranceLabel: "ДМС",
|
||||
insuranceKey: "insuranceDMS",
|
||||
fields: [
|
||||
{
|
||||
key: "series",
|
||||
label: "Серия",
|
||||
type: "text",
|
||||
inputMask: "####",
|
||||
},
|
||||
{
|
||||
key: "number",
|
||||
label: "Номер",
|
||||
type: "text",
|
||||
inputMask: "####-####-####",
|
||||
},
|
||||
{
|
||||
key: "photo",
|
||||
label: "Фото ДМС",
|
||||
type: "avatar",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
insuranceLabel: "Категория льготы",
|
||||
insuranceKey: "benefit",
|
||||
|
||||
Reference in New Issue
Block a user