|  | @@ -97,16 +97,21 @@ export default {
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  | -    submit() {
 |  | 
 | 
											
												
													
														|  | -      createGoodsProcurements({
 |  | 
 | 
											
												
													
														|  | -        goodsId: this.goodsId,
 |  | 
 | 
											
												
													
														|  | -        ...this.form,
 |  | 
 | 
											
												
													
														|  | -      })
 |  | 
 | 
											
												
													
														|  | -        .then(() => {
 |  | 
 | 
											
												
													
														|  | -          this.$message.success('添加成功')
 |  | 
 | 
											
												
													
														|  | 
 |  | +    async submit() {
 | 
											
												
													
														|  | 
 |  | +      try {
 | 
											
												
													
														|  | 
 |  | +        await this.$confirm('是否确认提交', '提示', {
 | 
											
												
													
														|  | 
 |  | +          confirmButtonText: '确定',
 | 
											
												
													
														|  | 
 |  | +          cancelButtonText: '取消',
 | 
											
												
													
														|  | 
 |  | +          type: 'warning'
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +        await createGoodsProcurements({
 | 
											
												
													
														|  | 
 |  | +          goodsId: this.goodsId,
 | 
											
												
													
														|  | 
 |  | +          ...this.form,
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +        this.$message.success('添加成功')
 | 
											
												
													
														|  |            this.$listeners.submited()
 |  |            this.$listeners.submited()
 | 
											
												
													
														|  |            this.$listeners.close()
 |  |            this.$listeners.close()
 | 
											
												
													
														|  | -        })
 |  | 
 | 
											
												
													
														|  | 
 |  | +      } catch (error) {}
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |  }
 |  |  }
 |