新购增加提交审核按钮

This commit is contained in:
BianLzhaoMin 2024-06-07 14:44:17 +08:00
parent f4d9a8a171
commit 18a57c30b5
1 changed files with 27 additions and 0 deletions

View File

@ -215,6 +215,14 @@
@click="handlePrint(scope.row)"
>验收单</el-button
>
<el-button
size="mini"
type="success"
icon="el-icon-edit"
v-if="scope.row.purchasingStatus == '已验收合格'"
@click="handleSubmit(scope.row)"
>提交审核</el-button
>
<el-button
size="mini"
@ -452,6 +460,7 @@ import {
getPurchaseCheckInfo,
getAcceptanceForm,
purchaseCheckInfoRemove,
submitCheck,
} from '@/api/store/newBuy'
import {
getRepairedList,
@ -652,6 +661,24 @@ export default {
`新购工机具验收_${new Date().getTime()}.xlsx`,
)
},
//
handleSubmit(row) {
const taskId = row.taskId
this.$modal
.confirm('是否确认提交审核?')
.then(() => {
return submitCheck(taskId)
})
.then((res) => {
this.getList()
this.$modal.msgSuccess(res.msg)
})
.catch((err) => {
console.log(err)
// this.$modal.msgError(err)
})
},
},
watch: {
$route: {