|
@@ -405,19 +405,24 @@ export default {
|
|
|
//提交
|
|
|
submitForm(){
|
|
|
let _this = this;
|
|
|
- _this.loading = true;
|
|
|
- if(_this.status==0){//新增
|
|
|
- qualificationApplyAdd(_this.form).then(res => {
|
|
|
- this.msgSuccess(res.msg);
|
|
|
- _this.backPage();
|
|
|
- });
|
|
|
- }else if(_this.status==1){
|
|
|
- qualificationApplyAnew(_this.form).then(res => {
|
|
|
- this.msgSuccess(res.msg);
|
|
|
- _this.backPage();
|
|
|
- });
|
|
|
+ if(_this.form.listDetailVo.length>0){
|
|
|
+ _this.loading = true;
|
|
|
+ if(_this.status==0){//新增
|
|
|
+ qualificationApplyAdd(_this.form).then(res => {
|
|
|
+ this.msgSuccess(res.msg);
|
|
|
+ _this.backPage();
|
|
|
+ });
|
|
|
+ }else if(_this.status==1){
|
|
|
+ qualificationApplyAnew(_this.form).then(res => {
|
|
|
+ this.msgSuccess(res.msg);
|
|
|
+ _this.backPage();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ _this.msgError('请先选择气瓶!')
|
|
|
}
|
|
|
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//返回
|