This commit is contained in:
parent
2d474c91cd
commit
34af59a297
|
|
@ -352,7 +352,7 @@
|
|||
:min="0"
|
||||
:max="row.checkNum"
|
||||
:precision="0"
|
||||
:disabled="!showHandle"
|
||||
:disabled="!showHandle || row.status == 1"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</template>
|
||||
|
|
@ -529,10 +529,15 @@
|
|||
prop="unitName"
|
||||
/>
|
||||
<el-table-column
|
||||
label="数量"
|
||||
label="验收数量"
|
||||
align="center"
|
||||
prop="checkNum"
|
||||
/>
|
||||
<el-table-column
|
||||
label="入库数量"
|
||||
align="center"
|
||||
prop="inputNum"
|
||||
/>
|
||||
<el-table-column
|
||||
label="备注"
|
||||
align="center"
|
||||
|
|
@ -692,9 +697,11 @@ export default {
|
|||
this.detailTableList = response.data.rows
|
||||
this.dialogTotal = response.data.total
|
||||
this.loading = false
|
||||
this.detailTableList.forEach(item => {
|
||||
item.inputNum = item.checkNum
|
||||
})
|
||||
if (this.showHandle) {
|
||||
this.detailTableList.forEach(item => {
|
||||
item.inputNum = item.inputNum ? item.inputNum : item.checkNum
|
||||
})
|
||||
}
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
|
|
@ -755,13 +762,13 @@ export default {
|
|||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.showHandle = true
|
||||
this.query.pageNum = 1
|
||||
this.query.pageSize = 10
|
||||
this.query.taskId = row.taskId
|
||||
this.query.dictName = undefined
|
||||
this.getDialogTable()
|
||||
this.open = true
|
||||
this.showHandle = true
|
||||
this.title = '审核'
|
||||
},
|
||||
|
||||
|
|
@ -775,28 +782,35 @@ export default {
|
|||
this.$message.error('当前设备未编码,无法审核!')
|
||||
return
|
||||
}
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
inputNum: row.inputNum,
|
||||
maCode: row.maCode,
|
||||
typeId: row.typeId,
|
||||
num: row.num,
|
||||
}
|
||||
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '1',
|
||||
inputRecordList: [obj],
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
// 增加二次确认弹框
|
||||
this.$confirm('是否确定通过?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
inputNum: row.inputNum,
|
||||
maCode: row.maCode,
|
||||
typeId: row.typeId,
|
||||
num: row.num,
|
||||
}
|
||||
|
||||
let param = {
|
||||
taskId: this.query.taskId,
|
||||
checkResult: '1',
|
||||
inputRecordList: [obj],
|
||||
}
|
||||
changePutinStatus(param).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('审批成功')
|
||||
this.getDialogTable()
|
||||
this.getList()
|
||||
} else {
|
||||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
passAll() {
|
||||
|
|
@ -815,11 +829,16 @@ export default {
|
|||
})
|
||||
} catch (error) {}
|
||||
if (isCode) return
|
||||
this.$confirm('是否确定通过?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.ids.forEach((item) => {
|
||||
item.taskId = this.query.taskId
|
||||
item.typeId = item.typeId
|
||||
item.maId = item.maId
|
||||
item.inputNum = item.checkNum
|
||||
item.inputNum = item.inputNum
|
||||
item.maCode = item.maCode
|
||||
})
|
||||
let param = {
|
||||
|
|
@ -836,6 +855,7 @@ export default {
|
|||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
//拒绝
|
||||
refused(row) {
|
||||
|
|
@ -846,11 +866,16 @@ export default {
|
|||
this.$message.error('当前设备未编码,无法审核!')
|
||||
return
|
||||
}
|
||||
this.$confirm('是否确定不通过?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
let obj = {
|
||||
taskId: this.query.taskId,
|
||||
maId: row.maId,
|
||||
maCode: row.maCode,
|
||||
inputNum: row.checkNum,
|
||||
inputNum: row.inputNum,
|
||||
typeId: row.typeId,
|
||||
}
|
||||
|
||||
|
|
@ -868,6 +893,7 @@ export default {
|
|||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
refusedAll() {
|
||||
console.log(this.query.taskId)
|
||||
|
|
@ -886,11 +912,16 @@ export default {
|
|||
} catch (error) {}
|
||||
|
||||
if (isCode) return
|
||||
this.$confirm('是否确定不通过?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.ids.forEach((item) => {
|
||||
item.taskId = this.query.taskId
|
||||
item.typeId = item.typeId
|
||||
item.maId = item.maId
|
||||
item.inputNum = item.checkNum
|
||||
item.inputNum = item.inputNum
|
||||
item.maCode = item.maCode
|
||||
})
|
||||
let param = {
|
||||
|
|
@ -908,16 +939,17 @@ export default {
|
|||
this.$modal.msgSuccess('审批失败')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
//查看操作
|
||||
handleView(row) {
|
||||
this.showHandle = false
|
||||
this.query.pageNum = 1
|
||||
this.query.pageSize = 10
|
||||
this.query.dictName = null
|
||||
this.query.taskId = row.taskId
|
||||
this.getDialogTable()
|
||||
this.open = true
|
||||
this.showHandle = false
|
||||
this.title = '查看'
|
||||
},
|
||||
//获取入库单数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue