Commit 1b87e668 authored by houjn@hikoon.cn's avatar houjn@hikoon.cn
parents eac32a12 88f596c9
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<span>{{ addForm.amount }}</span> <span>{{ addForm.amount }}</span>
</el-form-item> </el-form-item>
<el-form-item label-width="0px" prop="currencyId"> <el-form-item label-width="0px" prop="currencyId">
<span>({{getCurrencyLabel(showCurrencyId)}})</span> <span>({{getCurrencyLabel(addForm.currencyId)}})</span>
</el-form-item> </el-form-item>
</div> </div>
<el-form-item <el-form-item
......
...@@ -445,7 +445,7 @@ ...@@ -445,7 +445,7 @@
<span slot="footer"> <span slot="footer">
<template v-if="!isEditing"> <template v-if="!isEditing">
<el-button @click="handleClose">{{ $t('关 闭') }}</el-button> <el-button @click="handleClose">{{ $t('关 闭') }}</el-button>
<el-button type="primary" @click="handleSubmit()">{{ edit ? $t('确认修改') : $t('提 交') }}</el-button> <el-button type="primary" :loading="submitting" @click="handleSubmit()">{{ edit ? $t('确认修改') : $t('提 交') }}</el-button>
</template> </template>
<template v-else> <template v-else>
<el-button type="primary" @click="$router.push('/bpm/process-instance/detail?id=' + formId)">{{ $t('审核中') }}</el-button> <el-button type="primary" @click="$router.push('/bpm/process-instance/detail?id=' + formId)">{{ $t('审核中') }}</el-button>
...@@ -643,6 +643,7 @@ export default { ...@@ -643,6 +643,7 @@ export default {
getDictDatas, getDictDatas,
activeName: 'first', activeName: 'first',
visible: false, visible: false,
submitting: false,
form: { form: {
table: [], table: [],
brandType: undefined, brandType: undefined,
...@@ -829,6 +830,7 @@ export default { ...@@ -829,6 +830,7 @@ export default {
if (!valid || !valid1) { if (!valid || !valid1) {
return return
} }
this.submitting = true
return orderWarehouseIn({ return orderWarehouseIn({
...this.form1, ...this.form1,
brandType: this.warehousing.brandType, brandType: this.warehousing.brandType,
...@@ -844,12 +846,15 @@ export default { ...@@ -844,12 +846,15 @@ export default {
} }
}) })
}).then(r => { }).then(r => {
this.submitting = false
if (r.data) { if (r.data) {
this.$message.success('新增入仓成功') this.$message.success('新增入仓成功')
this.handleClose() this.handleClose()
} else { } else {
this.$message.success('新增入仓失败') this.$message.success('新增入仓失败')
} }
}).catch(() => {
this.submitting = false
}) })
}) })
}) })
...@@ -868,6 +873,7 @@ export default { ...@@ -868,6 +873,7 @@ export default {
} }
if (this.edit) { if (this.edit) {
// 入仓修改 // 入仓修改
this.submitting = true
return orderWarehouseInUpdateApply({ return orderWarehouseInUpdateApply({
...this.form, ...this.form,
brandType: this.warehousing.brandType, brandType: this.warehousing.brandType,
...@@ -888,15 +894,19 @@ export default { ...@@ -888,15 +894,19 @@ export default {
}), }),
copyUserId: this.selectedUsers copyUserId: this.selectedUsers
}).then(r => { }).then(r => {
this.submitting = false
if (r.data) { if (r.data) {
this.$message.success(r.msg || '入仓修改发起成功') this.$message.success(r.msg || '入仓修改发起成功')
this.handleClose() this.handleClose()
} else { } else {
this.$message.success(r.msg || '入仓修改发起失败') this.$message.success(r.msg || '入仓修改发起失败')
} }
}).catch(() => {
this.submitting = false
}) })
} else { } else {
// 首次入仓、入仓补充 // 首次入仓、入仓补充
this.submitting = true
return orderWarehouseIn({ return orderWarehouseIn({
...this.form, ...this.form,
brandType: this.warehousing.brandType, brandType: this.warehousing.brandType,
...@@ -913,12 +923,15 @@ export default { ...@@ -913,12 +923,15 @@ export default {
} }
}), }),
}).then(r => { }).then(r => {
this.submitting = false
if (r.data) { if (r.data) {
this.$message.success('入仓成功') this.$message.success('入仓成功')
this.handleClose() this.handleClose()
} else { } else {
this.$message.success('入仓失败') this.$message.success('入仓失败')
} }
}).catch(() => {
this.submitting = false
}) })
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment