出库优化
This commit is contained in:
parent
158bdb46bb
commit
806b06dd15
|
|
@ -781,7 +781,8 @@ export default {
|
||||||
approveSignList: [],
|
approveSignList: [],
|
||||||
currentRowData: null, // 当前查看的行数据
|
currentRowData: null, // 当前查看的行数据
|
||||||
leaseLoading: false,
|
leaseLoading: false,
|
||||||
taskType: ''
|
taskType: '',
|
||||||
|
currentRow: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -847,7 +848,12 @@ export default {
|
||||||
parentId: this.parentIdTemp,
|
parentId: this.parentIdTemp,
|
||||||
outNum: 1,
|
outNum: 1,
|
||||||
publishTask: this.publishTask,
|
publishTask: this.publishTask,
|
||||||
jiJuType: item.jiJuType
|
jiJuType: item.jiJuType,
|
||||||
|
leaseUnit: this.currentRow.leaseUnit,
|
||||||
|
leaseUnitId: this.currentRow.leaseUnitId,
|
||||||
|
leaseProject: this.currentRow.leaseProject,
|
||||||
|
leaseProjectId: this.currentRow.leaseProjectId,
|
||||||
|
taskId: this.currentRow.taskId
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.single = selection.length != 1
|
this.single = selection.length != 1
|
||||||
|
|
@ -957,6 +963,8 @@ export default {
|
||||||
|
|
||||||
/** 出库按钮操作 */
|
/** 出库按钮操作 */
|
||||||
handleOut(row) {
|
handleOut(row) {
|
||||||
|
this.currentRow = row
|
||||||
|
// console.log('🚀 ~ handleOut ~ this.currentRow:', this.currentRow)
|
||||||
this.getListOutInfo = []
|
this.getListOutInfo = []
|
||||||
const { id, publishTask } = row
|
const { id, publishTask } = row
|
||||||
this.publishTask = publishTask
|
this.publishTask = publishTask
|
||||||
|
|
@ -983,7 +991,7 @@ export default {
|
||||||
// console.log(row)
|
// console.log(row)
|
||||||
let obj = {}
|
let obj = {}
|
||||||
console.log('row', row)
|
console.log('row', row)
|
||||||
this.$set(obj, 'taskId', row.taskId)
|
// this.$set(obj, 'taskId', row.taskId)
|
||||||
this.$set(obj, 'id', row.id)
|
this.$set(obj, 'id', row.id)
|
||||||
this.$set(obj, 'manageType', 1)
|
this.$set(obj, 'manageType', 1)
|
||||||
this.$set(obj, 'maId', row.maId)
|
this.$set(obj, 'maId', row.maId)
|
||||||
|
|
@ -997,6 +1005,11 @@ export default {
|
||||||
this.$set(obj, 'num', row.num) //库存
|
this.$set(obj, 'num', row.num) //库存
|
||||||
this.$set(obj, 'unitValue', row.unitValue)
|
this.$set(obj, 'unitValue', row.unitValue)
|
||||||
this.$set(obj, 'unitName', row.unitName)
|
this.$set(obj, 'unitName', row.unitName)
|
||||||
|
this.$set(obj, 'leaseUnit', this.currentRow.leaseUnit)
|
||||||
|
this.$set(obj, 'leaseUnitId', this.currentRow.leaseUnitId)
|
||||||
|
this.$set(obj, 'leaseProject', this.currentRow.leaseProject)
|
||||||
|
this.$set(obj, 'leaseProjectId', this.currentRow.leaseProjectId)
|
||||||
|
this.$set(obj, 'taskId', this.currentRow.taskId)
|
||||||
console.log('[obj]', [obj])
|
console.log('[obj]', [obj])
|
||||||
this.outNumList = [obj]
|
this.outNumList = [obj]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue