|
@@ -70,8 +70,14 @@ class _RoomTypeCreatePageState extends State<RoomTypeCreatePage> { |
|
@@ -70,8 +70,14 @@ class _RoomTypeCreatePageState extends State<RoomTypeCreatePage> { |
|
70
|
_minMoneyController.text = sunModel.low;
|
70
|
_minMoneyController.text = sunModel.low;
|
|
71
|
|
71
|
|
|
72
|
sunModel.status == '1' ? swichState = true : swichState = false;
|
72
|
sunModel.status == '1' ? swichState = true : swichState = false;
|
|
|
|
73
|
+
|
|
73
|
tableListSel = sunModel.tableid != null ? sunModel.tableid : '';
|
74
|
tableListSel = sunModel.tableid != null ? sunModel.tableid : '';
|
|
74
|
- selectNum = sunModel.surplus == null || sunModel.surplus == ''||sunModel.surplus == 'null'
|
75
|
+ if (tableListSel.endsWith(',')) {
|
|
|
|
76
|
+ tableListSel = tableListSel.substring(0, tableListSel.length - 1);
|
|
|
|
77
|
+ }
|
|
|
|
78
|
+ selectNum = sunModel.surplus == null ||
|
|
|
|
79
|
+ sunModel.surplus == '' ||
|
|
|
|
80
|
+ sunModel.surplus == 'null'
|
|
75
|
? '不通知'
|
81
|
? '不通知'
|
|
76
|
: sunModel.surplus;
|
82
|
: sunModel.surplus;
|
|
77
|
List<String> numList = ['不通知'];
|
83
|
List<String> numList = ['不通知'];
|
|
@@ -94,6 +100,9 @@ class _RoomTypeCreatePageState extends State<RoomTypeCreatePage> { |
|
@@ -94,6 +100,9 @@ class _RoomTypeCreatePageState extends State<RoomTypeCreatePage> { |
|
94
|
Utils.showToast('请填写标准可坐人数');
|
100
|
Utils.showToast('请填写标准可坐人数');
|
|
95
|
return;
|
101
|
return;
|
|
96
|
}
|
102
|
}
|
|
|
|
103
|
+ if (tableListSel.endsWith(',')) {
|
|
|
|
104
|
+ tableListSel = tableListSel.substring(0, tableListSel.length - 1);
|
|
|
|
105
|
+ }
|
|
97
|
Map<String, String> params = {
|
106
|
Map<String, String> params = {
|
|
98
|
'sellerid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
107
|
'sellerid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
99
|
'name': _nameController.text,
|
108
|
'name': _nameController.text,
|