Commit 1a27bb74b4aa4e812081a52669fc5553a0e7bde0

Authored by wdn127929
1 parent 6a5f8142

客情相关UIOK

@@ -142,6 +142,14 @@ class InvicationPageState extends State<InvicationPage> @@ -142,6 +142,14 @@ class InvicationPageState extends State<InvicationPage>
142 String erroInfo = ''; 142 String erroInfo = '';
143 bool _showOverlay = false; 143 bool _showOverlay = false;
144 144
  145 + List<String> memberList = [];
  146 + String memberShow = '会员状态未知';
  147 + int memberIndex;
  148 +
  149 + List<String> styleList = []; //餐单类型
  150 + String styleShow = '';
  151 + int styleIndex;
  152 +
145 MyTextSelectionControls _myExtendedMaterialTextSelectionControls = 153 MyTextSelectionControls _myExtendedMaterialTextSelectionControls =
146 MyTextSelectionControls(); 154 MyTextSelectionControls();
147 155
@@ -157,6 +165,8 @@ class InvicationPageState extends State<InvicationPage> @@ -157,6 +165,8 @@ class InvicationPageState extends State<InvicationPage>
157 165
158 personNumList = Utils.getPersonNumList(); 166 personNumList = Utils.getPersonNumList();
159 sexList = ['先生', '女士', '公司']; 167 sexList = ['先生', '女士', '公司'];
  168 + memberList = ['会员', '非会员'];
  169 + styleList = ['生日宴', '普通聚餐'];
