1
yangpeixing
2025-12-04 63e1ee997a5318e628b992f969bdac2fec6dbf14
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
@@ -48,8 +48,26 @@
      //     })
      //   }
      // });
      var DoubleTrayBtn = this.buttons.find(x => x.value == "DoubleTray");
      if (DoubleTrayBtn != null) {
        DoubleTrayBtn.onClick = () => {
          let rows = this.$refs.table.getSelected();
          if (rows.length == 0) return this.$error("请选择数据!");
          if (rows.length > 1) return this.$error("请选择数据!");
          this.http.post(`/api/Task/OutBoundTaskAsync?palletCode=${rows[0].palletCode}&remark=${""}&doubleTray=${1}`, {}, '数据处理中...')
            .then((x) => {
              if (x.status) {
                this.$Message.success('成功.');
                this.refresh();
              } else {
                return this.$error(x.message);
              }
            });
        }
      }
      this.boxButtons.push({
        name: '保存', //按钮名称
        name: '确定出库', //按钮名称
        type: 'danger',
        icon: 'el-icon-check',
        disabled: false,
@@ -61,7 +79,7 @@
              cancelButtonText: '取消',
              type: 'warning',
              center: true,
              customClass: 'large-text-confirm'
              customClass: 'large-text-confirm'
            }).then(() => {
              this.http
                .post(
@@ -106,6 +124,43 @@
          }
        }
      })
      this.boxButtons.push({
        name: '打印二维码', //按钮名称
        type: 'primary',
        icon: 'el-icon-check',
        disabled: false,
        plain: true,
        onClick: function () {
          let rows = this.$refs.detail.getSelected()
          if (rows.length == 0) return this.$error("请选择数据!");
          let orderNos = rows.map(x => {
            return x.orderNo
          })
          this.$confirm('是否打印单据', '警告', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning',
            center: true,
            customClass: 'large-text-confirm'
          }).then(() => {
            this.http
              .post(
                `/api/StockInfo/PrintOrder`,
                orderNos,
                '正在打印'
              )
              .then((res) => {
                if (res.status) {
                  this.$Message.success(res.message)
                  this.boxModel = false
                  this.refresh()
                } else {
                  this.$Message.error(res.message) //错误提示
                }
              })
          })
        }
      })
      this.columns.push({
        title: '操作',
        field: '操作',
@@ -116,7 +171,7 @@
            <div>
              <el-button
                onClick={($e) => {
                  ;(row.remark = '其他出库'), this.linkDataNew(row, '其他出库')
                  ; (row.remark = '其他出库'), this.linkDataNew(row, '其他出库')
                }}
                type="primary"
              >
@@ -125,7 +180,7 @@
              <el-button
                onClick={($e) => {
                  ;(row.remark = '调拨出库'), this.linkDataNew(row, '调拨出库')
                  ; (row.remark = '调拨出库'), this.linkDataNew(row, '调拨出库')
                }}
                type="success"
              >
@@ -196,7 +251,7 @@
    onInited() {
      //框架初始化配置后
      //如果要配置明细表,在此方法操作
      this.detailOptions.columns.forEach((column) => {})
      this.detailOptions.columns.forEach((column) => { })
    },
    searchBefore(param) {
      //界面查询前,可以给param.wheres添加查询参数