| | |
| | | </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> |
| | |
| | | { label: '未下单', value: 3 }, |
| | | { label: '让步放行', value: 4 }, |
| | | ], |
| | | outLoading: false |
| | | outLoading: false, |
| | | ifsDialogVisible: false, // 添加 IFS 选择弹框显示控制 |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }, |
| | | // 获取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 |