瀏覽代碼

修改齐套工单展示

hh 2 天之前
父節點
當前提交
bb3687fb81
共有 2 個文件被更改,包括 26 次插入6 次删除
  1. 26 4
      entry/src/main/ets/view/CompleteSet.ets
  2. 0 2
      entry/src/main/ets/view/ManualOutbound.ets

+ 26 - 4
entry/src/main/ets/view/CompleteSet.ets

@@ -550,15 +550,36 @@ export struct CompleteSet {
                   .justifyContent(FlexAlign.Start)
 
                   Row() {
-                    Text('产品型号:  ' + item?.materialModel ?? "")
+                    Row() {
+                      Text('产品名称:  ' + item?.materialName ?? "")
+                        .fontWeight(FontWeight.Regular)
+                        .fontSize($r('app.float.fontSize_20'))
+                        .fontColor(this.selectOrder === index ? $r('app.color.general_font_white_color') : $r('app.color.general_font_color'))
+                        .maxLines(1)
+                        .textOverflow({ overflow: TextOverflow.Ellipsis })
+                    }.width('50%')
+                    Row() {
+                      Text('产品型号:  ' + item?.materialModel ?? "")
+                        .fontWeight(FontWeight.Regular)
+                        .fontSize($r('app.float.fontSize_20'))
+                        .fontColor(this.selectOrder === index ? $r('app.color.general_font_white_color') : $r('app.color.general_font_color'))
+                        .maxLines(1)
+                        .textOverflow({ overflow: TextOverflow.Ellipsis })
+                    }.width('50%')
+                  }
+                  .width('100%')
+                  .justifyContent(FlexAlign.Start)
+
+                  Row() {
+                    Text('产品编码:  ' + item?.materialCode ?? "")
                       .fontWeight(FontWeight.Regular)
                       .fontSize($r('app.float.fontSize_20'))
                       .fontColor(this.selectOrder === index ? $r('app.color.general_font_white_color') : $r('app.color.general_font_color'))
-
+                      .maxLines(1)
+                      .textOverflow({ overflow: TextOverflow.Ellipsis })
                   }
                   .width('100%')
                   .justifyContent(FlexAlign.Start)
-
                   Row() {
                     Text('计划编号:  ')
                       .fontWeight(FontWeight.Regular)
@@ -568,8 +589,9 @@ export struct CompleteSet {
                       .fontSize($r('app.float.fontSize_20'))
                       .fontWeight(FontWeight.Medium)
                       .fontColor(this.selectOrder === index ? $r('app.color.general_font_white_color') : $r('app.color.general_font_color'))
+                      .maxLines(1)
+                      .textOverflow({ overflow: TextOverflow.Ellipsis })
                   }
-
                   .width('100%')
                   .justifyContent(FlexAlign.Start)
 

+ 0 - 2
entry/src/main/ets/view/ManualOutbound.ets

@@ -1,11 +1,9 @@
-import EquipmentRequest from '../common/util/request/EquipmentRequest'
 import StorageRequest from '../common/util/request/StorageRequest'
 import { Materialpositionclass, StorageStatusList, testPost } from '../common/util/request/StorageRequestInstance'
 import { boxMaterialClass, outboundClass, outBoxClass, stat3 } from './CompleteSet'
 import RequestParamModel from '../viewmodel/RequestParamModel'
 import promptAction from '@ohos.promptAction'
 import CommonConstants from '../common/constants/CommonConstants'
-import { stat2 } from './ManualWarehousing'
 import { MaterialInformationModel } from '../model/MaterialInformation'
 import { StationInfoModel } from '../model/StorageSpace'
 import { SureToDoDialog } from '../common/component/SureToDoDialog'