|
|
@ -1,16 +1,39 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible" width="800px"> |
|
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible" width="800px"> |
|
|
|
<Descriptions :data="orderInfo" :schema="schema" :columns="2" labelWidth="130px" /> |
|
|
|
<Descriptions :data="orderInfo" :schema="schema" :columns="2" labelWidth="130px" /> |
|
|
|
<el-form ref="formRef" v-loading="formLoading" :model="formData" label-width="80px"> |
|
|
|
<el-form |
|
|
|
|
|
|
|
ref="formRef" |
|
|
|
|
|
|
|
v-loading="formLoading" |
|
|
|
|
|
|
|
:rules="ruels" |
|
|
|
|
|
|
|
:model="formData" |
|
|
|
|
|
|
|
label-width="80px" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
<el-form-item label="状态" prop="state"> |
|
|
|
<el-form-item label="状态" prop="state"> |
|
|
|
<el-radio-group v-model="formData.state"> |
|
|
|
<el-radio-group v-model="formData.state"> |
|
|
|
<el-radio :label="3"> 通过 </el-radio> |
|
|
|
<el-radio :label="3"> 通过 </el-radio> |
|
|
|
<el-radio :label="4"> 驳回 </el-radio> |
|
|
|
<el-radio :label="4"> 驳回 </el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="审核日期" prop="checkTime"> |
|
|
|
|
|
|
|
<el-date-picker |
|
|
|
|
|
|
|
v-model="formData.checkTime" |
|
|
|
|
|
|
|
type="date" |
|
|
|
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
|
|
|
placeholder="选择日期" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24" :offset="0"> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<Editor v-model:modelValue="formData.remark" /> |
|
|
|
<Editor v-model:modelValue="formData.remark" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<el-button :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button> |
|
|
|
<el-button :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button> |
|
|
@ -20,6 +43,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script name="DialogAfterSaleAudit" setup> |
|
|
|
<script name="DialogAfterSaleAudit" setup> |
|
|
|
import { auditAfterSale } from '@/api/clue/afterSale' |
|
|
|
import { auditAfterSale } from '@/api/clue/afterSale' |
|
|
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
|
|
|
|
|
|
|
@ -104,6 +128,10 @@ const formData = ref({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
const formRef = ref() // 表单 Ref |
|
|
|
const formRef = ref() // 表单 Ref |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ruels = { |
|
|
|
|
|
|
|
checkTime: { required: true, message: '审核日期不可为空', trigger: 'blur,change' } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const orderInfo = ref({}) |
|
|
|
const orderInfo = ref({}) |
|
|
|
/** 打开弹窗 */ |
|
|
|
/** 打开弹窗 */ |
|
|
|
const open = async (row) => { |
|
|
|
const open = async (row) => { |
|
|
@ -140,6 +168,7 @@ const resetForm = (signId) => { |
|
|
|
formData.value = { |
|
|
|
formData.value = { |
|
|
|
saleId: signId, |
|
|
|
saleId: signId, |
|
|
|
state: 3, |
|
|
|
state: 3, |
|
|
|
|
|
|
|
checkTime: formatDate(new Date()), |
|
|
|
remark: '' |
|
|
|
remark: '' |
|
|
|
} |
|
|
|
} |
|
|
|
formRef.value?.resetFields() |
|
|
|
formRef.value?.resetFields() |
|
|
|