liding
2025-03-21 5fc4e08ede1f5af51f802a5e48365bf7bb375e8d
IFS 选择弹框
已修改1个文件
21 ■■■■ 文件已修改
src/views/business/rawMaterialInspection/index.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/rawMaterialInspection/index.vue
@@ -18,7 +18,7 @@
            </el-input>
          </el-form-item>
          <el-form-item label="报检类型" prop="inspectionType">
            <el-select v-model="componentData.inspectionType" clearable placeholder="请选择" size="small"
            <el-select v-model="componentData.inspectionType" clearable placeholder="请选择" size="small"
              @change="refreshTable" style="width: 100%">
              <el-option label="原辅料" value="原辅料"></el-option>
              <el-option label="包采" value="包采"></el-option>
@@ -153,7 +153,7 @@
            size="small"></el-input>
        </el-form-item>
        <el-form-item class="declareObj-form-item" label="报检类型:" prop="inspectionType">
          <el-select v-model="declareObj.inspectionType" :disabled="declareType !== 'add'" clearable class="addObj-info"
          <el-select v-model="declareObj.inspectionType" :disabled="declareType !== 'add'" clearable class="addObj-info"
            size="small" placeholder="请选择报检类型">
            <el-option label="原辅料" value="原辅料"></el-option>
            <el-option label="包采" value="包采"></el-option>
@@ -187,6 +187,13 @@
          <el-button :loading="upLoad" type="primary" @click="submitDeclare1">确 定</el-button>
        </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"
@@ -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