|
@@ -52,7 +52,7 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<el-button @click="close">取 消</el-button>
|
|
<el-button @click="close">取 消</el-button>
|
|
|
- <el-button v-if="!form.id" type="primary" @click="save">确 定</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="!form.id" :loading="loading" type="primary" @click="save">确 定</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<!-- 选择支持人员弹窗 -->
|
|
<!-- 选择支持人员弹窗 -->
|
|
@@ -82,6 +82,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ loading: false,
|
|
|
form: {
|
|
form: {
|
|
|
nboId: undefined,
|
|
nboId: undefined,
|
|
|
nboName: undefined,
|
|
nboName: undefined,
|
|
@@ -219,6 +220,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
showEdit(row) {
|
|
showEdit(row) {
|
|
|
|
|
+ this.loading = false
|
|
|
this.getBusinessList()
|
|
this.getBusinessList()
|
|
|
if (!row) {
|
|
if (!row) {
|
|
|
this.title = '添加'
|
|
this.title = '添加'
|
|
@@ -295,7 +297,9 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
this.form.formData = items
|
|
this.form.formData = items
|
|
|
|
|
+ this.loading = true
|
|
|
const { msg } = await deliverApi.addDeliverOrder(this.form)
|
|
const { msg } = await deliverApi.addDeliverOrder(this.form)
|
|
|
|
|
+ this.loading = false
|
|
|
this.$baseMessage(msg, 'success', 'vab-hey-message-success')
|
|
this.$baseMessage(msg, 'success', 'vab-hey-message-success')
|
|
|
this.$emit('fetch-data')
|
|
this.$emit('fetch-data')
|
|
|
this.close()
|
|
this.close()
|