|
|
@@ -107,11 +107,13 @@
|
|
|
</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==1" @click="confirm_dj(scope.row.id,'是否确认帮客户代缴,操作不可逆?',3)">公司代缴</el-button>
|
|
|
<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>
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status==2 && scope.row.invoice_type!=3" @click="confirm_refuse(scope.row.id)">驳回订单</el-button>
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status==4 && role=='1' && scope.row.invoice_type!=3" @click="confirm_status(scope.row.id,'是否确认制单?',5)">确认制单</el-button>
|
|
|
<el-button type="danger" size="small" v-if="scope.row.status==5 && role=='1' && scope.row.invoice_type!=3" @click="confirm_status(scope.row.id,'是否确认打款?',6)">确认打款</el-button>
|
|
|
<el-button type="primary" size="small" v-if="role=='2' && (scope.row.status==3 || scope.row.status==7)" @click="confirm_js(scope.row.id,'是否确认付款?')">确认付款</el-button>
|
|
|
+ <el-button type="danger" size="small" v-if="role=='2' && (scope.row.status==3 || scope.row.status==7)" @click="confirm_reject(scope.row.id,'是否确认驳回?')">驳回提现</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -269,6 +271,53 @@
|
|
|
this.status = res.data.list;
|
|
|
}
|
|
|
},
|
|
|
+ async confirm_reject(id) {
|
|
|
+ this.$prompt('请输入驳回的原因', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ }).then(async ({ value }) => {
|
|
|
+ this.loading = true;
|
|
|
+ let res =await this.$post("/uapi/pub/info/user/user_settlement/set_status",{id:id,reason:value,status:1});
|
|
|
+ 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_dj(id) {
|
|
|
+ this.$confirm("是否确认次操作,行为不可逆?", '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ this.loading = true;
|
|
|
+ let res =await this.$post("/uapi/pub/info/user/user_settlement/dj",{id:id,status:1});
|
|
|
+ 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_refuse(id) {
|
|
|
this.$prompt('请输入拒绝的理由', '提示', {
|
|
|
confirmButtonText: '确定',
|