|
|
|
@ -59,11 +59,11 @@ |
|
|
|
|
<view v-if="isDetail" class="val">{{ form.email }}</view> |
|
|
|
|
<input v-else type="text" placeholder="请输入" v-model="form.email"> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<view v-if="customerId" class="line"> |
|
|
|
|
<view class="name">产品到期时间</view> |
|
|
|
|
<view class="val">{{ form.expireDate }}</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<view v-if="customerId" class="line"> |
|
|
|
|
<view class="name">客户类型</view> |
|
|
|
|
<view class="val">{{ customerType }}</view> |
|
|
|
|
</view> |
|
|
|
@ -215,8 +215,8 @@ |
|
|
|
|
// 客户名称选择回调 |
|
|
|
|
schoolChange(school) { |
|
|
|
|
const { form } = this |
|
|
|
|
const { schoolId } = form |
|
|
|
|
form.schoolId = school.schoolId |
|
|
|
|
const { schoolId } = school |
|
|
|
|
form.schoolId = schoolId |
|
|
|
|
form.customerName = school.schoolName |
|
|
|
|
form.provinceId = school.provinceId |
|
|
|
|
form.provinceName = school.provinceName |
|
|
|
@ -269,7 +269,7 @@ |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
} else { |
|
|
|
|
addCustomer(form).then(res => { |
|
|
|
|
this.$util.sucMsg('添加成功') |
|
|
|
|
this.$util.sucMsg('创建客户成功!你现在可以去订单给客户下单了。') |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.navigateBack() |
|
|
|
|
}, 1500) |
|
|
|
@ -282,8 +282,9 @@ |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
.page { |
|
|
|
|
height: calc(100vh - 120rpx - env(safe-area-inset-bottom)); |
|
|
|
|
overflow: auto; |
|
|
|
|
padding-bottom: 170rpx; |
|
|
|
|
// height: calc(100vh - 120rpx - env(safe-area-inset-bottom)); |
|
|
|
|
// overflow: auto; |
|
|
|
|
-webkit-overflow-scrolling: touch; |
|
|
|
|
} |
|
|
|
|
.info { |
|
|
|
@ -296,11 +297,12 @@ |
|
|
|
|
.action { |
|
|
|
|
z-index: 2; |
|
|
|
|
position: fixed; |
|
|
|
|
bottom: env(safe-area-inset-bottom); |
|
|
|
|
bottom: 0; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-around; |
|
|
|
|
width: 100%; |
|
|
|
|
padding: 5px 10px; |
|
|
|
|
padding-bottom: env(safe-area-inset-bottom); |
|
|
|
|
background-color: #fff; |
|
|
|
|
border-top: 1px solid #f3f3f3; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|