|
|
@ -872,6 +872,7 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
flag:'', |
|
|
flag:'', |
|
|
bu: '', |
|
|
bu: '', |
|
|
buNo: '', |
|
|
buNo: '', |
|
|
|
|
|
buDesc: '', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
projectNo: '', |
|
|
projectNo: '', |
|
|
@ -2612,6 +2613,18 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
// return |
|
|
// return |
|
|
// } |
|
|
// } |
|
|
if (this.modalData.flag === '1') { |
|
|
if (this.modalData.flag === '1') { |
|
|
|
|
|
console.log(this.userBuList) |
|
|
|
|
|
// 遍历userBuList |
|
|
|
|
|
this.userBuList.forEach((item) => { |
|
|
|
|
|
if (this.modalData.bu === item.buNo) { |
|
|
|
|
|
this.modalData.buDesc = item.buDesc |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
this.$confirm('项目 ' + this.modalData.projectNo + '-' + this.modalData.projectDesc + ' 的BU为:' + this.modalData.buDesc + ',是否确认继续保存?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
if (new Date(this.modalData.needDate).getTime() < new Date().getTime()) { |
|
|
if (new Date(this.modalData.needDate).getTime() < new Date().getTime()) { |
|
|
this.$confirm('预计完成日期小于当前日期,确定继续保存?', '提示', { |
|
|
this.$confirm('预计完成日期小于当前日期,确定继续保存?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
@ -2620,7 +2633,7 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.modalData.status = '草稿' |
|
|
this.modalData.status = '草稿' |
|
|
let inData = { |
|
|
let inData = { |
|
|
projectId : null, |
|
|
|
|
|
|
|
|
projectId: null, |
|
|
projectNo: this.modalData.projectNo, |
|
|
projectNo: this.modalData.projectNo, |
|
|
projectDesc: this.modalData.projectDesc, |
|
|
projectDesc: this.modalData.projectDesc, |
|
|
projectCategory: this.modalData.projectCategory, |
|
|
projectCategory: this.modalData.projectCategory, |
|
|
@ -2645,8 +2658,8 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
customerDesc: this.modalData.customerDesc, |
|
|
customerDesc: this.modalData.customerDesc, |
|
|
status: this.modalData.status, |
|
|
status: this.modalData.status, |
|
|
active: this.modalData.active, |
|
|
active: this.modalData.active, |
|
|
closeDate : this.modalData.projectCloseDate, |
|
|
|
|
|
buildDate : this.modalData.projectCreationDate, |
|
|
|
|
|
|
|
|
closeDate: this.modalData.projectCloseDate, |
|
|
|
|
|
buildDate: this.modalData.projectCreationDate, |
|
|
priority: this.modalData.priority, |
|
|
priority: this.modalData.priority, |
|
|
testPartNo: 'P000000', |
|
|
testPartNo: 'P000000', |
|
|
partDesc: '无物料', |
|
|
partDesc: '无物料', |
|
|
@ -2685,11 +2698,10 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
message: '已取消操作' |
|
|
message: '已取消操作' |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
|
|
|
} else { |
|
|
this.modalData.status = '草稿' |
|
|
this.modalData.status = '草稿' |
|
|
let inData = { |
|
|
let inData = { |
|
|
projectId : null, |
|
|
|
|
|
|
|
|
projectId: null, |
|
|
projectNo: this.modalData.projectNo, |
|
|
projectNo: this.modalData.projectNo, |
|
|
projectDesc: this.modalData.projectDesc, |
|
|
projectDesc: this.modalData.projectDesc, |
|
|
projectCategory: this.modalData.projectCategory, |
|
|
projectCategory: this.modalData.projectCategory, |
|
|
@ -2714,8 +2726,8 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
customerDesc: this.modalData.customerDesc, |
|
|
customerDesc: this.modalData.customerDesc, |
|
|
status: this.modalData.status, |
|
|
status: this.modalData.status, |
|
|
active: this.modalData.active, |
|
|
active: this.modalData.active, |
|
|
closeDate : this.modalData.projectCloseDate, |
|
|
|
|
|
buildDate : this.modalData.projectCreationDate, |
|
|
|
|
|
|
|
|
closeDate: this.modalData.projectCloseDate, |
|
|
|
|
|
buildDate: this.modalData.projectCreationDate, |
|
|
priority: this.modalData.priority, |
|
|
priority: this.modalData.priority, |
|
|
testPartNo: 'P000000', |
|
|
testPartNo: 'P000000', |
|
|
partDesc: '无物料', |
|
|
partDesc: '无物料', |
|
|
@ -2752,6 +2764,13 @@ import {searchBusinessInfo7} from "../../../api/factory/site"; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
// 如果点击取消提示已取消操作 |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'info', |
|
|
|
|
|
message: '已取消操作' |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
} else if (this.modalData.flag === '2'){ |
|
|
} else if (this.modalData.flag === '2'){ |
|
|
let inData = { |
|
|
let inData = { |
|
|
projectId : this.modalData.projectId, |
|
|
projectId : this.modalData.projectId, |
|
|
|