Merge branch 'main' of http://114.55.169.15:3000/qiushanhe/ss-crm-manage-web
This commit is contained in:
@@ -1,18 +1,44 @@
|
||||
<template>
|
||||
<el-dialog width="800px" :title="title" v-model="show" append-to-body>
|
||||
<el-divider direction="horizontal" content-position="left" style="margin-top: 10px">
|
||||
场地班型
|
||||
</el-divider>
|
||||
<el-table :data="tableList" border stripe size="small">
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column prop="typeName" label="班型名称" />
|
||||
<el-table-column prop="licenseType" label="驾照类型" />
|
||||
<el-table-column label="班型备注">
|
||||
<template #default="{ row }">
|
||||
<el-popover placement="top" width="500px" trigger="click">
|
||||
<template #reference>
|
||||
<el-button type="primary" style="padding: 0" text>点击查看</el-button>
|
||||
</template>
|
||||
<div v-dompurify-html="row.remark"></div>
|
||||
</el-popover>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-divider direction="horizontal" content-position="left">场地详细信息</el-divider>
|
||||
<div v-dompurify-html="detail" class="mb-20px"></div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup name="DialogSchoolInfo">
|
||||
import { getClassTypeList } from '@/api/school/class'
|
||||
const title = ref('')
|
||||
const show = ref(false)
|
||||
const detail = ref('')
|
||||
|
||||
const tableList = ref([])
|
||||
function open(info) {
|
||||
title.value = `【${info.schoolName}】详细信息`
|
||||
show.value = true
|
||||
detail.value = info.introduce || '该驾校暂未配置详细信息'
|
||||
|
||||
getClassTypeList({ placeId: info.placeId, status: 0 }).then((data) => {
|
||||
tableList.value = data
|
||||
})
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
|
||||
@@ -119,6 +119,11 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<template v-if="appStore.getAppInfo?.instanceType == 1">
|
||||
<el-col :span="8" :offset="0" v-if="form.signClass">
|
||||
<el-form-item label="利润">
|
||||
<div style="color: blue; font-weight: bold; font-size: 16px">{{ profitNum }}</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8" :offset="0">
|
||||
<el-form-item label="接待人" prop="receiver">
|
||||
<el-select v-model="form.receiver" placeholder="选择接待人" clearable filterable>
|
||||
@@ -336,7 +341,7 @@
|
||||
|
||||
<script setup name="DialogSuccess">
|
||||
import * as ClueApi from '@/api/clue'
|
||||
import { createSign } from '@/api/clue/sign'
|
||||
import { createSign, getSignProfit } from '@/api/clue/sign'
|
||||
import { getDiyFieldList } from '@/api/clue/orderField'
|
||||
import { getPlaceList } from '@/api/school/place'
|
||||
import { getClassTypeList } from '@/api/school/class'
|
||||
@@ -594,6 +599,19 @@ function signPriceChange() {
|
||||
if (form.value.isPayoff) {
|
||||
form.value.payAmount = form.value.signPrice
|
||||
}
|
||||
calcSignProfit()
|
||||
}
|
||||
|
||||
const profitNum = ref(0)
|
||||
function calcSignProfit() {
|
||||
if (form.value.signClass && appStore.getAppInfo?.instanceType == 1) {
|
||||
// 计算员工利润
|
||||
getSignProfit({ signClass: form.value.signClass, signPrice: form.value.signPrice }).then(
|
||||
(data) => {
|
||||
profitNum.value = data
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
function handleRemove(type, index) {
|
||||
|
||||
@@ -9,6 +9,12 @@
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-radio-group v-model="searchForm.status" @change="handleQuery">
|
||||
<el-radio :label="0"> 开启 </el-radio>
|
||||
<el-radio :label="1"> 关闭 </el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="handleQuery">搜索</el-button>
|
||||
<el-button @click="resetQuery">重置</el-button>
|
||||
@@ -59,7 +65,8 @@ const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
const searchForm = ref({
|
||||
sourceName: undefined
|
||||
sourceName: undefined,
|
||||
status: 0
|
||||
})
|
||||
|
||||
const sourceDialog = ref()
|
||||
@@ -71,7 +78,8 @@ function handleQuery() {
|
||||
}
|
||||
function resetQuery() {
|
||||
searchForm.value = {
|
||||
sourceName: ''
|
||||
sourceName: '',
|
||||
status: 0
|
||||
}
|
||||
getList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user