| | |
| | | <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> |
| | | <el-option label="包材" value="包材"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="供应商" prop="supplierName" v-if="(tabIndex === 3 || tabIndex === 4)"> |
| | |
| | | <el-button v-show="tabIndex === 4" :loading="outLoading" size="small" type="primary" |
| | | @click="handleDown">导出</el-button> |
| | | <el-button v-if="tabIndex === 0" :loading="btnLoading" size="small" type="primary" |
| | | @click="openIFS">获取IFS订单</el-button> |
| | | @click="openIFS">获取订单</el-button> |
| | | <el-button v-if="tabIndex === 0" size="small" type="primary" @click="declareS">报检</el-button> |
| | | <el-button v-if="tabIndex === 0" size="small" type="primary" @click="addDeclare">新增报检信息</el-button> |
| | | </div> |
| | |
| | | <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-option label="包材" value="包材"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | <!-- 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> |
| | | <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> |
| | | <!--数据查看弹框--> |
| | |
| | | } |
| | | } |
| | | }, |
| | | { label: '报检类型', prop: 'inspectionType' }, |
| | | { |
| | | label: '报检类型', prop: 'inspectionType', dataType: 'tag', |
| | | formatType: (params) => { |
| | | if (params == '原辅料') { |
| | | return 'success' |
| | | } else { |
| | | return 'warning' |
| | | } |
| | | } |
| | | }, |
| | | { label: '订单号', prop: 'orderNo' }, |
| | | { label: '抵达的采购数量', prop: 'qtyArrived', width: '140px', }, |
| | | { label: '批号', prop: 'updateBatchNo' }, |
| | |
| | | { |
| | | dataType: 'action', |
| | | label: '操作', |
| | | fixed: 'right', |
| | | operation: [ |
| | | { |
| | | name: '报检', |
| | |
| | | buyUnitMeas: [ |
| | | { required: false, message: '请填写单位', trigger: 'blur' } |
| | | ], |
| | | inspectionType: [ |
| | | { required: true, message: '请填写报检类型', trigger: 'change' } |
| | | ], |
| | | }, |
| | | tabList: [ |
| | | { |