|
@@ -0,0 +1,59 @@
|
|
|
+<template>
|
|
|
+ <Dialog draggable custom-show type="sm" title="领导批示" height="180px" @close="handleClose" @confirm="handleSubmit">
|
|
|
+ <div class="dialog-content">
|
|
|
+ <el-form ref="formRef" :model="form" :rules="rules">
|
|
|
+ <el-form-item label="领导审批" label-width="70px" prop="content">
|
|
|
+ <el-input v-model="form.content" class="custom-input2" clearable placeholder="请输入领导审批意见" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </Dialog>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+const props = defineProps({
|
|
|
+ modelValue: {
|
|
|
+ type: Boolean
|
|
|
+ },
|
|
|
+ id: {
|
|
|
+ type: String
|
|
|
+ }
|
|
|
+});
|
|
|
+const emits = defineEmits(['update:modelValue', 'close', 'confirm']);
|
|
|
+const formRef = ref();
|
|
|
+const proxy = getCurrentInstance()?.proxy;
|
|
|
+
|
|
|
+const form = ref({
|
|
|
+ content: ''
|
|
|
+});
|
|
|
+const rules = {
|
|
|
+ content: [{ required: true, message: '领导批示不能为空', trigger: 'blur' }]
|
|
|
+};
|
|
|
+// 弹窗关闭后
|
|
|
+const handleClose = () => {
|
|
|
+ emits('update:modelValue', false);
|
|
|
+};
|
|
|
+
|
|
|
+//
|
|
|
+const handleSubmit = () => {
|
|
|
+ formRef.value?.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ proxy?.$modal.msgSuccess('批示成功');
|
|
|
+ emits('update:modelValue', false);
|
|
|
+ emits('confirm');
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.dialog-content {
|
|
|
+ :deep(.el-form) {
|
|
|
+ .el-form-item__label {
|
|
|
+ color: #fff !important;
|
|
|
+ font-weight: bold !important;
|
|
|
+ margin-right: 5px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|