|
|
|
@ -387,7 +387,7 @@ |
|
|
|
</el-tabs> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top: 10px;padding-bottom:5px;text-align:center"> |
|
|
|
<el-button type="primary" v-if="!detailVisible" @click="saveData()">保存</el-button> |
|
|
|
<el-button type="primary" v-if="!detailVisible" @click="saveData">保存</el-button> |
|
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
|
<template v-if="isAuth('102001001:submit')"> |
|
|
|
<el-button v-if="modalData.quotationStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
@ -927,6 +927,14 @@ export default { |
|
|
|
this.projectPartListSelections = [] |
|
|
|
} |
|
|
|
}, |
|
|
|
saveLoading(newVal,oldVal){ |
|
|
|
// 三秒后关闭 |
|
|
|
if (newVal === true){ |
|
|
|
setTimeout(() => { |
|
|
|
this.saveLoading = false |
|
|
|
}, 3000) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -2546,21 +2554,15 @@ export default { |
|
|
|
} |
|
|
|
this.confirmProjectPart(); |
|
|
|
if (this.modalData.flag === '1') { |
|
|
|
this.saveLoading = true |
|
|
|
quotationInformationSave(this.modalData).then(({data}) => { |
|
|
|
this.saveLoading = false |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.modalFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$message('操作成功') |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
this.$message(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
|