yyb
2025-09-23 45b9b391916c94c42cea303c5c0f0fe0d0b1306c
pages/storeManagement/MaterialRequisition/index.vue
@@ -51,7 +51,7 @@
                  <view class="_label-name">净重:</view>
                </view>
                <view class="_content">
                  {{ item.NW }}
                  {{ item.KW }}
                </view>
              </view>
            </view>
@@ -95,7 +95,7 @@
                </view>
                <view class="packing-registration-param-item-right">
                  <text class="item-one item-two">{{
                    detailedList.NW
                    detailedList.KW
                  }}</text>
                </view>
              </view>
@@ -150,23 +150,29 @@
    });
  },
  methods: {
    cancel() {
      // 处理取消逻辑
      this.showModal = false;
    },
       // 回显扫码的信息
    saveForm(val) {
      this.detailedList = val;
        this.showModal = true;
     },
   confirm() {
    //   // 处理确认逻辑
    //   this.$u.api.materialRequisition
    //     .materialRequisition({
    //       ...this.detailedList,
    //     })
    //     .then((res) => {
    //       this.hasScanSnList.push(this.detailedList);
    //       console.log("记录", this.hasScanSnList);
    //       this.$u.toast("领料成功");
      //     });
      // 处理确认逻辑
      this.$u.api.materialRequisition
        .materialRequisition({
          ...this.detailedList,
        })
        .then((res) => {
          this.hasScanSnList.push(this.detailedList);
          console.log("记录", this.hasScanSnList);
          this.$u.toast("领料成功");
        })
        .catch((err) => {
          this.$u.toast("领料失败");
        });
    },
  },
};