loulijun2021
2024-04-10 213f348eb0e68df4b575a51c570b98f4cf773963
1.报工审核   新增弃审功能
已修改4个文件
77 ■■■■ 文件已修改
src/api/WorkOrder.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/cj.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produce/reportVerify.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workOrder/produceOrderList.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/WorkOrder.js
@@ -248,7 +248,9 @@
    method: 'get',
    params: data
  })
}// 生产执行,报工审核列表数据查询接口
}
// 生产执行,报工审核列表数据查询接口
export function MesOrderStepReportVerifySeave(data) {
  return request({
    url: 'WorkOrder/MesOrderStepReportVerifySeave',
@@ -256,3 +258,12 @@
    data
  })
}
// 生产执行,报工弃审数据提交
export function MesOrderStepReportNotVerifySeave(data) {
  return request({
    url: 'WorkOrder/MesOrderStepReportNotVerifySeave',
    method: 'post',
    params: data
  })
}
src/views/kanbanManager/cj.vue
@@ -266,7 +266,7 @@
        })
      }, 1000 * 60)
      this.getWorkShopProduceTopData()
      await this.getWorkShopProduceTopData()
    },
    // 获取当前时间
src/views/produce/reportVerify.vue
@@ -295,10 +295,18 @@
            <template slot-scope="{row}">
              <div class="operationClass">
                <el-button
                  v-if="row.verify!=='Y'"
                  type="text"
                  style="cursor: pointer;font-size: 14px"
                  @click="reportAdjust(row)"
                >报工审核
                </el-button>
                <el-button
                  v-if="row.verify==='Y'"
                  type="text"
                  style="cursor: pointer;font-size: 14px;color: rgba(255,0,0,0.8)"
                  @click="reportGiveUp(row)"
                >弃审
                </el-button>
              </div>
@@ -326,7 +334,12 @@
import { handleDatetime } from '@/utils/global'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
import { MesOrderDistribution, MesOrderStepReportVerifySearch, MesOrderStepReportVerifySeave } from '@/api/WorkOrder'
import {
  MesOrderDistribution,
  MesOrderStepReportNotVerifySeave,
  MesOrderStepReportVerifySearch,
  MesOrderStepReportVerifySeave
} from '@/api/WorkOrder'
import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData'
export default {
@@ -440,9 +453,9 @@
    // 报工审核
    async reportAdjust(row) {
      if (row && row.verify === 'Y') {
        return this.$message.info('此工单已审核!')
      }
      // if (row && row.verify === 'Y') {
      //   return this.$message.info('此工单已审核!')
      // }
      this.$confirm('是否确认审核?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
@@ -472,6 +485,29 @@
        this.$notify.info('已取消审核!')
      })
    },
    // 弃审
    reportGiveUp(row) {
      this.$confirm('是否确认弃审?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        const data = {
          id: row.id,
          steptype: row.steptype
        }
        MesOrderStepReportNotVerifySeave(data).then(res => {
          if (res.code === '200') {
            this.$notify.success('弃审成功!')
            this.getMesOrderStepReportVerifySearch()
          }
        })
      }).catch(() => {
        this.$notify.info('已取消弃审!')
      })
    },
    handleSelectionChange(val) {
      this.multipleSelection = val
    },
src/views/workOrder/produceOrderList.vue
@@ -9,15 +9,15 @@
          @click="syncERP"
        >同步ERP
        </el-button>
        <div style="display: flex">
          <el-button
            v-waves
            type="primary"
            icon="el-icon-bottom"
            @click="batchHandle"
          >批量下达
          </el-button>
        </div>
        <!--        <div style="display: flex">-->
        <!--          <el-button-->
        <!--            v-waves-->
        <!--            type="primary"-->
        <!--            icon="el-icon-bottom"-->
        <!--            @click="batchHandle"-->
        <!--          >批量下达-->
        <!--          </el-button>-->
        <!--        </div>-->
      </div>