| | |
| | | <template> |
| | | <div v-loading="isLoading" element-loading-text="请稍候..." element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(255, 255, 255, 0.8)" style="height: 100%; padding: 20px; position: relative;"> |
| | | <div class="app-container"> |
| | | <el-dialog :title="title" :visible.sync="open1" width="1000px" append-to-body> |
| | | <el-form ref="form1" :model="form1" :rules="rules1" label-width="100px" :inline="true"> |
| | |
| | | <Packages ref="aaa" @add="handleChanges" /> |
| | | <selectName ref="bbb" @add="handleChangesName" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | return { |
| | | isSubmitting: false, |
| | | contentLoading: false, |
| | | isLoading: false, |
| | | open1: false, |
| | | filterage: "", |
| | | checkedkeys: [], |
| | |
| | | |
| | | // 项目提交 |
| | | submit() { |
| | | this.isLoading = true; |
| | | if (this.form.cusIdcard) { |
| | | var cusId = this.form.cusIdcard; |
| | | } else { |
| | |
| | | this.processOrderItems(cusId); |
| | | } |
| | | this.isSubmitting = false; // 提交完成后重置标志 |
| | | // this.contentLoading = false; |
| | | this.isLoading = false; |
| | | }) |
| | | .catch(() => { |
| | | this.isSubmitting = false; // 确保在错误情况下也重置标志 |
| | | // this.contentLoading = false; |
| | | this.isLoading = false; |
| | | }); |
| | | } else { |
| | | getaddtTransition(data) |
| | |
| | | this.processOrderItems(cusId); |
| | | } |
| | | this.isSubmitting = false; // 提交完成后重置标志 |
| | | this.isLoading = false; |
| | | // this.contentLoading = false; |
| | | }) |
| | | .catch(() => { |
| | | this.isSubmitting = false; // 确保在错误情况下也重置标志 |
| | | this.isLoading = false; |
| | | // this.contentLoading = false; |
| | | }); |
| | | } |