yyb
2025-10-22 c6fd16350612b8aef7a04bfbebf6ee3c591a88ae
调整物料下发和取消下发
已修改2个文件
32 ■■■■■ 文件已修改
pages/product/WorkshopOrderCancellationIssued/index.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/product/WorkshopOrderIssued/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/product/WorkshopOrderCancellationIssued/index.vue
@@ -114,10 +114,10 @@
              </view>
              <view class="row-list">
                <view class="_label">
                  <view class="_label-name">取消下发数量:</view>
                  <view class="_label-name">取消数量:</view>
                </view>
                <view class="_content">
                  {{ item.suppliedQuantity }}
                  {{ item.stockQuantity }}
                </view>
              </view>
            </view>
@@ -133,6 +133,7 @@
      :show-confirm-button="true"
      @confirm="confirm"
      @cancel="cancel"
    >
      <view class="popup-content">
        <view class="packing-registration-param">
@@ -181,12 +182,12 @@
            </view>
            <view class="packing-registration-param-item param-extra">
              <view class="packing-registration-param-item-left">
                <text class="item-one">取消下发数量</text>
                <text class="item-one">取消数量</text>
              </view>
              <view class="packing-registration-param-item-right">
                <u-input
                  class="item-one item-two"
                  v-model="modalList.returnQuantity"
                  v-model="modalList.stockQuantity"
                />
              </view>
            </view>
@@ -323,8 +324,8 @@
        this.$refs.uModal.clearLoading(); // 清除加载状态
        return;
      }
      if (!this.modalList.returnQuantity) {
        this.$u.toast("请输入取消下发数量");
      if (!this.modalList.stockQuantity) {
        this.$u.toast("请输入取消数量");
        this.$refs.uModal.clearLoading(); // 清除加载状态
        return;
      }
@@ -337,8 +338,8 @@
          this.$u.toast("提交成功");
          this.showModal = false;
          const obj = {
            suppliedQuantity: this.modalList.suppliedQuantity,
            outBatchNo: this.modalList.returnQuantity,
            stockQuantity: this.modalList.stockQuantity,
            outBatchNo: this.modalList.outBatchNo,
          };
          this.hasScanSnList.push(obj);
        }
@@ -406,12 +407,11 @@
    },
    // 扫码后数据回显
    scanHandle(val) {
      const { outBatchNo } = val;
      const { workstationId, operationTaskId } = this.registerInfo;
      const { BN } = val;
      const { id } = this.registerInfo;
      const obj = {
        outBatchNo: outBatchNo,
        feedingWorkstationId: workstationId,
        operationTaskId: operationTaskId,
        outBatchNo: BN,
        moId: id,
      };
     this.getReturnInfo(obj);
      // this.$u.api.WorkshopOrderCancellationIssued.checkReturnPartPDA(obj).then(
@@ -483,7 +483,7 @@
  }
  .packing-registration-param-view {
    height: 450rpx;
    height: 200rpx;
    background-color: #fff;
    border-radius: 10rpx;
    padding: 0rpx 23rpx;
pages/product/WorkshopOrderIssued/index.vue
@@ -230,6 +230,7 @@
        partName: "",
        optaskNo: "",
        workstationId: "",
        ifsLineItemNo: "",
      },
      //   下发记录列表
      hasScanSnList: [],
@@ -370,6 +371,7 @@
    compNo(val) {
      this.registerInfo.partNo = val.partNo;
      this.registerInfo.partName = val.partName;
      this.registerInfo.ifsLineItemNo = val.ifsLineItemNo;
    },
    // 订单号回显
    setNo(val) {
@@ -382,6 +384,7 @@
        partName: "",
        optaskNo: "",
        workstationId: "",
        ifsLineItemNo: "",
      }),
        (this.machineList = []);
      this.machineIndex = null;
@@ -439,6 +442,7 @@
        console.log("res", res);
        if (res.code === 0) {
          (res.data.workstationId = workstationId), (this.modalList = res.data);
          this.modalList.ifsLineItemNo = this.registerInfo.ifsLineItemNo;
          this.showModal = true;
        }
      });