|
@@ -14,6 +14,7 @@ import 'package:one_key/utils/utils.dart'; |
|
@@ -14,6 +14,7 @@ import 'package:one_key/utils/utils.dart'; |
|
14
|
import 'package:one_key/widgets/MyDivider.dart';
|
14
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
15
|
import 'package:one_key/widgets/app_bar.dart';
|
15
|
import 'package:one_key/widgets/app_bar.dart';
|
|
16
|
import 'package:one_key/widgets/common_button.dart';
|
16
|
import 'package:one_key/widgets/common_button.dart';
|
|
|
|
17
|
+import 'package:one_key/widgets/h_empty_view.dart';
|
|
17
|
import 'package:one_key/widgets/need_item.dart';
|
18
|
import 'package:one_key/widgets/need_item.dart';
|
|
18
|
import 'package:one_key/widgets/page_exception.dart';
|
19
|
import 'package:one_key/widgets/page_exception.dart';
|
|
19
|
import 'package:one_key/widgets/row_multi_text.dart';
|
20
|
import 'package:one_key/widgets/row_multi_text.dart';
|
|
@@ -54,6 +55,10 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
@@ -54,6 +55,10 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
54
|
|
55
|
|
|
55
|
String formatPhone = ""; //格式客户号码
|
56
|
String formatPhone = ""; //格式客户号码
|
|
56
|
|
57
|
|
|
|
|
58
|
+ bool isRefused=false;//是否已拒绝
|
|
|
|
59
|
+ bool isPause=false;//是否暂停预订
|
|
|
|
60
|
+ StateSetter refuseDialogState;//决绝弹框setState
|
|
|
|
61
|
+
|
|
57
|
@override
|
62
|
@override
|
|
58
|
void initState() {
|
63
|
void initState() {
|
|
59
|
// TODO: implement initState
|
64
|
// TODO: implement initState
|
|
@@ -86,7 +91,7 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
@@ -86,7 +91,7 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
86
|
}
|
91
|
}
|
|
87
|
}
|
92
|
}
|
|
88
|
});
|
93
|
});
|
|
89
|
- if (detailEntity.status != "0") {
|
94
|
+ if (detailEntity.status != "0"&&!isPause) {
|
|
90
|
//已处理
|
95
|
//已处理
|
|
91
|
Future.delayed(Duration(milliseconds: 200), () {
|
96
|
Future.delayed(Duration(milliseconds: 200), () {
|
|
92
|
NavigatorUtil.goNotebookDetailPage(context, detailEntity.id,
|
97
|
NavigatorUtil.goNotebookDetailPage(context, detailEntity.id,
|
|
@@ -112,54 +117,162 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
@@ -112,54 +117,162 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
112
|
}
|
117
|
}
|
|
113
|
|
118
|
|
|
114
|
//拒绝订单弹框
|
119
|
//拒绝订单弹框
|
|
115
|
- _showRefuseDialog() {
|
|
|
|
116
|
- showDialog(
|
120
|
+ _showRefuseDialog2() {
|
|
|
|
121
|
+ Widget dialogContent=StatefulBuilder(
|
|
|
|
122
|
+ builder: (context,setState){
|
|
|
|
123
|
+ refuseDialogState=setState;
|
|
|
|
124
|
+ Container container=Container(
|
|
|
|
125
|
+ child: Stack(
|
|
|
|
126
|
+ alignment: AlignmentDirectional.topCenter,
|
|
|
|
127
|
+ children: [
|
|
|
|
128
|
+ Positioned(
|
|
|
|
129
|
+ right: 0,
|
|
|
|
130
|
+ top: ScreenUtil().setWidth(6),
|
|
|
|
131
|
+ child: GestureDetector(
|
|
|
|
132
|
+ child: Container(
|
|
|
|
133
|
+ padding: EdgeInsets.all(ScreenUtil().setWidth(21)),
|
|
|
|
134
|
+ child: Image.asset("assets/close.png",width: ScreenUtil().setWidth(28),height: ScreenUtil().setWidth(28),),
|
|
|
|
135
|
+ ),
|
|
|
|
136
|
+ onTap: (){
|
|
|
|
137
|
+ Navigator.of(context).pop();
|
|
|
|
138
|
+ },
|
|
|
|
139
|
+ ),
|
|
|
|
140
|
+ ),
|
|
|
|
141
|
+ Offstage(
|
|
|
|
142
|
+ offstage: isRefused,
|
|
|
|
143
|
+ child: Column(
|
|
|
|
144
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
|
145
|
+ children: [
|
|
|
|
146
|
+ VEmptyView(40),
|
|
|
|
147
|
+ Text("拒绝订单",style: TextStyle(fontSize: ScreenUtil().setSp(32),color: MyColours.color_353535,fontWeight: FontWeight.bold),),
|
|
|
|
148
|
+ VEmptyView(60),
|
|
|
|
149
|
+ Text("确定要拒绝订单吗?一旦拒绝无法恢复。",style: TextStyle(fontSize: ScreenUtil().setSp(32),color: MyColours.color_353535),),
|
|
|
|
150
|
+ VEmptyView(80),
|
|
|
|
151
|
+ GestureDetector(
|
|
|
|
152
|
+ onTap: (){
|
|
|
|
153
|
+ setReserveStatus("6",ac: "1");
|
|
|
|
154
|
+ },
|
|
|
|
155
|
+ child: Container(
|
|
|
|
156
|
+ width: ScreenUtil().setWidth(336),
|
|
|
|
157
|
+ height: ScreenUtil().setWidth(80),
|
|
|
|
158
|
+ alignment: Alignment.center,
|
|
|
|
159
|
+ color: MyColours.color_199095,
|
|
|
|
160
|
+ child: Text("拒绝并暂停预订",style: TextStyle(fontSize: ScreenUtil().setSp(34),color: MyColours.color_ffffff),),
|
|
|
|
161
|
+ ),
|
|
|
|
162
|
+ ),
|
|
|
|
163
|
+ VEmptyView(20),
|
|
|
|
164
|
+ GestureDetector(
|
|
|
|
165
|
+ onTap: (){
|
|
|
|
166
|
+ Navigator.of(context).pop();
|
|
|
|
167
|
+ setReserveStatus("6");
|
|
|
|
168
|
+ },
|
|
|
|
169
|
+ child: Container(
|
|
|
|
170
|
+ width: ScreenUtil().setWidth(336),
|
|
|
|
171
|
+ height: ScreenUtil().setWidth(80),
|
|
|
|
172
|
+ alignment: Alignment.center,
|
|
|
|
173
|
+ decoration: BoxDecoration(
|
|
|
|
174
|
+ color: MyColours.color_ffffff,
|
|
|
|
175
|
+ border: Border.all(color: MyColours.color_199095,width: ScreenUtil().setWidth(2))
|
|
|
|
176
|
+ ),
|
|
|
|
177
|
+ child: Text("直接拒绝",style: TextStyle(fontSize: ScreenUtil().setSp(34),color: MyColours.color_199095),),
|
|
|
|
178
|
+ ),
|
|
|
|
179
|
+ ),
|
|
|
|
180
|
+ VEmptyView(20),
|
|
|
|
181
|
+ GestureDetector(
|
|
|
|
182
|
+ onTap: () async {
|
|
|
|
183
|
+ Navigator.of(context).pop();
|
|
|
|
184
|
+ Map temp = await NavigatorUtil.goSelectTablePage(
|
|
|
|
185
|
+ context,
|
|
|
|
186
|
+ widget.rid,
|
|
|
|
187
|
+ int.parse(detailEntity.ddate) * 1000,
|
|
|
|
188
|
+ detailEntity.ddate_solt);
|
|
|
|
189
|
+ if (temp != null && temp['tid'] != null) {
|
|
|
|
190
|
+ setReserveStatus("5", tid: temp['tid']);
|
|
|
|
191
|
+ }
|
|
|
|
192
|
+ },
|
|
|
|
193
|
+ child: Container(
|
|
|
|
194
|
+ width: ScreenUtil().setWidth(336),
|
|
|
|
195
|
+ height: ScreenUtil().setWidth(80),
|
|
|
|
196
|
+ alignment: Alignment.center,
|
|
|
|
197
|
+ color: MyColours.color_ffffff,
|
|
|
|
198
|
+ child: Text("去安排包间",style: TextStyle(fontSize: ScreenUtil().setSp(34),color: MyColours.color_199095),),
|
|
|
|
199
|
+ ),
|
|
|
|
200
|
+ ),
|
|
|
|
201
|
+ VEmptyView(44),
|
|
|
|
202
|
+ ],
|
|
|
|
203
|
+ ),
|
|
|
|
204
|
+ ),
|
|
|
|
205
|
+ Offstage(
|
|
|
|
206
|
+ offstage: !isRefused,
|
|
|
|
207
|
+ child: Column(
|
|
|
|
208
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
|
209
|
+ children: [
|
|
|
|
210
|
+ VEmptyView(98),
|
|
|
|
211
|
+ Row(
|
|
|
|
212
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
|
213
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
214
|
+ children: [
|
|
|
|
215
|
+ Image.asset("assets/icon_refuse_book.png",width: ScreenUtil().setWidth(56),height: ScreenUtil().setWidth(56),),
|
|
|
|
216
|
+ HEmptyView(10),
|
|
|
|
217
|
+ Text("订单已拒绝",style: TextStyle(fontSize: ScreenUtil().setSp(34),color: MyColours.color_353535),)
|
|
|
|
218
|
+ ],
|
|
|
|
219
|
+ ),
|
|
|
|
220
|
+ Offstage(
|
|
|
|
221
|
+ offstage: !isPause,
|
|
|
|
222
|
+ child: Column(
|
|
|
|
223
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
|
224
|
+ children: [
|
|
|
|
225
|
+ VEmptyView(20),
|
|
|
|
226
|
+ Text("并已将${detailEntity.ddateMd}的${detailEntity.demandStr}置满",style: TextStyle(fontSize: ScreenUtil().setSp(34),color: MyColours.color_353535),),
|
|
|
|
227
|
+ ],
|
|
|
|
228
|
+ ),
|
|
|
|
229
|
+ ),
|
|
|
|
230
|
+ VEmptyView(120),
|
|
|
|
231
|
+ Text("如果有包间空出来或其他包间也满了,你可以:",style: TextStyle(fontSize: ScreenUtil().setSp(26),color: MyColours.color_353535),),
|
|
|
|
232
|
+ VEmptyView(20),
|
|
|
|
233
|
+ GestureDetector(
|
|
|
|
234
|
+ onTap: (){
|
|
|
|
235
|
+ Utils.goMiniProgramZm(context);
|
|
|
|
236
|
+ },
|
|
|
|
237
|
+ child: Container(
|
|
|
|
238
|
+ width: ScreenUtil().setWidth(336),
|
|
|
|
239
|
+ height: ScreenUtil().setWidth(80),
|
|
|
|
240
|
+ alignment: Alignment.center,
|
|
|
|
241
|
+ color: MyColours.color_199095,
|
|
|
|
242
|
+ child: Text("去管理包间",style: TextStyle(fontSize: ScreenUtil().setSp(34),color: MyColours.color_ffffff),),
|
|
|
|
243
|
+ ),
|
|
|
|
244
|
+ ),
|
|
|
|
245
|
+ VEmptyView(60)
|
|
|
|
246
|
+ ],
|
|
|
|
247
|
+ ),
|
|
|
|
248
|
+ )
|
|
|
|
249
|
+ ],
|
|
|
|
250
|
+ ),
|
|
|
|
251
|
+ );
|
|
|
|
252
|
+ return container;
|
|
|
|
253
|
+ },
|
|
|
|
254
|
+ );
|
|
|
|
255
|
+ Widget dialog = Container(
|
|
|
|
256
|
+ width: double.infinity,
|
|
|
|
257
|
+ decoration: BoxDecoration(
|
|
|
|
258
|
+ color: MyColours.color_ffffff,
|
|
|
|
259
|
+ borderRadius: BorderRadius.only(
|
|
|
|
260
|
+ topLeft: Radius.circular(ScreenUtil().setWidth(40)),
|
|
|
|
261
|
+ topRight: Radius.circular(ScreenUtil().setWidth(40)))),
|
|
|
|
262
|
+ child:dialogContent
|
|
|
|
263
|
+ );
|
|
|
|
264
|
+ showModalBottomSheet(
|
|
117
|
context: context,
|
265
|
context: context,
|
|
|
|
266
|
+ backgroundColor: Colors.transparent,
|
|
118
|
builder: (context) {
|
267
|
builder: (context) {
|
|
119
|
- return AlertDialog(
|
|
|
|
120
|
- title: Text("确定拒绝订单吗?\n拒绝后无法联系客户"),
|
|
|
|
121
|
- titleTextStyle: TextStyle(
|
|
|
|
122
|
- color: MyColours.color_353535,
|
|
|
|
123
|
- fontSize: ScreenUtil().setSp(32)),
|
|
|
|
124
|
- content: Text("如果包间类型订满,请及时停用"),
|
|
|
|
125
|
- contentTextStyle: TextStyle(
|
|
|
|
126
|
- color: MyColours.color_828282,
|
|
|
|
127
|
- fontSize: ScreenUtil().setSp(28)),
|
|
|
|
128
|
- actions: <Widget>[
|
|
|
|
129
|
- FlatButton(
|
|
|
|
130
|
- child: Text(
|
|
|
|
131
|
- "拒绝订单",
|
|
|
|
132
|
- style: TextStyle(fontSize: ScreenUtil().setSp(32)),
|
|
|
|
133
|
- ),
|
|
|
|
134
|
- onPressed: () {
|
|
|
|
135
|
- Navigator.of(context).pop();
|
|
|
|
136
|
- setReserveStatus("6");
|
|
|
|
137
|
- },
|
|
|
|
138
|
- ),
|
|
|
|
139
|
- FlatButton(
|
|
|
|
140
|
- child: Text(
|
|
|
|
141
|
- "去安排",
|
|
|
|
142
|
- style: TextStyle(fontSize: ScreenUtil().setSp(32)),
|
|
|
|
143
|
- ),
|
|
|
|
144
|
- onPressed: () async {
|
|
|
|
145
|
- Navigator.of(context).pop();
|
|
|
|
146
|
- Map temp = await NavigatorUtil.goSelectTablePage(
|
|
|
|
147
|
- context,
|
|
|
|
148
|
- widget.rid,
|
|
|
|
149
|
- int.parse(detailEntity.ddate) * 1000,
|
|
|
|
150
|
- detailEntity.ddate_solt);
|
|
|
|
151
|
- if (temp != null && temp['tid'] != null) {
|
|
|
|
152
|
- setReserveStatus("5", tid: temp['tid']);
|
|
|
|
153
|
- }
|
|
|
|
154
|
- },
|
|
|
|
155
|
- )
|
|
|
|
156
|
- ],
|
|
|
|
157
|
- );
|
|
|
|
158
|
- });
|
268
|
+ return Stack(
|
|
|
|
269
|
+ children: <Widget>[dialog],
|
|
|
|
270
|
+ );
|
|
|
|
271
|
+ });
|
|
159
|
}
|
272
|
}
|
|
160
|
|
273
|
|
|
161
|
//处理在线预订
|
274
|
//处理在线预订
|
|
162
|
- setReserveStatus(String status, {String tid = ""}) async {
|
275
|
+ setReserveStatus(String status, {String tid = "",String ac=""}) async {
|
|
163
|
bus.emit("remove_untreated_message", widget.mid);
|
276
|
bus.emit("remove_untreated_message", widget.mid);
|
|
164
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
277
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
|
165
|
Map<String, String> causeMap = {
|
278
|
Map<String, String> causeMap = {
|
|
@@ -174,10 +287,21 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
@@ -174,10 +287,21 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
174
|
"mid": widget.mid,
|
287
|
"mid": widget.mid,
|
|
175
|
"cause": json.encode(causeMap)
|
288
|
"cause": json.encode(causeMap)
|
|
176
|
};
|
289
|
};
|
|
|
|
290
|
+ if(status=="6"){
|
|
|
|
291
|
+ isPause=true;
|
|
|
|
292
|
+ params['ac']=ac;//0=直接拒绝 1=拒绝并暂停预订
|
|
|
|
293
|
+ }
|
|
177
|
bool success =
|
294
|
bool success =
|
|
178
|
- await detailModel.setReserveStatus(context, params, showLoading: true);
|
295
|
+ await detailModel.setReserveStatus(context, params, ifPush:(isPause?false:true),showLoading: true);
|
|
179
|
if (success != null && success) {
|
296
|
if (success != null && success) {
|
|
180
|
bus.emit("refresh_book_list");
|
297
|
bus.emit("refresh_book_list");
|
|
|
|
298
|
+ if(status=="6"){
|
|
|
|
299
|
+ isRefused=true;
|
|
|
|
300
|
+ }
|
|
|
|
301
|
+ if(isPause){
|
|
|
|
302
|
+ _getOrderListData();
|
|
|
|
303
|
+ refuseDialogState((){});
|
|
|
|
304
|
+ }
|
|
181
|
}
|
305
|
}
|
|
182
|
}
|
306
|
}
|
|
183
|
|
307
|
|
|
@@ -373,108 +497,111 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
@@ -373,108 +497,111 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { |
|
373
|
)),
|
497
|
)),
|
|
374
|
),
|
498
|
),
|
|
375
|
),
|
499
|
),
|
|
376
|
- Container(
|
|
|
|
377
|
- margin: EdgeInsets.only(
|
|
|
|
378
|
- top: ScreenUtil().setHeight(30),
|
|
|
|
379
|
- bottom: ScreenUtil().setHeight(30)),
|
|
|
|
380
|
- child: Column(
|
|
|
|
381
|
- children: <Widget>[
|
|
|
|
382
|
- CommonButton(
|
|
|
|
383
|
- content: "安排包间",
|
|
|
|
384
|
- width: 669,
|
|
|
|
385
|
- height: 84,
|
|
|
|
386
|
- fontSize: 34,
|
|
|
|
387
|
- onPress: () async {
|
|
|
|
388
|
- Map map = await NavigatorUtil
|
|
|
|
389
|
- .goSelectTablePage(
|
|
|
|
390
|
- context,
|
|
|
|
391
|
- widget.rid,
|
|
|
|
392
|
- int.parse(detailEntity.ddate) *
|
|
|
|
393
|
- 1000,
|
|
|
|
394
|
- detailEntity.ddate_solt);
|
|
|
|
395
|
- if (map != null && map['tid'] != null) {
|
|
|
|
396
|
- setReserveStatus("5",
|
|
|
|
397
|
- tid: map['tid']);
|
|
|
|
398
|
- }
|
|
|
|
399
|
- },
|
|
|
|
400
|
- ),
|
|
|
|
401
|
- VEmptyView(20),
|
|
|
|
402
|
- Container(
|
|
|
|
403
|
- width: ScreenUtil().setWidth(669),
|
|
|
|
404
|
- height: ScreenUtil().setWidth(84),
|
|
|
|
405
|
- decoration: BoxDecoration(
|
|
|
|
406
|
- border: Border.all(
|
|
|
|
407
|
- color: MyColours.color_199095),
|
|
|
|
408
|
- borderRadius: BorderRadius.circular(
|
|
|
|
409
|
- ScreenUtil().setWidth(10)),
|
500
|
+ Offstage(
|
|
|
|
501
|
+ offstage: detailEntity.status!="0",
|
|
|
|
502
|
+ child: Container(
|
|
|
|
503
|
+ margin: EdgeInsets.only(
|
|
|
|
504
|
+ top: ScreenUtil().setHeight(30),
|
|
|
|
505
|
+ bottom: ScreenUtil().setHeight(30)),
|
|
|
|
506
|
+ child: Column(
|
|
|
|
507
|
+ children: <Widget>[
|
|
|
|
508
|
+ CommonButton(
|
|
|
|
509
|
+ content: "安排包间",
|
|
|
|
510
|
+ width: 669,
|
|
|
|
511
|
+ height: 84,
|
|
|
|
512
|
+ fontSize: 34,
|
|
|
|
513
|
+ onPress: () async {
|
|
|
|
514
|
+ Map map = await NavigatorUtil
|
|
|
|
515
|
+ .goSelectTablePage(
|
|
|
|
516
|
+ context,
|
|
|
|
517
|
+ widget.rid,
|
|
|
|
518
|
+ int.parse(detailEntity.ddate) *
|
|
|
|
519
|
+ 1000,
|
|
|
|
520
|
+ detailEntity.ddate_solt);
|
|
|
|
521
|
+ if (map != null && map['tid'] != null) {
|
|
|
|
522
|
+ setReserveStatus("5",
|
|
|
|
523
|
+ tid: map['tid']);
|
|
|
|
524
|
+ }
|
|
|
|
525
|
+ },
|
|
410
|
),
|
526
|
),
|
|
411
|
- child: Row(
|
|
|
|
412
|
- crossAxisAlignment:
|
|
|
|
413
|
- CrossAxisAlignment.center,
|
|
|
|
414
|
- children: <Widget>[
|
|
|
|
415
|
- Expanded(
|
|
|
|
416
|
- child: GestureDetector(
|
|
|
|
417
|
- child: Center(
|
|
|
|
418
|
- child: Text(
|
|
|
|
419
|
- "拒绝订单",
|
|
|
|
420
|
- style: TextStyle(
|
|
|
|
421
|
- color:
|
|
|
|
422
|
- MyColours.color_199095,
|
|
|
|
423
|
- fontSize:
|
|
|
|
424
|
- ScreenUtil().setSp(34)),
|
|
|
|
425
|
- ),
|
|
|
|
426
|
- ),
|
|
|
|
427
|
- onTap: () {
|
|
|
|
428
|
- _showRefuseDialog();
|
|
|
|
429
|
- },
|
|
|
|
430
|
- )),
|
|
|
|
431
|
- Offstage(
|
|
|
|
432
|
- offstage: !isCallTel,
|
|
|
|
433
|
- child: SizedBox(
|
|
|
|
434
|
- width: ScreenUtil().setWidth(335),
|
|
|
|
435
|
- height: ScreenUtil().setWidth(84),
|
|
|
|
436
|
- child: Row(
|
|
|
|
437
|
- children: [
|
|
|
|
438
|
- MyDivider(
|
|
|
|
439
|
- ScreenUtil().setWidth(2),
|
|
|
|
440
|
- ScreenUtil().setHeight(52),
|
|
|
|
441
|
- color:
|
|
|
|
442
|
- MyColours.color_199095,
|
527
|
+ VEmptyView(20),
|
|
|
|
528
|
+ Container(
|
|
|
|
529
|
+ width: ScreenUtil().setWidth(669),
|
|
|
|
530
|
+ height: ScreenUtil().setWidth(84),
|
|
|
|
531
|
+ decoration: BoxDecoration(
|
|
|
|
532
|
+ border: Border.all(
|
|
|
|
533
|
+ color: MyColours.color_199095),
|
|
|
|
534
|
+ borderRadius: BorderRadius.circular(
|
|
|
|
535
|
+ ScreenUtil().setWidth(10)),
|
|
|
|
536
|
+ ),
|
|
|
|
537
|
+ child: Row(
|
|
|
|
538
|
+ crossAxisAlignment:
|
|
|
|
539
|
+ CrossAxisAlignment.center,
|
|
|
|
540
|
+ children: <Widget>[
|
|
|
|
541
|
+ Expanded(
|
|
|
|
542
|
+ child: GestureDetector(
|
|
|
|
543
|
+ child: Center(
|
|
|
|
544
|
+ child: Text(
|
|
|
|
545
|
+ "拒绝订单",
|
|
|
|
546
|
+ style: TextStyle(
|
|
|
|
547
|
+ color:
|
|
|
|
548
|
+ MyColours.color_199095,
|
|
|
|
549
|
+ fontSize:
|
|
|
|
550
|
+ ScreenUtil().setSp(34)),
|
|
|
|
551
|
+ ),
|
|
443
|
),
|
552
|
),
|
|
444
|
- Expanded(
|
|
|
|
445
|
- child: GestureDetector(
|
|
|
|
446
|
- child: Center(
|
|
|
|
447
|
- child: Text(
|
|
|
|
448
|
- "联系顾客",
|
|
|
|
449
|
- style: TextStyle(
|
|
|
|
450
|
- color: MyColours
|
|
|
|
451
|
- .color_199095,
|
|
|
|
452
|
- fontSize:
|
|
|
|
453
|
- ScreenUtil()
|
|
|
|
454
|
- .setSp(34)),
|
|
|
|
455
|
- ),
|
553
|
+ onTap: () {
|
|
|
|
554
|
+ _showRefuseDialog2();
|
|
|
|
555
|
+ },
|
|
|
|
556
|
+ )),
|
|
|
|
557
|
+ Offstage(
|
|
|
|
558
|
+ offstage: !isCallTel,
|
|
|
|
559
|
+ child: SizedBox(
|
|
|
|
560
|
+ width: ScreenUtil().setWidth(335),
|
|
|
|
561
|
+ height: ScreenUtil().setWidth(84),
|
|
|
|
562
|
+ child: Row(
|
|
|
|
563
|
+ children: [
|
|
|
|
564
|
+ MyDivider(
|
|
|
|
565
|
+ ScreenUtil().setWidth(2),
|
|
|
|
566
|
+ ScreenUtil().setHeight(52),
|
|
|
|
567
|
+ color:
|
|
|
|
568
|
+ MyColours.color_199095,
|
|
456
|
),
|
569
|
),
|
|
457
|
- onTap: () {
|
|
|
|
458
|
- if (detailEntity.phone !=
|
|
|
|
459
|
- null &&
|
|
|
|
460
|
- detailEntity.phone
|
|
|
|
461
|
- .isNotEmpty) {
|
|
|
|
462
|
- Utils.goPhone(
|
|
|
|
463
|
- detailEntity.phone);
|
|
|
|
464
|
- } else {
|
|
|
|
465
|
- Utils.showToast(
|
|
|
|
466
|
- "没有客户电话!");
|
|
|
|
467
|
- }
|
|
|
|
468
|
- },
|
|
|
|
469
|
- )),
|
|
|
|
470
|
- ],
|
570
|
+ Expanded(
|
|
|
|
571
|
+ child: GestureDetector(
|
|
|
|
572
|
+ child: Center(
|
|
|
|
573
|
+ child: Text(
|
|
|
|
574
|
+ "联系顾客",
|
|
|
|
575
|
+ style: TextStyle(
|
|
|
|
576
|
+ color: MyColours
|
|
|
|
577
|
+ .color_199095,
|
|
|
|
578
|
+ fontSize:
|
|
|
|
579
|
+ ScreenUtil()
|
|
|
|
580
|
+ .setSp(34)),
|
|
|
|
581
|
+ ),
|
|
|
|
582
|
+ ),
|
|
|
|
583
|
+ onTap: () {
|
|
|
|
584
|
+ if (detailEntity.phone !=
|
|
|
|
585
|
+ null &&
|
|
|
|
586
|
+ detailEntity.phone
|
|
|
|
587
|
+ .isNotEmpty) {
|
|
|
|
588
|
+ Utils.goPhone(
|
|
|
|
589
|
+ detailEntity.phone);
|
|
|
|
590
|
+ } else {
|
|
|
|
591
|
+ Utils.showToast(
|
|
|
|
592
|
+ "没有客户电话!");
|
|
|
|
593
|
+ }
|
|
|
|
594
|
+ },
|
|
|
|
595
|
+ )),
|
|
|
|
596
|
+ ],
|
|
|
|
597
|
+ ),
|
|
471
|
),
|
598
|
),
|
|
472
|
- ),
|
|
|
|
473
|
- )
|
|
|
|
474
|
- ],
|
|
|
|
475
|
- ),
|
|
|
|
476
|
- )
|
|
|
|
477
|
- ],
|
599
|
+ )
|
|
|
|
600
|
+ ],
|
|
|
|
601
|
+ ),
|
|
|
|
602
|
+ )
|
|
|
|
603
|
+ ],
|
|
|
|
604
|
+ ),
|
|
478
|
),
|
605
|
),
|
|
479
|
)
|
606
|
)
|
|
480
|
],
|
607
|
],
|