|
...
|
...
|
@@ -31,7 +31,7 @@ class NotebookDetailPage extends StatefulWidget { |
|
|
|
final String rid;
|
|
|
|
final bool fromNotify;
|
|
|
|
|
|
|
|
NotebookDetailPage(this.rid, {this.fromNotify=false});
|
|
|
|
NotebookDetailPage(this.rid, {this.fromNotify = false});
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() {
|
|
...
|
...
|
@@ -143,7 +143,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
"cause": json.encode(causeMap)
|
|
|
|
};
|
|
|
|
bool success =
|
|
|
|
await detailModel.setReserveStatus(context, params, ifPush: false);
|
|
|
|
await detailModel.setReserveStatus(context, params, ifPush: false);
|
|
|
|
if (success) {
|
|
|
|
_getReserveDetail();
|
|
|
|
}
|
|
...
|
...
|
@@ -170,7 +170,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
|
|
barrierLabel:
|
|
|
|
MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
transitionDuration: const Duration(milliseconds: 150),
|
|
|
|
pageBuilder: (BuildContext context, Animation animation,
|
|
|
|
Animation secondaryAnimation) {
|
|
...
|
...
|
@@ -197,7 +197,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
...
|
...
|
@@ -277,7 +277,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
Text(value['title'],
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(32),
|
|
|
|
ScreenUtil().setSp(32),
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
color: MyColours.color_333333))
|
|
...
|
...
|
@@ -285,42 +285,42 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
),
|
|
|
|
value['title'] == '其他原因' && isShowTF
|
|
|
|
? Material(
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left:
|
|
|
|
ScreenUtil().setWidth(76)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: _cancelController,
|
|
|
|
focusNode: _cancelNode,
|
|
|
|
textAlignVertical:
|
|
|
|
TextAlignVertical.bottom,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请填写原因",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color: MyColours
|
|
|
|
.color_d8d8d8),
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left:
|
|
|
|
ScreenUtil().setWidth(76)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: _cancelController,
|
|
|
|
focusNode: _cancelNode,
|
|
|
|
textAlignVertical:
|
|
|
|
TextAlignVertical.bottom,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请填写原因",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color: MyColours
|
|
|
|
.color_d8d8d8),
|
|
|
|
),
|
|
|
|
// border: InputBorder.none,
|
|
|
|
),
|
|
|
|
// border: InputBorder.none,
|
|
|
|
onChanged: (_) {
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
print('fff');
|
|
|
|
_cancelNode.unfocus();
|
|
|
|
},
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
print('fff');
|
|
|
|
_cancelNode.unfocus();
|
|
|
|
},
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
))
|
|
|
|
))
|
|
|
|
: Container(),
|
|
|
|
VEmptyView(40)
|
|
|
|
]),
|
|
...
|
...
|
@@ -353,8 +353,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
Loading.showLoading(context);
|
|
|
|
setReserveStatus('4', desc: desc);
|
|
|
|
bus.emit("refresh_book_list");
|
|
|
|
setReserveStatus('4', desc: desc);
|
|
|
|
},
|
|
|
|
text: '确认',
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
...
|
...
|
@@ -379,321 +379,327 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
return WillPopScope(
|
|
|
|
child: detailEntity == null
|
|
|
|
? Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
)
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
)
|
|
|
|
: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
SizedBox(height: ScreenUtil.statusBarHeight),
|
|
|
|
MyAppBar(
|
|
|
|
"订座详情",
|
|
|
|
showBack: true,
|
|
|
|
callback: (){
|
|
|
|
if(widget.fromNotify){
|
|
|
|
NavigatorUtil.goHomePage(context,initialIndex: 0);
|
|
|
|
}else{
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: DefaultTextStyle(
|
|
|
|
style: TextStyle(decoration: TextDecoration.none),
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
SizedBox(height: ScreenUtil.statusBarHeight),
|
|
|
|
MyAppBar(
|
|
|
|
"订座详情",
|
|
|
|
showBack: true,
|
|
|
|
callback: () {
|
|
|
|
if (widget.fromNotify) {
|
|
|
|
NavigatorUtil.goHomePage(context, initialIndex: 0);
|
|
|
|
} else {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: DefaultTextStyle(
|
|
|
|
style: TextStyle(decoration: TextDecoration.none),
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(43)),
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
RowMultiText("用餐时段", detailEntity.ddateMd),
|
|
|
|
Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Column(
|
|
|
|
children: <Widget>[
|
|
|
|
RowMultiText(
|
|
|
|
"用餐时间", detailEntity.ddateHm),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.type == "0"
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: RowMultiText(
|
|
|
|
"用餐人数", detailEntity.pnum),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Image.asset(
|
|
|
|
detailEntity.statuImgAssets,
|
|
|
|
width: ScreenUtil().setWidth(100),
|
|
|
|
height: ScreenUtil().setWidth(30),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.demands.length <= 0
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(43)),
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
RowMultiText("用餐时段", detailEntity.ddateMd),
|
|
|
|
Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Column(
|
|
|
|
children: <Widget>[
|
|
|
|
RowMultiText(
|
|
|
|
"用餐时间", detailEntity.ddateHm),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.type == "0"
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: RowMultiText(
|
|
|
|
"用餐人数", detailEntity.pnum),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Image.asset(
|
|
|
|
detailEntity.statuImgAssets,
|
|
|
|
width: ScreenUtil().setWidth(100),
|
|
|
|
height: ScreenUtil().setWidth(30),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.demands.length <= 0
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
RowMultiText(
|
|
|
|
"包间需求",
|
|
|
|
(detailEntity.demands.length
|
|
|
|
.toString() +
|
|
|
|
"个") ??
|
|
|
|
""),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
child: Offstage(
|
|
|
|
offstage: detailEntity
|
|
|
|
.demands.length >
|
|
|
|
0
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setHeight(210),
|
|
|
|
child: ListView.builder(
|
|
|
|
itemBuilder:
|
|
|
|
(BuildContext contxt,
|
|
|
|
int index) {
|
|
|
|
return NeedItem(
|
|
|
|
detailEntity
|
|
|
|
.demands[index]);
|
|
|
|
},
|
|
|
|
itemCount: detailEntity
|
|
|
|
.demands.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
scrollDirection:
|
|
|
|
Axis.horizontal,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
RowMultiText(
|
|
|
|
"包间需求",
|
|
|
|
(detailEntity.demands.length
|
|
|
|
.toString() +
|
|
|
|
"个") ??
|
|
|
|
""),
|
|
|
|
"预订桌位",
|
|
|
|
(detailEntity.tables.length.toString() +
|
|
|
|
"个")),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
child: Offstage(
|
|
|
|
offstage:
|
|
|
|
detailEntity.demands.length >
|
|
|
|
0
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
detailEntity.tables.length > 0
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setHeight(210),
|
|
|
|
height: ScreenUtil().setHeight(210),
|
|
|
|
child: ListView.builder(
|
|
|
|
itemBuilder:
|
|
|
|
(BuildContext contxt,
|
|
|
|
itemBuilder: (BuildContext contxt,
|
|
|
|
int index) {
|
|
|
|
return NeedItem(detailEntity
|
|
|
|
.demands[index]);
|
|
|
|
return TableItem(
|
|
|
|
detailEntity.tables[index]);
|
|
|
|
},
|
|
|
|
itemCount: detailEntity
|
|
|
|
.demands.length,
|
|
|
|
itemCount:
|
|
|
|
detailEntity.tables.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
scrollDirection:
|
|
|
|
Axis.horizontal,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
RowMultiText(
|
|
|
|
"预订桌位",
|
|
|
|
(detailEntity.tables.length.toString() +
|
|
|
|
"个")),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
child: Offstage(
|
|
|
|
offstage: detailEntity.tables.length > 0
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(210),
|
|
|
|
child: ListView.builder(
|
|
|
|
itemBuilder: (BuildContext contxt,
|
|
|
|
int index) {
|
|
|
|
return TableItem(
|
|
|
|
detailEntity.tables[index]);
|
|
|
|
},
|
|
|
|
itemCount:
|
|
|
|
detailEntity.tables.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
)),
|
|
|
|
RowMultiText("客户姓名", detailEntity.rnameStr),
|
|
|
|
RowMultiText(
|
|
|
|
"客户电话", detailEntity.phone ?? ""),
|
|
|
|
MyDivider(double.infinity,
|
|
|
|
ScreenUtil().setHeight(1)),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(80),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Positioned(
|
|
|
|
left: 0,
|
|
|
|
child: Text(
|
|
|
|
"客户经理",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_828282,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
right: 0,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
List<String> list = [];
|
|
|
|
for (Manager manager
|
|
|
|
in managers) {
|
|
|
|
list.add(
|
|
|
|
manager.roleUserName);
|
|
|
|
}
|
|
|
|
DialogUtil
|
|
|
|
.showSelectCusmanDialog(
|
|
|
|
context, list, (value) {
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
cusmanText =
|
|
|
|
managers[value.first]
|
|
|
|
.userName;
|
|
|
|
});
|
|
|
|
_setCurrManager();
|
|
|
|
}
|
|
|
|
}).then((value) {});
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
cusmanText,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30),
|
|
|
|
decoration:
|
|
|
|
TextDecoration.underline,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
RowMultiText("客户姓名", detailEntity.rnameStr),
|
|
|
|
RowMultiText(
|
|
|
|
"客户电话", detailEntity.phone ?? ""),
|
|
|
|
MyDivider(double.infinity,
|
|
|
|
ScreenUtil().setHeight(1)),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(80),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Positioned(
|
|
|
|
left: 0,
|
|
|
|
child: Text(
|
|
|
|
"客户经理",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_828282,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30)),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.note_name == '',
|
|
|
|
child: RowMultiText(
|
|
|
|
"记录人", detailEntity.note_name ?? ""),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
right: 0,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
List<String> list = [];
|
|
|
|
for (Manager manager
|
|
|
|
in managers) {
|
|
|
|
list.add(manager.roleUserName);
|
|
|
|
}
|
|
|
|
DialogUtil.showSelectCusmanDialog(
|
|
|
|
context, list, (value) {
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
cusmanText =
|
|
|
|
managers[value.first]
|
|
|
|
.userName;
|
|
|
|
});
|
|
|
|
_setCurrManager();
|
|
|
|
}
|
|
|
|
}).then((value) {});
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
cusmanText,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30),
|
|
|
|
decoration:
|
|
|
|
TextDecoration.underline,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "4" &&
|
|
|
|
detailEntity.cancel != null)
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
MyDivider(double.infinity,
|
|
|
|
ScreenUtil().setHeight(2)),
|
|
|
|
RowMultiText("取消原因",
|
|
|
|
detailEntity.cancel?.desc ?? "",
|
|
|
|
textAlign: TextAlign.left),
|
|
|
|
RowMultiText(
|
|
|
|
"取消时间",
|
|
|
|
detailEntity.cancel?.cdateStr ??
|
|
|
|
""),
|
|
|
|
RowMultiText(
|
|
|
|
"操作人",
|
|
|
|
detailEntity.abolition == '2'
|
|
|
|
? '顾客在线取消'
|
|
|
|
: detailEntity
|
|
|
|
.cancel?.uname ??
|
|
|
|
""),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.note_name == '',
|
|
|
|
child: RowMultiText(
|
|
|
|
"记录人", detailEntity.note_name ?? ""),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "4" &&
|
|
|
|
detailEntity.cancel != null)
|
|
|
|
? false
|
|
|
|
: true,
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
MyDivider(double.infinity,
|
|
|
|
ScreenUtil().setHeight(2)),
|
|
|
|
RowMultiText("取消原因",
|
|
|
|
detailEntity.cancel?.desc ?? "",
|
|
|
|
textAlign: TextAlign.left),
|
|
|
|
RowMultiText(
|
|
|
|
"取消时间",
|
|
|
|
detailEntity.cancel?.cdateStr ??
|
|
|
|
""),
|
|
|
|
RowMultiText(
|
|
|
|
"操作人",
|
|
|
|
detailEntity.abolition == '2'
|
|
|
|
? '顾客在线取消'
|
|
|
|
: detailEntity.cancel?.uname ??
|
|
|
|
""),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "3" ||
|
|
|
|
detailEntity.status == "4" ||
|
|
|
|
detailEntity.status == "6")
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
border: Border(
|
|
|
|
top: BorderSide(
|
|
|
|
color: MyColours.color_dbe3e3,
|
|
|
|
width: ScreenUtil().setWidth(1)))),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setHeight(40)),
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setHeight(20)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "通知客户",
|
|
|
|
width: 669,
|
|
|
|
height: 80,
|
|
|
|
fontSize: 34,
|
|
|
|
onPress: () {
|
|
|
|
DialogUtil.showShareDialog(context)?.then((value) {
|
|
|
|
switch (value) {
|
|
|
|
case 1: //微信
|
|
|
|
NavigatorUtil.goInvicationPage(
|
|
|
|
context,
|
|
|
|
detailEntity.id,
|
|
|
|
detailEntity.tableinfoStr,
|
|
|
|
detailEntity.ddate,
|
|
|
|
detailEntity.ddateStr);
|
|
|
|
break;
|
|
|
|
case 2: //短信
|
|
|
|
NavigatorUtil.goSmsPage(
|
|
|
|
context, detailEntity.id);
|
|
|
|
break;
|
|
|
|
case 3: //电话
|
|
|
|
if (detailEntity.phone != null &&
|
|
|
|
detailEntity.phone.isNotEmpty) {
|
|
|
|
Utils.goPhone(detailEntity.phone);
|
|
|
|
} else {
|
|
|
|
Utils.showToast("没有客户电话!");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "3" ||
|
|
|
|
detailEntity.status == "4" ||
|
|
|
|
detailEntity.status == "6")
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
border: Border(
|
|
|
|
top: BorderSide(
|
|
|
|
color: MyColours.color_dbe3e3,
|
|
|
|
width: ScreenUtil().setWidth(1)))),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setHeight(40)),
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setHeight(20)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "通知客户",
|
|
|
|
width: 669,
|
|
|
|
height: 80,
|
|
|
|
fontSize: 34,
|
|
|
|
onPress: () {
|
|
|
|
DialogUtil.showShareDialog(context)?.then((value) {
|
|
|
|
switch (value) {
|
|
|
|
case 1: //微信
|
|
|
|
NavigatorUtil.goInvicationPage(
|
|
|
|
context,
|
|
|
|
detailEntity.id,
|
|
|
|
detailEntity.tableinfoStr,
|
|
|
|
detailEntity.ddate,
|
|
|
|
detailEntity.ddateStr);
|
|
|
|
break;
|
|
|
|
case 2: //短信
|
|
|
|
NavigatorUtil.goSmsPage(context, detailEntity.id);
|
|
|
|
break;
|
|
|
|
case 3: //电话
|
|
|
|
if (detailEntity.phone != null &&
|
|
|
|
detailEntity.phone.isNotEmpty) {
|
|
|
|
Utils.goPhone(detailEntity.phone);
|
|
|
|
} else {
|
|
|
|
Utils.showToast("没有客户电话!");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "3" ||
|
|
|
|
detailEntity.status == "4" ||
|
|
|
|
detailEntity.status == "6")
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setHeight(40)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(5)),
|
|
|
|
),
|
|
|
|
// child: Text('fff'),
|
|
|
|
child: Material(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: _cancelAndChangeBtn(() {
|
|
|
|
print('点击变更预订');
|
|
|
|
NavigatorUtil.goNoteBookChangePage(
|
|
|
|
context, detailEntity, widget.rid);
|
|
|
|
}, '变更预订')),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(50),
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: _cancelAndChangeBtn(() {
|
|
|
|
_showCancelWidget(context);
|
|
|
|
}, '取消预订')),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "3" ||
|
|
|
|
detailEntity.status == "4" ||
|
|
|
|
detailEntity.status == "6")
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setHeight(40)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(5)),
|
|
|
|
),
|
|
|
|
// child: Text('fff'),
|
|
|
|
child: Material(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: _cancelAndChangeBtn(() {
|
|
|
|
print('点击变更预订');
|
|
|
|
NavigatorUtil.goNoteBookChangePage(
|
|
|
|
context, detailEntity, widget.rid);
|
|
|
|
}, '变更预订')),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(50),
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: _cancelAndChangeBtn(() {
|
|
|
|
_showCancelWidget(context);
|
|
|
|
}, '取消预订')),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(ScreenUtil().setWidth(60))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(ScreenUtil().setWidth(60))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onWillPop: ()async{
|
|
|
|
if(widget.fromNotify){
|
|
|
|
NavigatorUtil.goHomePage(context,initialIndex: 0);
|
|
|
|
onWillPop: () async {
|
|
|
|
if (widget.fromNotify) {
|
|
|
|
NavigatorUtil.goHomePage(context, initialIndex: 0);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
Navigator.of(context).pop();
|
...
|
...
|
|