1
yangpeixing
2 天以前 c69b6892e9e004db9cf5d0edc69bbd2fcc1d83db
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
@@ -71,7 +71,7 @@
        type: 'danger',
        icon: 'el-icon-check',
        disabled: false,
        plain: true,
        plain: false,
        onClick: function () {
          if (this.editFormFields.remark == '其他出库') {
            this.$confirm('是否其他出库', '警告', {
@@ -97,7 +97,34 @@
                  }
                })
            })
          } else {
          }
          else if (this.editFormFields.remark == '') {
            this.$confirm('是否直接出库', '警告', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'warning',
              center: true,
              customClass: 'large-text-confirm'
            }).then(() => {
              console.log(this.$refs.detail.rowData)
              this.http
                .post(
                  `/api/StockInfo/UpdateDataStockDetail`,
                  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: '取消',
@@ -161,6 +188,7 @@
          })
        }
      })
      this.columns.push({
        title: '操作',
        field: '操作',
@@ -201,11 +229,11 @@
      })
      //示例:设置修改新建、编辑弹出框字段标签的长度
      this.boxOptions.labelWidth = 150
      this.buttons.forEach((btn) => {
        if (btn.name == '编辑') {
          btn.hidden = true
        }
      })
      // this.buttons.forEach((btn) => {
      //   if (btn.name == '编辑') {
      //     btn.hidden = true
      //   }
      // })
      this.boxButtons.forEach((btn) => {
        if (btn.name == '保 å­˜') {
          btn.hidden = true