Merge branch 'develop'
This commit is contained in:
commit
fb0dce309b
9 changed files with 27 additions and 16 deletions
|
|
@ -16,6 +16,7 @@ const props = withDefaults(
|
||||||
| 'dark-orange'
|
| 'dark-orange'
|
||||||
| 'cyan'
|
| 'cyan'
|
||||||
| 'yellow'
|
| 'yellow'
|
||||||
|
| 'light-yellow'
|
||||||
| 'red'
|
| 'red'
|
||||||
| 'magenta'
|
| 'magenta'
|
||||||
| 'blue'
|
| 'blue'
|
||||||
|
|
@ -45,11 +46,7 @@ const props = withDefaults(
|
||||||
>
|
>
|
||||||
<div class="stat-card__content row items-center q-pa-sm">
|
<div class="stat-card__content row items-center q-pa-sm">
|
||||||
<div class="col-4 text-center">
|
<div class="col-4 text-center">
|
||||||
<q-avatar
|
<q-avatar size="lg" style="background-color: hsla(0 0% 100% /0.2)">
|
||||||
size="lg"
|
|
||||||
style="background-color: hsla(0 0% 100% /0.2)"
|
|
||||||
text-color="white"
|
|
||||||
>
|
|
||||||
<Icon :icon="v.icon" width="24px" />
|
<Icon :icon="v.icon" width="24px" />
|
||||||
</q-avatar>
|
</q-avatar>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -116,6 +113,10 @@ const props = withDefaults(
|
||||||
--_color: var(--orange-4-hsl);
|
--_color: var(--orange-4-hsl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stat-card__light-yellow {
|
||||||
|
--_color: var(--yellow-6-hsl);
|
||||||
|
}
|
||||||
|
|
||||||
.stat-card__orange {
|
.stat-card__orange {
|
||||||
--_color: var(--orange-5-hsl);
|
--_color: var(--orange-5-hsl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -201,40 +201,40 @@ function changeType(fieldName: string, stepIndex: number) {
|
||||||
(p) => p.fieldName === fieldName,
|
(p) => p.fieldName === fieldName,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!idx) return;
|
if (idx < 0) return;
|
||||||
|
|
||||||
if (defaultPropType === 'date') {
|
if (defaultPropType === 'date') {
|
||||||
tempStep.value[stepIndex].attributes.properties.push({
|
tempStep.value[stepIndex].attributes.properties[idx] = {
|
||||||
type: defaultPropType,
|
type: defaultPropType,
|
||||||
fieldName,
|
fieldName,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaultPropType === 'array') {
|
if (defaultPropType === 'array') {
|
||||||
tempStep.value[stepIndex].attributes.properties.push({
|
tempStep.value[stepIndex].attributes.properties[idx] = {
|
||||||
type: defaultPropType,
|
type: defaultPropType,
|
||||||
fieldName,
|
fieldName,
|
||||||
options: [],
|
options: [],
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaultPropType === 'string') {
|
if (defaultPropType === 'string') {
|
||||||
tempStep.value[stepIndex].attributes.properties.push({
|
tempStep.value[stepIndex].attributes.properties[idx] = {
|
||||||
type: defaultPropType,
|
type: defaultPropType,
|
||||||
fieldName,
|
fieldName,
|
||||||
isPhoneNumber: false,
|
isPhoneNumber: false,
|
||||||
phoneNumberLength: 10,
|
phoneNumberLength: 10,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaultPropType === 'number') {
|
if (defaultPropType === 'number') {
|
||||||
tempStep.value[stepIndex].attributes.properties.push({
|
tempStep.value[stepIndex].attributes.properties[idx] = {
|
||||||
type: defaultPropType,
|
type: defaultPropType,
|
||||||
fieldName,
|
fieldName,
|
||||||
comma: false,
|
comma: false,
|
||||||
decimal: false,
|
decimal: false,
|
||||||
decimalPlace: 2,
|
decimalPlace: 2,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -917,6 +917,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
Pending: 'Pending',
|
Pending: 'Pending',
|
||||||
|
Ready: 'Ready',
|
||||||
InProgress: 'In Progress',
|
InProgress: 'In Progress',
|
||||||
Completed: 'Completed',
|
Completed: 'Completed',
|
||||||
Canceled: 'Canceled',
|
Canceled: 'Canceled',
|
||||||
|
|
|
||||||
|
|
@ -908,7 +908,8 @@ export default {
|
||||||
Canceled: 'ยกเลิก',
|
Canceled: 'ยกเลิก',
|
||||||
},
|
},
|
||||||
Pending: 'รอดำเนินการ',
|
Pending: 'รอดำเนินการ',
|
||||||
InProgress: 'ดำเนินการ',
|
Ready: 'พร้อมดำเนินการ',
|
||||||
|
InProgress: 'กำลังดำเนินการ',
|
||||||
Completed: 'เสร็จสิ้น',
|
Completed: 'เสร็จสิ้น',
|
||||||
Canceled: 'ยกเลิก',
|
Canceled: 'ยกเลิก',
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -315,7 +315,6 @@ function triggerPropertiesDialog(step: WorkFlowPayloadStep) {
|
||||||
v-model:user-in-table="userInTable"
|
v-model:user-in-table="userInTable"
|
||||||
v-model:flow-data="flowData"
|
v-model:flow-data="flowData"
|
||||||
v-model:register-branch-id="registerBranchId"
|
v-model:register-branch-id="registerBranchId"
|
||||||
v-model:messenger-by-area="messengerByArea"
|
|
||||||
@change-status="$emit('changeStatus')"
|
@change-status="$emit('changeStatus')"
|
||||||
@trigger-properties="triggerPropertiesDialog"
|
@trigger-properties="triggerPropertiesDialog"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,12 @@ watch([() => pageState.inputSearch, () => pageState.statusFilter], () =>
|
||||||
label: 'requestList.status.Pending',
|
label: 'requestList.status.Pending',
|
||||||
color: 'orange',
|
color: 'orange',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: 'mdi:tag-check-outline',
|
||||||
|
count: stats[RequestDataStatus.Ready],
|
||||||
|
label: 'requestList.status.Ready',
|
||||||
|
color: 'light-yellow',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: 'mdi-timer-sand',
|
icon: 'mdi-timer-sand',
|
||||||
count: stats[RequestDataStatus.InProgress],
|
count: stats[RequestDataStatus.InProgress],
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,7 @@ function getEmployeeName(
|
||||||
:hsla-color="
|
:hsla-color="
|
||||||
{
|
{
|
||||||
[RequestDataStatus.Pending]: '--orange-5-hsl',
|
[RequestDataStatus.Pending]: '--orange-5-hsl',
|
||||||
|
[RequestDataStatus.Ready]: '--yellow-6-hsl',
|
||||||
[RequestDataStatus.InProgress]: '--blue-6-hsl',
|
[RequestDataStatus.InProgress]: '--blue-6-hsl',
|
||||||
[RequestDataStatus.Completed]: '--green-8-hsl',
|
[RequestDataStatus.Completed]: '--green-8-hsl',
|
||||||
[RequestDataStatus.Canceled]: '--red-5-hsl',
|
[RequestDataStatus.Canceled]: '--red-5-hsl',
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ export const useRequestList = defineStore('request-list', () => {
|
||||||
const pageSize = ref<number>(30);
|
const pageSize = ref<number>(30);
|
||||||
const stats = ref<Record<RequestDataStatus, number>>({
|
const stats = ref<Record<RequestDataStatus, number>>({
|
||||||
[RequestDataStatus.Pending]: 0,
|
[RequestDataStatus.Pending]: 0,
|
||||||
|
[RequestDataStatus.Ready]: 0,
|
||||||
[RequestDataStatus.InProgress]: 0,
|
[RequestDataStatus.InProgress]: 0,
|
||||||
[RequestDataStatus.Completed]: 0,
|
[RequestDataStatus.Completed]: 0,
|
||||||
[RequestDataStatus.Canceled]: 0,
|
[RequestDataStatus.Canceled]: 0,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ export type RequestData = {
|
||||||
|
|
||||||
export enum RequestDataStatus {
|
export enum RequestDataStatus {
|
||||||
Pending = 'Pending',
|
Pending = 'Pending',
|
||||||
|
Ready = 'Ready',
|
||||||
InProgress = 'InProgress',
|
InProgress = 'InProgress',
|
||||||
Completed = 'Completed',
|
Completed = 'Completed',
|
||||||
Canceled = 'Canceled',
|
Canceled = 'Canceled',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue