|
|
|
@ -361,6 +361,8 @@ |
|
|
|
<el-footer style="height:35px;margin-top: 10px;padding-bottom:5px;text-align:center"> |
|
|
|
<el-button type="primary" @click="saveData()">保存</el-button> |
|
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
|
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectSubmit">驳回</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
<!--选择项目模态框--> |
|
|
|
@ -1002,10 +1004,14 @@ import { |
|
|
|
getProjectInformation, // 获取项目信息 |
|
|
|
getCustomerInformation, // 获取客户信息 |
|
|
|
searchProjectInfoList,// 查询项目信息 |
|
|
|
submitChange, // 提交 |
|
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
|
import { |
|
|
|
customerContactSearch, // 客户联系人列表查询 |
|
|
|
} from '@/api/customer/customerContact.js' |
|
|
|
import { |
|
|
|
getNodeAuthority, // 获取节点权限 |
|
|
|
} from '@/api/changeManagement/changeManagement.js' |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import quotationUploadFile from "./quotation_upload_file" |
|
|
|
import DictDataSelect from "../sys/dict-data-select.vue"; |
|
|
|
@ -1020,7 +1026,16 @@ export default { |
|
|
|
computed: { |
|
|
|
priceCheckProperties() { |
|
|
|
return priceCheckProperties |
|
|
|
} |
|
|
|
}, |
|
|
|
quotationInformationFlag () { |
|
|
|
return (value) => { |
|
|
|
let arr = this.plmQuotationInformationArr.filter(a => a.fieldId === value) |
|
|
|
if (arr.length > 0) { |
|
|
|
return arr[0].updateFlag |
|
|
|
} |
|
|
|
return 'N' |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
PriceCheckDetail, |
|
|
|
@ -1139,7 +1154,8 @@ export default { |
|
|
|
quoterName: '', |
|
|
|
priorityLevel: '', |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
limit: 10, |
|
|
|
menuId: this.$route.meta.menuId, |
|
|
|
}, |
|
|
|
// 其它 |
|
|
|
dataListLoading: false, |
|
|
|
@ -1196,7 +1212,12 @@ export default { |
|
|
|
createDate: '', |
|
|
|
createBy: '', |
|
|
|
updateDate: '', |
|
|
|
updateBy: '' |
|
|
|
updateBy: '', |
|
|
|
nodeConclusion: '', |
|
|
|
stepId: '', |
|
|
|
rejectFlag: '', |
|
|
|
rejectStepId: '', |
|
|
|
isReject: '' |
|
|
|
}, |
|
|
|
quotationDetailData: { |
|
|
|
technicalConsiderations: '', |
|
|
|
@ -2025,8 +2046,8 @@ export default { |
|
|
|
customerResponseModalFlag: false, |
|
|
|
projectPartModelFlag: false, |
|
|
|
contactModelFlag: false, |
|
|
|
|
|
|
|
priceCheckDetailList:[], |
|
|
|
plmQuotationInformationArr: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -2259,7 +2280,8 @@ export default { |
|
|
|
* 询价信息编辑模态框 |
|
|
|
* @param row |
|
|
|
*/ |
|
|
|
updateModal(row) { |
|
|
|
async updateModal(row) { |
|
|
|
await this.getNodeAuthority(row) |
|
|
|
this.modalData = { |
|
|
|
flag: '2', |
|
|
|
title: '询价编辑-' + row.quotationNo, |
|
|
|
@ -2299,7 +2321,13 @@ export default { |
|
|
|
confirmInformation: row.confirmInformation, |
|
|
|
quotationResultStatus: row.quotationResultStatus, |
|
|
|
updateBy: this.$store.state.user.name, |
|
|
|
quotationAmount:row.quotationAmount |
|
|
|
quotationAmount:row.quotationAmount, |
|
|
|
|
|
|
|
nodeConclusion: '', |
|
|
|
stepId: row.stepId, |
|
|
|
rejectFlag: row.rejectFlag, |
|
|
|
rejectStepId: row.rejectStepId, |
|
|
|
isReject: row.isReject |
|
|
|
} |
|
|
|
this.priceCheckDetail = row.priceCheckDetail |
|
|
|
this.modalDisableFlag = true |
|
|
|
@ -3220,18 +3248,26 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
updateModalStatus(row, status) { |
|
|
|
let params = JSON.parse(JSON.stringify(row)) |
|
|
|
params.quotationResultStatus = status; |
|
|
|
params.quotationStatus = '下达'; |
|
|
|
quotationInformationEdit(params).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('询价单已下达') |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
this.$message.error(error) |
|
|
|
this.$confirm(`是否确认下达?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let params = JSON.parse(JSON.stringify(row)) |
|
|
|
params.quotationResultStatus = status; |
|
|
|
params.quotationStatus = '下达'; |
|
|
|
params.userName = this.$store.state.user.name |
|
|
|
params.menuId = this.$route.meta.menuId |
|
|
|
quotationInformationEdit(params).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('询价单已下达') |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getPriceCheckDetailList(){ |
|
|
|
@ -3248,7 +3284,70 @@ export default { |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 同意提交 |
|
|
|
agreeSubmit () { |
|
|
|
this.$confirm(`是否确认提交?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.modalData.nodeConclusion = 'Y' |
|
|
|
this.submitData() |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 驳回提交 |
|
|
|
rejectSubmit () { |
|
|
|
this.$confirm(`是否确认驳回?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.modalData.nodeConclusion = 'N' |
|
|
|
this.submitData() |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 提交 |
|
|
|
submitData () { |
|
|
|
let tempData = { |
|
|
|
site: this.modalData.site, |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
quotationNo: this.modalData.quotationNo, |
|
|
|
menuId: this.$route.meta.menuId, |
|
|
|
nodeConclusion: this.modalData.nodeConclusion |
|
|
|
} |
|
|
|
submitChange(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
|
this.submitModalFlag = false |
|
|
|
this.modalFlag = false |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取流程的配置权限 |
|
|
|
async getNodeAuthority (row) { |
|
|
|
let tempData = { |
|
|
|
site: row.site, |
|
|
|
stepId: row.stepId, |
|
|
|
menuId: this.$route.meta.menuId |
|
|
|
} |
|
|
|
await getNodeAuthority(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.plmQuotationInformationArr = data.rows.plmQuotationInformation |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|