|
|
@ -1,36 +1,20 @@ |
|
|
|
<template> |
|
|
|
<ContentWrap> |
|
|
|
<!-- 搜索工作栏 --> |
|
|
|
<Search |
|
|
|
:schema="DeviceAccounts.allSchemas.searchSchema" |
|
|
|
@search="setSearchParams" |
|
|
|
@reset="setSearchParams" |
|
|
|
/> |
|
|
|
<Search :schema="DeviceAccounts.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
|
<TableHead |
|
|
|
:HeadButttondata="HeadButttondata" |
|
|
|
@button-base-click="buttonBaseClick" |
|
|
|
:routeName="routeName" |
|
|
|
@updataTableColumns="updataTableColumns" |
|
|
|
@searchFormClick="searchFormClick" |
|
|
|
:allSchemas="DeviceAccounts.allSchemas" |
|
|
|
/> |
|
|
|
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :routeName="routeName" |
|
|
|
@updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" |
|
|
|
:allSchemas="DeviceAccounts.allSchemas" /> |
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
|
<ContentWrap> |
|
|
|
<Table |
|
|
|
:columns="tableColumns" |
|
|
|
:data="tableObject.tableList" |
|
|
|
:loading="tableObject.loading" |
|
|
|
:pagination="{ |
|
|
|
<Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{ |
|
|
|
total: tableObject.total |
|
|
|
}" |
|
|
|
v-model:pageSize="tableObject.pageSize" |
|
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
|
v-model:sort="tableObject.sort" |
|
|
|
> |
|
|
|
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" |
|
|
|
v-model:sort="tableObject.sort"> |
|
|
|
<template #number="{ row }"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '编号', row.number)"> |
|
|
|
<span>{{ row.number }}</span> |
|
|
@ -43,128 +27,104 @@ |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<BasicForm |
|
|
|
ref="basicFormRef" |
|
|
|
@success="formsSuccess" |
|
|
|
:rules="DeviceAccountsRules" |
|
|
|
:formAllSchemas="DeviceAccounts.allSchemas" |
|
|
|
:apiUpdate="DeviceAccountsApi.updateDeviceAccounts" |
|
|
|
:apiCreate="DeviceAccountsApi.createDeviceAccounts" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
:isBusiness="false" |
|
|
|
/> |
|
|
|
<BasicForm ref="basicFormRef" @success="formsSuccess" :rules="DeviceAccountsRules" |
|
|
|
:formAllSchemas="DeviceAccounts.allSchemas" :apiUpdate="DeviceAccountsApi.updateDeviceAccounts" |
|
|
|
:apiCreate="DeviceAccountsApi.createDeviceAccounts" @searchTableSuccess="searchTableSuccess" :isBusiness="false" /> |
|
|
|
|
|
|
|
<SearchTable ref="searchTableRef" @onMountedCallBack="onMountedCallBack" @searchTableSuccess="submitItem" /> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<DetailDeviceLedger |
|
|
|
ref="detailRef" |
|
|
|
:tabs="DeviceLedgerTabsList" |
|
|
|
:subTabs="DeviceLedgerSubTabsList" |
|
|
|
:isBasic="true" |
|
|
|
:allSchemas="allSchemas" |
|
|
|
@changeTabs="changeTabs" |
|
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
|
:apiPage="apiPage" |
|
|
|
:tabsExtend="tabsExtend" |
|
|
|
:tabName="tabName" |
|
|
|
:tableObjectExtend="tableObjectExtend" |
|
|
|
:getImageApi="uploadApi.getImage" |
|
|
|
:uploadImage="uploadApi.uploadImage" |
|
|
|
:defaultParams="defaultParams" |
|
|
|
:dialogApiPage="dialogApiPage" |
|
|
|
:dialogAllSchemas="dialogAllSchemas" |
|
|
|
/> |
|
|
|
<DetailDeviceLedger ref="detailRef" :tabs="DeviceLedgerTabsList" :subTabs="DeviceLedgerSubTabsList" :isBasic="true" |
|
|
|
:allSchemas="allSchemas" @changeTabs="changeTabs" :detailAllSchemas="detailAllSchemas" :apiPage="apiPage" |
|
|
|
:tabsExtend="tabsExtend" :tabName="tabName" :tableObjectExtend="tableObjectExtend" :getImageApi="uploadApi.getImage" |
|
|
|
:uploadImage="uploadApi.uploadImage" :defaultParams="defaultParams" :dialogApiPage="dialogApiPage" |
|
|
|
:dialogAllSchemas="dialogAllSchemas" /> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm |
|
|
|
ref="importFormRef" |
|
|
|
url="/eam/device-accounts/import" |
|
|
|
:importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" |
|
|
|
/> |
|
|
|
<ImportForm ref="importFormRef" url="/eam/device-accounts/import" :importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" /> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { |
|
|
|
import download from '@/utils/download' |
|
|
|
import { |
|
|
|
DeviceAccounts, |
|
|
|
DeviceAccountsRules, |
|
|
|
} from './deviceAccounts.data' |
|
|
|
import { Item } from '@/views/eam/basic/item/item.data' |
|
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
|
import { createDeviceItemBatch, getDeviceItemPage,getDeviceItemNoPage } from '@/api/eam/basic/rel' |
|
|
|
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { DeviceLedgerTabsList } from '@/utils/disposition/tabsList' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import DetailDeviceLedger from '@/components/Detail/src/DetailDeviceLedger.vue' |
|
|
|
import { DeviceRepair } from '@/views/eam/device/deviceRepair/deviceRepair.data' |
|
|
|
import { DeviceItem } from '@/views/eam/basic/deviceItem/deviceItem.data' |
|
|
|
import * as deviceRepairApi from '@/api/eam/device/deviceRepair' |
|
|
|
import * as uploadApi from '@/api/eam/upload' |
|
|
|
import * as DeviceMaintainOrderMainApi from '@/api/eam/device/deviceMaintainOrderMain' |
|
|
|
import * as DeviceMaintainOrderDetailApi from '@/api/eam/device/deviceMaintainOrderDetail' |
|
|
|
import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMain' |
|
|
|
import * as deviceMaintenanceDetailApi from '@/api/eam/device/deviceMaintenanceDetail' |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
|
|
import { |
|
|
|
} from './deviceAccounts.data' |
|
|
|
import { Item } from '@/views/eam/basic/item/item.data' |
|
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
|
import { createDeviceItemBatch, getDeviceItemPage, getDeviceItemNoPage } from '@/api/eam/basic/rel' |
|
|
|
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { DeviceLedgerTabsList } from '@/utils/disposition/tabsList' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import DetailDeviceLedger from '@/components/Detail/src/DetailDeviceLedger.vue' |
|
|
|
import { DeviceRepair } from '@/views/eam/device/deviceRepair/deviceRepair.data' |
|
|
|
import { DeviceItem } from '@/views/eam/basic/deviceItem/deviceItem.data' |
|
|
|
import * as deviceRepairApi from '@/api/eam/device/deviceRepair' |
|
|
|
import * as uploadApi from '@/api/eam/upload' |
|
|
|
import * as DeviceMaintainOrderMainApi from '@/api/eam/device/deviceMaintainOrderMain' |
|
|
|
import * as DeviceMaintainOrderDetailApi from '@/api/eam/device/deviceMaintainOrderDetail' |
|
|
|
import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMain' |
|
|
|
import * as deviceMaintenanceDetailApi from '@/api/eam/device/deviceMaintenanceDetail' |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
|
|
import { |
|
|
|
DeviceMaintainOrderMain, |
|
|
|
DeviceMaintainOrderDetail, |
|
|
|
} from '../devicemaintainjob/deviceMaintainOrderMain.data' |
|
|
|
import { |
|
|
|
} from '../devicemaintainjob/deviceMaintainOrderMain.data' |
|
|
|
import { |
|
|
|
DeviceMaintenanceMain, |
|
|
|
DeviceMaintenanceDetail |
|
|
|
} from '../devicemaintenancejob/deviceMaintenanceMain.data' |
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
|
|
|
|
defineOptions({ name: 'DeviceAccounts' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
const deviceNumber = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(DeviceAccounts.allSchemas.tableColumns) |
|
|
|
|
|
|
|
const allSchemas = ref(DeviceAccounts.allSchemas) |
|
|
|
const detailAllSchemas = ref() |
|
|
|
const apiPage = ref() |
|
|
|
const itemCodeRow = ref() |
|
|
|
const tableObjectExtend = ref() |
|
|
|
const defaultParams = ref({}) |
|
|
|
const dialogApiPage = ref() |
|
|
|
const dialogAllSchemas = ref() |
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/924818618605031424?token=' + getAccessToken()) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
} from '../devicemaintenancejob/deviceMaintenanceMain.data' |
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
|
|
|
|
defineOptions({ name: 'DeviceAccounts' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
const deviceNumber = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(DeviceAccounts.allSchemas.tableColumns) |
|
|
|
|
|
|
|
const allSchemas = ref(DeviceAccounts.allSchemas) |
|
|
|
const detailAllSchemas = ref() |
|
|
|
const apiPage = ref() |
|
|
|
const itemCodeRow = ref() |
|
|
|
const tableObjectExtend = ref() |
|
|
|
const defaultParams = ref({}) |
|
|
|
const dialogApiPage = ref() |
|
|
|
const dialogAllSchemas = ref() |
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/924818618605031424?token=' + getAccessToken()) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: DeviceAccountsApi.getDeviceAccountsPage // 分页接口 |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList, setSearchParams } = tableMethods |
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn(null), // 新增 |
|
|
|
defaultButtons.selectQrCodeBatchBtn(null), //批量生成二维码 |
|
|
|
// defaultButtons.defaultImportBtn(null), // 导入 |
|
|
@ -180,10 +140,10 @@ const HeadButttondata = [ |
|
|
|
// icon: 'Select', |
|
|
|
// color: '' |
|
|
|
// }, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
// 头部按钮事件 |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
// 头部按钮事件 |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
if (val == 'add') { |
|
|
|
// 新增 |
|
|
|
openForm('create') |
|
|
@ -205,21 +165,21 @@ const buttonBaseClick = (val, item) => { |
|
|
|
// 其他按钮 |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = [ |
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = [ |
|
|
|
defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn(null), // 删除 |
|
|
|
defaultButtons.selectQrCodeBtn(null), //二维码 |
|
|
|
defaultButtons.selectItemBtn(null) //备件 |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { |
|
|
|
// 编辑 |
|
|
|
openForm('update', row) |
|
|
@ -234,19 +194,19 @@ const buttonTableClick = async (val, row) => { |
|
|
|
// 其他按钮 |
|
|
|
console.log('其他按钮', val, row) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type : string, row ?: any) => { |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType, data) => { |
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType, data) => { |
|
|
|
var isHave = DeviceAccounts.allSchemas.formSchema.some(function (item) { |
|
|
|
return item.field === 'activeTime' || item.field === 'expireTime' |
|
|
|
}) |
|
|
@ -267,18 +227,18 @@ const formsSuccess = async (formType, data) => { |
|
|
|
} |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
|
itemCodeRow.value = row.number |
|
|
|
tabsExtend.value = 1 |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicDeviceAccounts') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id : number) => { |
|
|
|
try { |
|
|
|
// 删除的二次确认 |
|
|
|
await message.delConfirm() |
|
|
@ -287,12 +247,12 @@ const handleDelete = async (id: number) => { |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
} catch { } |
|
|
|
} |
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
const handleExport = async () => { |
|
|
|
/** 导出按钮操作 */ |
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
const handleExport = async () => { |
|
|
|
try { |
|
|
|
// 导出的二次确认 |
|
|
|
await message.exportConfirm() |
|
|
@ -304,38 +264,38 @@ const handleExport = async () => { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 导入 */ |
|
|
|
const importFormRef = ref() |
|
|
|
const handleImport = () => { |
|
|
|
/** 导入 */ |
|
|
|
const importFormRef = ref() |
|
|
|
const handleImport = () => { |
|
|
|
importFormRef.value.open() |
|
|
|
} |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
} |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '设备台账导入模版.xlsx' |
|
|
|
}) |
|
|
|
// 导入成功之后 |
|
|
|
const importSuccess = () => { |
|
|
|
}) |
|
|
|
// 导入成功之后 |
|
|
|
const importSuccess = () => { |
|
|
|
getList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
} |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|
const DeviceLedgerSubTabsList = getStrDictOptions(DICT_TYPE.DEVICE_DOC_TYPE) |
|
|
|
const tabsExtend = ref() |
|
|
|
const tabName = ref() |
|
|
|
const funcCode = ref('device_mould_picture') |
|
|
|
// tabs 切换事件 |
|
|
|
const changeTabs = (item) => { |
|
|
|
} |
|
|
|
|
|
|
|
const DeviceLedgerSubTabsList = getStrDictOptions(DICT_TYPE.DEVICE_DOC_TYPE) |
|
|
|
const tabsExtend = ref() |
|
|
|
const tabName = ref() |
|
|
|
const funcCode = ref('device_mould_picture') |
|
|
|
// tabs 切换事件 |
|
|
|
const changeTabs = (item) => { |
|
|
|
if (item.prop == 'Image') { |
|
|
|
tabsExtend.value = 1 |
|
|
|
tabName.value = item.label |
|
|
@ -397,17 +357,17 @@ const changeTabs = (item) => { |
|
|
|
value: itemCodeRow.value |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|
importTemplateData.templateUrl = await DeviceAccountsApi.importTemplate() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
/** 二维码 */ |
|
|
|
const openQrCode = async (number: String) => { |
|
|
|
/** 二维码 */ |
|
|
|
const openQrCode = async (number : String) => { |
|
|
|
// const data = await DeviceAccountsApi.getQrCode(number) |
|
|
|
// const url = window.URL.createObjectURL(new Blob([data])) |
|
|
|
// const link = document.createElement('a') |
|
|
@ -425,11 +385,11 @@ const openQrCode = async (number: String) => { |
|
|
|
// // 刷新列表 |
|
|
|
// await getList() |
|
|
|
// } catch {} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const searchTableRef = ref() |
|
|
|
/** 绑定备件操作 */ |
|
|
|
const openItem = async (number: String) => { |
|
|
|
const searchTableRef = ref() |
|
|
|
/** 绑定备件操作 */ |
|
|
|
const openItem = async (number : String) => { |
|
|
|
deviceNumber.value = number |
|
|
|
await CallBack1() |
|
|
|
searchTableRef.value.open( |
|
|
@ -445,9 +405,9 @@ const openItem = async (number: String) => { |
|
|
|
null, |
|
|
|
searchTableSelections.value |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const submitItem = async (formFieldRef, searchFieldRef, selections, typeRef, rowRef) => { |
|
|
|
const submitItem = async (formFieldRef, searchFieldRef, selections, typeRef, rowRef) => { |
|
|
|
const deviceItemRelList = selections.map((element) => ({ |
|
|
|
deviceNumber: deviceNumber.value, |
|
|
|
itemNumber: element.number |
|
|
@ -456,21 +416,21 @@ const submitItem = async (formFieldRef, searchFieldRef, selections, typeRef, row |
|
|
|
console.log('res', res) |
|
|
|
}) |
|
|
|
console.log('deviceItemRelList', deviceItemRelList) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const getDeviceItemBindData = async (params) => { |
|
|
|
const getDeviceItemBindData = async (params) => { |
|
|
|
const response = await getDeviceItemPage(params); |
|
|
|
return response?.data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const qrCodeBatch = async (val,item) => { |
|
|
|
const qrCodeBatch = async (val, item) => { |
|
|
|
const qrCodeList = tableObject.tableList.map(item => `'${item?.number}'`).join(', ') |
|
|
|
window.open(src.value + "&number=" + qrCodeList) |
|
|
|
} |
|
|
|
const searchTableSelections = ref([]) |
|
|
|
const CallBack1 = async () => { |
|
|
|
await getDeviceItemNoPage({ deviceNumber: deviceNumber.value }).then(async(res) => { |
|
|
|
} |
|
|
|
const searchTableSelections = ref([]) |
|
|
|
const CallBack1 = async () => { |
|
|
|
await getDeviceItemNoPage({ deviceNumber: deviceNumber.value }).then(async (res) => { |
|
|
|
await ItemApi.getItemNoPage().then(response => { |
|
|
|
searchTableSelections.value = response.filter(element => { |
|
|
|
let flag = false; |
|
|
@ -483,6 +443,5 @@ const CallBack1 = async () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
}; |
|
|
|
</script> |
|
|
|