| | |
| | | } |
| | | |
| | | // 如果请求为非200则默认统一处理 |
| | | if (status !== 200 && status != 2 && status == 400) { |
| | | if (status !== 200 && status == 400) { |
| | | |
| | | ElMessage({ |
| | | message: message, |
| | | type: 'error', |
| | | center:true, |
| | | showClose:true, |
| | | duration:0, |
| | | }); |
| | | //this.$alert(message,{confirmButtonText:'关闭'}); |
| | | return Promise.reject(new Error(message)); |
| | | } |
| | | return res; |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: '产品型号', |
| | | prop: 'cph', |
| | | type: 'input', |
| | | display: true, |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: '零组件号', |
| | | prop: 'ljh', |
| | | type: 'input', |
| | |
| | | disabled:true, |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: '产品号', |
| | | prop: 'cph', |
| | | type: 'input', |
| | | display: true, |
| | | span: 24, |
| | | }, |
| | | |
| | | { |
| | | label: '主管工艺', |
| | | prop: 'zggy', |
| | |
| | | data: form, |
| | | }).then( |
| | | res => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | this.$refs.form.resetForm(); |
| | | this.attachForm = this.defaultForm; |
| | | |
| | | if(res.data.code == 200){ |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | this.$refs.form.resetForm(); |
| | | this.attachForm = this.defaultForm; |
| | | |
| | | }else{ |
| | | this.$alert(res.data.msg, '发起任务失败',{type:'error',confirmButtonText:'关闭'}); |
| | | } |
| | | done(); |
| | | }, |
| | | error => { |
| | |
| | | data: form, |
| | | }).then( |
| | | res => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | this.$refs.form.resetForm(); |
| | | this.attachForm = this.defaultForm; |
| | | if(res.data.code == 200){ |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | this.$refs.form.resetForm(); |
| | | this.attachForm = this.defaultForm; |
| | | |
| | | }else{ |
| | | this.$alert(res.data.msg, '发起任务失败',{type:'error',confirmButtonText:'关闭'}); |
| | | } |
| | | done(); |
| | | }, |
| | | error => { |