更新预约单数
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:cashier_reserve/common/base/ui.dart';
|
||||
import 'package:cashier_reserve/common/channel/call_log_model.dart';
|
||||
import 'package:cashier_reserve/common/print/print.dart';
|
||||
import 'package:cashier_reserve/data_model/reserve/reserve_log_model.dart';
|
||||
import 'package:cashier_reserve/home/reserve_view_model.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
@@ -121,6 +122,7 @@ class ReserveLeftContentView extends StatelessWidget {
|
||||
|
||||
/// _buildCallRecordItem 通话记录item
|
||||
Widget _buildCallRecordItem(BuildContext context, CallLogModel? model) {
|
||||
ReserveLogModel? reserveLogModel = provider.getReserveLogModel(model?.number ?? "");
|
||||
return Container(
|
||||
padding: const EdgeInsets.fromLTRB(15, 15, 15, 5),
|
||||
child: Column(
|
||||
@@ -164,18 +166,18 @@ class ReserveLeftContentView extends StatelessWidget {
|
||||
const SizedBox(
|
||||
width: 15,
|
||||
),
|
||||
const Text(
|
||||
"已消费0单",
|
||||
Text(
|
||||
"已消费${reserveLogModel?.consumeOrders ?? '0'}单",
|
||||
style:
|
||||
TextStyle(color: Color(0xff333333), fontSize: 14),
|
||||
const TextStyle(color: Color(0xff333333), fontSize: 14),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 15,
|
||||
),
|
||||
const Text(
|
||||
"已撤0单",
|
||||
Text(
|
||||
"已撤${reserveLogModel?.cancelOrders ?? '0'}单",
|
||||
style:
|
||||
TextStyle(color: Color(0xff333333), fontSize: 14),
|
||||
const TextStyle(color: Color(0xff333333), fontSize: 14),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -336,7 +338,9 @@ class ReserveLeftContentView extends StatelessWidget {
|
||||
_buildBookingActionBtn(context, "预约", () {
|
||||
provider.commitReserveInfo();
|
||||
}),
|
||||
_buildBookingActionBtn(context, "预约并短信", () {}),
|
||||
_buildBookingActionBtn(context, "预约并短信", () {
|
||||
provider.commitReserveInfo(sendSms: true);
|
||||
}),
|
||||
_buildBookingActionBtn(context, "发路线", () {}),
|
||||
_buildBookingActionBtn(context, "取消", () {
|
||||
provider.hideReserveInfoView();
|
||||
|
||||
Reference in New Issue
Block a user