|
@@ -323,7 +323,7 @@
|
|
|
|
|
|
<div class="page-footer">
|
|
|
<div class="footer">
|
|
|
- <el-button type="primary" @click="clickSubmitForm(1)">保 存</el-button>
|
|
|
+ <el-button type="primary" :loading="btnLoading" @click="clickSubmitForm(1)">保 存</el-button>
|
|
|
<!-- <el-button type="primary" @click="clickSubmitForm(2)">提交审核</el-button>-->
|
|
|
<el-popconfirm title="确定关闭吗?" style="margin-left: 10px" @onConfirm="goBack">
|
|
|
<el-button slot="reference">返回列表</el-button>
|
|
@@ -523,7 +523,7 @@ export default {
|
|
|
{ value: '医院医疗', label: '医院医疗' },
|
|
|
{ value: '其他', label: '其他' }
|
|
|
],
|
|
|
-
|
|
|
+ btnLoading: false,
|
|
|
typeList: [],
|
|
|
salesTypeList: [],
|
|
|
salesmanList: [],
|
|
@@ -904,6 +904,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
clickSubmitForm(type) {
|
|
|
+ this.btnLoading = true
|
|
|
this.$refs.mainForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
for (let i = 0; i < this.goodsList.length; i++) {
|
|
@@ -962,6 +963,8 @@ export default {
|
|
|
if (this.listItem) {
|
|
|
params.enginInfoId = this.listItem.enginInfoId
|
|
|
editEngin(params).then(res => {
|
|
|
+ this.btnLoading = false
|
|
|
+
|
|
|
this.$successMsg('编辑成功')
|
|
|
this.goBack()
|
|
|
})
|
|
@@ -971,6 +974,8 @@ export default {
|
|
|
params.customerId = this.mainForm.jxsId
|
|
|
addEngin(params).then(res => {
|
|
|
this.$successMsg('保存成功')
|
|
|
+ this.btnLoading = false
|
|
|
+
|
|
|
this.goBack()
|
|
|
})
|
|
|
}
|