|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<div class="head-container">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="deptName"
|
|
|
|
|
placeholder="请输入设备类型名称"
|
|
|
|
|
:placeholder="$t('dms.inputDeviceType')"
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
prefix-icon="el-icon-search"
|
|
|
|
@ -38,10 +38,10 @@
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="设备名称" prop="deviceName">
|
|
|
|
|
<el-form-item :label="$t('dms.deviceName')" prop="deviceName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.deviceName"
|
|
|
|
|
placeholder="请输入设备名称"
|
|
|
|
|
:placeholder="$t('dms.inputDeviceName')"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
@ -62,10 +62,10 @@
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="设备位置" prop="deviceLocation">
|
|
|
|
|
<el-form-item :label="$t('dms.deviceLocation')" prop="deviceLocation">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.deviceLocation"
|
|
|
|
|
placeholder="请输入设备位置"
|
|
|
|
|
:placeholder="$t('dms.inputDeviceLocation')"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
@ -86,18 +86,18 @@
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="供应商" prop="supplierId">
|
|
|
|
|
<el-form-item :label="$t('dms.supplier')" prop="supplierId">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.suplierName"
|
|
|
|
|
placeholder="请输入供应商"
|
|
|
|
|
:placeholder="$t('dms.inputSupplier')"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备状态" prop="deviceStatus">
|
|
|
|
|
<el-form-item :label="$t('dms.deviceStatus')" prop="deviceStatus">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.deviceStatus"
|
|
|
|
|
placeholder="设备状态"
|
|
|
|
|
:placeholder="$t('dms.inputDeviceStatus')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
>
|
|
|
|
@ -118,8 +118,8 @@
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{$t('button.select')}}</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('button.remake') }}</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -132,7 +132,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
>{{$t('button.insert')}}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -143,7 +143,7 @@
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['dms:ledger:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>{{ $t('button.update') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -154,7 +154,7 @@
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['dms:ledger:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
>{{ $t('button.delete') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -164,7 +164,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['dms:ledger:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
>{{ $t('button.export') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
@ -176,13 +176,13 @@
|
|
|
|
|
@selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="deviceId" />-->
|
|
|
|
|
<el-table-column label="设备编号" align="center" prop="deviceCode" key="device1"/>
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceName" key="device2"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceCode')" align="center" prop="deviceCode" key="device1"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceName')" align="center" prop="deviceName" key="device2"/>
|
|
|
|
|
<!-- <el-table-column label="所属工位" align="center" prop="stationId" key="device3"/>-->
|
|
|
|
|
<el-table-column label="资产编号" align="center" prop="assetNumber" key="device4"/>
|
|
|
|
|
<el-table-column label="设备位置" align="center" prop="deviceLocation" key="device5"/>
|
|
|
|
|
<el-table-column :label="$t('dms.assetNumber')" align="center" prop="assetNumber" key="device4"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceLocation')" align="center" prop="deviceLocation" key="device5"/>
|
|
|
|
|
<!-- <el-table-column label="设备类型" align="center" prop="deviceTypeId" />-->
|
|
|
|
|
<el-table-column label="设备类型" align="center" prop="deviceTypeId" key="device6" >
|
|
|
|
|
<el-table-column :label="$t('dms.deviceType')" align="center" prop="deviceTypeId" key="device6" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in devicetypeList"
|
|
|
|
@ -194,9 +194,9 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="设备规格" align="center" prop="deviceSpec" key="device7"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceSpec')" align="center" prop="deviceSpec" key="device7"/>
|
|
|
|
|
<!-- <el-table-column label="供应商" align="center" prop="suplierName" />-->
|
|
|
|
|
<el-table-column label="供应商" align="center" prop="suplierName" key="device8" >
|
|
|
|
|
<el-table-column :label="$t('dms.suplierName')" align="center" prop="suplierName" key="device8" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in supplierList"
|
|
|
|
@ -209,7 +209,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="设备状态" align="center" prop="deviceStatus" />-->
|
|
|
|
|
<el-table-column label="设备状态" align="center" prop="deviceStatus" key="device9">
|
|
|
|
|
<el-table-column :label="$t('dms.deviceStatus')" align="center" prop="deviceStatus" key="device9">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.device_status" :value="scope.row.deviceStatus"/>
|
|
|
|
|
</template>
|
|
|
|
@ -220,8 +220,8 @@
|
|
|
|
|
<!-- <dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" key="device10" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" key="device10" />
|
|
|
|
|
<el-table-column :label="$t('button.operate')" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
@ -229,14 +229,14 @@
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['dms:ledger:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>{{$t('button.update')}}</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['dms:ledger:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
>{{ $t('button.delete') }}</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -264,7 +264,7 @@
|
|
|
|
|
v-bind:style="[isStyle?{color:'white', backgroundColor:'#1890ff'}:{}] "
|
|
|
|
|
@click="getDeviceTypes"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>设备类型</el-button>
|
|
|
|
|
>{{ $t('dms.deviceType') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -273,7 +273,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="getDeviceSupliers"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>设备供应商</el-button>
|
|
|
|
|
>{{ $t('dms.supplier') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -282,7 +282,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="getDeviceDepreciations"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>设备折旧</el-button>
|
|
|
|
|
>{{$t('dms.deviceDepreciations')}}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
@ -301,7 +301,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="getDeviceInstalls"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>设备安装</el-button>
|
|
|
|
|
>{{ $t('dms.deviceInstalls') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -310,7 +310,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="getDeviceInfos"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>设备转移</el-button>
|
|
|
|
|
>{{ $t('dms.deviceInfos') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -319,7 +319,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="getDeviceDebuggings"
|
|
|
|
|
v-hasPermi="['dms:ledger:add']"
|
|
|
|
|
>设备调试</el-button>
|
|
|
|
|
>{{ $t('dms.deviceDebuggings') }}</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
@ -343,8 +343,8 @@
|
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="类型编号" align="center" prop="typeCode" key="type1" />
|
|
|
|
|
<el-table-column label="类型名称" align="center" prop="typeName"key="type2" />
|
|
|
|
|
<el-table-column :label="$t('dms.typeCode')" align="center" prop="typeCode" key="type1" />
|
|
|
|
|
<el-table-column :label="$t('dms.typeName')" align="center" prop="typeName"key="type2" />
|
|
|
|
|
<!-- <el-table-column label="是否标识:1-是;2-否" align="center" prop="isFlag" />-->
|
|
|
|
|
<!-- <el-table-column label="标识" align="center" prop="isFlag" key="type3">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
@ -352,7 +352,7 @@
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="祖级列表" align="center" prop="ancestors" key="type4"/>-->
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" key="type5"/>
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" key="type5"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
<!-- 删掉这个eltable会导致上面eltable的树级无法显示-->
|
|
|
|
|
<el-table
|
|
|
|
@ -368,13 +368,13 @@
|
|
|
|
|
<!-- <el-table v-loading="loading" :data="supplierLists">-->
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="supplierId" key="sup5"/>-->
|
|
|
|
|
<el-table-column label="供应商编号" align="center" prop="suplierCode" key="sup1"/>
|
|
|
|
|
<el-table-column label="供应商名称" align="center" prop="suplierName" key="sup2"/>
|
|
|
|
|
<el-table-column label="供应商联系人" align="center" prop="suplierPerson" key="sup3"/>
|
|
|
|
|
<el-table-column label="供应商电话" align="center" prop="suplierTel" key="sup4" />
|
|
|
|
|
<el-table-column label="供应商地址" align="center" prop="suplierAddress" key="sup6"/>
|
|
|
|
|
<el-table-column :label="$t('dms.suplierCode')" align="center" prop="suplierCode" key="sup1"/>
|
|
|
|
|
<el-table-column :label="$t('dms.suplierName')" align="center" prop="suplierName" key="sup2"/>
|
|
|
|
|
<el-table-column :label="$t('dms.suplierPerson')" align="center" prop="suplierPerson" key="sup3"/>
|
|
|
|
|
<el-table-column :label="$t('dms.suplierTel')" align="center" prop="suplierTel" key="sup4" />
|
|
|
|
|
<el-table-column :label="$t('dms.suplierAddress')" align="center" prop="suplierAddress" key="sup6"/>
|
|
|
|
|
<!-- <el-table-column label="供应商状态" align="center" prop="suplierStatus" />-->
|
|
|
|
|
<el-table-column label="供应商状态" align="center" prop="suplierStatus" key="sup7">
|
|
|
|
|
<el-table-column :label="$t('dms.suplierStatus')" align="center" prop="suplierStatus" key="sup7">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.suplier_status" :value="scope.row.suplierStatus"/>
|
|
|
|
|
</template>
|
|
|
|
@ -385,13 +385,13 @@
|
|
|
|
|
<!-- <dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" key="sup9"/>
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" key="sup9"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-table v-loading="loading" :data="devicedepreciationList" v-if=deviceDepreciationIf >
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="deviceDepreciationId" />-->
|
|
|
|
|
<el-table-column label="设备ID" align="center" prop="deviceId" key="deper2"/>
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceId"key="deper20" >
|
|
|
|
|
<el-table-column :label="$t('dms.deviceId')" align="center" prop="deviceId" key="deper2"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceName')" align="center" prop="deviceId"key="deper20" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in ledgerList"
|
|
|
|
@ -403,42 +403,42 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="维修次数" align="center" prop="repairFrequency"key="deper3" />
|
|
|
|
|
<el-table-column label="维修费用" align="center" prop="repairCosts" key="deper4"/>
|
|
|
|
|
<el-table-column label="折旧费用" align="center" prop="depreciationCost" key="depre1" />
|
|
|
|
|
<el-table-column label="投入时间" align="center" prop="putintoTime" width="180" key="deper5">
|
|
|
|
|
<el-table-column :label="$t('dms.repairFrequency')" align="center" prop="repairFrequency"key="deper3" />
|
|
|
|
|
<el-table-column :label="$t('dms.repairCosts')" align="center" prop="repairCosts" key="deper4"/>
|
|
|
|
|
<el-table-column :label="$t('dms.depreciationCost')" align="center" prop="depreciationCost" key="depre1" />
|
|
|
|
|
<el-table-column :label="$t('dms.putintoTime')" align="center" prop="putintoTime" width="180" key="deper5">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.putintoTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="使用年限" align="center" prop="useLife" key="deper6"/>
|
|
|
|
|
<el-table-column :label="$t('dms.useLife')" align="center" prop="useLife" key="deper6"/>
|
|
|
|
|
<!-- <el-table-column label="是否标识:1-是;2-否" align="center" prop="isFlag" />-->
|
|
|
|
|
<!-- <el-table-column label="标识" align="center" prop="isFlag">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" key="deper7" />
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" key="deper7" />
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-table v-loading="loading" :data="checkplanList" v-if=deviceCheckplanIf>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- <el-table-column label="盘点计划ID" align="center" prop="flowCheckplanId" key="flow1" />-->
|
|
|
|
|
<el-table-column label="盘点计划ID" align="center" prop="flowCheckplanId" key="flow1">
|
|
|
|
|
<el-table-column :label="$t('dms.flowCheckplanId')" align="center" prop="flowCheckplanId" key="flow1">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<router-link :to="'/dms/detail/index/' + scope.row.flowCheckplanId" class="link-type">
|
|
|
|
|
<span>{{ scope.row.flowCheckplanId }}</span>
|
|
|
|
|
</router-link>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="盘点单号" align="center" prop="checkCode" key="flow2"/>
|
|
|
|
|
<el-table-column label="计划盘点时间" align="center" prop="planTime" width="180" key="flow3">
|
|
|
|
|
<el-table-column :label="$t('dms.checkCode')" align="center" prop="checkCode" key="flow2"/>
|
|
|
|
|
<el-table-column :label="$t('dms.planCheckTime')" align="center" prop="planTime" width="180" key="flow3">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="盘点人员" align="center" prop="checkBy" key="flow4"/>
|
|
|
|
|
<el-table-column :label="$t('dms.checkBy')" align="center" prop="checkBy" key="flow4"/>
|
|
|
|
|
<!-- <el-table-column label="设备类型ID,关联dms_base_device_type的device_type_id" align="center" prop="deviceTypeId" />-->
|
|
|
|
|
<el-table-column label="设备类型" align="center" prop="deviceTypeId" key="flow5" >
|
|
|
|
|
<el-table-column :label="$t('dms.deviceTypeId')" align="center" prop="deviceTypeId" key="flow5" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in devicetypeList"
|
|
|
|
@ -450,21 +450,21 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="盘点数量" align="center" prop="checkAmount" key="flow6" />
|
|
|
|
|
<el-table-column label="剩余数量" align="center" prop="surplusCheckAmount" key="flow7"/>
|
|
|
|
|
<el-table-column :label="$t('dms.checkAmount')" align="center" prop="checkAmount" key="flow6" />
|
|
|
|
|
<el-table-column :label="$t('dms.surplusCheckAmount')" align="center" prop="surplusCheckAmount" key="flow7"/>
|
|
|
|
|
<!-- <el-table-column label="盘点状态(0未盘点1已盘点2盘点中)" align="center" prop="checkState" />-->
|
|
|
|
|
<el-table-column label="盘点状态" align="center" prop="checkState">
|
|
|
|
|
<el-table-column :label="$t('dms.checkState')" align="center" prop="checkState">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.dms_check_state" :value="scope.row.checkState"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" />
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-table v-loading="loading" :data="installList" v-if="deviceInstallIf">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- <el-table-column label="主键ID" align="center" prop="deviceInstallId" />-->
|
|
|
|
|
<el-table-column label="设备ID" align="center" prop="deviceId" key="install1" />
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceId" key="install2" >
|
|
|
|
|
<el-table-column :label="$t('dms.deviceId')" align="center" prop="deviceId" key="install1" />
|
|
|
|
|
<el-table-column :label="$t('dms.deviceName')" align="center" prop="deviceId" key="install2" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in ledgerList"
|
|
|
|
@ -476,21 +476,21 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="安装地点" align="center" prop="installPosition" key="install3" />
|
|
|
|
|
<el-table-column label="安装时间" align="center" prop="installTime" width="180" key="install4">
|
|
|
|
|
<el-table-column :label="$t('dms.installPosition')" align="center" prop="installPosition" key="install3" />
|
|
|
|
|
<el-table-column :label="$t('dms.installTime')" align="center" prop="installTime" width="180" key="install4">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.installTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="安装人员" align="center" prop="installPersion" key="install5" />
|
|
|
|
|
<el-table-column :label="$t('dms.installPersion')" align="center" prop="installPersion" key="install5" />
|
|
|
|
|
<!-- <el-table-column label="${comment}" align="center" prop="workOrder" />-->
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" key="install6"/>
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" key="install6"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-table v-loading="loading" :data="infoList" v-if="deviceInfoIf" >
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="主键ID" align="center" prop="transferInfoId" key="info1" />
|
|
|
|
|
<el-table-column label="设备ID" align="center" prop="deviceId" key="info2"/>
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceId" key="info3">
|
|
|
|
|
<!-- <el-table-column label="主键ID" align="center" prop="transferInfoId" key="info1" />-->
|
|
|
|
|
<el-table-column :label="$t('dms.deviceId')" align="center" prop="deviceId" key="info2"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceName')" align="center" prop="deviceId" key="info3">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in ledgerList"
|
|
|
|
@ -502,23 +502,23 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="设备原位置" align="center" prop="devicePosition" key="info4"/>
|
|
|
|
|
<el-table-column label="设备转移位置" align="center" prop="devicePositionNew" key="info5"/>
|
|
|
|
|
<el-table-column label="设备转移人员" align="center" prop="devicePositionOperator"key="info6" />
|
|
|
|
|
<el-table-column label="设备转移原因" align="center" prop="devicePositionReason" key="info7"/>
|
|
|
|
|
<el-table-column label="设备转移时间" align="center" prop="deviceTransferTime" width="180" key="info8">
|
|
|
|
|
<el-table-column :label="$t('dms.devicePosition')" align="center" prop="devicePosition" key="info4"/>
|
|
|
|
|
<el-table-column :label="$t('dms.devicePositionNew')" align="center" prop="devicePositionNew" key="info5"/>
|
|
|
|
|
<el-table-column :label="$t('dms.devicePositionOperator')" align="center" prop="devicePositionOperator"key="info6" />
|
|
|
|
|
<el-table-column :label="$t('dms.devicePositionReason')" align="center" prop="devicePositionReason" key="info7"/>
|
|
|
|
|
<el-table-column :label="$t('dms.deviceTransferTime')" align="center" prop="deviceTransferTime" width="180" key="info8">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.deviceTransferTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" key="info9"/>
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark" key="info9"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-table v-loading="loading" :data="debuggingList" v-if="deviceDebuggingIf">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- <el-table-column label="主键ID" align="center" prop="deviceDebuggingId" />-->
|
|
|
|
|
<el-table-column label="调试单号" align="center" prop="workOrder" key="work1"/>
|
|
|
|
|
<el-table-column :label="$t('dms.workOrder')" align="center" prop="workOrder" key="work1"/>
|
|
|
|
|
<!-- <el-table-column label="设备ID,关联dms_base_device_ledger的device_id" align="center" prop="deviceId" />-->
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceId" key="work2">
|
|
|
|
|
<el-table-column :label="$t('dms.deviceName')" align="center" prop="deviceId" key="work2">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-for="(item, index) in ledgerList"
|
|
|
|
@ -531,44 +531,44 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="调试状态(0未调试1调试中2已完成)" align="center" prop="status" />-->
|
|
|
|
|
<el-table-column label="调试状态" align="center" prop="status" key="work3">
|
|
|
|
|
<el-table-column :label="$t('dms.debugStatus')" align="center" prop="status" key="work3">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.dms_status" :value="scope.row.status"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="调试时间" align="center" prop="debugTime" width="180" key="work4">
|
|
|
|
|
<el-table-column :label="$t('dms.debugTime')" align="center" prop="debugTime" width="180" key="work4">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.debugTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="调试人员" align="center" prop="debugPerson"key="work5" />
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark"key="work6" />
|
|
|
|
|
<el-table-column :label="$t('dms.debugPerson')" align="center" prop="debugPerson"key="work5" />
|
|
|
|
|
<el-table-column :label="$t('dms.remark')" align="center" prop="remark"key="work6" />
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- 添加或修改设备台账信息对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form-item label="设备编号" prop="deviceCode">
|
|
|
|
|
<el-input v-model="form.deviceCode" placeholder="请输入设备编号" />
|
|
|
|
|
<el-form-item :label="$t('dms.deviceCode')" prop="deviceCode">
|
|
|
|
|
<el-input v-model="form.deviceCode" :placeholder="$t('dms.inputDeviceCode')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备名称" prop="deviceName">
|
|
|
|
|
<el-input v-model="form.deviceName" placeholder="请输入设备名称" />
|
|
|
|
|
<el-form-item :label="$t('dms.deviceName')" prop="deviceName">
|
|
|
|
|
<el-input v-model="form.deviceName" :placeholder="$t('dms.inputDeviceName')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="所属工位" prop="stationId">-->
|
|
|
|
|
<!-- <el-input v-model="form.stationId" placeholder="请输入所属工位,关联pd_base_station_info的station_id" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="资产编号" prop="assetNumber">
|
|
|
|
|
<el-input v-model="form.assetNumber" placeholder="请输入资产编号" />
|
|
|
|
|
<el-form-item :label="$t('dms.assetNumber')" prop="inputAssetNumber">
|
|
|
|
|
<el-input v-model="form.assetNumber" placeholder="" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备位置" prop="deviceLocation">
|
|
|
|
|
<el-input v-model="form.deviceLocation" placeholder="请输入设备位置" />
|
|
|
|
|
<el-form-item :label="$t('dms.deviceLocation')" prop="deviceLocation">
|
|
|
|
|
<el-input v-model="form.deviceLocation" :placeholder="$t('dms.inputDeviceLocation')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="设备类型" prop="deviceTypeId">-->
|
|
|
|
|
<!-- <el-input v-model="form.deviceTypeId" placeholder="请输入设备类型,关联dm_base_device_type的device_type_id" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="设备类型" prop="deviceTypeId" >
|
|
|
|
|
<el-select v-model="form.deviceTypeId" placeholder="请输入设备类型">
|
|
|
|
|
<el-form-item :label="$t('dms.deviceTypeId')" prop="deviceTypeId" >
|
|
|
|
|
<el-select v-model="form.deviceTypeId" :placeholder="$t('dms.inputDeviceType')">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in devicetypeList"
|
|
|
|
|
:key="item.deviceTypeId"
|
|
|
|
@ -577,14 +577,14 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备规格" prop="deviceSpec">
|
|
|
|
|
<el-input v-model="form.deviceSpec" placeholder="请输入设备规格" />
|
|
|
|
|
<el-form-item :label="$t('dms.deviceSpec')" prop="deviceSpec">
|
|
|
|
|
<el-input v-model="form.deviceSpec" :placeholder="$t('dms.inoutDeviceSpec')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="供应商" prop="supplierId">-->
|
|
|
|
|
<!-- <el-input v-model="form.supplierId" placeholder="请输入供应商,关联dm_base_device_supplier的supplier_id" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="供应商" prop="supplierId" >
|
|
|
|
|
<el-select v-model="form.supplierId" placeholder="请输入供应商">
|
|
|
|
|
<el-form-item :label="$t('dms.supplier')" prop="supplierId" >
|
|
|
|
|
<el-select v-model="form.supplierId" :placeholder="$t('dms.inputSuplier')">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in supplierList"
|
|
|
|
|
:key="item.supplierId"
|
|
|
|
@ -593,7 +593,7 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备状态" prop="deviceStatus">
|
|
|
|
|
<el-form-item :label="$t('dms.deviceStatus')" prop="deviceStatus">
|
|
|
|
|
<el-radio-group v-model="form.deviceStatus">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.device_status"
|
|
|
|
@ -611,13 +611,13 @@
|
|
|
|
|
<!-- >{{dict.label}}</el-radio>-->
|
|
|
|
|
<!-- </el-radio-group>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
|
|
|
|
<el-form-item :label="$t('remark')" prop="remark">
|
|
|
|
|
<el-input v-model="form.remark" type="textarea" :placeholder="$t('dms.inputRemark')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm">{{ $t('button.submit') }}</el-button>
|
|
|
|
|
<el-button @click="cancel">{{ $t('button.cancel') }}</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
@ -1115,7 +1115,7 @@ export default {
|
|
|
|
|
getTreeselect() {
|
|
|
|
|
listDevicetype().then(response => {
|
|
|
|
|
this.devicetypeOptions = [];
|
|
|
|
|
const data = { deviceTypeId: 0, typeName: '顶级节点', children: [] };
|
|
|
|
|
const data = { deviceTypeId: 0, typeName: this.$t('dms.topNodes'), children: [] };
|
|
|
|
|
data.children = this.handleTree(response.data, "deviceTypeId", "parentId");
|
|
|
|
|
this.devicetypeOptions.push(data);
|
|
|
|
|
// console.log(data)
|
|
|
|
|