init git
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
import UploadNationalCard from '../components/panel/seller/UploadNationalCard.vue'
|
||||
|
||||
export default () => {
|
||||
const { t } = useI18n()
|
||||
return reactive({
|
||||
btns: {
|
||||
save: {
|
||||
props: {
|
||||
label: t('save')
|
||||
}
|
||||
},
|
||||
cancel: {
|
||||
props: {
|
||||
label: t('cancel'), outlined: true
|
||||
}
|
||||
},
|
||||
},
|
||||
fields: {
|
||||
shopName: {
|
||||
is: "InputText",
|
||||
props: { placeholder: "" },
|
||||
},
|
||||
companyName: {
|
||||
is: "InputText",
|
||||
props: { placeholder: "" },
|
||||
},
|
||||
accountType: {
|
||||
is: "Dropdown",
|
||||
props: {
|
||||
placeholder: "",
|
||||
optionLabel: "label",
|
||||
optionValue: 'value',
|
||||
options: [
|
||||
{ label: t('retailer'), value: 'RETAILER' },
|
||||
{ label: t('wholesaler'), value: 'WHOLESALER' },
|
||||
]
|
||||
},
|
||||
},
|
||||
companyID: {
|
||||
is: "InputNumber",
|
||||
props: { placeholder: "", type: "phone", useGrouping: false },
|
||||
},
|
||||
|
||||
nationalCode: {
|
||||
is: "InputNumber",
|
||||
props: { placeholder: "", type: "phone", useGrouping: false },
|
||||
},
|
||||
postCodeWork: {
|
||||
is: "InputNumber",
|
||||
props: { placeholder: "", type: "phone", useGrouping: false },
|
||||
},
|
||||
nationalCard: {
|
||||
is: UploadNationalCard,
|
||||
},
|
||||
companyAddress: {
|
||||
is: "Textarea",
|
||||
props: { placeholder: "", rows: 5 },
|
||||
},
|
||||
|
||||
desc: {
|
||||
is: "Textarea",
|
||||
props: { placeholder: "", rows: 5 },
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user