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": [
{
"label": "Service record_Name",
"value": "serviceRecordName"
"value": "serviceRecordName",
"type": "string"
},
{
"label": "RN_Service record",
"value": "serviceRecordRN"
"value": "serviceRecordRN",
"type": "string"
},
{
"label": "Worker status",
"value": "workerStatus"
"value": "workerStatus",
"type": "array"
},
{
"label": "Contact channels",
"value": "contactChannel"
"value": "contactChannel",
"type": "string"
},
{
"label": "Quotation No.",
"value": "quotationNo"
"value": "quotationNo",
"type": "string"
},
{
"label": "Date of job reception",
"value": "startDate"
"value": "startDate",
"type": "date"
},
{
"label": "Project",
"value": "project"
"value": "project",
"type": "string"
},
{
"label": "Employee",
"value": "employee"
"value": "employee",
"type": "string"
},
{
"label": "Employer",
"value": "employer"
"value": "employer",
"type": "string"
},
{
"label": "Job sourcing area",
"value": "area"
"value": "area",
"type": "string"
},
{
"label": "Seller's signature",
"value": "sellerSignature"
"value": "sellerSignature",
"type": "string"
},
{
"label": "Agent",
"value": "agent"
"value": "agent",
"type": "string"
},
{
"label": "Contact person",
"value": "contactPerson"
"value": "contactPerson",
"type": "string"
},
{
"label": "Email",
"value": "email"
"value": "email",
"type": "string"
},
{
"label": "Telephone",
"value": "telephone"
"value": "telephone",
"type": "string"
},
{
"label": "Agency",
"value": "agency"
"value": "agency",
"type": "string"
},
{
"label": "Remark",
"value": "remark"
"value": "remark",
"type": "string"
},
{
"label": "Recording By",
"value": "recordBy"
"value": "recordBy",
"type": "string"
}
],
"workPropertiesField": [
{
"label": "Ref No:",
"value": "refNo"
"value": "refNo",
"type": "string"
},
{
"label": "Work order number (TO)",
"value": "workOrderNo"
"value": "workOrderNo",
"type": "string"
},
{
"label": "Purchase order date (TO)",
"value": "orderDate"
"value": "orderDate",
"type": "date"
},
{
"label": "Receipt number of goods (TR)",
"value": "productReceiptNo"
"value": "productReceiptNo",
"type": "string"
},
{
"label": "Receiving goods date (TR)",
"value": "productReceiptDate"
"value": "productReceiptDate",
"type": "date"
},
{
"label": "Work Status",
"value": "workStatus"
"value": "workStatus",
"type": "string"
},
{
"label": "Remark",
"value": "remark"
"value": "remark",
"type": "string"
},
{
"label": "Factory number",
"value": "factoryNo"
"value": "factoryNo",
"type": "string"
},
{
"label": "Date written",
"value": "dateIssued"
"value": "dateIssued",
"type": "date"
},
{
"label": "Type (operation of the originating country)",
"value": "typeOriginCountryOperation"
"value": "typeOriginCountryOperation",
"type": "array"
},
{
"label": "Delivery channel",
"value": "deliveryChannel"
"value": "deliveryChannel",
"type": "array"
},
{
"label": "Name list No.",
"value": "nameListNo"
"value": "nameListNo",
"type": "string"
},
{
"label": "Health insurance location",
"value": "insuranceLocation"
"value": "insuranceLocation",
"type": "array"
},
{
"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)",
"value": "typePermitWorkBehalf"
"value": "typePermitWorkBehalf",
"type": "string"
},
{
"label": "Appointment date for document collection",
"value": "docPickupDate"
"value": "docPickupDate",
"type": "date"
},
{
"label": "Calling Visa No.",
"value": "callVisaNo"
"value": "callVisaNo",
"type": "string"
},
{
"label": "The immigration checkpoint where the worker travels",
"value": "checkpoint"
"value": "checkpoint",
"type": "array"
},
{
"label": "Travel date",
"value": "travelDate"
"value": "travelDate",
"type": "date"
},
{
"label": "Health checkup location",
"value": "healthCheckupLocation"
"value": "healthCheckupLocation",
"type": "array"
},
{
"label": "Place of residence",
"value": "residenceLocation"
"value": "residenceLocation",
"type": "string"
},
{
"label": "Next 90-day reporting",
"value": "next90Days"
"value": "next90Days",
"type": "date"
},
{
"label": "Document delivery channels",
"value": "docDeliveryChannel"
"value": "docDeliveryChannel",
"type": "string"
},
{
"label": "Delivery status",
"value": "deliveryStatus"
"value": "deliveryStatus",
"type": "array"
},
{
"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 NoData from '../NoData.vue';
import useOptionStore from 'stores/options';
const { t } = useI18n();
@ -16,14 +15,6 @@ const propertiesOption =
);
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([
{
label: t('text'),
@ -107,7 +98,6 @@ function manageProperties(
});
}
}
return;
}