liding
2025-03-21 5fc4e08ede1f5af51f802a5e48365bf7bb375e8d
IFS 选择弹框
已修改1个文件
17 ■■■■ 文件已修改
src/views/business/rawMaterialInspection/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/rawMaterialInspection/index.vue
@@ -188,6 +188,13 @@
        </el-row>
      </span>
    </el-dialog>
    <!-- IFS 选择弹框 -->
    <el-dialog title="选择类型" :visible.sync="ifsDialogVisible" width="30%" append-to-body>
      <div style="text-align: center;">
        <el-button type="primary" size="medium" style="margin: 0 10px;" @click="handleIfsSelect('原辅料')">获取MES原辅料数据</el-button>
        <el-button type="primary" size="medium" style="margin: 0 10px;" @click="handleIfsSelect('包采')">获取MES包采数据</el-button>
      </div>
    </el-dialog>
    <!--数据查看弹框-->
    <data-look-visible v-if="dataDialogVisible" ref="dataDialogVisible" :dataDialogVisible="dataDialogVisible"
      :dataLookInfo="dataLookInfo" @closeDataLook="closeDataLook"></data-look-visible>
@@ -557,7 +564,8 @@
        { label: '未下单', value: 3 },
        { label: '让步放行', value: 4 },
      ],
      outLoading: false
      outLoading: false,
      ifsDialogVisible: false, // 添加 IFS 选择弹框显示控制
    }
  },
  mounted() {
@@ -830,8 +838,13 @@
    },
    // 获取IFS按钮回调
    openIFS() {
      this.ifsDialogVisible = true
    },
    // 选择处理方法
    handleIfsSelect(type) {
      this.btnLoading = true
      getIfsOrder().then(res => {
      this.ifsDialogVisible = false
      getIfsOrder({ type: type }).then(res => {
        this.resetForm('componentData')
        this.refreshTable()
        this.btnLoading = false