Compare commits

..

No commits in common. '18bfc7d353e740571dfdd93610810c082647b96d' and 'fb6b341242106a838dc6f72f3e7a7903dcc87c2d' have entirely different histories.

  1. 61
      src/views/Clue/Order/Comp/AfterSales.vue
  2. 53
      src/views/Clue/Order/Comp/DialogFeebackAudit.vue
  3. 8
      src/views/Clue/Order/Comp/MallSettle.vue
  4. 77
      src/views/Clue/Order/Comp/Reback.vue
  5. 8
      src/views/Clue/Order/Comp/SchoolSettle.vue
  6. 18
      src/views/Clue/Order/index.vue

@ -8,7 +8,7 @@
<el-input v-model="searchForm.name" placeholder="线索名称" clearable /> <el-input v-model="searchForm.name" placeholder="线索名称" clearable />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-select v-model="searchForm.state" placeholder="审核状态" clearable style="width: 120px"> <el-select v-model="searchForm.state" placeholder="审核状态" clearable>
<el-option label="待审核" :value="1" /> <el-option label="待审核" :value="1" />
<el-option label="已撤销" :value="2" /> <el-option label="已撤销" :value="2" />
<el-option label="已通过" :value="3" /> <el-option label="已通过" :value="3" />
@ -16,13 +16,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-select <el-select v-model="searchForm.signUser" placeholder="登记人" clearable filterable>
v-model="searchForm.signUser"
placeholder="登记人"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="item in userOptions" v-for="item in userOptions"
:key="item.id" :key="item.id"
@ -40,17 +34,10 @@
range-separator="-" range-separator="-"
start-placeholder="成交日期" start-placeholder="成交日期"
end-placeholder="成交日期" end-placeholder="成交日期"
style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-select <el-select v-model="searchForm.applyUser" placeholder="申请人" clearable filterable>
v-model="searchForm.applyUser"
placeholder="申请人"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="item in userOptions" v-for="item in userOptions"
:key="item.id" :key="item.id"
@ -68,31 +55,12 @@
range-separator="-" range-separator="-"
start-placeholder="申请日期" start-placeholder="申请日期"
end-placeholder="申请日期" end-placeholder="申请日期"
style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-date-picker <el-button @click="handleSearch">查询</el-button>
v-model="searchForm.checkTime" <el-button @click="handleReset">重置</el-button>
type="daterange" <el-button @click="batchAudit">批量审核</el-button>
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
range-separator="-"
start-placeholder="审核日期"
end-placeholder="审核日期"
style="width: 240px"
/>
</el-form-item>
<el-form-item>
<el-button @click="handleSearch" v-hasPermi="['clue:order:after-sale-search']">
查询
</el-button>
<el-button @click="handleReset" v-hasPermi="['clue:order:after-sale-reset']">
重置
</el-button>
<el-button @click="batchAudit" v-hasPermi="['clue:order:after-sale-batch-audit']">
批量审核
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -126,23 +94,10 @@
min-width="120px" min-width="120px"
:formatter="dateFormatter" :formatter="dateFormatter"
/> />
<el-table-column prop="checkUser" label="审核人" min-width="90" />
<el-table-column
prop="checkTime"
label="审核时间"
min-width="120px"
:formatter="dateFormatter"
/>
<el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90px" /> <el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90px" />
<el-table-column label="操作" width="150px" fixed="right"> <el-table-column label="操作" width="150px" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button type="primary" style="padding: 0" text @click="handleDetail(row.id)">
type="primary"
style="padding: 0"
text
v-hasPermi="['clue:order:after-sale-detail']"
@click="handleDetail(row.id)"
>
详情 详情
</el-button> </el-button>
<el-button <el-button
@ -207,7 +162,6 @@ const searchForm = ref({
dealUser: undefined, dealUser: undefined,
createDate: [], createDate: [],
createUser: undefined, createUser: undefined,
checkTime: [],
pageNo: 1, pageNo: 1,
pageSize: 20 pageSize: 20
}) })
@ -231,7 +185,6 @@ function handleReset() {
dealUser: undefined, dealUser: undefined,
createDate: [], createDate: [],
createUser: undefined, createUser: undefined,
checkTime: [],
pageNo: 1, pageNo: 1,
pageSize: 20 pageSize: 20
} }

