695593266@qq.com 9 месяцев назад
Родитель
Сommit
85a9d4581b
2 измененных файлов с 55 добавлено и 7 удалено
  1. 29 0
      pages/pda/picking/components/common.js
  2. 26 7
      pages/pda/picking/details.vue

+ 29 - 0
pages/pda/picking/components/common.js

@@ -0,0 +1,29 @@
+export const typeName = {
+  1: "物料",
+  2: "在制品",
+  3: "零部件",
+  4: "生产设备",
+  5: "模具",
+  6: "备品备件",
+  7: "周转车",
+  8: "舟皿",
+  9: "产品",
+  10: "消耗材料",
+  11: "干燥区",
+  12: "质检",
+  13: "包装材料",
+  14: "生产辅助设备",
+  15: "仪表计量设备",
+  16: "办公设备",
+  17: "客户",
+  18: "房屋、建筑物",
+  19: "供应商",
+  20: "工装夹具",
+  21: "半成品",
+  22: "会计科目",
+  23: "费用类型",
+  24: "周转盘",
+  25: "文档",
+  26: "废品",
+  99: "其他"
+}

+ 26 - 7
pages/pda/picking/details.vue

@@ -74,20 +74,34 @@
             <view class="content_table">
             <view class="content_table">
               <view class="item">
               <view class="item">
                 <view class="lable rx-cc">物料编码</view>
                 <view class="lable rx-cc">物料编码</view>
-                <view class="content">
+                <view class="content ellipsis">
                   {{ mate.categoryCode }}
                   {{ mate.categoryCode }}
                 </view>
                 </view>
               </view>
               </view>
 
 
               <view class="item">
               <view class="item">
                 <view class="lable rx-cc">名称</view>
                 <view class="lable rx-cc">名称</view>
-                <view class="content">{{ mate.categoryName }}</view>
+                <view class="content ellipsis">{{ mate.categoryName }}</view>
               </view>
               </view>
 
 
               <view class="item rx-sc">
               <view class="item rx-sc">
                 <view class="rx ww55">
                 <view class="rx ww55">
-                  <view class="lable rx-cc">牌号</view>
-                  <view class="content">{{ mate.brandNum }}</view>
+                  <view class="lable rx-cc">型号</view>
+                  <view class="content ellipsis">{{ mate.modelType }}</view>
+                </view>
+
+                <view class="rx ww45">
+                  <view class="lable rx-cc ww80">规格</view>
+                  <view class="content ellipsis">{{ mate.specification }}</view>
+                </view>
+              </view>
+
+              <view class="item rx-sc">
+                <view class="rx ww55">
+                  <view class="lable rx-cc">类型</view>
+                  <view class="content">{{
+                    typeName[Number(mate.rootCategoryLevelId)]
+                  }}</view>
                 </view>
                 </view>
 
 
                 <view class="rx ww45">
                 <view class="rx ww45">
@@ -259,6 +273,7 @@ import boatBom from "./components/boatBom.vue";
 import packingBom from "./components/packingBom";
 import packingBom from "./components/packingBom";
 import semiProductBom from "./components/semiProductBom";
 import semiProductBom from "./components/semiProductBom";
 import outsourceOrder from "./components/outsourceOrder";
 import outsourceOrder from "./components/outsourceOrder";
+import { typeName } from "./components/common.js";
 import {
 import {
   znPdaPage,
   znPdaPage,
   workorderList,
   workorderList,
@@ -308,6 +323,7 @@ export default {
       submitText: "提交",
       submitText: "提交",
       pickName: "",
       pickName: "",
       pickCode: "",
       pickCode: "",
+      typeName,
     };
     };
   },
   },
   onLoad(options) {
   onLoad(options) {
@@ -1039,9 +1055,6 @@ export default {
     }
     }
   }
   }
 
 
-  .right_box {
-  }
-
   .material {
   .material {
     margin-top: 10rpx;
     margin-top: 10rpx;
 
 
@@ -1138,6 +1151,12 @@ export default {
   }
   }
 }
 }
 
 
+.ellipsis {
+  white-space: nowrap; /* 强制不换行 */
+  overflow: hidden; /* 超出部分隐藏 */
+  text-overflow: ellipsis; /* 显示省略号 */
+}
+
 .bottom-wrapper {
 .bottom-wrapper {
   .btn_box {
   .btn_box {
     width: 750rpx;
     width: 750rpx;