huangxiaoqiang
2025-11-29 f9e8a2d52fe52fb2389892a46c12d4d262ee9aaf
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
@@ -48,55 +48,106 @@
      //     })
      //   }
      // });
      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: '其他出库', //按钮名称
        //icon: 'el-icon-document', //按钮图标:组件示例->图标
        //primary、success、warning、error、info、text、danger
        type: 'primary',
        name: '确定出库', //按钮名称
        type: 'danger',
        icon: 'el-icon-check',
        disabled: false,
        plain: true,
        onClick: function () {
          this.$confirm('是否其他出库', '警告', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning',
            center: true
          }).then(() => {
            this.http
              .post(
                `/api/Task/OtherOutBoundTaskAsync`,
                this.$refs.detail.rowData,
                '正在生成出库任务'
              )
              .then((res) => {
                if (res.status) {
                  this.$Message.success(res.message)
                  this.boxModel = false
                  this.refresh()
                } else {
                  this.$Message.error(res.message) //错误提示
                }
              })
          })
          if (this.editFormFields.remark == '其他出库') {
            this.$confirm('是否其他出库', '警告', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'warning',
              center: true,
              customClass: 'large-text-confirm'
            }).then(() => {
              this.http
                .post(
                  `/api/Task/OtherOutBoundTaskAsync`,
                  this.$refs.detail.rowData,
                  '正在生成出库任务'
                )
                .then((res) => {
                  if (res.status) {
                    this.$Message.success(res.message)
                    this.boxModel = false
                    this.refresh()
                  } else {
                    this.$Message.error(res.message) //错误提示
                  }
                })
            })
          } else {
            this.$confirm('是否调拨出库', '警告', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'warning',
              center: true,
              customClass: 'large-text-confirm'
            }).then(() => {
              this.http
                .post(
                  `/api/Task/HandAllocateOutBoundTaskAsync`,
                  this.$refs.detail.rowData,
                  '正在生成出库任务'
                )
                .then((res) => {
                  if (res.status) {
                    this.$Message.success(res.message)
                    this.boxModel = false
                    this.refresh()
                  } else {
                    this.$Message.error(res.message) //错误提示
                  }
                })
            })
          }
        }
      })
      this.boxButtons.push({
        name: '调拨出库', //按钮名称
        //icon: 'el-icon-document', //按钮图标:组件示例->图标
        //primary、success、warning、error、info、text、danger
        type: 'danger',
        name: '打印二维码', //按钮名称
        type: 'primary',
        icon: 'el-icon-check',
        disabled: false,
        plain: true,
        onClick: function () {
          this.$confirm('是否调拨出库', '警告', {
          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
            center: true,
            customClass: 'large-text-confirm'
          }).then(() => {
            this.http
              .post(
                `/api/Task/HandAllocateOutBoundTaskAsync`,
                this.$refs.detail.rowData,
                '正在生成出库任务'
                `/api/StockInfo/PrintOrder`,
                orderNos,
                '正在打印'
              )
              .then((res) => {
                if (res.status) {
@@ -120,7 +171,7 @@
            <div>
              <el-button
                onClick={($e) => {
                  ;(row.remark = '其他出库'), this.linkData(row)
                  ;(row.remark = '其他出库'), this.linkDataNew(row, '其他出库')
                }}
                type="primary"
              >
@@ -129,7 +180,7 @@
              <el-button
                onClick={($e) => {
                  ;(row.remark = '调拨出库'), this.linkData(row)
                  ;(row.remark = '调拨出库'), this.linkDataNew(row, '调拨出库')
                }}
                type="success"
              >