|
|
|
@ -165,8 +165,14 @@
|
|
|
|
|
<el-table-column label="库管确认人" align="center" prop="warehouseManagerConfirmation" v-if="columns[9].visible"/>
|
|
|
|
|
<el-table-column label="库存表状态" align="center" prop="inventoryStatus" v-if="columns[10].visible"/>
|
|
|
|
|
<el-table-column label="部门仓库" align="center" prop="departmentWarehouse" v-if="columns[11].visible"/>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-copy-document"
|
|
|
|
|
@click="handleCopy(scope.row)"
|
|
|
|
|
>复制</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
@ -289,6 +295,8 @@
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
open: false,
|
|
|
|
|
// 复制的备件数据
|
|
|
|
|
copiedData: null,
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
@ -399,6 +407,11 @@
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
// 如果有复制的数据,填充备件名称和型号
|
|
|
|
|
if (this.copiedData) {
|
|
|
|
|
this.form.sparePartName = this.copiedData.sparePartName;
|
|
|
|
|
this.form.sparePartModel = this.copiedData.sparePartModel;
|
|
|
|
|
}
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加动力能源部行输科备件领用更换记录";
|
|
|
|
|
},
|
|
|
|
@ -473,6 +486,14 @@
|
|
|
|
|
// 提交上传文件
|
|
|
|
|
submitFileForm() {
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
},
|
|
|
|
|
// 新增复制功能
|
|
|
|
|
handleCopy(row) {
|
|
|
|
|
this.copiedData = {
|
|
|
|
|
sparePartName: row.sparePartName,
|
|
|
|
|
sparePartModel: row.sparePartModel
|
|
|
|
|
};
|
|
|
|
|
this.$modal.msgSuccess("已复制备件名称和型号");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|