Commit 288b44cc by xue_wengang

驳回功能

parent f556682d
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
class="hbyp" class="hbyp"
type="text" type="text"
v-if=" v-if="
scope.scope.xzzt == '0' && (scope.scope.xzzt == '0' || scope.scope.xzzt == '5') &&
scope.scope.xxczryGmsfhm == userAuth.identitycard scope.scope.xxczryGmsfhm == userAuth.identitycard
" "
size="mini" size="mini"
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
class="hbyp" class="hbyp"
type="text" type="text"
v-if=" v-if="
scope.scope.xzzt == '0' && (scope.scope.xzzt == '0' || scope.scope.xzzt == '5') &&
scope.scope.xxczryGmsfhm == userAuth.identitycard scope.scope.xxczryGmsfhm == userAuth.identitycard
" "
size="mini" size="mini"
...@@ -87,13 +87,25 @@ ...@@ -87,13 +87,25 @@
type="text" type="text"
:loading="loadingBack" :loading="loadingBack"
v-if=" v-if="
scope.scope.xzzt == '1' && scope.scope.xzzt == '1' &&
scope.scope.xxczryGmsfhm == userAuth.identitycard scope.scope.xxczryGmsfhm == userAuth.identitycard
" "
size="mini" size="mini"
@click="backBtn(scope.scope)" @click="backBtn(scope.scope)"
>退回</el-button >退回</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> </template>
</Mytable> </Mytable>
</div> </div>
...@@ -339,6 +351,20 @@ export default { ...@@ -339,6 +351,20 @@ export default {
} }
} catch (error) {} } 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) { async toApprovalBtn(rows) {
this.loadingAPP = true; this.loadingAPP = true;
const params = new FormData(); const params = new FormData();
......
...@@ -46,7 +46,22 @@ ...@@ -46,7 +46,22 @@
@handleCurrentChange="handleCurrentChange" @handleCurrentChange="handleCurrentChange"
@rowBtn="rowBtn" @rowBtn="rowBtn"
@rowOperation="rowOperation" @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> </div>
<!-- 审核 --> <!-- 审核 -->
...@@ -237,6 +252,20 @@ export default { ...@@ -237,6 +252,20 @@ export default {
this.getList(); this.getList();
}, },
methods: { 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() { downFile() {
this.loadings = true; this.loadings = true;
const params = new FormData(); const params = new FormData();
......
...@@ -46,7 +46,20 @@ ...@@ -46,7 +46,20 @@
@handleCurrentChange="handleCurrentChange" @handleCurrentChange="handleCurrentChange"
@rowBtn="rowBtn" @rowBtn="rowBtn"
@rowOperation="rowOperation" @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> </div>
</div> </div>
...@@ -176,6 +189,20 @@ export default { ...@@ -176,6 +189,20 @@ export default {
this.getList(); this.getList();
}, },
methods: { 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() { downFile() {
this.loadings = true; this.loadings = true;
const params = new FormData(); 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