优化
This commit is contained in:
@@ -67,10 +67,30 @@
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||
<el-table-column min-width="80" prop="storage_id" label="文档编号" align="center" />
|
||||
<el-table-column prop="name" label="文档名称" align="center" width="200" />
|
||||
<el-table-column prop="name" label="文档名称" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
<el-popover
|
||||
:content="'file/' + scope.row.type + '/' + scope.row.real_name"
|
||||
placement="top-start"
|
||||
title="路径"
|
||||
width="200"
|
||||
trigger="hover"
|
||||
>
|
||||
<a
|
||||
slot="reference"
|
||||
:href="baseApi + '/file/' + scope.row.type + '/' + scope.row.real_name"
|
||||
class="el-link--primary"
|
||||
style="word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color: #1890ff;font-size: 13px;"
|
||||
target="_blank"
|
||||
>
|
||||
{{ scope.row.name }}
|
||||
</a>
|
||||
</el-popover>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column min-width="200" prop="path" label="文档路径" align="center" />
|
||||
<el-table-column min-width="100" prop="remark" label="备注" align="center" />
|
||||
<el-table-column align="center" label="操作" width="160" fixed="right">
|
||||
<el-table-column align="center" label="操作" min-width="60" fixed="right">
|
||||
<template scope="scope">
|
||||
<el-button type="danger" class="filter-item" size="mini" icon="el-icon-delete" @click.native.prevent="deleteRow(scope.$index, scope.row)" />
|
||||
</template>
|
||||
@@ -477,9 +497,14 @@ export default {
|
||||
}
|
||||
},
|
||||
deleteRow(index, row) {
|
||||
localStorage.del([row.storage_id])
|
||||
equipmentfile.queryivt3(this.form).then(res => {
|
||||
this.tableDtl3 = res
|
||||
localStorage.del([row.storage_id]).then(res => {
|
||||
equipmentfile.queryivt3(this.form).then(res => {
|
||||
this.tableDtl3 = res
|
||||
})
|
||||
}).catch(() => {
|
||||
equipmentfile.queryivt3(this.form).then(res => {
|
||||
this.tableDtl3 = res
|
||||
})
|
||||
})
|
||||
},
|
||||
inv_typeFormat(row) {
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" min-width="35" />
|
||||
<el-table-column prop="stor_code" label="仓库编码" />
|
||||
<el-table-column prop="stor_name" label="仓库名称" />
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
|
||||
@@ -122,6 +123,7 @@ export default {
|
||||
return {
|
||||
stors: [],
|
||||
classes: [],
|
||||
checkrows: [],
|
||||
class_idStr: null,
|
||||
materOpt_code: '02',
|
||||
stor_id: '',
|
||||
@@ -209,9 +211,14 @@ export default {
|
||||
this.crud.notify('请选择仓库', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
this.checkrows = this.$refs.table.selection
|
||||
if (this.checkrows.length === 0) {
|
||||
this.crud.notify('请勾选需要保存的记录!')
|
||||
return false
|
||||
}
|
||||
const data = {}
|
||||
data.stor_id = this.stor_id
|
||||
data.rows = this.crud.data
|
||||
data.rows = this.checkrows
|
||||
crudMaterialsafeivt.insertSafe(data).then(() => {
|
||||
this.crud.dleChangePage(1)
|
||||
this.crud.editSuccessNotify()
|
||||
|
||||
Reference in New Issue
Block a user