Browse Source

2025-1-9

master
qiezi 1 year ago
parent
commit
83bd53fe46
  1. 26
      src/views/modules/quotation/requestForQuote.vue
  2. 2
      src/views/modules/quote/detail/primary/quoteDetailRouting.vue

26
src/views/modules/quotation/requestForQuote.vue

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

2
src/views/modules/quote/detail/primary/quoteDetailRouting.vue

@ -76,7 +76,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100,
columnWidth: 120,
},{ },{
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 5011, functionId: 5011,

Loading…
Cancel
Save