Browse Source

2026-01-12

报价流程审批增加项目年销售额(annual_sales)
master
fengyuan_yang 1 day ago
parent
commit
e25c3d0610
  1. 4
      src/views/modules/processManagement/processBindingInfo.vue
  2. 52
      src/views/modules/quote/index.vue

4
src/views/modules/processManagement/processBindingInfo.vue

@ -1319,7 +1319,9 @@
'plm_quote_detail_test', 'plm_quote_detail_test',
'plm_quote_detail_tool' 'plm_quote_detail_tool'
], ],
addTable: []
addTable: [
'plm_quote'
]
} }
} else { } else {
return return

52
src/views/modules/quote/index.vue

@ -474,6 +474,7 @@ export default {
superAdmin: false, superAdmin: false,
rejectVisible: false, rejectVisible: false,
rejectOpinion: '', rejectOpinion: '',
plmQuoteArr: [], // plm_quoteannual_sales
plmQuoteDetailArr: [], plmQuoteDetailArr: [],
defaultQuoteDetailRow: null, // defaultQuoteDetailRow: null, //
userBuList: [], userBuList: [],
@ -483,7 +484,7 @@ export default {
customerDesc:[{required: true, message: '请输入客户名称', trigger: ['blur','change']}], customerDesc:[{required: true, message: '请输入客户名称', trigger: ['blur','change']}],
projectNo:[{required: true, message: '请输入项目编码', trigger: ['blur','change']}], projectNo:[{required: true, message: '请输入项目编码', trigger: ['blur','change']}],
projectDesc:[{required: true, message: '请输入项目名称', trigger: ['blur','change']}], projectDesc:[{required: true, message: '请输入项目名称', trigger: ['blur','change']}],
currency:[{required: true, message: '请输入币种', trigger: ['blur','change']}],
// currency:[{required: true, message: '', trigger: ['blur','change']}],
quoteDate:[{required: true, message: '请选择报价日期', trigger: ['blur','change']}], quoteDate:[{required: true, message: '请选择报价日期', trigger: ['blur','change']}],
quoter:[{required: true, message: '请输入报价专员', trigger: ['blur','change']}], quoter:[{required: true, message: '请输入报价专员', trigger: ['blur','change']}],
}, },
@ -689,6 +690,7 @@ export default {
} }
await getNodeAuthority(tempData).then(({data}) => { await getNodeAuthority(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.plmQuoteArr = data.rows.plm_quote || []
this.plmQuoteDetailArr = data.rows.plm_quote_detail || [] this.plmQuoteDetailArr = data.rows.plm_quote_detail || []
} }
}) })
@ -728,6 +730,20 @@ export default {
}, },
// //
agreeSubmit() { agreeSubmit() {
//
if (this.plmQuoteArr && this.plmQuoteArr.length > 0) {
for (let i = 0; i < this.plmQuoteArr.length; i++) {
const field = this.plmQuoteArr[i]
if (field.required === 'Y') {
const fieldValue = this.saveQuote[field.fieldId]
//
if (!fieldValue && fieldValue !== 0) {
this.$message.warning(field.fieldName + '不能为空!')
return
}
}
}
}
// //
if (this.plmQuoteDetailArr && this.plmQuoteDetailArr.length > 0 && this.defaultQuoteDetailRow) { if (this.plmQuoteDetailArr && this.plmQuoteDetailArr.length > 0 && this.defaultQuoteDetailRow) {
for (let i = 0; i < this.plmQuoteDetailArr.length; i++) { for (let i = 0; i < this.plmQuoteDetailArr.length; i++) {
@ -744,8 +760,10 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.submitLoading = true this.submitLoading = true
// OA
let params = { let params = {
...this.currentQuote, ...this.currentQuote,
annualSales: this.saveQuote.annualSales, // annualSales
userName: this.$store.state.user.name, userName: this.$store.state.user.name,
nodeConclusion: 'Y', nodeConclusion: 'Y',
menuId: this.$route.meta.menuId menuId: this.$route.meta.menuId
@ -756,9 +774,7 @@ export default {
this.saveVisible = false this.saveVisible = false
this.handleSearch() this.handleSearch()
} else { } else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.$alert(data.msg, '错误', { confirmButtonText: '确定' })
} }
this.submitLoading = false this.submitLoading = false
}).catch((error) => { }).catch((error) => {
@ -769,6 +785,20 @@ export default {
}, },
// //
rejectSubmit() { rejectSubmit() {
//
if (this.plmQuoteArr && this.plmQuoteArr.length > 0) {
for (let i = 0; i < this.plmQuoteArr.length; i++) {
const field = this.plmQuoteArr[i]
if (field.required === 'Y') {
const fieldValue = this.saveQuote[field.fieldId]
//
if (!fieldValue && fieldValue !== 0) {
this.$message.warning(field.fieldName + '不能为空!')
return
}
}
}
}
// //
if (this.plmQuoteDetailArr && this.plmQuoteDetailArr.length > 0 && this.defaultQuoteDetailRow) { if (this.plmQuoteDetailArr && this.plmQuoteDetailArr.length > 0 && this.defaultQuoteDetailRow) {
for (let i = 0; i < this.plmQuoteDetailArr.length; i++) { for (let i = 0; i < this.plmQuoteDetailArr.length; i++) {
@ -785,8 +815,10 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.submitLoading = true this.submitLoading = true
// OA
let params = { let params = {
...this.currentQuote, ...this.currentQuote,
annualSales: this.saveQuote.annualSales, // annualSales
userName: this.$store.state.user.name, userName: this.$store.state.user.name,
nodeConclusion: 'N', nodeConclusion: 'N',
rejectOpinion: this.rejectOpinion, rejectOpinion: this.rejectOpinion,
@ -799,9 +831,7 @@ export default {
this.saveVisible = false this.saveVisible = false
this.handleSearch() this.handleSearch()
} else { } else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.$alert(data.msg, '错误', { confirmButtonText: '确定' })
} }
this.submitLoading = false this.submitLoading = false
}).catch((error) => { }).catch((error) => {
@ -832,6 +862,8 @@ export default {
} }
}) })
if (row){ if (row){
// currentQuote getNodeAuthority stepId
this.currentQuote = {...row}
this.saveQuote = { this.saveQuote = {
...row ...row
} }
@ -1400,9 +1432,9 @@ export default {
this.detailFlag = false; this.detailFlag = false;
} }
}, },
'saveQuote.currency'(newVal, oldVal){
this.saveQuote.currency = newVal.toUpperCase()
},
// 'saveQuote.currency'(newVal, oldVal){
// this.saveQuote.currency = newVal.toUpperCase()
// },
'currentQuote'(newVal, oldVal){ 'currentQuote'(newVal, oldVal){
if (newVal && this.isMenu){ if (newVal && this.isMenu){
this.getPriceCheckProperties(); this.getPriceCheckProperties();

Loading…
Cancel
Save