|
|
|
@ -25,62 +25,73 @@ class WorkOrderBillDialog extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
40.w.heightBox,
|
|
|
|
|
'确认账单'
|
|
|
|
|
.text
|
|
|
|
|
.size(32.sp)
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.make(),
|
|
|
|
|
80.w.heightBox,
|
|
|
|
|
...models
|
|
|
|
|
.map((e) => Row(
|
|
|
|
|
children: [
|
|
|
|
|
'${e.costType == 1 ? '人工费' : '耗材费'}${e.name}${e.costType == 1 ? '' : '*${e.number}'}'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
Spacer(),
|
|
|
|
|
'¥${e.price}'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
.toList()
|
|
|
|
|
.sepWidget(
|
|
|
|
|
separate: 16.w.heightBox,
|
|
|
|
|
),
|
|
|
|
|
BeeDivider.horizontal(),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
'工单总费用'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
Spacer(),
|
|
|
|
|
'¥${total}'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Color(0xFFF5222D))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
80.w.heightBox,
|
|
|
|
|
BeeLongButton(onPressed: onConfirm, text: '提醒用户支付'),
|
|
|
|
|
],
|
|
|
|
|
return Align(
|
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.all(30.w),
|
|
|
|
|
padding: EdgeInsets.only(left: 40.w,right: 40.w,),
|
|
|
|
|
height: 430.h,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(20.w),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
40.w.heightBox,
|
|
|
|
|
'确认账单'
|
|
|
|
|
.text
|
|
|
|
|
.size(32.sp)
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.make(),
|
|
|
|
|
80.w.heightBox,
|
|
|
|
|
...models
|
|
|
|
|
.map((e) => Row(
|
|
|
|
|
children: [
|
|
|
|
|
'${e.costType == 1 ? '人工费' : '耗材费'}${e.name}${e.costType == 1 ? '' : '*${e.number}'}'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
Spacer(),
|
|
|
|
|
'¥${e.price}'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
.toList()
|
|
|
|
|
.sepWidget(
|
|
|
|
|
separate: 16.w.heightBox,
|
|
|
|
|
),
|
|
|
|
|
10.heightBox,
|
|
|
|
|
BeeDivider.horizontal(),
|
|
|
|
|
10.heightBox,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
'工单总费用'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Colors.black.withOpacity(0.65))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
Spacer(),
|
|
|
|
|
'¥${total}'
|
|
|
|
|
.text
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
.color(Color(0xFFF5222D))
|
|
|
|
|
.isIntrinsic
|
|
|
|
|
.make(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
80.w.heightBox,
|
|
|
|
|
BeeLongButton(onPressed: onConfirm, text: '提醒用户支付'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|