Explorar o código

定制产品逻辑

xiaohaizhao hai 1 ano
pai
achega
519725f2ea

+ 2 - 0
packageA/orderForm/modules/product/index.js

@@ -190,6 +190,8 @@ Component({
                                     sa_orderitemsid: 0,
                                     "itemid": v.itemid, //商品ID
                                     "qty": v.qty, //数量
+                                    "width": v.width || 0,
+                                    "length": v.length || 0,
                                     price: this.data.type == '工具订单' ? v.marketprice : v.contractprice
                                 }
                             })

+ 3 - 0
packageA/orderForm/modules/product/list/index.js

@@ -77,6 +77,9 @@ Component({
 				title: '当前状态不可编辑!',
 				icon: "none"
 			})
+		},
+		customization(){
+			
 		}
 	}
 })

+ 0 - 1
packageA/orderForm/modules/product/list/index.scss

@@ -72,7 +72,6 @@
         .subfield {
           display: flex;
           margin-top: 8rpx;
-          height: 34rpx;
           line-height: 34rpx;
 
           text {

+ 3 - 0
packageA/orderForm/modules/product/list/index.wxml

@@ -16,6 +16,9 @@
                     <text class="line-1" style="margin-right: 6rpx;">型号:{{item.model||' --'}}</text>
                     <text class="line-1">规格:{{item.spec||' --'}}</text>
                 </view>
+                <view wx:if="{{item.iscustomsize}}" class="subfield" style="margin-top: 8rpx;">
+                    定制属性:{{item.customproperties}}
+                </view>
                 <view class="subfield" style="margin-top: 8rpx;">
                     <text class="price" style="margin-right: 6rpx;">{{handleHide.query(item.price,hidePrice)}}</text>
                     <text style="font-weight: 600;color: #666;">库存:{{item.invbalqty-item.unsoldqty>=0?'有货':'缺货'}}</text>