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>
<Dialog :title="dialogTitle" v-model="dialogVisible" width="800px">
<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-radio-group v-model="formData.state">
<el-radio :label="3"> 通过 </el-radio>
<el-radio :label="4"> 驳回 </el-radio>
</el-radio-group>
</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">
<Editor v-model:modelValue="formData.remark" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<el-button :disabled="formLoading" type="primary" @click="submitForm"> </el-button>
@ -20,6 +43,7 @@
</template>
<script name="DialogAfterSaleAudit" setup>
import { auditAfterSale } from '@/api/clue/afterSale'
import { formatDate } from '@/utils/formatTime'
const message = useMessage() //
@ -104,6 +128,10 @@ const formData = ref({
})
const formRef = ref() // Ref
const ruels = {
checkTime: { required: true, message: '审核日期不可为空', trigger: 'blur,change' }
}
const orderInfo = ref({})
/** 打开弹窗 */
const open = async (row) => {
@ -140,6 +168,7 @@ const resetForm = (signId) => {
formData.value = {
saleId: signId,
state: 3,
checkTime: formatDate(new Date()),
remark: ''
}
formRef.value?.resetFields()

@ -1,15 +1,38 @@
<template>
<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-radio-group v-model="formData.state">
<el-radio :label="3"> 通过 </el-radio>
<el-radio :label="4"> 驳回 </el-radio>
</el-radio-group>
</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">
<Editor v-model:modelValue="formData.remark" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<el-button :disabled="formLoading" type="primary" @click="submitForm"> </el-button>
@ -20,6 +43,7 @@
<script name="DialogAfterSaleAudit" setup>
import { batchAuditAfterSale } from '@/api/clue/afterSale'
import { batchAuditPayment } from '@/api/clue/payment'
import { formatDate } from '@/utils/formatTime'
const message = useMessage() //
@ -32,6 +56,10 @@ const formData = ref({
remark: ''
})
const formRef = ref() // Ref
const ruels = {
checkTime: { required: true, message: '审核日期不可为空', trigger: 'blur,change' }
}
const formType = ref('aftersale')
const titleMap = {
aftersale: '批量售后审核',
@ -79,6 +107,7 @@ const resetForm = (ids) => {
formData.value = {
payIds: ids,
saleIds: ids,
checkTime: formatDate(new Date()),
state: 3,
remark: ''
}

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

Loading…
Cancel
Save