|
@@ -393,7 +393,7 @@
|
|
|
<div class="page-footer">
|
|
|
<div class="footer">
|
|
|
<!-- <el-button type="primary" @click="clickSubmitForm(1)">保 存</el-button> -->
|
|
|
- <el-button type="primary" @click="clickSubmitForm(2)">提交审核</el-button>
|
|
|
+ <el-button type="primary" :loading="btnLoading" @click="clickSubmitForm(2)">提交审核</el-button>
|
|
|
<el-popconfirm title="确定关闭吗?" style="margin-left: 10px" @onConfirm="goBack">
|
|
|
<el-button slot="reference">返回列表</el-button>
|
|
|
</el-popconfirm>
|
|
@@ -583,7 +583,8 @@ export default {
|
|
|
flag: false,
|
|
|
isFirst: false,
|
|
|
salesmanList: [],
|
|
|
- isPlanOrder: ''
|
|
|
+ isPlanOrder: '',
|
|
|
+ btnLoading: false
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1034,6 +1035,7 @@ export default {
|
|
|
|
|
|
// 保存 / 提交审核
|
|
|
clickSubmitForm(type) {
|
|
|
+ this.btnLoading = true
|
|
|
this.$refs.mainForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.goodsList.length < 1) {
|
|
@@ -1108,6 +1110,8 @@ export default {
|
|
|
this.$successMsg('编辑成功')
|
|
|
this.goBack()
|
|
|
|
|
|
+ }).finally(() => {
|
|
|
+ this.btnLoading = false
|
|
|
})
|
|
|
} else {
|
|
|
params.customerNumber = this.mainForm.jxsNum
|
|
@@ -1117,6 +1121,8 @@ export default {
|
|
|
this.$successMsg('新增成功')
|
|
|
this.goBack()
|
|
|
|
|
|
+ }).finally(() => {
|
|
|
+ this.btnLoading = false
|
|
|
})
|
|
|
}
|
|
|
} else if (type === 2) {
|
|
@@ -1127,7 +1133,9 @@ export default {
|
|
|
this.$successMsg('提交审核成功')
|
|
|
this.goBack()
|
|
|
|
|
|
- })
|
|
|
+ }).finally(() => {
|
|
|
+ this.btnLoading = false
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
})
|