pull/2/head
qsh 3 months ago
parent 2cf95c4e5d
commit 004915e956
  1. 31
      src/views/Clue/Order/Comp/DialogAfterSaleAudit.vue
  2. 31
      src/views/Clue/Order/Comp/DialogBatchAudit.vue
  3. 6
      src/views/Clue/Pool/Comp/DialogClue.vue

@ -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()

@ -1,15 +1,38 @@
<template> <template>
<Dialog :title="dialogTitle" v-model="dialogVisible" width="600px"> <Dialog :title="dialogTitle" v-model="dialogVisible" width="600px">
<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 @@
<script name="DialogAfterSaleAudit" setup> <script name="DialogAfterSaleAudit" setup>
import { batchAuditAfterSale } from '@/api/clue/afterSale' import { batchAuditAfterSale } from '@/api/clue/afterSale'
import { batchAuditPayment } from '@/api/clue/payment' import { batchAuditPayment } from '@/api/clue/payment'
import { formatDate } from '@/utils/formatTime'
const message = useMessage() // const message = useMessage() //
@ -32,6 +56,10 @@ const formData = ref({
remark: '' remark: ''
}) })
const formRef = ref() // Ref const formRef = ref() // Ref
const ruels = {
checkTime: { required: true, message: '审核日期不可为空', trigger: 'blur,change' }
}
const formType = ref('aftersale') const formType = ref('aftersale')
const titleMap = { const titleMap = {
aftersale: '批量售后审核', aftersale: '批量售后审核',
@ -79,6 +107,7 @@ const resetForm = (ids) => {
formData.value = { formData.value = {
payIds: ids, payIds: ids,
saleIds: ids, saleIds: ids,
checkTime: formatDate(new Date()),
state: 3, state: 3,
remark: '' remark: ''
} }

@ -47,7 +47,7 @@
type="textarea" type="textarea"
:autoSize="{ minRows: 2 }" :autoSize="{ minRows: 2 }"
placeholder="输入跟进内容" placeholder="输入跟进内容"
:disabled="!row.editable" :disabled="row.userId != useUserStore().getUser.id"
/> />
</template> </template>
</el-table-column> </el-table-column>
@ -364,8 +364,8 @@ async function handleSave() {
const data = await ClueApi.createClue(params) const data = await ClueApi.createClue(params)
message.success(data) message.success(data)
} else { } else {
const data = await ClueApi.updateClue(params) await ClueApi.updateClue(params)
message.success(data) message.success('修改成功')
} }
dialogVisible.value = false dialogVisible.value = false
// //

Loading…
Cancel
Save