|
|
@ -106,6 +106,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
@ -143,11 +144,11 @@
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<!-- 序号 -->
|
|
|
|
<!-- 序号 -->
|
|
|
|
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"/>
|
|
|
|
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"/>
|
|
|
|
<el-table-column label="备品备件编码" align="center" prop="spareCode" width="120"/>
|
|
|
|
<el-table-column label="出库单号" align="center" prop="applyCode" width="200"/>
|
|
|
|
<el-table-column label="备品备件名称" align="center" prop="spareName" width="120"/>
|
|
|
|
<el-table-column label="备品备件编码" align="center" prop="spareCode" width="200"/>
|
|
|
|
|
|
|
|
<el-table-column label="备品备件名称" align="center" prop="spareName" width="200"/>
|
|
|
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="spareModel" width="150"/>
|
|
|
|
<el-table-column label="使用设备" align="center" prop="spareUseEquipment" />
|
|
|
|
<el-table-column label="使用设备" align="center" prop="spareUseEquipment" />
|
|
|
|
<el-table-column label="出库单号" align="center" prop="applyCode" />
|
|
|
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="spareModel" width="150"/>
|
|
|
|
|
|
|
|
<el-table-column label="领用数量" align="center" prop="spareQuantity" />
|
|
|
|
<el-table-column label="领用数量" align="center" prop="spareQuantity" />
|
|
|
|
<!-- <el-table-column label="使用组线" align="center" prop="spareGroupLine" /> -->
|
|
|
|
<!-- <el-table-column label="使用组线" align="center" prop="spareGroupLine" /> -->
|
|
|
|
<el-table-column label="领用时间" align="center" prop="applyTime" width="180">
|
|
|
|
<el-table-column label="领用时间" align="center" prop="applyTime" width="180">
|
|
|
@ -161,6 +162,7 @@
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
@ -232,6 +234,9 @@
|
|
|
|
<el-form-item label="数量" prop="spareQuantity">
|
|
|
|
<el-form-item label="数量" prop="spareQuantity">
|
|
|
|
<el-input v-model="form.spareQuantity" placeholder="请输入数量" style="width: 280px"/>
|
|
|
|
<el-input v-model="form.spareQuantity" placeholder="请输入数量" style="width: 280px"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="关联单号" prop="workCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.workCode" placeholder="请输入关联单号" style="width: 280px"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="使用组线" prop="spareGroupLine">
|
|
|
|
<!-- <el-form-item label="使用组线" prop="spareGroupLine">
|
|
|
|
<el-input v-model="form.spareGroupLine" placeholder="请选择使用组线" style="width: 280px"/>
|
|
|
|
<el-input v-model="form.spareGroupLine" placeholder="请选择使用组线" style="width: 280px"/>
|
|
|
|
</el-form-item> -->
|
|
|
|
</el-form-item> -->
|
|
|
@ -512,12 +517,34 @@ export default {
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const applyIds = row.applyId || this.ids;
|
|
|
|
const applyIds = row.applyId || this.ids;
|
|
|
|
this.$modal.confirm('是否确认删除申领记录编号为"' + applyIds + '"的数据项?').then(function() {
|
|
|
|
|
|
|
|
return delSparePartsApplicationRecord(applyIds);
|
|
|
|
var applyCode = '';
|
|
|
|
}).then(() => {
|
|
|
|
// 处理信息
|
|
|
|
this.getList();
|
|
|
|
for (let i = 0; i < this.sparePartsApplicationRecordList.length; i++) {
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
for (let j = 0; j < applyIds.length; j++) {
|
|
|
|
}).catch(() => {});
|
|
|
|
if (applyIds[j] == this.sparePartsApplicationRecordList[i].applyId) {
|
|
|
|
|
|
|
|
applyCode = applyCode + this.sparePartsApplicationRecordList[i].applyCode + ',';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (applyCode == '') {
|
|
|
|
|
|
|
|
for (let i = 0; i < this.sparePartsApplicationRecordList.length; i++) {
|
|
|
|
|
|
|
|
if (applyIds == this.sparePartsApplicationRecordList[i].orderId) {
|
|
|
|
|
|
|
|
applyCode = this.sparePartsApplicationRecordList[i].applyCode;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认删除出库单号为"' + applyCode + '"的数据项?').then(function() {
|
|
|
|
|
|
|
|
return delSparePartsApplicationRecord(applyIds);
|
|
|
|
|
|
|
|
}).then(response => {
|
|
|
|
|
|
|
|
if (response.code != 500) {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|