160 _nameNode.addListener(() { 170 _nameNode.addListener(() {
161 if (_nameNode.hasFocus) { 171 if (_nameNode.hasFocus) {
162 showOverlay(context); 172 showOverlay(context);
@@ -1860,7 +1870,7 @@ class InvicationPageState extends State<InvicationPage> @@ -1860,7 +1870,7 @@ class InvicationPageState extends State<InvicationPage>
1860 1870
1861 //输入文本的样式 1871 //输入文本的样式
1862 style: TextStyle( 1872 style: TextStyle(
1863 - fontSize: ScreenUtil().setSp(30), 1873 + fontSize: ScreenUtil().setSp(28),
1864 color: MyColours.color_353535), 1874 color: MyColours.color_353535),
1865 controller: _baseIndoProvider.nameController, 1875 controller: _baseIndoProvider.nameController,
1866 focusNode: _nameNode, 1876 focusNode: _nameNode,
@@ -1925,30 +1935,98 @@ class InvicationPageState extends State<InvicationPage> @@ -1925,30 +1935,98 @@ class InvicationPageState extends State<InvicationPage>
1925 width: ScreenUtil().setWidth(28), 1935 width: ScreenUtil().setWidth(28),
1926 height: ScreenUtil().setWidth(28)), 1936 height: ScreenUtil().setWidth(28)),
1927 ]), 1937 ]),
1928 - // Row(  
1929 - // children: _baseIndoProvider.sexList.map((value) {  
1930 - // return _callButton(  
1931 - // onPress: () {  
1932 - // for (var item in _baseIndoProvider.sexList) {  
1933 - // item['select'] = false;  
1934 - // if (item['title'] == value['title']) {  
1935 - // item['select'] = true;  
1936 - // if (oldSex != item['code']) {  
1937 - // if (nameStr != null && nameStr != '') {  
1938 - // _addNameSuffix(nameStr, item['title']);  
1939 - // }  
1940 - // if (nameStr != null && nameStr != '') {  
1941 - // _showConfirmWidget(needSex: true);  
1942 - // }  
1943 - // }  
1944 - // }  
1945 - // }  
1946 - // _baseIndoProvider.notifyListeners();  
1947 - // },  
1948 - // content: value['title'],  
1949 - // hasLeftBorder: value['hasLeftBorder'],  
1950 - // isSelect: value['select']);  
1951 - // }).toList()), 1938 + ),
  1939 + HEmptyView(40),
  1940 + InkWell(
  1941 + onTap: () {
  1942 + FocusScope.of(context)
  1943 + .requestFocus(FocusNode()); //隐藏键盘
  1944 +
  1945 + DialogUtil.showSelectCusmanDialog(
  1946 + context, memberList, (value) async {
  1947 + if (value != null) {
  1948 + memberIndex = value.first;
  1949 + memberShow = memberList[memberIndex];
  1950 +
  1951 + setState(() {});
  1952 + }
  1953 + }, selecteds: [memberIndex ?? 0])
  1954 + .then((value) {});
  1955 + },
  1956 + child: Row(children: [
  1957 + Text(
  1958 + memberShow,
  1959 + style: TextStyle(
  1960 + color: memberShow == '会员状态未知'
  1961 + ? MyColours.color_999999
  1962 + : MyColours.color_515151,
  1963 + fontSize: ScreenUtil().setSp(28),
  1964 + ),
  1965 + ),
  1966 + Image.asset(Utils.getImgPath('quan_down_f'),
  1967 + width: ScreenUtil().setWidth(28),
  1968 + height: ScreenUtil().setWidth(28)),
  1969 + ]),
  1970 + )
  1971 + ],
  1972 + ))
  1973 + : SizedBox(),
  1974 + //餐单类型
  1975 + enterMore
  1976 + ? Container(
  1977 + margin: EdgeInsets.only(
  1978 + // top: ScreenUtil().setWidth(40),
  1979 + bottom: ScreenUtil().setWidth(40)),
  1980 + height: ScreenUtil().setWidth(68),
  1981 + padding: EdgeInsets.symmetric(
  1982 + horizontal: ScreenUtil().setWidth(16)),
  1983 + decoration: BoxDecoration(
  1984 + borderRadius: BorderRadius.circular(
  1985 + ScreenUtil().setWidth(12)),
  1986 + // color: Colors.red,
  1987 + border: Border.all(
  1988 + width: ScreenUtil().setWidth(2),
  1989 + color: MyColours.color_DBDBDB)),
  1990 + child: Row(
  1991 + mainAxisAlignment: MainAxisAlignment.spaceBetween,
  1992 + crossAxisAlignment: CrossAxisAlignment.center,
  1993 + children: [
  1994 + Text(
  1995 + '餐单类型',
  1996 +
  1997 + //输入文本的样式
  1998 + style: TextStyle(
  1999 + fontSize: ScreenUtil().setSp(28),
  2000 + color: MyColours.color_353535),
  2001 + ),
  2002 + InkWell(
  2003 + onTap: () {
  2004 + FocusScope.of(context)
  2005 + .requestFocus(FocusNode()); //隐藏键盘
  2006 +
  2007 + DialogUtil.showSelectCusmanDialog(
  2008 + context, styleList, (value) async {
  2009 + if (value != null) {
  2010 + styleIndex = value.first;
  2011 + styleShow = styleList[styleIndex];
  2012 +
  2013 + setState(() {});
  2014 + }
  2015 + }, selecteds: [styleIndex ?? 0])
  2016 + .then((value) {});
  2017 + },
  2018 + child: Row(children: [
  2019 + Text(
  2020 + styleShow,
  2021 + style: TextStyle(
  2022 + color: MyColours.color_515151,
  2023 + fontSize: ScreenUtil().setSp(28),
  2024 + ),
  2025 + ),
  2026 + Image.asset(Utils.getImgPath('quan_down_f'),
  2027 + width: ScreenUtil().setWidth(28),
  2028 + height: ScreenUtil().setWidth(28)),
  2029 + ]),
1952 ) 2030 )
1953 ], 2031 ],
1954 )) 2032 ))
@@ -50,6 +50,10 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> { @@ -50,6 +50,10 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
50 50
51 UploadImageProvider _uploadImageProvider; 51 UploadImageProvider _uploadImageProvider;
52 52
  53 + List<String> memberList = [];
  54 + String memberShow = '会员状态未知';
  55 + int memberIndex;
  56 +
53 @override 57 @override
54 void initState() { 58 void initState() {
55 // TODO: implement initState 59 // TODO: implement initState
@@ -58,6 +62,7 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> { @@ -58,6 +62,7 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
58 62
59 wineSerialSub = App.sp.getInt("wineSerialSub") ?? 1; 63 wineSerialSub = App.sp.getInt("wineSerialSub") ?? 1;
60 sexList = ['先生', '女士', '公司']; 64 sexList = ['先生', '女士', '公司'];
  65 + memberList = ['会员', '非会员'];
61 _initWineSerial(); 66 _initWineSerial();
62 WineManageSunModel wineManageModel = WineManageSunModel(); 67 WineManageSunModel wineManageModel = WineManageSunModel();
63 wineManageModel.wineSerialC.text = 68 wineManageModel.wineSerialC.text =
@@ -339,20 +344,53 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> { @@ -339,20 +344,53 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
339 ]), 344 ]),
340 ), 345 ),
341 HEmptyView(40), 346 HEmptyView(40),
342 - Container(  
343 - width: w(100),  
344 - alignment: Alignment.centerRight,  
345 - child: Text(  
346 - '会员状态未知',  
347 - // '会员',  
348 - style: TextStyle(  
349 - color: true  
350 - ? MyColours.color_999999  
351 - : MyColours.color_515151,  
352 - fontSize: ScreenUtil().setSp(32), 347 + InkWell(
  348 + onTap: () {
  349 + FocusScope.of(context)
  350 + .requestFocus(FocusNode()); //隐藏键盘
  351 +
  352 + DialogUtil.showSelectCusmanDialog(
  353 + context, memberList, (value) async {
  354 + if (value != null) {
  355 + memberIndex = value.first;
  356 + memberShow =
  357 + memberList[memberIndex];
  358 +
  359 + setState(() {});
  360 + }
  361 + }, selecteds: [memberIndex ?? 0]).then(
  362 + (value) {});
  363 + },
  364 + child: Row(children: [
  365 + Text(
  366 + memberShow,
  367 + style: TextStyle(
  368 + color: memberShow == '会员状态未知'
  369 + ? MyColours.color_999999
  370 + : MyColours.color_515151,
  371 + fontSize: ScreenUtil().setSp(32),
  372 + ),
353 ), 373 ),
354 - ),  
355 - ), 374 + Image.asset(
  375 + Utils.getImgPath('quan_down_f'),
  376 + width: ScreenUtil().setWidth(28),
  377 + height: ScreenUtil().setWidth(28)),
  378 + ]),
  379 + )
  380 + // Container(
  381 + // width: w(100),
  382 + // alignment: Alignment.centerRight,
  383 + // child: Text(
  384 + // '会员状态未知',
  385 + // // '会员',
  386 + // style: TextStyle(
  387 + // color: true
  388 + // ? MyColours.color_999999
  389 + // : MyColours.color_515151,
  390 + // fontSize: ScreenUtil().setSp(32),
  391 + // ),
  392 + // ),
  393 + // ),
356 ], 394 ],
357 )), 395 )),
358 ], 396 ],