|
@@ -18,7 +18,7 @@
|
|
|
<el-form-item label="所在位置" prop="locationNumber">
|
|
|
<treeselect v-model="queryParams.locationNumber" :options="locationList" :normalizer="tenantIdnormalizer" placeholder="选择位置" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="isExist('使用部门')" label="使用部门" prop="userDepartment">
|
|
|
+ <el-form-item label="使用部门" prop="userDepartment">
|
|
|
<div style="display: inline-block; width: 183px">
|
|
|
<treeselect v-model="queryParams.userDepartment" :options="deptOptions" :normalizer="normalizer" placeholder="选择使用部门" />
|
|
|
</div>
|
|
@@ -214,32 +214,25 @@
|
|
|
<el-table v-loading="loading" :data="informationList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
|
|
+ <el-table-column label="资产分类" align="center" prop="categoryName"/>
|
|
|
<el-table-column label="资产编号" align="center" prop="number" />
|
|
|
- <el-table-column label="照片" align="center" prop="imageUrl" width="100">
|
|
|
+ <el-table-column label="图片" v-if="isExist('图片')" align="center" prop="imageUrl" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<image-preview :src="scope.row.imageUrl" :width="50" :height="50" v-show="scope.row.imageUrl === '' || scope.row.imageUrl == null ? false : true" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="资产名称" align="center" prop="name" />
|
|
|
- <el-table-column label="数量" align="center" prop="quantity" />
|
|
|
<el-table-column label="计量" align="center" prop="units" />
|
|
|
- <el-table-column label="资产分类" align="center" prop="categoryName">
|
|
|
- <!-- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.categoryNumber != null ? categoryName(scope.row.categoryNumber) : '' }}</span>
|
|
|
- </template> -->
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="数量" align="center" prop="quantity" />
|
|
|
+ <el-table-column v-if="isExist('入账时间')" label="入账时间" align="center" prop="paymentReceivingTime" />
|
|
|
+ <el-table-column label="使用部门" align="center" prop="userDepartmentName"/>
|
|
|
<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>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="isExist('使用部门')" label="使用部门" align="center" prop="userDepartmentName">
|
|
|
- <!-- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.userDepartment != null ? companyName(scope.row.userDepartment) : '' }}</span>
|
|
|
- </template> -->
|
|
|
- </el-table-column>
|
|
|
<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">
|
|
|
+ <el-table-column v-if="isExist('epc')" label="EPC" align="center" prop="epc" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<div>{{ scope.row.epc }}<br />⌈补位:{{ scope.row.epcReplenishLength }}⌋</div>
|
|
|
</template>
|
|
@@ -249,12 +242,7 @@
|
|
|
<span>{{ scope.row.departmentName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="isExist('所属公司')" label="所属公司" align="center" prop="corporationName">
|
|
|
- <!-- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.corporation != null ? companyName(scope.row.corporation) : '' }}</span>
|
|
|
- </template> -->
|
|
|
- </el-table-column>
|
|
|
- <el-table-column v-if="isExist('入账时间')" label="入账时间" align="center" prop="paymentReceivingTime" />
|
|
|
+ <el-table-column v-if="isExist('所属公司')" label="所属公司" align="center" prop="corporationName"/>
|
|
|
<el-table-column v-if="isExist('备注')" label="备注" align="center" prop="remark" />
|
|
|
<el-table-column v-if="isExist('管理状态')" label="管理状态" align="center" prop="manageStatus">
|
|
|
<template slot-scope="scope">
|
|
@@ -582,7 +570,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-checkbox-group v-model="checkList" mini>
|
|
|
- <el-checkbox label="epc" border></el-checkbox>
|
|
|
+ <el-checkbox label="图片" border></el-checkbox>
|
|
|
<el-checkbox label="使用部门" border></el-checkbox>
|
|
|
<el-checkbox label="资产条码" border></el-checkbox>
|
|
|
<el-checkbox label="资产性质" border></el-checkbox>
|
|
@@ -611,9 +599,10 @@
|
|
|
<el-checkbox label="预计使用期限单位" border></el-checkbox>
|
|
|
<el-checkbox label="所属公司" border></el-checkbox>
|
|
|
<el-checkbox label="管理部门" border></el-checkbox>
|
|
|
+ <el-checkbox label="管理状态" border></el-checkbox>
|
|
|
<el-checkbox label="记录状态" border></el-checkbox>
|
|
|
<el-checkbox label="是否白名单" border></el-checkbox>
|
|
|
- <el-checkbox label="管理状态" border></el-checkbox>
|
|
|
+ <el-checkbox label="epc" border></el-checkbox>
|
|
|
<el-checkbox label="备注" border></el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
@@ -1079,6 +1068,7 @@ export default {
|
|
|
handleFileSuccess(response, file, fileList) {
|
|
|
this.upload.open = false
|
|
|
this.upload.isUploading = false
|
|
|
+ this.$modal.closeLoading()
|
|
|
this.$refs.upload.clearFiles()
|
|
|
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + '</div>', '导入结果', { dangerouslyUseHTMLString: true })
|
|
|
this.getList()
|
|
@@ -1086,6 +1076,7 @@ export default {
|
|
|
// 提交上传文件
|
|
|
submitFileForm() {
|
|
|
this.$refs.upload.submit()
|
|
|
+ this.$modal.loading('资产导入中,请稍候...')
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|