yyb
14 小时以前 48ea71d330920dac9c3ff84585a7ef0c413fce50
导体提交磅差精准一位小数,叉车盘重默认为0,去除长度,盘号字段
已修改2个文件
28 ■■■■■ 文件已修改
pages/wareHouse/nuclearScale/index.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/wareHouse/nuclearScale/saveForm.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/wareHouse/nuclearScale/index.vue
@@ -394,10 +394,10 @@
        });
      }
      // 使用正确的字段名suppliedQuantity,而不是voltage
      const magnetic =
      const magnetic =(
        Number(this.modalList.verificationWeight) -
        Number(this.modalList.forkliftWeight) -
        grossWeightSum;
        grossWeightSum).toFixed(1);
      this.form.verificationWeight = this.modalList.verificationWeight;
      this.form.forkliftWeight = this.modalList.forkliftWeight;
      switch (this.form.productType) {
@@ -484,7 +484,12 @@
        .catch(() => {
          uni.hideLoading();
          this.$refs.saveForm.cancel();
          this.$u.toast("网络异常,请重试");
          uni.showModal({
            title: "提示",
            content: err.message || "网络异常,请重试",
            showCancel: true,
            success: function (res) {},
          });
        });
    },
    // 提交按钮
pages/wareHouse/nuclearScale/saveForm.vue
@@ -99,22 +99,22 @@
              <u-input class="item-one item-two" v-model="form.forkliftWeight" />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
          <!-- <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">长度</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input class="item-one item-two" v-model="form.originalLength" disabled />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
          </view> -->
          <!-- <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">盘号</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input class="item-one item-two" v-model="form.palletNo" disabled />
            </view>
          </view>
          </view> -->
        </view>
      </scroll-view>
    </view>
@@ -133,7 +133,9 @@
  data() {
    return {
      show: false,
      form: {},
      form: {
        forkliftWeight: '0',
      },
    };
  },
  methods: {
@@ -293,7 +295,10 @@
    },
    open(val) {
      this.show = true;
      this.form = val;
    this.form = {
      ...val,
      forkliftWeight: val.forkliftWeight !== undefined ? val.forkliftWeight : 0
    };
    },
  },
};