更新
This commit is contained in:
@ -83,8 +83,9 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link size="small" type="primary" @click="handleSend(row.id)">送审</el-link>
|
||||
<el-link size="small" type="success" @click="addEdit('edit', row)">编辑</el-link>
|
||||
<el-link size="small" type="primary" v-if=" row.qtZt == '01'" @click="handleSend(row.id)">送审</el-link>
|
||||
<el-link size="small" type="success" v-if=" row.qtZt == '01'" @click="addEdit('edit', row)">编辑</el-link>
|
||||
<el-link size="small" type="success" @click="addEdit('detail', row)">详情</el-link>
|
||||
<el-link size="small" type="danger" @click="deleteRow(row.id)">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
@ -185,7 +186,7 @@ const pageData = reactive({
|
||||
pageSize: 20,
|
||||
pageCurrent: 1
|
||||
},
|
||||
controlsWidth: 220,
|
||||
controlsWidth: 150,
|
||||
tableColumn: [
|
||||
{ label: "群体基本信息", prop: "jbxx", showSolt: true,width:300 },
|
||||
{ label: "背景信息", prop: "bgxx", showSolt: true,width:300 },
|
||||
@ -211,7 +212,6 @@ const handleSend = (id) => {
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 搜索
|
||||
const onSearch = (val) => {
|
||||
queryFrom.value = { ...val };
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="titleBox">
|
||||
<PageTitle title="重点群体审批">
|
||||
<PageTitle title="重点群体审核">
|
||||
<el-popover placement="bottom" :visible="visible" :width="400" trigger="click">
|
||||
<template #reference>
|
||||
<el-button type="primary" @click="(visible = !visible), (visiblefp = false)" size="small">布控申请
|
||||
@ -82,8 +82,42 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link size="small">审核</el-link>
|
||||
<el-link size="small">审批</el-link>
|
||||
<el-popover placement="left" :visible="row.visible" :width="400" trigger="manual">
|
||||
<template #reference>
|
||||
<el-link size="small" type="warning" v-if="row.qtZt == '02'" @click="row.visible = !row.visible,chooseRow.id = row.id">审核</el-link>
|
||||
</template>
|
||||
<el-form :model="chooseRow" ref="elRowForm" :inline="true" label-width="100px" :rules="rules">
|
||||
<el-form-item label="是否通过" prop="sftg" class="mt10 mb10" style="width: 100%;">
|
||||
<MOSTY.Select filterable v-model="chooseRow.sftg" :dictEnum="D_BZ_SF" width="100%" clearable placeholder="请选择是否通过"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="不通过原因" prop="shBtgyy" v-if="chooseRow.sftg == 0" style="width: 100%;">
|
||||
<MOSTY.Other style="width: 100%;" clearable v-model="chooseRow.shBtgyy" type="textarea" placeholder="请输入不通过原因"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="flex just-center mt10">
|
||||
<el-button @click.stop="cancelRow(row)">取消</el-button>
|
||||
<el-button type="primary" @click.stop="handleSend(row)" v-loading="btnloading">确定</el-button>
|
||||
</div>
|
||||
</el-popover>
|
||||
|
||||
<el-popover placement="left" :visible="row.visible1" :width="400" trigger="manual">
|
||||
<template #reference>
|
||||
<el-link size="small" type="primary" v-if="row.qtZt == '04'" @click="row.visible1 = !row.visible1,chooseRow.id = row.id">审批</el-link>
|
||||
</template>
|
||||
<el-form :model="chooseRow" ref="elRowForm1" :inline="true" label-width="100px" :rules="rules">
|
||||
<el-form-item label="是否通过" prop="sftg" class="mt10 mb10" style="width: 100%;">
|
||||
<MOSTY.Select filterable v-model="chooseRow.sftg" :dictEnum="D_BZ_SF" width="100%" clearable placeholder="请选择是否通过"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="不通过原因" prop="spBtgyy" v-if="chooseRow.sftg == 0" style="width: 100%;">
|
||||
<MOSTY.Other style="width: 100%;" clearable v-model="chooseRow.spBtgyy" type="textarea" placeholder="请输入不通过原因"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="flex just-center mt10">
|
||||
<el-button @click.stop="cancelRowSp(row)">取消</el-button>
|
||||
<el-button type="primary" @click.stop="handleSendSp(row)" v-loading="btnloading">确定</el-button>
|
||||
</div>
|
||||
</el-popover>
|
||||
|
||||
<el-link size="small" type="success" @click="addEdit('detail', row)">详情</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
@ -101,6 +135,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import * as MOSTY from "@/components/MyComponents/index";
|
||||
import ZxsForm from "../mpvGroup/components/zxsForm.vue";
|
||||
import ChooseUser from "@/components/ChooseList/ChooseUser/index.vue";
|
||||
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||
@ -114,8 +149,12 @@ import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_GS_ZDR_CZZT,D_GS_BK_SQLX, D_GS_ZDQT_FXDJ, D_GS_ZDR_RYJB, D_GS_ZDQT_LB, D_GS_ZDR_BK_ZT, D_GS_BQ_LX, D_GS_ZDQT_ZT, D_BZ_SF, D_BZ_XB, D_GS_XS_LY, D_BZ_SSZT, D_GS_XS_LX, D_GS_XS_QTLX } = proxy.$dict("D_GS_ZDR_CZZT","D_GS_BK_SQLX", "D_GS_ZDQT_FXDJ", "D_GS_ZDR_RYJB", "D_GS_ZDQT_LB", "D_GS_ZDR_BK_ZT", "D_GS_BQ_LX", "D_GS_ZDQT_ZT", "D_BZ_SF", "D_BZ_XB", "D_GS_XS_LY", "D_BZ_SSZT", "D_GS_XS_LX", "D_GS_XS_QTLX"); //获取字典数据
|
||||
const showzxs = ref(false);
|
||||
const btnloading = ref(false)
|
||||
const queryFrom = ref({});
|
||||
const chooseRow = ref({})
|
||||
const ids = ref([]);
|
||||
const elRowForm = ref()
|
||||
const elRowForm1 = ref()
|
||||
const choosList = ref([]);
|
||||
const show = ref(false);
|
||||
const chooseUserVisible = ref(false); //审批流程
|
||||
@ -126,6 +165,11 @@ const visible = ref(false);
|
||||
const visiblefp = ref(false);
|
||||
const zxsDilof = ref();
|
||||
const obj = ref({});
|
||||
const rules = reactive({
|
||||
sftg: [{ required: true, message: "请选择是否通过", trigger: "change" }],
|
||||
shBtgyy: [{ required: true, message: "请输入不通过原因", trigger: "blur" }],
|
||||
spBtgyy: [{ required: true, message: "请输入不通过原因", trigger: "blur" }]
|
||||
});
|
||||
const searchConfiger = ref([
|
||||
{
|
||||
label: "群体名称",
|
||||
@ -228,6 +272,57 @@ const getList = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const cancelRow = (row) => {
|
||||
row.visible = false;
|
||||
chooseRow.value = {};
|
||||
btnloading.value = false;
|
||||
elRowForm.value.resetFields()
|
||||
};
|
||||
|
||||
// 审核
|
||||
const handleSend = (val) =>{
|
||||
elRowForm.value.validate((valid) => {
|
||||
if(!valid) return;
|
||||
btnloading.value = true;
|
||||
qcckPost(chooseRow.value, "/mosty-gsxt/tbGsxtZdqt/toExamine").then(() => {
|
||||
proxy.$message({ type: "success", message: "审核成功" });
|
||||
val.visible = false;
|
||||
btnloading.value = false;
|
||||
chooseRow.value = {};
|
||||
getList();
|
||||
}).catch(()=>{
|
||||
btnloading.value = false;
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 审批
|
||||
const cancelRowSp = (row) =>{
|
||||
row.visible1 = false;
|
||||
chooseRow.value = {};
|
||||
btnloading.value = false;
|
||||
elRowForm1.value.resetFields()
|
||||
}
|
||||
// 审批
|
||||
const handleSendSp = () =>{
|
||||
elRowForm1.value.validate((valid) => {
|
||||
if(!valid) return;
|
||||
btnloading.value = true;
|
||||
qcckPost(chooseRow.value, "/mosty-gsxt/tbGsxtZdqt/audits").then(() => {
|
||||
proxy.$message({ type: "success", message: "审批成功" });
|
||||
val.visible1 = false;
|
||||
btnloading.value = false;
|
||||
chooseRow.value = {};
|
||||
getList();
|
||||
}).catch(()=>{
|
||||
btnloading.value = false;
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 详情
|
||||
const addEdit = (type, row) => {
|
||||
show.value = true;
|
Reference in New Issue
Block a user