|
|
|
|
@ -76,6 +76,16 @@
|
|
|
|
|
<el-option v-for="opt in statusOptions" :key="opt.value" :label="opt.label" :value="opt.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.DvRepair.repairStatus')" prop="repairStatus" v-show="showAllFilters">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.repairStatus"
|
|
|
|
|
:placeholder="t('EquipmentManagement.DvRepair.placeholderRepairResult')"
|
|
|
|
|
clearable
|
|
|
|
|
class="!w-240px"
|
|
|
|
|
>
|
|
|
|
|
<el-option v-for="opt in repairStatusOptions" :key="opt.value" :label="opt.label" :value="opt.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="filterCount > 3">
|
|
|
|
|
<el-button type="text" class="text-primary" @click="toggleFilters">
|
|
|
|
|
<Icon :icon="showAllFilters ? 'ep:arrow-up' : 'ep:arrow-down'" class="mr-5px" />
|
|
|
|
|
@ -236,6 +246,7 @@ const queryParams = reactive({
|
|
|
|
|
finishDate: [],
|
|
|
|
|
confirmDate: [],
|
|
|
|
|
repairResult: undefined,
|
|
|
|
|
repairStatus: undefined,
|
|
|
|
|
acceptedBy: undefined,
|
|
|
|
|
confirmBy: undefined,
|
|
|
|
|
status: undefined,
|
|
|
|
|
@ -255,6 +266,12 @@ const statusOptions = [
|
|
|
|
|
{ label: t('EquipmentManagement.DvRepair.statusFinished'), value: '1' }
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const repairStatusOptions = [
|
|
|
|
|
{ label: t('EquipmentManagement.DvRepair.repairResultPending'), value: '0' },
|
|
|
|
|
{ label: t('EquipmentManagement.DvRepair.repairResultOk'), value: '1' },
|
|
|
|
|
{ label: t('EquipmentManagement.DvRepair.repairResultNg'), value: '2' }
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const getStatusLabel = (value: any) => {
|
|
|
|
|
const v = value === '' || value === null || value === undefined ? undefined : String(value)
|
|
|
|
|
if (v === '0') return t('EquipmentManagement.DvRepair.statusPending')
|
|
|
|
|
|