|
@@ -4,12 +4,6 @@
|
|
<template #service="{ item, params }">
|
|
<template #service="{ item, params }">
|
|
<select-service-unit v-model="params[item.prop]"></select-service-unit>
|
|
<select-service-unit v-model="params[item.prop]"></select-service-unit>
|
|
</template>
|
|
</template>
|
|
- <template #supplier="{ item, params }">
|
|
|
|
- <select-supplier
|
|
|
|
- v-model="params[item.prop]"
|
|
|
|
- type="DEVICE"
|
|
|
|
- ></select-supplier>
|
|
|
|
- </template>
|
|
|
|
<template #user="{ item, params }">
|
|
<template #user="{ item, params }">
|
|
<select-filter-user
|
|
<select-filter-user
|
|
v-model="params[item.prop]"
|
|
v-model="params[item.prop]"
|
|
@@ -46,8 +40,19 @@
|
|
<template #inout-time="{ col, row }">
|
|
<template #inout-time="{ col, row }">
|
|
{{ timestampFilter(row[col.colKey]) }}
|
|
{{ timestampFilter(row[col.colKey]) }}
|
|
</template>
|
|
</template>
|
|
|
|
+ <template #detail="{ col, row }">
|
|
|
|
+ <t-link theme="primary" hover="color" @click="handleDetail(row)">
|
|
|
|
+ {{ row[col.colKey] }}
|
|
|
|
+ </t-link>
|
|
|
|
+ </template>
|
|
</t-table>
|
|
</t-table>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- RegistrationDetailDialog -->
|
|
|
|
+ <registration-detail-dialog
|
|
|
|
+ v-model:visible="showRegistrationDetailDialog"
|
|
|
|
+ :cur-row="curRow"
|
|
|
|
+ ></registration-detail-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -65,6 +70,10 @@ import {
|
|
runningStatusFilter,
|
|
runningStatusFilter,
|
|
timestampFilter,
|
|
timestampFilter,
|
|
} from '@/utils/filter';
|
|
} from '@/utils/filter';
|
|
|
|
+import RegistrationDetailDialog from './registration-detail-dialog.vue';
|
|
|
|
+
|
|
|
|
+const showRegistrationDetailDialog = ref(false);
|
|
|
|
+const curRow = ref(null);
|
|
|
|
|
|
const fields = ref([
|
|
const fields = ref([
|
|
{
|
|
{
|
|
@@ -179,7 +188,6 @@ const params = reactive({
|
|
deviceStatus: '',
|
|
deviceStatus: '',
|
|
deviceNo: '',
|
|
deviceNo: '',
|
|
inOutTime: [],
|
|
inOutTime: [],
|
|
- supplierId: '',
|
|
|
|
customName: '',
|
|
customName: '',
|
|
location: '',
|
|
location: '',
|
|
address: '',
|
|
address: '',
|
|
@@ -194,7 +202,7 @@ const computedParams = computed(() => {
|
|
});
|
|
});
|
|
|
|
|
|
const columns = [
|
|
const columns = [
|
|
- { colKey: 'serialNo', title: '登记流水号', width: 200 },
|
|
|
|
|
|
+ { colKey: 'serialNo', title: '登记流水号', width: 200, cell: 'detail' },
|
|
{ colKey: 'serviceUnitName', title: '服务单元名称', width: 160 },
|
|
{ colKey: 'serviceUnitName', title: '服务单元名称', width: 160 },
|
|
{ colKey: 'usageType', title: '用途类型', width: 100, cell: 'usage' },
|
|
{ colKey: 'usageType', title: '用途类型', width: 100, cell: 'usage' },
|
|
{ colKey: 'deviceNo', title: '设备编号', width: 120 },
|
|
{ colKey: 'deviceNo', title: '设备编号', width: 120 },
|
|
@@ -217,4 +225,9 @@ const { pagination, tableData, search, onChange } = useFetchTable(
|
|
params: computedParams,
|
|
params: computedParams,
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+const handleDetail = (row) => {
|
|
|
|
+ curRow.value = row;
|
|
|
|
+ showRegistrationDetailDialog.value = true;
|
|
|
|
+};
|
|
</script>
|
|
</script>
|