feat(salon): 支持散客预约拨号并发布协议新版本强制重新同意
自动发布开发环境 Nacos 配置 / publish (push) Successful in 23s

This commit is contained in:
2026-11-04 23:38:42 +08:00
parent 114a8a423c
commit 88589e2575
22 changed files with 602 additions and 44 deletions
@@ -135,13 +135,17 @@ Page({
async dialCustomer() {
const appointment = this.data.appointment || {}
if (this.data.dialing) return
if (!appointment.customerPhoneAvailable || !appointment.customerId || !appointment.orderId) {
if (!appointment.customerPhoneAvailable || !appointment.orderId) {
wx.showToast({ title: '该客户暂无可拨打的手机号', icon: 'none' })
return
}
this.setData({ dialing: true })
try {
const result = await customersApi.dialCustomer(appointment.customerId, appointment.orderId)
const result = await customersApi.dialCustomer({
customerId: appointment.customerId,
appointmentId: appointment.orderItemId,
orderId: appointment.orderId
})
if (!result || !result.dialNumber) {
throw new Error('未获取到可拨打号码')
}