|
@@ -320,7 +320,7 @@
|
|
|
<a-popconfirm title="确定放弃新增?" @confirm="handleCancel" okText="确定" cancelText="取消">
|
|
|
<a-button :style="{ marginRight: '8px' }">取消</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <a-button type="primary" @click="submitAdd">
|
|
|
+ <a-button type="primary" @click="submitAdd" :disabled="confirmLoading">
|
|
|
保存
|
|
|
</a-button>
|
|
|
</div>
|
|
@@ -899,9 +899,11 @@ export default {
|
|
|
syPackingListFabricItem:this.addFabricData
|
|
|
}
|
|
|
await this.JudgeVluabled(newObj)
|
|
|
+ this.confirmLoading = true
|
|
|
if(this.judge == 0){
|
|
|
if(this.defaultMethod === 'add'){
|
|
|
addFabricList(newObj).then(res => {
|
|
|
+ this.confirmLoading = false
|
|
|
if (res.success) {
|
|
|
this.$message.success('新增成功')
|
|
|
this.close()
|
|
@@ -916,6 +918,7 @@ export default {
|
|
|
}else {
|
|
|
newObj.id = this.addFabric.id,
|
|
|
editFabricList(newObj).then(res => {
|
|
|
+ this.confirmLoading = false
|
|
|
if (res.success) {
|
|
|
this.$message.success('编辑成功')
|
|
|
this.close()
|