@ -6,39 +6,16 @@
<el-table-column prop="followTime" label="最新跟进时间" :formatter="dateFormatter" /> <el-table-column prop="followTime" label="最新跟进时间" :formatter="dateFormatter" />
<el-table-column prop="signSate" label="成交状态" /> <el-table-column prop="signSate" label="成交状态" />
</el-table> </el-table>
<el-form <el-form ref="formRef" v-loading="formLoading" :model="formData" label-width="80px">
ref="formRef" <el-form-item label="状态" prop="state">
v-loading="formLoading" <el-radio-group v-model="formData.state">
:model="formData" <el-radio :label="3"> 通过 </el-radio>
:rules="ruels" <el-radio :label="4"> 驳回 </el-radio>
label-width="80px" </el-radio-group>
> </el-form-item>
<el-row :gutter="20"> <el-form-item label="备注" prop="remark">
<el-col :span="12" :offset="0"> <Editor v-model:modelValue="formData.remark" />
<el-form-item label="状态" prop="state"> </el-form-item>
<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> </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>
@ -49,8 +26,8 @@
<script name="DialogFeebackAudit" setup> <script name="DialogFeebackAudit" setup>
import { getFollowUserList } from '@/api/clue' import { getFollowUserList } from '@/api/clue'
import { auditPayment } from '@/api/clue/payment' import { auditPayment } from '@/api/clue/payment'
import { dateFormatter, formatDate } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import {} from '@/utils/formatTime'
const message = useMessage() // const message = useMessage() //
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
@ -112,11 +89,6 @@ const formData = ref({
state: 3, state: 3,
remark: '' remark: ''
}) })
const ruels = {
checkTime: { required: true, message: '审核日期不可为空', trigger: 'blur,change' }
}
const formRef = ref() // Ref const formRef = ref() // Ref
const orderInfo = ref({}) const orderInfo = ref({})
@ -157,7 +129,6 @@ const resetForm = (signId) => {
formData.value = { formData.value = {
payId: signId, payId: signId,
state: 3, state: 3,
checkTime: formatDate(new Date()),
remark: '' remark: ''
} }
formRef.value?.resetFields() formRef.value?.resetFields()

@ -87,11 +87,9 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleSearch" v-hasPermi="['clue:order:settle-search']">查询</el-button> <el-button @click="handleSearch">查询</el-button>
<el-button @click="handleReset" v-hasPermi="['clue:order:settle-reset']">重置</el-button> <el-button @click="handleReset">重置</el-button>
<el-button @click="batchSettle" v-hasPermi="['clue:order:settle-batch-audit']"> <el-button @click="batchSettle">批量结算</el-button>
批量结算
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

@ -8,7 +8,7 @@
<el-input v-model="searchForm.name" placeholder="线索名称" clearable /> <el-input v-model="searchForm.name" placeholder="线索名称" clearable />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-select v-model="searchForm.state" placeholder="审核状态" clearable style="width: 120px"> <el-select v-model="searchForm.state" placeholder="审核状态" clearable>
<el-option label="待审核" :value="1" /> <el-option label="待审核" :value="1" />
<el-option label="已撤销" :value="2" /> <el-option label="已撤销" :value="2" />
<el-option label="已通过" :value="3" /> <el-option label="已通过" :value="3" />
@ -16,13 +16,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="appStore.getAppInfo?.instanceType == 1"> <el-form-item v-if="appStore.getAppInfo?.instanceType == 1">
<el-select <el-select v-model="searchForm.receiver" placeholder="接待人" clearable filterable>
v-model="searchForm.receiver"
placeholder="接待人"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="item in allUserOptions" v-for="item in allUserOptions"
:key="item.id" :key="item.id"
@ -32,13 +26,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-else-if="appStore.getAppInfo?.instanceType == 2"> <el-form-item v-else-if="appStore.getAppInfo?.instanceType == 2">
<el-select <el-select v-model="searchForm.convertPeople" placeholder="转化人" clearable filterable>
v-model="searchForm.convertPeople"
placeholder="转化人"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="item in allUserOptions" v-for="item in allUserOptions"
:key="item.id" :key="item.id"
@ -48,13 +36,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-select <el-select v-model="searchForm.signUser" placeholder="登记人" clearable filterable>
v-model="searchForm.signUser"
placeholder="登记人"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="item in userOptions" v-for="item in userOptions"
:key="item.id" :key="item.id"
@ -72,17 +54,10 @@
range-separator="-" range-separator="-"
start-placeholder="成交日期" start-placeholder="成交日期"
end-placeholder="成交日期" end-placeholder="成交日期"
style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-select <el-select v-model="searchForm.applyUser" placeholder="申请人" clearable filterable>
v-model="searchForm.applyUser"
placeholder="申请人"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="item in userOptions" v-for="item in userOptions"
:key="item.id" :key="item.id"
@ -100,27 +75,12 @@
range-separator="-" range-separator="-"
start-placeholder="申请日期" start-placeholder="申请日期"
end-placeholder="申请日期" end-placeholder="申请日期"
style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-date-picker <el-button @click="handleSearch">查询</el-button>
v-model="searchForm.checkTime" <el-button @click="handleReset">重置</el-button>
type="daterange" <el-button @click="batchAudit">批量审核</el-button>
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
range-separator="-"
start-placeholder="审核日期"
end-placeholder="审核日期"
style="width: 240px"
/>
</el-form-item>
<el-form-item>
<el-button @click="handleSearch" v-hasPermi="['clue:order:return-search']">查询</el-button>
<el-button @click="handleReset" v-hasPermi="['clue:order:return-reset']">重置</el-button>
<el-button @click="batchAudit" v-hasPermi="['clue:order:return-batch-audit']">
批量审核
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -209,27 +169,14 @@
<el-table-column prop="applyUserName" label="申请人" min-width="90" /> <el-table-column prop="applyUserName" label="申请人" min-width="90" />
<el-table-column <el-table-column
prop="applyTime" prop="applyTime"
label="审核人" label="申请时间"
min-width="120px"
:formatter="dateFormatter"
/>
<el-table-column prop="checkUser" label="审核人" min-width="90" />
<el-table-column
prop="checkTime"
label="审核时间"
min-width="120px" min-width="120px"
:formatter="dateFormatter" :formatter="dateFormatter"
/> />
<el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90" /> <el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90" />
<el-table-column label="操作" width="220px" fixed="right"> <el-table-column label="操作" width="220px" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button type="primary" style="padding: 0" text @click="handleDetail(row)">
type="primary"
style="padding: 0"
text
v-hasPermi="['clue:order:return-detail']"
@click="handleDetail(row)"
>
详情 详情
</el-button> </el-button>
<el-button <el-button
@ -307,7 +254,6 @@ const searchForm = ref({
signUser: undefined, signUser: undefined,
applyTime: [], applyTime: [],
applyUser: undefined, applyUser: undefined,
checkTime: [],
pageNo: 1, pageNo: 1,
pageSize: 20 pageSize: 20
}) })
@ -334,7 +280,6 @@ function handleReset() {
signUser: undefined, signUser: undefined,
applyTime: [], applyTime: [],
applyUser: undefined, applyUser: undefined,
checkTime: [],
pageNo: 1, pageNo: 1,
pageSize: 20 pageSize: 20
} }
@ -409,7 +354,7 @@ function getSummaries(param) {
} else if (column.property == 'personProfit') { } else if (column.property == 'personProfit') {
sums[index] = totalInfo.value.totalPersonProfit sums[index] = totalInfo.value.totalPersonProfit
} else if (column.property == 'companyProfit') { } else if (column.property == 'companyProfit') {
sums[index] = totalInfo.value.totalCompanyProfit sums[index] = totalInfo.value.totalPersonProfit
} else if (column.property == 'signPrice') { } else if (column.property == 'signPrice') {
sums[index] = totalInfo.value.totalSignPrice sums[index] = totalInfo.value.totalSignPrice
} else { } else {

@ -93,11 +93,9 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleSearch" v-hasPermi="['clue:order:settle-search']">查询</el-button> <el-button @click="handleSearch">查询</el-button>
<el-button @click="handleReset" v-hasPermi="['clue:order:settle-reset']">重置</el-button> <el-button @click="handleReset">重置</el-button>
<el-button @click="batchSettle" v-hasPermi="['clue:order:settle-settle-batch-audit']"> <el-button @click="batchSettle">批量结算</el-button>
批量结算
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

@ -1,29 +1,21 @@
<template> <template>
<el-tabs v-model="tabName"> <el-tabs v-model="tabName">
<el-tab-pane label="成交列表" name="list" v-if="checkPermi(['clue:order:order-list'])"> <el-tab-pane label="成交列表" name="list">
<template v-if="tabName == 'list'"> <template v-if="tabName == 'list'">
<OrderList v-if="appStore.getAppInfo?.instanceType == 1" /> <OrderList v-if="appStore.getAppInfo?.instanceType == 1" />
<MallOrderList v-else-if="appStore.getAppInfo?.instanceType == 2" /> <MallOrderList v-else-if="appStore.getAppInfo?.instanceType == 2" />
</template> </template>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="回款申请" name="commission" v-if="checkPermi(['clue:order:return-list'])"> <el-tab-pane label="回款申请" name="commission">
<Reback v-if="tabName == 'commission'" /> <Reback v-if="tabName == 'commission'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane <el-tab-pane label="售后申请" name="aftersale">
label="售后申请"
name="aftersale"
v-if="checkPermi(['clue:order:after-sale-list'])"
>
<AfterSales v-if="tabName == 'aftersale'" /> <AfterSales v-if="tabName == 'aftersale'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane <el-tab-pane label="发货列表" name="delivery" v-if="appStore.getAppInfo?.instanceType == 2">
label="发货列表"
name="delivery"
v-if="appStore.getAppInfo?.instanceType == 2 && checkPermi(['clue:order:delivery-list'])"
>
<Delivery v-if="tabName == 'delivery'" /> <Delivery v-if="tabName == 'delivery'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="对外结算" name="settle" v-if="checkPermi(['clue:order:settle-list'])"> <el-tab-pane label="对外结算" name="settle" v-if="checkPermi(['clue:order:settle'])">
<Settle v-if="tabName == 'settle'" /> <Settle v-if="tabName == 'settle'" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>

Loading…
Cancel
Save