2025-07-03 21:15:39 +08:00
|
|
|
<template>
|
2025-07-16 10:21:53 +08:00
|
|
|
<el-dialog v-model="modelValue" title="审核" width="500px" @close="handleClose">
|
|
|
|
<el-form :model="listQuery" ref="formValidate" :rules="rules" label-width="120px">
|
|
|
|
<el-form-item prop="bkshzt" label="审核">
|
|
|
|
<MOSTY.Select filterable v-model="listQuery.bkshzt" :dictEnum="props.dic.D_BZ_RCSHZT" width="100%" clearable placeholder="请选择是否布控" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item prop="bkshzt" label="审核部门">
|
|
|
|
<MOSTY.Department clearable v-model="listQuery.ssbmdm" :placeholder="listQuery.ssbm ? listQuery.ssbm : ''" style="width: 100%" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
<template #footer>
|
|
|
|
<div class="tc">
|
|
|
|
<el-button @click="handleClose">取消</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确定</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
2025-07-03 21:15:39 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ElMessage } from "element-plus";
|
|
|
|
import { qcckPost } from "@/api/qcckApi.js";
|
|
|
|
import * as MOSTY from "@/components/MyComponents/index";
|
2025-07-16 10:21:53 +08:00
|
|
|
import { ref, defineProps, defineEmits, reactive } from "vue";
|
2025-07-03 21:15:39 +08:00
|
|
|
const props = defineProps({
|
2025-07-16 10:21:53 +08:00
|
|
|
modelValue: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
2025-07-03 21:15:39 +08:00
|
|
|
},
|
2025-07-16 10:21:53 +08:00
|
|
|
data: {
|
|
|
|
type: Object,
|
|
|
|
default: {}
|
2025-07-03 21:15:39 +08:00
|
|
|
},
|
2025-07-16 10:21:53 +08:00
|
|
|
dic: {
|
|
|
|
type: Object,
|
|
|
|
default: {}
|
|
|
|
}
|
|
|
|
});
|
2025-07-03 21:15:39 +08:00
|
|
|
|
2025-07-16 10:21:53 +08:00
|
|
|
const emits = defineEmits(["update:modelValue", "getDepValue"]);
|
|
|
|
const formValidate = ref();
|
2025-07-03 21:15:39 +08:00
|
|
|
const rules = reactive({
|
2025-07-16 10:21:53 +08:00
|
|
|
bkshzt: [{ required: true, message: "请选择审核状态", trigger: "change" }]
|
|
|
|
});
|
2025-07-03 21:15:39 +08:00
|
|
|
const listQuery = ref({});
|
|
|
|
|
2025-07-16 10:21:53 +08:00
|
|
|
const submitForm = () => {
|
2025-07-03 21:15:39 +08:00
|
|
|
formValidate.value.validate((valid) => {
|
|
|
|
if (!valid) return false;
|
2025-07-16 10:21:53 +08:00
|
|
|
let params = { ids: props.ids, ...listQuery.value };
|
|
|
|
qcckPost(params, "/mosty-gsxt/tbGsxtRqfjRy/updateByBksh").then((res) => {
|
2025-07-03 21:15:39 +08:00
|
|
|
ElMessage.success("成功");
|
2025-07-16 10:21:53 +08:00
|
|
|
emits("update:modelValue", false);
|
|
|
|
emits("change");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
2025-07-03 21:15:39 +08:00
|
|
|
|
2025-07-16 10:21:53 +08:00
|
|
|
const handleClose = () => {
|
|
|
|
emits("update:modelValue", false);
|
2025-07-03 21:15:39 +08:00
|
|
|
formValidate.value.resetFields();
|
2025-07-16 10:21:53 +08:00
|
|
|
};
|
2025-07-03 21:15:39 +08:00
|
|
|
</script>
|
|
|
|
|
2025-07-16 10:21:53 +08:00
|
|
|
<style lang="scss" scoped></style>
|