|
@@ -1,8 +1,12 @@
|
|
|
<template>
|
|
|
- <base-dialog v-model="visible" title="提示" :footer="false" destroy-on-close :width="300">
|
|
|
- <h3 style="margin-bottom: 20px">确定打回吗?</h3>
|
|
|
-
|
|
|
- <template v-if="needRejectReason">
|
|
|
+ <base-dialog
|
|
|
+ v-model="visible"
|
|
|
+ :title="needRejectReason === true ? '打回原因' : '提示'"
|
|
|
+ :footer="false"
|
|
|
+ destroy-on-close
|
|
|
+ :width="550"
|
|
|
+ >
|
|
|
+ <template v-if="needRejectReason === true">
|
|
|
<base-form ref="formRef" :model="model" :items="items" :rules="rules" label-width="72px">
|
|
|
<el-form-item>
|
|
|
<confirm-button @confirm="onSendBack" @cancel="onCancel"></confirm-button>
|
|
@@ -11,9 +15,12 @@
|
|
|
</template>
|
|
|
|
|
|
<!-- <base-form ref="formRef" :model="model" :items="items" :rules="rules" :label-width="useVW(72)"> -->
|
|
|
- <el-form-item v-else>
|
|
|
- <confirm-button @confirm="onSendBack" @cancel="onCancel"></confirm-button>
|
|
|
- </el-form-item>
|
|
|
+ <template v-else-if="needRejectReason === false">
|
|
|
+ <h3 style="margin-top: 25px; margin-bottom: 40px">确定打回吗?</h3>
|
|
|
+ <el-form-item>
|
|
|
+ <confirm-button @confirm="onSendBack" @cancel="onCancel"></confirm-button>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
<!-- </base-form> -->
|
|
|
</base-dialog>
|
|
|
</template>
|
|
@@ -33,7 +40,7 @@ import useMainStore from '@/store/main'
|
|
|
|
|
|
import type { EpFormItem, EpFormRules } from 'global-type'
|
|
|
const mainStore = useMainStore()
|
|
|
-const needRejectReason = ref(false)
|
|
|
+const needRejectReason = ref<any>(null)
|
|
|
const emits = defineEmits<{
|
|
|
(e: 'rejected'): void
|
|
|
}>()
|
|
@@ -78,9 +85,15 @@ const reason = ['给分太高', '给分太低', '注意,评分偏紧', '注意,
|
|
|
value: v,
|
|
|
}))
|
|
|
|
|
|
-const items: EpFormItem[] = [
|
|
|
- { label: '打回原因', prop: 'reason', slotType: 'select', slot: { options: reason } },
|
|
|
- { label: '说明', prop: 'description', slotType: 'input', slot: { type: 'textarea' } },
|
|
|
+const items: any[] = [
|
|
|
+ { label: '打回原因', labelWidth: '80px', prop: 'reason', slotType: 'select', slot: { options: reason } },
|
|
|
+ {
|
|
|
+ label: '说明',
|
|
|
+ labelWidth: '80px',
|
|
|
+ prop: 'description',
|
|
|
+ slotType: 'input',
|
|
|
+ slot: { type: 'textarea', maxlength: 200, resize: 'none', rows: 6, showWordLimit: true },
|
|
|
+ },
|
|
|
]
|
|
|
|
|
|
const { fetch: rejectMarkHistory } = useFetch('rejectMarkHistory')
|