fix(04): properties option type (en)

This commit is contained in:
puriphatt 2024-08-15 09:39:56 +07:00
parent fba13f4867
commit 12482659da
2 changed files with 86 additions and 53 deletions

View file

@ -607,178 +607,221 @@
"servicePropertiesField": [ "servicePropertiesField": [
{ {
"label": "Service record_Name", "label": "Service record_Name",
"value": "serviceRecordName" "value": "serviceRecordName",
"type": "string"
}, },
{ {
"label": "RN_Service record", "label": "RN_Service record",
"value": "serviceRecordRN" "value": "serviceRecordRN",
"type": "string"
}, },
{ {
"label": "Worker status", "label": "Worker status",
"value": "workerStatus" "value": "workerStatus",
"type": "array"
}, },
{ {
"label": "Contact channels", "label": "Contact channels",
"value": "contactChannel" "value": "contactChannel",
"type": "string"
}, },
{ {
"label": "Quotation No.", "label": "Quotation No.",
"value": "quotationNo" "value": "quotationNo",
"type": "string"
}, },
{ {
"label": "Date of job reception", "label": "Date of job reception",
"value": "startDate" "value": "startDate",
"type": "date"
}, },
{ {
"label": "Project", "label": "Project",
"value": "project" "value": "project",
"type": "string"
}, },
{ {
"label": "Employee", "label": "Employee",
"value": "employee" "value": "employee",
"type": "string"
}, },
{ {
"label": "Employer", "label": "Employer",
"value": "employer" "value": "employer",
"type": "string"
}, },
{ {
"label": "Job sourcing area", "label": "Job sourcing area",
"value": "area" "value": "area",
"type": "string"
}, },
{ {
"label": "Seller's signature", "label": "Seller's signature",
"value": "sellerSignature" "value": "sellerSignature",
"type": "string"
}, },
{ {
"label": "Agent", "label": "Agent",
"value": "agent" "value": "agent",
"type": "string"
}, },
{ {
"label": "Contact person", "label": "Contact person",
"value": "contactPerson" "value": "contactPerson",
"type": "string"
}, },
{ {
"label": "Email", "label": "Email",
"value": "email" "value": "email",
"type": "string"
}, },
{ {
"label": "Telephone", "label": "Telephone",
"value": "telephone" "value": "telephone",
"type": "string"
}, },
{ {
"label": "Agency", "label": "Agency",
"value": "agency" "value": "agency",
"type": "string"
}, },
{ {
"label": "Remark", "label": "Remark",
"value": "remark" "value": "remark",
"type": "string"
}, },
{ {
"label": "Recording By", "label": "Recording By",
"value": "recordBy" "value": "recordBy",
"type": "string"
} }
], ],
"workPropertiesField": [ "workPropertiesField": [
{ {
"label": "Ref No:", "label": "Ref No:",
"value": "refNo" "value": "refNo",
"type": "string"
}, },
{ {
"label": "Work order number (TO)", "label": "Work order number (TO)",
"value": "workOrderNo" "value": "workOrderNo",
"type": "string"
}, },
{ {
"label": "Purchase order date (TO)", "label": "Purchase order date (TO)",
"value": "orderDate" "value": "orderDate",
"type": "date"
}, },
{ {
"label": "Receipt number of goods (TR)", "label": "Receipt number of goods (TR)",
"value": "productReceiptNo" "value": "productReceiptNo",
"type": "string"
}, },
{ {
"label": "Receiving goods date (TR)", "label": "Receiving goods date (TR)",
"value": "productReceiptDate" "value": "productReceiptDate",
"type": "date"
}, },
{ {
"label": "Work Status", "label": "Work Status",
"value": "workStatus" "value": "workStatus",
"type": "string"
}, },
{ {
"label": "Remark", "label": "Remark",
"value": "remark" "value": "remark",
"type": "string"
}, },
{ {
"label": "Factory number", "label": "Factory number",
"value": "factoryNo" "value": "factoryNo",
"type": "string"
}, },
{ {
"label": "Date written", "label": "Date written",
"value": "dateIssued" "value": "dateIssued",
"type": "date"
}, },
{ {
"label": "Type (operation of the originating country)", "label": "Type (operation of the originating country)",
"value": "typeOriginCountryOperation" "value": "typeOriginCountryOperation",
"type": "array"
}, },
{ {
"label": "Delivery channel", "label": "Delivery channel",
"value": "deliveryChannel" "value": "deliveryChannel",
"type": "array"
}, },
{ {
"label": "Name list No.", "label": "Name list No.",
"value": "nameListNo" "value": "nameListNo",
"type": "string"
}, },
{ {
"label": "Health insurance location", "label": "Health insurance location",
"value": "insuranceLocation" "value": "insuranceLocation",
"type": "array"
}, },
{ {
"label": "Type (submitting application for foreigner health insurance)", "label": "Type (submitting application for foreigner health insurance)",
"value": "typeForeignInsurance" "value": "typeForeignInsurance",
"type": "string"
}, },
{ {
"label": "Type (applying for a work permit on behalf of a foreigner)", "label": "Type (applying for a work permit on behalf of a foreigner)",
"value": "typePermitWorkBehalf" "value": "typePermitWorkBehalf",
"type": "string"
}, },
{ {
"label": "Appointment date for document collection", "label": "Appointment date for document collection",
"value": "docPickupDate" "value": "docPickupDate",
"type": "date"
}, },
{ {
"label": "Calling Visa No.", "label": "Calling Visa No.",
"value": "callVisaNo" "value": "callVisaNo",
"type": "string"
}, },
{ {
"label": "The immigration checkpoint where the worker travels", "label": "The immigration checkpoint where the worker travels",
"value": "checkpoint" "value": "checkpoint",
"type": "array"
}, },
{ {
"label": "Travel date", "label": "Travel date",
"value": "travelDate" "value": "travelDate",
"type": "date"
}, },
{ {
"label": "Health checkup location", "label": "Health checkup location",
"value": "healthCheckupLocation" "value": "healthCheckupLocation",
"type": "array"
}, },
{ {
"label": "Place of residence", "label": "Place of residence",
"value": "residenceLocation" "value": "residenceLocation",
"type": "string"
}, },
{ {
"label": "Next 90-day reporting", "label": "Next 90-day reporting",
"value": "next90Days" "value": "next90Days",
"type": "date"
}, },
{ {
"label": "Document delivery channels", "label": "Document delivery channels",
"value": "docDeliveryChannel" "value": "docDeliveryChannel",
"type": "string"
}, },
{ {
"label": "Delivery status", "label": "Delivery status",
"value": "deliveryStatus" "value": "deliveryStatus",
"type": "array"
}, },
{ {
"label": "Type of 90-day report", "label": "Type of 90-day report",
"value": "type90Days" "value": "type90Days",
"type": "string"
} }
] ]
}, },

View file

@ -6,7 +6,6 @@ import { Attributes } from 'stores/product-service/types';
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'stores/utils'; import { moveItemUp, moveItemDown, deleteItem, dialog } from 'stores/utils';
import NoData from '../NoData.vue'; import NoData from '../NoData.vue';
import useOptionStore from 'stores/options';
const { t } = useI18n(); const { t } = useI18n();
@ -16,14 +15,6 @@ const propertiesOption =
); );
const formServiceProperties = defineModel<Attributes>('formServiceProperties'); const formServiceProperties = defineModel<Attributes>('formServiceProperties');
const telMax = ref();
const pointNum = ref();
const tel = ref(false);
const comma = ref(false);
const point = ref(false);
const selection = ref(false);
const typeOption = ref([ const typeOption = ref([
{ {
label: t('text'), label: t('text'),
@ -107,7 +98,6 @@ function manageProperties(
}); });
} }
} }
return; return;
} }