|
@@ -16,11 +16,23 @@ struct MaterialNotificationItem{
|
|
|
Row(){
|
|
|
Column() {
|
|
|
// 订单标题(带订单号)
|
|
|
- Text(`${this.item.orderName}${this.item.orderCode}`)
|
|
|
- .fontSize($r('app.float.fontSize_30'))
|
|
|
- .fontColor(this.item.workOrderState=="完成"?$r('app.color.FFFFFF'):$r('app.color.30FFFFFF'))
|
|
|
- .width('100%')
|
|
|
- .textAlign(TextAlign.Start)
|
|
|
+ Row(){
|
|
|
+ Text(`${this.item.orderName}${this.item.orderCode}`)
|
|
|
+ .fontSize($r('app.float.fontSize_30'))
|
|
|
+ .fontColor(this.item.workOrderState=="完成"?$r('app.color.FFFFFF'):$r('app.color.30FFFFFF'))
|
|
|
+ .textAlign(TextAlign.Start)
|
|
|
+ Row(){
|
|
|
+ Text(this.index/2===0?"齐套":"零星")
|
|
|
+ .fontSize($r('app.float.fontSize_24'))
|
|
|
+ .fontColor(this.index/2===0?$r('app.color.C08E68'):$r('app.color.BF5AF2'))
|
|
|
+ .width('100%')
|
|
|
+ .textAlign(TextAlign.Center)
|
|
|
+ }.width('7%')
|
|
|
+ .margin({left:'2%'})
|
|
|
+ .backgroundColor(this.index/2===0?$r('app.color.20C08E68'):$r('app.color.20BF5AF2'))
|
|
|
+ .borderRadius($r('app.float.virtualSize_16'))
|
|
|
+ }.width('100%')
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
|
// 订单详情
|
|
|
Column({ space: 3 }) {
|