Commit 288b44cc by xue_wengang

驳回功能

parent f556682d
......@@ -63,7 +63,7 @@
class="hbyp"
type="text"
v-if="
scope.scope.xzzt == '0' &&
(scope.scope.xzzt == '0' || scope.scope.xzzt == '5') &&
scope.scope.xxczryGmsfhm == userAuth.identitycard
"
size="mini"
......@@ -74,7 +74,7 @@
class="hbyp"
type="text"
v-if="
scope.scope.xzzt == '0' &&
(scope.scope.xzzt == '0' || scope.scope.xzzt == '5') &&
scope.scope.xxczryGmsfhm == userAuth.identitycard
"
size="mini"
......@@ -94,6 +94,18 @@
@click="backBtn(scope.scope)"
>退回</el-button
>
<el-button
class="hbyp"
type="text"
:loading="loadingBack"
v-if="
scope.scope.xzzt != 0 && scope.scope.xzzt != 5
"
v-permission="['C1902', 'F010101']"
size="mini"
@click="bhBtn(scope.scope)"
>驳回</el-button
>
</template>
</Mytable>
</div>
......@@ -339,6 +351,20 @@ export default {
}
} catch (error) {}
},
async bhBtn(rows) {
this.loadingBack = true;
const params = new FormData();
params.append("xzzt", "5");
params.append("xxzjbh", rows.xxzjbh);
let res = await shXzqqXx(params);
try {
if (res && res.code == 200) {
this.loadingBack = false;
this.$message.success("驳回成功!");
this.getList();
}
} catch (error) {}
},
async toApprovalBtn(rows) {
this.loadingAPP = true;
const params = new FormData();
......
......@@ -46,7 +46,22 @@
@handleCurrentChange="handleCurrentChange"
@rowBtn="rowBtn"
@rowOperation="rowOperation"
></Mytable>
>
<template #btnGroup="scope">
<el-button
class="hbyp"
type="text"
:loading="loadingBack"
v-if="
scope.scope.xzzt != 0 && scope.scope.xzzt != 5
"
v-permission="['C1902', 'F010101']"
size="mini"
@click="bhBtn(scope.scope)"
>驳回</el-button
>
</template>
</Mytable>
</div>
</div>
<!-- 审核 -->
......@@ -237,6 +252,20 @@ export default {
this.getList();
},
methods: {
async bhBtn(rows) {
this.loadingBack = true;
const params = new FormData();
params.append("xzzt", "5");
params.append("xxzjbh", rows.xxzjbh);
let res = await shXzqqXx(params);
try {
if (res && res.code == 200) {
this.loadingBack = false;
this.$message.success("驳回成功!");
this.getList();
}
} catch (error) {}
},
downFile() {
this.loadings = true;
const params = new FormData();
......
......@@ -46,7 +46,20 @@
@handleCurrentChange="handleCurrentChange"
@rowBtn="rowBtn"
@rowOperation="rowOperation"
></Mytable>
>
<template #btnGroup="scope">
<el-button
class="hbyp"
type="text"
:loading="loadingBack"
v-if="scope.scope.xzzt != 0 && scope.scope.xzzt != 5"
v-permission="['C1902', 'F010101']"
size="mini"
@click="bhBtn(scope.scope)"
>驳回</el-button
>
</template>
</Mytable>
</div>
</div>
</div>
......@@ -176,6 +189,20 @@ export default {
this.getList();
},
methods: {
async bhBtn(rows) {
this.loadingBack = true;
const params = new FormData();
params.append("xzzt", "5");
params.append("xxzjbh", rows.xxzjbh);
let res = await shXzqqXx(params);
try {
if (res && res.code == 200) {
this.loadingBack = false;
this.$message.success("驳回成功!");
this.getList();
}
} catch (error) {}
},
downFile() {
this.loadings = true;
const params = new FormData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment