Merge remote-tracking branch 'origin/dev-nx' into dev-nx
This commit is contained in:
commit
000000bc2f
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue