写死跟进客户
This commit is contained in:
parent
afaa1d55f3
commit
0cbd130078
|
|
@ -3,10 +3,14 @@
|
|||
<view class="section-title">客户信息</view>
|
||||
|
||||
<!-- 客户类型 -->
|
||||
<view class="form-item clickable-item" @click="$emit('open-picker', 'customerType')">
|
||||
<view
|
||||
class="form-item"
|
||||
:class="lockCustomerType ? 'locked-item' : 'clickable-item'"
|
||||
@click="!lockCustomerType && $emit('open-picker', 'customerType')"
|
||||
>
|
||||
<text v-if="formData.customerType" class="form-value">{{ getCustomerTypeText(formData.customerType) }}</text>
|
||||
<text v-else class="form-placeholder">选择客户类型</text>
|
||||
<text class="arrow">›</text>
|
||||
<text v-if="!lockCustomerType" class="arrow">›</text>
|
||||
</view>
|
||||
|
||||
<!-- 客户名称 -->
|
||||
|
|
@ -95,6 +99,10 @@ const props = defineProps({
|
|||
type: Object,
|
||||
required: true
|
||||
},
|
||||
lockCustomerType: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
customerTypeOptions: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
|
|
@ -185,6 +193,17 @@ const getCustomerStatusText = (value) => {
|
|||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.locked-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 44px;
|
||||
padding: 0 12px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.form-value {
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
:customer-type-options="customerTypeOptions"
|
||||
:intent-level-options="intentLevelOptions"
|
||||
:customer-status-options="customerStatusOptions"
|
||||
:lock-customer-type="true"
|
||||
@update:form-data="formData = $event"
|
||||
@open-picker="handleOpenPicker"
|
||||
/>
|
||||
|
|
@ -87,7 +88,7 @@ const {
|
|||
|
||||
// 表单数据
|
||||
const formData = ref({
|
||||
customerType: '',
|
||||
customerType: '2',
|
||||
name: '',
|
||||
mobile: '',
|
||||
wechat: '',
|
||||
|
|
@ -247,7 +248,7 @@ const handleSave = async () => {
|
|||
intents: intentsArray,
|
||||
followId: userId,
|
||||
remark: formData.value.remark.trim() || null,
|
||||
type: formData.value.customerType || '2',
|
||||
type: '2',
|
||||
workWechatId: formData.value.workWechatId || null,
|
||||
regionIds: regionIdsArray,
|
||||
attention: formData.value.attention.trim() || null,
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
:customer-type-options="customerTypeOptions"
|
||||
:intent-level-options="intentLevelOptions"
|
||||
:customer-status-options="customerStatusOptions"
|
||||
:lock-customer-type="true"
|
||||
@update:form-data="formData = $event"
|
||||
@open-picker="handleOpenPicker"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user