|
@@ -34,17 +34,23 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
GlobalKey _sendCompanyCodeKey = GlobalKey();
|
|
GlobalKey _sendCompanyCodeKey = GlobalKey();
|
|
|
GlobalKey _sendCompanyNameKey = GlobalKey();
|
|
GlobalKey _sendCompanyNameKey = GlobalKey();
|
|
|
GlobalKey _getCompanyNameKey = GlobalKey();
|
|
GlobalKey _getCompanyNameKey = GlobalKey();
|
|
|
|
|
+ GlobalKey _goodsKey = GlobalKey();
|
|
|
|
|
|
|
|
double tipWidth = 0;
|
|
double tipWidth = 0;
|
|
|
double tipHeight = 0;
|
|
double tipHeight = 0;
|
|
|
double tipPosX = 0;
|
|
double tipPosX = 0;
|
|
|
double tipPosY = 0;
|
|
double tipPosY = 0;
|
|
|
|
|
|
|
|
- bool tipStatus = true;
|
|
|
|
|
|
|
+ bool tipStatus = true;//是否展示公司信息匹配列表,true为不展示
|
|
|
|
|
+ bool goodsTipStatus = true;//是否展示货物匹配列表,true为不展示
|
|
|
bool lineModalStatus = false;
|
|
bool lineModalStatus = false;
|
|
|
bool submitStatus = true;
|
|
bool submitStatus = true;
|
|
|
|
|
+ bool checkedLine = false;//当收件方有多条线路时,此状态表示是否已经选择过线路了
|
|
|
|
|
+
|
|
|
|
|
+ String stationId;//司机端站点id
|
|
|
|
|
|
|
|
List < LikePhoneList > likePhoneList = [];
|
|
List < LikePhoneList > likePhoneList = [];
|
|
|
|
|
+ List <GoodsPriceList> goodsPriceList = [];
|
|
|
var timer;
|
|
var timer;
|
|
|
bool sendPhoneOrGetPhoneTab = true; //区分电话提示层点击时填入发件信息或手机信息的标记
|
|
bool sendPhoneOrGetPhoneTab = true; //区分电话提示层点击时填入发件信息或手机信息的标记
|
|
|
|
|
|
|
@@ -126,12 +132,15 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
BluetoothUtils bluetooth = BluetoothUtils();
|
|
BluetoothUtils bluetooth = BluetoothUtils();
|
|
|
|
|
|
|
|
bool checkedCompanyInfo = false;//选择公司信息向sendCompanyPhoneController填充时不去模糊匹配
|
|
bool checkedCompanyInfo = false;//选择公司信息向sendCompanyPhoneController填充时不去模糊匹配
|
|
|
|
|
+ bool checkedGoodsName = false;//选择货物名称填充时不匹配
|
|
|
|
|
+
|
|
|
|
|
+ String likeWord ='';//以什么为匹配的字段用户控制高亮_tipsItem中的哪一个字段
|
|
|
|
|
|
|
|
@override
|
|
@override
|
|
|
void initState() {
|
|
void initState() {
|
|
|
super.initState();
|
|
super.initState();
|
|
|
|
|
|
|
|
- goodsCategory().then((resp) {
|
|
|
|
|
|
|
+ goodsCategory().then((resp) {//获取商品类型
|
|
|
if (isNotError(context, resp) && this.mounted) {
|
|
if (isNotError(context, resp) && this.mounted) {
|
|
|
GoodsCategory goodsCategoryObj = GoodsCategory.fromJson(resp.data);
|
|
GoodsCategory goodsCategoryObj = GoodsCategory.fromJson(resp.data);
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -142,7 +151,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- goodsPackage().then((resp) {
|
|
|
|
|
|
|
+ goodsPackage().then((resp) {//获取包装类型
|
|
|
if (isNotError(context, resp) && this.mounted) {
|
|
if (isNotError(context, resp) && this.mounted) {
|
|
|
GoodsPackage goodsPackageObj = GoodsPackage.fromJson(resp.data);
|
|
GoodsPackage goodsPackageObj = GoodsPackage.fromJson(resp.data);
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -152,6 +161,14 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ getKey('stationId').then((resp){
|
|
|
|
|
+ stationId = resp;
|
|
|
|
|
+ });
|
|
|
|
|
+ getKey('defaultFreightPrice').then((resp){
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ goodsFreightController.text = (double.parse(resp)/100).toString();
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
_scrollController.addListener(() {
|
|
_scrollController.addListener(() {
|
|
|
if (!tipStatus) {
|
|
if (!tipStatus) {
|
|
@@ -159,6 +176,11 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
tipStatus = true;
|
|
tipStatus = true;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ if(!goodsTipStatus){
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ goodsTipStatus = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
//if (_scrollController.position.pixels == _scrollController.position.maxScrollExtent) {}
|
|
//if (_scrollController.position.pixels == _scrollController.position.maxScrollExtent) {}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -196,6 +218,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
tipStatus = false;
|
|
tipStatus = false;
|
|
|
|
|
+ likeWord='phone';
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -241,6 +264,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
tipStatus = false;
|
|
tipStatus = false;
|
|
|
|
|
+ likeWord='code';
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -286,6 +310,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
tipStatus = false;
|
|
tipStatus = false;
|
|
|
|
|
+ likeWord='name';
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -331,6 +356,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
tipPosX = getPhoneKey.getTransformTo(null).getTranslation().x;
|
|
tipPosX = getPhoneKey.getTransformTo(null).getTranslation().x;
|
|
|
tipPosY = getPhoneKey.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
tipPosY = getPhoneKey.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
tipStatus = false;
|
|
tipStatus = false;
|
|
|
|
|
+ likeWord='phone';
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -376,6 +402,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
tipPosX = getPhoneKey.getTransformTo(null).getTranslation().x;
|
|
tipPosX = getPhoneKey.getTransformTo(null).getTranslation().x;
|
|
|
tipPosY = getPhoneKey.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
tipPosY = getPhoneKey.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
tipStatus = false;
|
|
tipStatus = false;
|
|
|
|
|
+ likeWord='name';
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
setState(() {
|
|
setState(() {
|
|
@@ -387,6 +414,52 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ //货物名称监听
|
|
|
|
|
+ goodsController.addListener(() {
|
|
|
|
|
+ if(checkedGoodsName){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ goods = goodsController.text;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (timer != null) {
|
|
|
|
|
+ timer.cancel();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (goodsController.text.length < 1) {
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ goodsTipStatus = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ timer = Timer(Duration(milliseconds: 250), () {
|
|
|
|
|
+ if (goodsController.text.length >= 1) {
|
|
|
|
|
+ goodsNameLike(stationId,goodsController.text,lineId).then((resp) {
|
|
|
|
|
+ if (isNotError(context, resp) && this.mounted) {
|
|
|
|
|
+ GoodsPriceObj goodsPriceObj = GoodsPriceObj.fromJson(resp.data);
|
|
|
|
|
+ goodsPriceList = goodsPriceObj.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (goodsPriceList.length > 0) {
|
|
|
|
|
+ RenderObject goodsKey = _goodsKey.currentContext.findRenderObject();
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ tipWidth = goodsKey.paintBounds.size.width;
|
|
|
|
|
+ tipHeight = goodsKey.paintBounds.size.height;
|
|
|
|
|
+ tipPosX = goodsKey.getTransformTo(null).getTranslation().x;
|
|
|
|
|
+ tipPosY = goodsKey.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
|
|
+ goodsTipStatus = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ goodsTipStatus = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
sendCompanyAddressController.addListener(() {
|
|
sendCompanyAddressController.addListener(() {
|
|
|
setState(() {
|
|
setState(() {
|
|
|
sendCompanyAddress = sendCompanyAddressController.text;
|
|
sendCompanyAddress = sendCompanyAddressController.text;
|
|
@@ -463,6 +536,27 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
)
|
|
)
|
|
|
),
|
|
),
|
|
|
)
|
|
)
|
|
|
|
|
+ ),
|
|
|
|
|
+ Positioned(
|
|
|
|
|
+ top: tipPosY,
|
|
|
|
|
+ left: tipPosX,
|
|
|
|
|
+ child: Offstage(
|
|
|
|
|
+ offstage: goodsTipStatus,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ width: tipWidth,
|
|
|
|
|
+ height: ScreenUtil.getInstance().setHeight(450),
|
|
|
|
|
+ padding: EdgeInsets.only(left: ScreenUtil.getInstance().setWidth(30)),
|
|
|
|
|
+ decoration: BoxDecoration(
|
|
|
|
|
+ color: Color.fromRGBO(244, 248, 251, 1),
|
|
|
|
|
+ ),
|
|
|
|
|
+ child: ListView.builder(
|
|
|
|
|
+ itemCount: goodsPriceList.length,
|
|
|
|
|
+ itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
+ return _goodsTipItem(goodsPriceList[index]);
|
|
|
|
|
+ },
|
|
|
|
|
+ )
|
|
|
|
|
+ ),
|
|
|
|
|
+ )
|
|
|
)
|
|
)
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
@@ -734,83 +828,9 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Widget _contentWiget(String key, String type, [bool keyboardType = false]) { //false是数字键盘
|
|
|
|
|
- // return Padding(
|
|
|
|
|
- // padding: EdgeInsets.only(left: ScreenUtil.getInstance().setWidth(30)),
|
|
|
|
|
- // child: Column(
|
|
|
|
|
- // children: < Widget > [
|
|
|
|
|
- // SizedBox(
|
|
|
|
|
- // height: ScreenUtil.getInstance().setHeight(89),
|
|
|
|
|
- // child: Center(
|
|
|
|
|
- // child: Row(
|
|
|
|
|
- // mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
- // children: < Widget > [
|
|
|
|
|
- // Expanded(
|
|
|
|
|
- // flex: 0,
|
|
|
|
|
- // child: Text(key, style: TextStyle(fontSize: ScreenUtil.getInstance().setSp(30), color: Color.fromRGBO(74, 74, 74, 1)), ),
|
|
|
|
|
- // ),
|
|
|
|
|
- // Expanded(
|
|
|
|
|
- // child: Row(
|
|
|
|
|
- // mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
- // children: < Widget > [
|
|
|
|
|
- // SizedBox(
|
|
|
|
|
- // width: ScreenUtil.getInstance().setWidth(500),
|
|
|
|
|
- // child:Padding(
|
|
|
|
|
- // padding: EdgeInsets.only(right: ScreenUtil.getInstance().setWidth(30)),
|
|
|
|
|
- // child:TextField(
|
|
|
|
|
- // controller: (key == '企业名称') ? (type == 'send' ? sendCompanyNameController : receiptCompanyNameController) : (key == '企业编码' ? sendCompanyCodeController : null),
|
|
|
|
|
- // keyboardType: keyboardType ? TextInputType.text : TextInputType.number,
|
|
|
|
|
- // textAlign: TextAlign.end,
|
|
|
|
|
- // decoration: InputDecoration(
|
|
|
|
|
- // border: InputBorder.none
|
|
|
|
|
- // ),
|
|
|
|
|
- // onChanged: (value) {
|
|
|
|
|
- // if (key == '货物名称') {
|
|
|
|
|
- // goods = value;
|
|
|
|
|
- // } else if (key == '数量') {
|
|
|
|
|
- // goodsQuantity = int.parse(value);
|
|
|
|
|
- // } else if (key == '运费') {
|
|
|
|
|
- // goodsFreight = double.parse(value);
|
|
|
|
|
- // String temp = goodsFreight.toStringAsFixed(1);
|
|
|
|
|
- // goodsFreight = double.parse(temp);
|
|
|
|
|
- // } else if (key == '代收') {
|
|
|
|
|
- // goodsAgencyFund = double.parse(value);
|
|
|
|
|
- // String temp = goodsAgencyFund.toStringAsFixed(1);
|
|
|
|
|
- // goodsAgencyFund = double.parse(temp);
|
|
|
|
|
- // } else if (key == '保价') {
|
|
|
|
|
- // goodsPriceProtection = double.parse(value);
|
|
|
|
|
- // String temp = goodsPriceProtection.toStringAsFixed(1);
|
|
|
|
|
- // goodsPriceProtection = double.parse(temp);
|
|
|
|
|
- // } else if (key == '重量') {
|
|
|
|
|
- // goodsWeight = double.parse(value);
|
|
|
|
|
- // String temp = goodsWeight.toStringAsFixed(1);
|
|
|
|
|
- // goodsWeight = double.parse(temp);
|
|
|
|
|
- // }
|
|
|
|
|
- // },
|
|
|
|
|
- // ),
|
|
|
|
|
- // )
|
|
|
|
|
-
|
|
|
|
|
- // ),
|
|
|
|
|
-
|
|
|
|
|
- // // Icon(Icons.keyboard_arrow_right, color: Color.fromRGBO(199, 199, 204, 1), )
|
|
|
|
|
- // ],
|
|
|
|
|
- // )
|
|
|
|
|
- // )
|
|
|
|
|
- // ],
|
|
|
|
|
- // ),
|
|
|
|
|
- // )
|
|
|
|
|
- // ),
|
|
|
|
|
- // Expanded(
|
|
|
|
|
- // flex: 0,
|
|
|
|
|
- // child: _underLine()
|
|
|
|
|
- // )
|
|
|
|
|
- // ],
|
|
|
|
|
- // )
|
|
|
|
|
- // );
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
Widget _itemContentWiget(String key,TextEditingController controller, [bool keyboardType = false]) { //false是数字键盘
|
|
Widget _itemContentWiget(String key,TextEditingController controller, [bool keyboardType = false]) { //false是数字键盘
|
|
|
return Padding(
|
|
return Padding(
|
|
|
|
|
+ key: key=='货物名称'?_goodsKey:null,
|
|
|
padding: EdgeInsets.only(left: ScreenUtil.getInstance().setWidth(30)),
|
|
padding: EdgeInsets.only(left: ScreenUtil.getInstance().setWidth(30)),
|
|
|
child: Column(
|
|
child: Column(
|
|
|
children: < Widget > [
|
|
children: < Widget > [
|
|
@@ -1232,7 +1252,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(lineList.length>1){
|
|
|
|
|
|
|
+ if(lineList.length>1 && !checkedLine){
|
|
|
showLineModal(lineList);
|
|
showLineModal(lineList);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1453,7 +1473,27 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
return ShowLineModal(
|
|
return ShowLineModal(
|
|
|
lineList: list, childCallback: (val) {
|
|
lineList: list, childCallback: (val) {
|
|
|
lineId = val;
|
|
lineId = val;
|
|
|
- submitOrder();
|
|
|
|
|
|
|
+ goodsNameAccurate(stationId,goodsController.text,lineId).then((resp){
|
|
|
|
|
+ if(isNotError(context, resp) && this.mounted){
|
|
|
|
|
+ if(resp.data['data']['goods']!=null){
|
|
|
|
|
+ GoodsPriceList tempObj = GoodsPriceObjAccurate.fromJson(resp.data).data;
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ goods=tempObj.goods;
|
|
|
|
|
+ goodsController.text = tempObj.goods;
|
|
|
|
|
+ goodsFreight = tempObj.price/100;
|
|
|
|
|
+ goodsFreightController.text = (tempObj.price/100).toString();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ checkedLine = true;
|
|
|
|
|
+ // showDialog <Null> (
|
|
|
|
|
+ // context: context,
|
|
|
|
|
+ // barrierDismissible: false,
|
|
|
|
|
+ // builder: (BuildContext context) {
|
|
|
|
|
+ // return MyAlertDialog(text: '线路已变更,请确认运费是否正确',childCallback:(val){});
|
|
|
|
|
+ // }
|
|
|
|
|
+ // );
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
@@ -1481,16 +1521,16 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
padding: EdgeInsets.only(right: ScreenUtil.getInstance().setWidth(50)),
|
|
padding: EdgeInsets.only(right: ScreenUtil.getInstance().setWidth(50)),
|
|
|
child: Text(obj.uzerPhone!=null?obj.uzerPhone:obj.companyPhone, style: TextStyle(
|
|
child: Text(obj.uzerPhone!=null?obj.uzerPhone:obj.companyPhone, style: TextStyle(
|
|
|
fontSize: ScreenUtil.getInstance().setSp(28),
|
|
fontSize: ScreenUtil.getInstance().setSp(28),
|
|
|
- color: Color.fromRGBO(74, 74, 74, 1)
|
|
|
|
|
|
|
+ color: likeWord=='phone'?Color.fromRGBO(74, 74, 74, 1):Color.fromRGBO(155, 155, 155, 1)
|
|
|
), )
|
|
), )
|
|
|
),
|
|
),
|
|
|
SizedBox(
|
|
SizedBox(
|
|
|
width: ScreenUtil.getInstance().setWidth(185),
|
|
width: ScreenUtil.getInstance().setWidth(185),
|
|
|
- child: Text(obj.areaCode,
|
|
|
|
|
|
|
+ child: Text(obj.companyCode,
|
|
|
textAlign: TextAlign.left,
|
|
textAlign: TextAlign.left,
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
fontSize: ScreenUtil.getInstance().setSp(28),
|
|
fontSize: ScreenUtil.getInstance().setSp(28),
|
|
|
- color: Color.fromRGBO(155, 155, 155, 1)
|
|
|
|
|
|
|
+ color: likeWord=='code'?Color.fromRGBO(74, 74, 74, 1):Color.fromRGBO(155, 155, 155, 1)
|
|
|
), ),
|
|
), ),
|
|
|
),
|
|
),
|
|
|
Text(obj.companyName,
|
|
Text(obj.companyName,
|
|
@@ -1498,7 +1538,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
overflow: TextOverflow.ellipsis,
|
|
overflow: TextOverflow.ellipsis,
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
fontSize: ScreenUtil.getInstance().setSp(28),
|
|
fontSize: ScreenUtil.getInstance().setSp(28),
|
|
|
- color: Color.fromRGBO(155, 155, 155, 1)
|
|
|
|
|
|
|
+ color: likeWord=='name'?Color.fromRGBO(74, 74, 74, 1):Color.fromRGBO(155, 155, 155, 1)
|
|
|
),
|
|
),
|
|
|
)
|
|
)
|
|
|
],
|
|
],
|
|
@@ -1566,6 +1606,68 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ Widget _goodsTipItem(GoodsPriceList obj){
|
|
|
|
|
+ return Container(
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ children: < Widget > [
|
|
|
|
|
+ InkWell(
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ height: ScreenUtil.getInstance().setHeight(89),
|
|
|
|
|
+ child: Center(
|
|
|
|
|
+ child: Row(
|
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
+ children: < Widget > [
|
|
|
|
|
+ SizedBox(
|
|
|
|
|
+ width: ScreenUtil.getInstance().setWidth(250),
|
|
|
|
|
+ child: Text(obj.goods,
|
|
|
|
|
+ textAlign: TextAlign.left,
|
|
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ fontSize: ScreenUtil.getInstance().setSp(28),
|
|
|
|
|
+ color: Color.fromRGBO(74, 74, 74, 1)
|
|
|
|
|
+ ), )
|
|
|
|
|
+ ),
|
|
|
|
|
+ SizedBox(
|
|
|
|
|
+ width: ScreenUtil.getInstance().setWidth(250),
|
|
|
|
|
+ child: Text(obj.lineName,
|
|
|
|
|
+ textAlign: TextAlign.left,
|
|
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ fontSize: ScreenUtil.getInstance().setSp(28),
|
|
|
|
|
+ color: Color.fromRGBO(155, 155, 155, 1)
|
|
|
|
|
+ ), ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ Text((obj.price/100).toString(),
|
|
|
|
|
+ textAlign: TextAlign.left,
|
|
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ fontSize: ScreenUtil.getInstance().setSp(28),
|
|
|
|
|
+ color: Color.fromRGBO(155, 155, 155, 1)
|
|
|
|
|
+ ),
|
|
|
|
|
+ )
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ checkedGoodsName = true;
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ FocusScope.of(context).requestFocus(FocusNode());
|
|
|
|
|
+ goodsTipStatus = true;
|
|
|
|
|
+ goods = obj.goods;
|
|
|
|
|
+ goodsController.text = obj.goods;
|
|
|
|
|
+ goodsFreight = (obj.price/100);
|
|
|
|
|
+ goodsFreightController.text = (obj.price/100).toString();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ ),
|
|
|
|
|
+ _underLine()
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
Widget _packageType(String key) {
|
|
Widget _packageType(String key) {
|
|
|
return Padding(
|
|
return Padding(
|
|
|
padding: EdgeInsets.only(left: ScreenUtil.getInstance().setWidth(30)),
|
|
padding: EdgeInsets.only(left: ScreenUtil.getInstance().setWidth(30)),
|