|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="inline-16">
|
|
|
- <el-button :disabled="data.status !== '新建'" size="mini" type="primary" @click="onShow" >审核</el-button>
|
|
|
+ <el-button :disabled="data.status !== '新建'" size="mini" type="primary" @click="examineRow" >审核</el-button>
|
|
|
<el-dialog
|
|
|
title="提示"
|
|
|
:visible.sync="dialogVisible"
|
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
onShow(){
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- examineRow(){
|
|
|
+ /*examineRow(){
|
|
|
this.$refs['form'].validate(async (valid) => {
|
|
|
if (!valid) return false;
|
|
|
const res = await this.$api.requested({
|
|
|
@@ -70,6 +70,31 @@ export default {
|
|
|
this.$emit("examineSuccess")
|
|
|
})
|
|
|
})
|
|
|
+ },*/
|
|
|
+ examineRow(){
|
|
|
+ this.$confirm('确定审核?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": "20221009103103",
|
|
|
+ "version":1,
|
|
|
+ "content": {
|
|
|
+ "sa_cashbillid":this.data.sa_cashbillid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.$emit("examineSuccess")
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
@@ -77,4 +102,4 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|