|
@@ -24,30 +24,20 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="EPC" prop="epc" v-if="isExist('epc')">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.epc"
|
|
|
- placeholder="请输入EPC"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.epc" placeholder="请输入EPC" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="开始使用日期" prop="startDate" v-if="isExist('开始使用日期')">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.startDate"
|
|
|
- placeholder="请输入开始使用日期"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.startDate" placeholder="请输入开始使用日期" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="isExist('责任人')" label="责任人" prop="responsiblePerson">
|
|
|
<el-input v-model="queryParams.responsiblePerson" placeholder="请输入责任人" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="isExist('所属公司')" label="所属公司" prop="corporation">
|
|
|
+ <el-form-item v-if="isExist('所属公司')" label="所属公司" prop="corporation">
|
|
|
<div style="display: inline-block; width: 183px">
|
|
|
<treeselect v-model="queryParams.corporation" :options="deptOptions" :normalizer="normalizer" placeholder="选择所属公司" />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="isExist('管理部门')" label="管理部门" prop="department">
|
|
|
+ <el-form-item v-if="isExist('管理部门')" label="管理部门" prop="department">
|
|
|
<div style="display: inline-block; width: 183px">
|
|
|
<treeselect v-model="queryParams.department" :options="deptOptions" :normalizer="normalizer" placeholder="选择管理部门" />
|
|
|
</div>
|
|
@@ -205,12 +195,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-dropdown @command="handleCommand" split-button type="warning" trigger="click" placement="bottom-start" size="mini" v-hasPermi="['asset:information:export']">
|
|
|
- <span class="el-dropdown-link" @click="handleExport">
|
|
|
- <i class="el-icon-download"></i> 导出
|
|
|
- </span>
|
|
|
+ <span class="el-dropdown-link" @click="handleExport"> <i class="el-icon-download"></i> 导出 </span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="batch"><span style="padding:8px;font-size: 13px;letter-spacing: 2px;">批量导出</span></el-dropdown-item>
|
|
|
- <el-dropdown-item command="all" divided><span style="padding:8px;font-size: 13px;letter-spacing: 2px;">全部导出</span></el-dropdown-item>
|
|
|
+ <el-dropdown-item command="batch"><span style="padding: 8px; font-size: 13px; letter-spacing: 2px">批量导出</span></el-dropdown-item>
|
|
|
+ <el-dropdown-item command="all" divided><span style="padding: 8px; font-size: 13px; letter-spacing: 2px">全部导出</span></el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</el-col>
|
|
@@ -242,7 +230,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="所在位置" align="center" prop="locationName" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ (scope.row.ancestorLocationName ? scope.row.ancestorLocationName + "-" : "") + (scope.row.parentLocationName ? scope.row.parentLocationName + "-" : "") + scope.row.locationName }}</span>
|
|
|
+ <span>{{ (scope.row.ancestorLocationName ? scope.row.ancestorLocationName + '-' : '') + (scope.row.parentLocationName ? scope.row.parentLocationName + '-' : '') + scope.row.locationName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="isExist('使用部门')" label="使用部门" align="center" prop="userDepartmentName">
|
|
@@ -253,7 +241,7 @@
|
|
|
<el-table-column label="资产条码" v-if="isExist('资产条码')" align="center" prop="code" />
|
|
|
<el-table-column label="EPC" align="center" prop="epc" v-if="isExist('epc')" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <div>{{scope.row.epc}}<br/>⌈补位:{{scope.row.epcReplenishLength}}⌋</div>
|
|
|
+ <div>{{ scope.row.epc }}<br />⌈补位:{{ scope.row.epcReplenishLength }}⌋</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="isExist('管理部门')" label="管理部门" align="center">
|
|
@@ -345,12 +333,12 @@
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
|
<!-- 添加或修改资产信息对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body @close="dialogColose">
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px">
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="资产编号" prop="number">
|
|
|
- <el-input v-model="form.number" placeholder="请输入资产编号" />
|
|
|
+ <el-input v-model="form.number" placeholder="请输入资产编号"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -575,9 +563,6 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <!-- <el-form-item label="资产条码" prop="code">
|
|
|
- <el-input v-model="form.code" placeholder="请输入资产条码" />
|
|
|
- </el-form-item> -->
|
|
|
<!-- <el-form-item label="epc" prop="epc">
|
|
|
<el-input v-model="form.epc" placeholder="请输入EPC" />
|
|
|
</el-form-item>
|
|
@@ -1127,12 +1112,7 @@ export default {
|
|
|
)
|
|
|
},
|
|
|
handleAllExport() {
|
|
|
- this.download(
|
|
|
- 'asset/information/allExport',
|
|
|
- {
|
|
|
- },
|
|
|
- `information_${new Date().getTime()}.xlsx`
|
|
|
- )
|
|
|
+ this.download('asset/information/allExport', {}, `information_${new Date().getTime()}.xlsx`)
|
|
|
},
|
|
|
handleCommand(command) {
|
|
|
if (command === 'batch') {
|
|
@@ -1141,7 +1121,7 @@ export default {
|
|
|
if (command === 'all') {
|
|
|
this.handleAllExport()
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|