|
|
|
@ -532,7 +532,7 @@ |
|
|
|
</el-tabs> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="saveData()">保存</el-button> |
|
|
|
<el-button type="primary" :loading="saveLoading" @click="saveData()">保存</el-button> |
|
|
|
<el-button type="primary" @click="closeModal()">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
@ -1738,6 +1738,7 @@ import { |
|
|
|
manufacturingInfoFlag: false, // Manufacturing标识 |
|
|
|
planningInfoFlag: false, // planning标识 |
|
|
|
partItemInfoFlag: false, // 属性信息标识 |
|
|
|
saveLoading: false |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -2508,6 +2509,7 @@ import { |
|
|
|
|
|
|
|
saveData2 () { |
|
|
|
this.modalData.partItemList = this.partItemList |
|
|
|
this.saveLoading = true |
|
|
|
if (this.modalData.flag === '1' || this.modalData.flag === '3') { |
|
|
|
partInformationSave2(this.modalData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -2524,6 +2526,8 @@ import { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).finally(()=>{ |
|
|
|
this.saveLoading = false |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.modalData.mainInfoFlag = this.mainInfoFlag |
|
|
|
@ -2546,6 +2550,8 @@ import { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).finally(()=>{ |
|
|
|
this.saveLoading = false |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|