配置
This commit is contained in:
45
src/views/Basic/GeneralSet/Comp/BSClue.vue
Normal file
45
src/views/Basic/GeneralSet/Comp/BSClue.vue
Normal file
@@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<el-form :model="form" ref="formRef" label-width="auto">
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
<Tooltip message="请联系客服开通或关闭,客服电话:15955599959" />使用外呼
|
||||
</template>
|
||||
<el-radio-group v-model="form.callEnable" disabled>
|
||||
<el-radio :label="1"> 使用 </el-radio>
|
||||
<el-radio :label="0"> 不使用 </el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="跟进信息">
|
||||
<el-radio-group v-model="form.followType">
|
||||
<el-radio :label="1"> 展示所有 </el-radio>
|
||||
<el-radio :label="2"> 仅展示本人 </el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="onSubmit">保存</el-button>
|
||||
<el-button @click="getData">刷新</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
<script setup name="BasicSettingClue">
|
||||
const message = useMessage()
|
||||
|
||||
const form = ref({
|
||||
followType: 1,
|
||||
callEnable: 1
|
||||
})
|
||||
|
||||
function getData() {
|
||||
form.value = {
|
||||
followType: 1,
|
||||
callEnable: 1
|
||||
}
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
message.success('保存成功')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
69
src/views/Basic/GeneralSet/Comp/BSSalerComission.vue
Normal file
69
src/views/Basic/GeneralSet/Comp/BSSalerComission.vue
Normal file
@@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<el-form :model="form" ref="formRef" label-width="auto">
|
||||
<el-form-item label="是否关联成交率">
|
||||
<el-radio-group v-model="form.withSuccess">
|
||||
<el-radio :label="1"> 是 </el-radio>
|
||||
<el-radio :label="0"> 否 </el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联规则">
|
||||
<div>
|
||||
<el-button @click="form.rules.push({})">新增规则</el-button>
|
||||
<div
|
||||
v-for="(item, index) in form.rules"
|
||||
:key="index"
|
||||
class="mt-10px flex justify-center items-center"
|
||||
>
|
||||
<span>成交率达</span>
|
||||
<el-input
|
||||
class="ml-10px"
|
||||
v-model="item.successRate"
|
||||
placeholder="成交率"
|
||||
style="width: 100px"
|
||||
type="number"
|
||||
:min="0"
|
||||
>
|
||||
<template #suffix>%</template>
|
||||
</el-input>
|
||||
<span>,可结算</span>
|
||||
<el-input
|
||||
class="ml-10px"
|
||||
v-model="item.comissionRate"
|
||||
placeholder="提成率"
|
||||
style="width: 100px"
|
||||
type="number"
|
||||
:min="0"
|
||||
>
|
||||
<template #suffix>%</template>
|
||||
</el-input>
|
||||
<span>提成</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="onSubmit">保存</el-button>
|
||||
<el-button @click="getData">刷新</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
<script setup name="BasicSettingClue">
|
||||
const message = useMessage()
|
||||
|
||||
const form = ref({
|
||||
withSuccess: 1,
|
||||
rules: []
|
||||
})
|
||||
|
||||
function getData() {
|
||||
form.value = {
|
||||
withSuccess: 1
|
||||
}
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
message.success('保存成功')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
21
src/views/Basic/GeneralSet/index.vue
Normal file
21
src/views/Basic/GeneralSet/index.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-tabs v-model="tabIndex" type="border-card">
|
||||
<el-tab-pane label="线索管理" :name="0">
|
||||
<BSClue v-if="tabIndex == 0" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="销售提成" :name="10">
|
||||
<BSSalerComission v-if="tabIndex == 10" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="GeneralSetting">
|
||||
import BSClue from './Comp/BSClue.vue'
|
||||
import BSSalerComission from './Comp/BSSalerComission.vue'
|
||||
|
||||
const tabIndex = ref(0)
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in New Issue
Block a user