| | |
| | | </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> |
| | |
| | | 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> |
| | |
| | | <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" |
| | |
| | | { 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 |