|
@@ -23,7 +23,7 @@
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
|
|
|
- <row-item>
|
|
|
+<!-- <row-item>
|
|
|
<a-form-item
|
|
|
label="备件寿命"
|
|
|
:labelCol="BaseTool.Constant.labelCol2"
|
|
@@ -45,7 +45,7 @@
|
|
|
:rows="4"
|
|
|
v-decorator="['remark']"/>
|
|
|
</a-form-item>
|
|
|
- </row-item>
|
|
|
+ </row-item>-->
|
|
|
</row-list>
|
|
|
</a-form>
|
|
|
<template slot="footer">
|
|
@@ -84,6 +84,7 @@ export default {
|
|
|
methods: {
|
|
|
base (queryParam, model) {
|
|
|
this.visible = true
|
|
|
+ this.spareName = null
|
|
|
this.spareRows = []
|
|
|
this.isSpecial = queryParam.isSpecial
|
|
|
this.model = model
|
|
@@ -98,7 +99,7 @@ export default {
|
|
|
}
|
|
|
const data = []
|
|
|
for (let i = 0; i < this.spareRows.length; i++) {
|
|
|
- data.push({ remark: values.remark, sparePeriod: values.sparePeriod, isSpecial: this.isSpecial, sbId: this.model.sbId, spareId: this.spareRows[i].id, repairId: this.model.id, num: 1, spareName: this.spareRows[i].name, ggxh: this.spareRows[i].ggxh })
|
|
|
+ data.push({ remark: values.remark, isSpecial: this.isSpecial, sbId: this.model.sbId, repairId: this.model.id, num: 1, spareName: this.spareRows[i].spareName, ggxh: this.spareRows[i].ggxh })
|
|
|
}
|
|
|
addLongYanSparePartUsedBatch(data)
|
|
|
.then((response) => {
|
|
@@ -120,9 +121,7 @@ export default {
|
|
|
},
|
|
|
handleSpareLongYanSelected (record, keys, rows) {
|
|
|
this.spareRows = rows
|
|
|
- for (let i = 0; i < rows.length; i++) {
|
|
|
- this.spareName = this.spareName + ',' + rows[i].name
|
|
|
- }
|
|
|
+ this.spareName = rows.length
|
|
|
}
|
|
|
}
|
|
|
}
|