whycq
2024-11-19 fe8fb74ce94e7bee23ed47b7175236248ac93b98
pages/mat/matSelected.vue
@@ -7,7 +7,7 @@
         </view>
         <view class="form-item">
            <view class="form-item-desc"><text>商品名称</text></view>
            <view class="form-item-content"><text>{{mat.maktx}}</text></view>
            <view class="form-item-content"><text style="word-wrap:break-word">{{mat.maktx}}</text></view>
         </view>
         <view class="form-item">
            <view class="form-item-desc"><text>规格</text></view>
@@ -44,7 +44,7 @@
               maktx: null,
               specs: null,
               batch: null,
               anfme: 0,
               anfme: 1,
            },
            baseIP:'',
            basePORT:'',
@@ -62,7 +62,7 @@
         // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
         eventChannel.on('mat', function(data) {
            that.mat = data.data
            that.mat.anfme = 0
            that.mat.anfme = 1
         })
         
         
@@ -78,7 +78,6 @@
            this.mat.anfme = value
         },
         back() {
            console.log(this.mat);
            if (this.mat.anfme === 0) {
               uni.showToast({title: '请输入数量', icon: "none", position: 'top'});
               return;
@@ -102,12 +101,13 @@
      box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.2) ;
   }
   .form-item {
      height: 100rpx;
      line-height: 100rpx;
      min-height: 100rpx;
      line-height: 1.3;
      border-bottom: 1px solid #DCDFE6;
      margin-left: 40rpx;
      display: flex;
      align-items: center;
      word-wrap: break-word;
   }
   .form-item-desc {
      width: 30%;