| | |
| | | </el-dialog> |
| | | <!-- 确认报检 --> |
| | | <el-dialog :close-on-click-modal="false" :title="declareType === 'add' ? '新增报检信息' : '原材料报检'" |
| | | :visible.sync="declareDialogVisible" width="800px" @close="resetForm"> |
| | | :visible.sync="declareDialogVisible" width="800px" @close="resetFormData"> |
| | | <el-form ref="declareObj" :inline="true" :model="declareObj" :rules="declareObjRules" label-width="130px" |
| | | label-position="right"> |
| | | <el-form-item class="declareObj-form-item" label="订单号:" prop="orderNo"> |
| | |
| | | partNo: null, |
| | | partDesc: null, |
| | | supplierName: null, |
| | | date: '', |
| | | date: null, |
| | | entrustCode: '', |
| | | inspectStatus: '', |
| | | }, |
| | |
| | | // 已完成部查询 |
| | | getIfsByFinishList() { |
| | | this.tableLoading1 = true |
| | | if(null != this.componentData.date){ |
| | | this.componentData.beginDeclareDate = this.componentData.date[0] |
| | | this.componentData.endDeclareDate = this.componentData.date[1] |
| | | } |
| | | getIfsByFinish({ ...this.componentData, ...this.page1 }).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | |
| | | // 全部查询 |
| | | getIfsByAllList() { |
| | | this.tableLoading1 = true |
| | | if(null != this.componentData.date){ |
| | | this.componentData.beginDeclareDate = this.componentData.date[0] |
| | | this.componentData.endDeclareDate = this.componentData.date[1] |
| | | } |
| | | getIfsByAll({ ...this.componentData, ...this.page1 }).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | resetForm() { |
| | | resetFormData() { |
| | | this.$refs['declareObj'].resetFields(); |
| | | this.declareDialogVisible = false |
| | | }, |