yyb
2025-11-20 04d883c9f7866722b11420f2a40b2e1a8194a75f
pages/wareHouse/nuclearScale/saveForm.vue
@@ -12,109 +12,191 @@
      <scroll-view scroll-y="true" style="height: 100%">
        <view class="packing-registration-param-view">
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">批次号</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">批次号</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input
                class="item-one item-two"
                v-model="form.outBatchNo"
                disabled
                                              :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">产品描述</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">产品描述</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input
                class="item-one item-two"
                v-model="form.partName"
                disabled
                                              :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">零件位</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">零件位</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input
                class="item-one item-two"
                v-model="form.partNo"
                disabled
                                              :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">毛重</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">毛重</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input
                class="item-one item-two"
                v-model="form.grossWeight"
                disabled
                                              :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">盘重</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">盘重</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input
                class="item-one item-two"
                v-model="form.tareWeight"
                disabled
                                              :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">净重</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">净重</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input
                class="item-one item-two"
                v-model="form.netWeight"
                disabled
                                              :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">核磅重量</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">核磅重量</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input class="item-one item-two" v-model="form.verificationWeight" />
              <u-input class="item-one item-two" v-model="form.verificationWeight"
                                            :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
               />
            </view>
          </view>
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
              <text class="item-one">叉车重量</text>
            <view style=" min-width: 80px;">
              <text style="font-size:16px">叉车重量</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input class="item-one item-two" v-model="form.forkliftWeight" />
              <u-input class="item-one item-two" v-model="form.forkliftWeight"
                                            :custom-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
              :input-style="{
                fontSize: '16px',
                height: '40px',
                lineHeight: '40px'
              }"
               />
            </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 +215,9 @@
  data() {
    return {
      show: false,
      form: {},
      form: {
        forkliftWeight: '0',
      },
    };
  },
  methods: {
@@ -143,7 +227,7 @@
        this.$refs.uModal.clearLoading(); // 清除加载状态
        return;
      }
      if (!this.form.forkliftWeight) {
      if (!String(this.form.forkliftWeight).trim()) {
        this.$u.toast("请输入叉车重量");
        this.$refs.uModal.clearLoading(); // 清除加载状态
        return;
@@ -162,7 +246,7 @@
      //    -10kg 以内
      //    核磅重量-2(新的毛重)皮重(新的毛重-净重)超过 10kg提示生产核查(不能提交)
      // (2).导体
      //    正磅差:0-3kg可直接提交
      //    正磅差:3-3kg可直接提交
      //    超过 3kg及 负磅差提示生产核查(不能提交)
      // (3).导体2.6
      //     士0.5kg 都可直接提交
@@ -262,7 +346,7 @@
                self.verifySubmission(formList);
              }
              if (magnetic > 10) {
                self.$u.toast("生产核查");
                self.$u.toast('磅差:' + magnetic + ',请车间核查');
              }
              break;
            // case "导体":
@@ -293,7 +377,10 @@
    },
    open(val) {
      this.show = true;
      this.form = val;
    this.form = {
      ...val,
      forkliftWeight: val.forkliftWeight !== undefined ? val.forkliftWeight : 0
    };
    },
  },
};