|
@@ -340,7 +340,7 @@
|
|
|
<a-popconfirm title="确定放弃新增?" @confirm="handleCancel" okText="确定" cancelText="取消">
|
|
|
<a-button :style="{ marginRight: '8px' }">取消</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <a-button type="primary" @click="submitAdd" v-preventReClick="2000">
|
|
|
+ <a-button type="primary" @click="submitAdd" :disabled="confirmLoading">
|
|
|
保存
|
|
|
</a-button>
|
|
|
</div>
|
|
@@ -853,10 +853,11 @@ export default {
|
|
|
newObj.customerAbbreviation=this.clothesAdd.customerAbbreviation,
|
|
|
newObj.depositaryReceiptNo = this.clothesAdd.depositaryReceiptNo
|
|
|
await this.JudgeVluabled()
|
|
|
+ this.confirmLoading = true
|
|
|
if(this.judge == 0){
|
|
|
-
|
|
|
if(this.editDecide === 'edit'){
|
|
|
editSpltList(newObj).then(res => {
|
|
|
+ this.confirmLoading = false
|
|
|
if (res.success) {
|
|
|
this.$message.success('编辑成功')
|
|
|
this.close()
|
|
@@ -869,6 +870,7 @@ export default {
|
|
|
})
|
|
|
}else {
|
|
|
addSpltList(newObj).then(res => {
|
|
|
+ this.confirmLoading = false
|
|
|
if (res.success) {
|
|
|
this.$message.success('新增成功')
|
|
|
this.close()
|