yyb
2025-10-22 aaa8efda7a2697cf36e7021a1c5d94f3a541b387
pages/product/WorkshopOrderCancellationIssued/index.vue
@@ -29,7 +29,7 @@
            ></u-icon>
          </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>
@@ -79,7 +79,7 @@
              size="28"
            ></u-icon>
          </view>
        </view>
        </view> -->
        <view class="packing-registration-param-item param-extra">
          <view class="packing-registration-param-item-left">
            <text class="item-one">取消下发记录:</text>
@@ -246,14 +246,14 @@
    uni.$off("scan"); // 每次进来先 移除全局自定义事件监听器
    uni.$on("scan", function (data) {
      console.log("onscan");
      if (that.registerInfo.workstationId == "") {
        uni.showToast({
          icon: "none",
          title: "请先选择机台!",
          duration: 2 * 1000,
        });
        return;
      }
      // if (that.registerInfo.workstationId == "") {
      //   uni.showToast({
      //     icon: "none",
      //     title: "请先选择机台!",
      //     duration: 2 * 1000,
      //   });
      //   return;
      // }
      if (data.code) {
        //扫码成功后的回调,你可以写自己的逻辑代码在这里
        console.log("扫码结果:", data.code);
@@ -329,9 +329,9 @@
        return;
      }
      // 处理确认逻辑
      this.$u.api.WorkshopOrderCancellationIssued.feeding([
        this.modalList,
      ]).then((res) => {
      this.$u.api.WorkshopOrderCancellationIssued.rejectPDA(
        this.modalList
      ).then((res) => {
        console.log("res", res);
        if (res.code === 0) {
          this.$u.toast("提交成功");
@@ -413,14 +413,15 @@
        feedingWorkstationId: workstationId,
        operationTaskId: operationTaskId,
      };
      this.$u.api.WorkshopOrderCancellationIssued.checkReturnPartPDA(obj).then(
        (res) => {
          console.log("res", res);
          if (res.code === 0) {
            this.getHandymanItem(obj);
          }
        }
      );
     this.getReturnInfo(obj);
      // this.$u.api.WorkshopOrderCancellationIssued.checkReturnPartPDA(obj).then(
      //   (res) => {
      //     console.log("res", res);
      //     if (res.code === 0) {
      //       this.getHandymanItem(obj);
      //     }
      //   }
      // );
    },
    //   获取基本信息
    getReturnInfo(obj) {
@@ -498,8 +499,8 @@
      .packing-registration-param-item-left {
        .item-one {
          font-size: 30rpx;
          color: #666666;
          font-size: small;
          color: #232222;
        }
      }
@@ -514,7 +515,7 @@
        }
        .item-two {
          font-size: 30rpx;
          font-size: small;
          color: #a6b4cc;
          margin-right: 6rpx;
        }
@@ -599,7 +600,7 @@
        ._label-name {
          margin-left: 11rpx;
          font-size: 26rpx;
          font-size: small;
          font-weight: 500;
          color: #666666;
        }
@@ -609,7 +610,7 @@
        flex: 1.5;
        text-align: right;
        color: #909399;
        font-size: 24rpx;
        font-size: small;
      }
      .row-list .s1 {