This commit is contained in:
2026-01-26 15:55:57 +08:00
parent 5998eea6b1
commit 5db55d9e75
8 changed files with 39 additions and 75 deletions

View File

@ -30,23 +30,6 @@
<!-- 详情 -->
<Detail bglx="02" ref="detailDiloag" :dict="{ D_BZ_YPFS, D_BZ_YPLX }"/>
<el-popover ref="popoverRef" :visible="isShowVisble" :width="400" :virtual-ref="buttonRef" placement="left"trigger="click" title="审核" virtual-triggering >
<el-form :model="shForm" :rules="rules" ref="formRef">
<el-form-item label="审核状态" prop="shzt">
<el-radio-group v-model="shForm.shzt" @change="handleChange">
<el-radio label="0">审核通过</el-radio>
<el-radio label="1">审核不通过</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="驳回原因" prop="bhyy" v-if="shForm.shzt === '1'">
<el-input v-model="shForm.bhyy" type="textarea" placeholder="请输入驳回原因"></el-input>
</el-form-item>
<div class="tc">
<el-button @click.stop="closePopover">取消</el-button>
<el-button type="primary" @click.stop="submitForm">确定</el-button>
</div>
</el-form>
</el-popover>
</div>
</template>
@ -57,8 +40,10 @@ import Pages from "@/components/aboutTable/Pages.vue";
import Search from "@/components/aboutTable/Search.vue";
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
import { useRouter } from 'vue-router';
const router = useRouter();
const { proxy } = getCurrentInstance();
const { D_GZL_SHZT,D_BZ_YPFS,D_BZ_YPLX ,D_BZ_XSSHZT } = proxy.$dict('D_GZL_SHZT','D_BZ_YPFS',"D_BZ_YPLX" ,'D_BZ_XSSHZT')
const { D_BZ_YPFS,D_BZ_YPLX ,D_BZ_XSSHZT } = proxy.$dict('D_GZL_SHZT','D_BZ_YPFS',"D_BZ_YPLX" ,'D_BZ_XSSHZT')
const detailDiloag = ref();
const searchBox = ref(); //搜索框
const searchConfiger = ref([
@ -136,15 +121,6 @@ const pageData = reactive({
]
});
const btnloading = ref(false)
const isShowVisble = ref(false)
const buttonRef = ref()
const formRef = ref()
const shForm = ref({})
const rules = ref({
shzt: [{ required: true, message: "请选择审核状态", trigger: ['blur','change'] }],
bhyy: [{ required: true, message: "请输入驳回原因", trigger: ['blur','change'] }],
})
onMounted(() => {
tabHeightFn();
getList();
@ -190,26 +166,8 @@ const addEdit = (type, row) => {
};
const showPopover = (row) => {
isShowVisble.value = true
shForm.value = { id: row.id }
}
const closePopover = () => {
isShowVisble.value = false;
formRef.value.resetFields()
}
const submitForm = () => {
console.log(shForm.value,'===shForm.value,');
formRef.value.validate((valid) => {
if (!valid) return false;
// btnloading.value = true
// qcckPost(shForm.value, "/mosty-gsxt/gsxtYpbg/updateShzt").then((res) => {
// btnloading.value = false
// closePopover()
// proxy.$message({ type: "success", message: "操作成功" });
// getList();
// });
});
const url = router.resolve({ path: '/ReviewListSH', query:{id:row.id} });
window.open(url.href, '_blank');
}
// 表格高度计算