|
|
@@ -94,6 +94,11 @@
|
|
|
<span v-if="!scope.row.link">--</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="status" width="100px" label="备注">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" size="small" @click="add_memo(scope.row.id,'添加备注')">添加备注</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column fixed="right" min-width="200px" prop="uid" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status==2 && scope.row.invoice_type!=3" @click="confirm_status(scope.row.id,'是否确认已核对?',3)">审核通过</el-button>
|
|
|
@@ -281,6 +286,29 @@
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ async add_memo(id) {
|
|
|
+ this.$prompt('请输入备注信息', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ }).then(async ({ value }) => {
|
|
|
+ this.loading = true;
|
|
|
+ let res =await this.$post("/uapi/pub/info/user/user_settlement/add_memo",{id:id,memo:value});
|
|
|
+ if (res.status == 1) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '成功!'
|
|
|
+ });
|
|
|
+ await this.getList();
|
|
|
+ await this.get_status();
|
|
|
+ }
|
|
|
+ this.loading = false;
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
async confirm_status(id,msg,status) {
|
|
|
this.$confirm(msg, '提示', {
|
|
|
confirmButtonText: '确定',
|