|
@@ -13,36 +13,27 @@
|
|
|
<template #status="{ row }">
|
|
|
{{ DEVICE_SIGN_STATUS[row.status] }}
|
|
|
</template>
|
|
|
+ <template #transferMode="{ row }">
|
|
|
+ {{ DEVICE_TRANSPORT_METHOD[row.transferMode] }}
|
|
|
+ </template>
|
|
|
<template #operate="{ row }">
|
|
|
<div class="table-operations" @click.stop>
|
|
|
<t-link
|
|
|
- :theme="
|
|
|
- row.haveSign || ['TRANSFER', 'IN'].includes(row.status)
|
|
|
- ? 'default'
|
|
|
- : 'primary'
|
|
|
- "
|
|
|
+ theme="primary"
|
|
|
:disabled="row.haveSign || ['TRANSFER', 'IN'].includes(row.status)"
|
|
|
hover="color"
|
|
|
@click="enter(row)"
|
|
|
>入库</t-link
|
|
|
>
|
|
|
<t-link
|
|
|
- :theme="
|
|
|
- row.haveSign || ['TRANSFER', 'IN'].includes(row.status)
|
|
|
- ? 'default'
|
|
|
- : 'primary'
|
|
|
- "
|
|
|
+ theme="primary"
|
|
|
:disabled="row.haveSign || ['TRANSFER', 'IN'].includes(row.status)"
|
|
|
hover="color"
|
|
|
@click="middle(row)"
|
|
|
>中转</t-link
|
|
|
>
|
|
|
<t-link
|
|
|
- :theme="
|
|
|
- row.haveSign || ['USING'].includes(row.status)
|
|
|
- ? 'default'
|
|
|
- : 'primary'
|
|
|
- "
|
|
|
+ theme="primary"
|
|
|
:disabled="row.haveSign || ['USING'].includes(row.status)"
|
|
|
hover="color"
|
|
|
@click="edit(row)"
|
|
@@ -107,7 +98,11 @@
|
|
|
</template>
|
|
|
<script name="DeviceManageNewTab2" setup>
|
|
|
import { ref, computed, onMounted } from 'vue';
|
|
|
-import { RUNNING_STATUS, DEVICE_SIGN_STATUS } from '@/config/constants';
|
|
|
+import {
|
|
|
+ RUNNING_STATUS,
|
|
|
+ DEVICE_SIGN_STATUS,
|
|
|
+ DEVICE_TRANSPORT_METHOD,
|
|
|
+} from '@/config/constants';
|
|
|
import { dictToOptionList } from '@/utils/tool';
|
|
|
import { cloneDeep, omit } from 'lodash-es';
|
|
|
import {
|
|
@@ -441,8 +436,8 @@ const columns = [
|
|
|
{ colKey: 'model', title: '设备型号' },
|
|
|
{ colKey: 'deviceStatus', title: '状态', cell: 'deviceStatus' },
|
|
|
{ colKey: 'supplierName', title: '设备归属' },
|
|
|
- { colKey: 'transportMode', title: '运输方式' },
|
|
|
- { colKey: 'status', title: '使用状态', cell: 'fff' },
|
|
|
+ { colKey: 'transferMode', title: '运输方式', cell: 'transferMode' },
|
|
|
+ { colKey: 'status', title: '使用状态', cell: 'status' },
|
|
|
{ colKey: 'receiveCrmNo', title: '接收方单号' },
|
|
|
{
|
|
|
title: '管理',
|