|
@@ -37,6 +37,10 @@ interface EquipmentDetailsItem {
|
|
phone: string;
|
|
phone: string;
|
|
serviceLife?: number;
|
|
serviceLife?: number;
|
|
remarks: string;
|
|
remarks: string;
|
|
|
|
+ mountedPosition: string;
|
|
|
|
+ mainTechData: string;
|
|
|
|
+ deviceNum: string;
|
|
|
|
+ productionNum: string;
|
|
}
|
|
}
|
|
|
|
|
|
const columns = [
|
|
const columns = [
|
|
@@ -196,6 +200,10 @@ const equipmentDetailsItem = ref<EquipmentDetailsItem>({
|
|
phone: '',
|
|
phone: '',
|
|
serviceLife: undefined,
|
|
serviceLife: undefined,
|
|
remarks: '',
|
|
remarks: '',
|
|
|
|
+ mountedPosition: '',
|
|
|
|
+ mainTechData: '',
|
|
|
|
+ deviceNum: '',
|
|
|
|
+ productionNum: '',
|
|
});
|
|
});
|
|
|
|
|
|
const colorShow = (value: number | string) => {
|
|
const colorShow = (value: number | string) => {
|
|
@@ -282,6 +290,10 @@ const obtainDeviceDetails = () => {
|
|
phone,
|
|
phone,
|
|
serviceLife,
|
|
serviceLife,
|
|
remarks,
|
|
remarks,
|
|
|
|
+ mountedPosition,
|
|
|
|
+ mainTechData,
|
|
|
|
+ deviceNum,
|
|
|
|
+ productionNum,
|
|
} = deviceQueryVo;
|
|
} = deviceQueryVo;
|
|
equipmentDetailsItem.value = {
|
|
equipmentDetailsItem.value = {
|
|
deviceName,
|
|
deviceName,
|
|
@@ -306,6 +318,10 @@ const obtainDeviceDetails = () => {
|
|
phone,
|
|
phone,
|
|
serviceLife,
|
|
serviceLife,
|
|
remarks,
|
|
remarks,
|
|
|
|
+ mountedPosition,
|
|
|
|
+ mainTechData,
|
|
|
|
+ deviceNum,
|
|
|
|
+ productionNum,
|
|
};
|
|
};
|
|
if (gatewayInfoVos.length) {
|
|
if (gatewayInfoVos.length) {
|
|
gatewayList.value = gatewayInfoVos;
|
|
gatewayList.value = gatewayInfoVos;
|
|
@@ -334,6 +350,14 @@ const obtainDeviceDetails = () => {
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const exceptionalReturn = (value: string | number | undefined) => {
|
|
|
|
+ if (value) {
|
|
|
|
+ return value;
|
|
|
|
+ } else {
|
|
|
|
+ return '-';
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
watch(
|
|
watch(
|
|
() => route.params.id,
|
|
() => route.params.id,
|
|
() => {
|
|
() => {
|
|
@@ -365,7 +389,7 @@ onMounted(() => {
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@change="selectDeviceId"
|
|
@change="selectDeviceId"
|
|
/>
|
|
/>
|
|
- <AButton class="default-button previous" @click="switchDevices(1)">上一个</AButton>
|
|
|
|
|
|
+ <AButton class="previous default-button" @click="switchDevices(1)">上一个</AButton>
|
|
<AButton class="default-button" @click="switchDevices(2)">下一个</AButton>
|
|
<AButton class="default-button" @click="switchDevices(2)">下一个</AButton>
|
|
</div>
|
|
</div>
|
|
</AFlex>
|
|
</AFlex>
|
|
@@ -509,36 +533,72 @@ onMounted(() => {
|
|
</ACol>
|
|
</ACol>
|
|
<ACol :span="6">
|
|
<ACol :span="6">
|
|
<span
|
|
<span
|
|
- >出厂日期:<span class="details-content-color">{{ equipmentDetailsItem.productionDate }}</span>
|
|
|
|
|
|
+ >出厂日期:<span class="details-content-color">{{
|
|
|
|
+ equipmentDetailsItem.productionDate ? equipmentDetailsItem.productionDate : '-'
|
|
|
|
+ }}</span>
|
|
|
|
+ </span>
|
|
|
|
+ </ACol>
|
|
|
|
+ </ARow>
|
|
|
|
+ <ARow class="detailed-information details-text">
|
|
|
|
+ <ACol :span="6">
|
|
|
|
+ <span
|
|
|
|
+ >出厂编号:
|
|
|
|
+ <span class="details-content-color">
|
|
|
|
+ {{ exceptionalReturn(equipmentDetailsItem.productionNum) }}</span
|
|
|
|
+ ></span
|
|
|
|
+ >
|
|
|
|
+ </ACol>
|
|
|
|
+ <ACol :span="6">
|
|
|
|
+ <span
|
|
|
|
+ >设备编号:
|
|
|
|
+ <span class="details-content-color">{{ exceptionalReturn(equipmentDetailsItem.deviceNum) }}</span>
|
|
|
|
+ </span>
|
|
|
|
+ </ACol>
|
|
|
|
+ <ACol :span="6">
|
|
|
|
+ <span>
|
|
|
|
+ 主要技术参数:<span class="details-content-color">{{
|
|
|
|
+ exceptionalReturn(equipmentDetailsItem.mainTechData)
|
|
|
|
+ }}</span>
|
|
|
|
+ </span>
|
|
|
|
+ </ACol>
|
|
|
|
+ <ACol :span="6">
|
|
|
|
+ <span
|
|
|
|
+ >安装位置:<span class="details-content-color">{{
|
|
|
|
+ exceptionalReturn(equipmentDetailsItem.mountedPosition)
|
|
|
|
+ }}</span>
|
|
</span>
|
|
</span>
|
|
</ACol>
|
|
</ACol>
|
|
</ARow>
|
|
</ARow>
|
|
<ARow class="detailed-information details-text">
|
|
<ARow class="detailed-information details-text">
|
|
<ACol :span="6">
|
|
<ACol :span="6">
|
|
<span
|
|
<span
|
|
- >使用部门: <span class="details-content-color">{{ equipmentDetailsItem.department }}</span></span
|
|
|
|
|
|
+ >使用部门:
|
|
|
|
+ <span class="details-content-color">{{ exceptionalReturn(equipmentDetailsItem.department) }}</span></span
|
|
>
|
|
>
|
|
</ACol>
|
|
</ACol>
|
|
<ACol :span="6">
|
|
<ACol :span="6">
|
|
<span
|
|
<span
|
|
- >负责人: <span class="details-content-color">{{ equipmentDetailsItem.respPerson }}</span>
|
|
|
|
|
|
+ >负责人: <span class="details-content-color">{{ exceptionalReturn(equipmentDetailsItem.respPerson) }}</span>
|
|
</span>
|
|
</span>
|
|
</ACol>
|
|
</ACol>
|
|
<ACol :span="6">
|
|
<ACol :span="6">
|
|
<span>
|
|
<span>
|
|
- 联系电话:<span class="details-content-color">{{ equipmentDetailsItem.phone }}</span>
|
|
|
|
|
|
+ 联系电话:<span class="details-content-color">{{ exceptionalReturn(equipmentDetailsItem.phone) }}</span>
|
|
</span>
|
|
</span>
|
|
</ACol>
|
|
</ACol>
|
|
<ACol :span="6">
|
|
<ACol :span="6">
|
|
<span>
|
|
<span>
|
|
- 使用年限 (年):<span class="details-content-color">{{ equipmentDetailsItem.serviceLife }}</span>
|
|
|
|
|
|
+ 使用年限 (年):<span class="details-content-color">{{
|
|
|
|
+ exceptionalReturn(equipmentDetailsItem.serviceLife)
|
|
|
|
+ }}</span>
|
|
</span>
|
|
</span>
|
|
</ACol>
|
|
</ACol>
|
|
</ARow>
|
|
</ARow>
|
|
<ARow class="detailed-information details-text">
|
|
<ARow class="detailed-information details-text">
|
|
<ACol :span="6">
|
|
<ACol :span="6">
|
|
<span
|
|
<span
|
|
- >备注: <span class="details-content-color">{{ equipmentDetailsItem.remarks }}</span></span
|
|
|
|
|
|
+ >备注:
|
|
|
|
+ <span class="details-content-color">{{ exceptionalReturn(equipmentDetailsItem.remarks) }}</span></span
|
|
>
|
|
>
|
|
</ACol>
|
|
</ACol>
|
|
</ARow>
|
|
</ARow>
|