- 确认后将直接标记为打样完成
+ 确认后将直接标记为打样完成
-
- 打样完成
-
{
- this.$message.error((e && e.message) || '加载项目/物料信息异常')
+ this.$message.error((e && e.message) || '加载项目/物料/打样信息异常')
this.oneKeyDialogMode = 'create'
}).finally(() => {
this.saveOneKeyLoading = false
@@ -1690,22 +1629,15 @@ export default {
}
this.saveOneKeyLoading = true
if (this.oneKeyDialogMode === 'edit') {
- const projectPayload = this.buildProjectInfoUpdatePayload(inData)
- const partPayload = this.buildProjectPartUpdatePayload(inData)
- updateProjectInfoTracking(projectPayload).then(({ data }) => {
+ oneKeyUpdateProofTracking(inData).then(({ data }) => {
if (!data || data.code !== 0) {
- throw new Error((data && data.msg) || '修改项目信息失败')
+ throw new Error((data && data.msg) || '修改项目/物料/打样失败')
}
- return updateProjectPartTracking(partPayload)
- }).then(({ data }) => {
- if (!data || data.code !== 0) {
- throw new Error((data && data.msg) || '修改项目物料失败')
- }
- this.$message.success('项目/物料修改成功')
+ this.$message.success('项目/物料/打样修改成功')
this.oneKeyDialogVisible = false
this.getDataList()
}).catch((e) => {
- this.$message.error((e && e.message) || '项目/物料修改异常')
+ this.$message.error((e && e.message) || '项目/物料/打样修改异常')
}).finally(() => {
this.saveOneKeyLoading = false
})
@@ -1739,6 +1671,8 @@ export default {
return
}
this.currentRow = current
+ const projectPartId = this.getTrackingProjectPartId(current) || current.id
+ const projectCategory = this.getProjectCategoryValue(current)
this.proofDialogData = Object.assign(this.getDefaultProofDialogData(), {
trackingId: null,
site: current.site || this.$store.state.user.site,
@@ -1748,11 +1682,11 @@ export default {
buNo: current.buNo,
customerNo: current.customerNo,
customerDesc: current.customerDesc,
- projectPartId: current.projectPartId || current.id,
+ projectPartId: projectPartId,
testPartNo: current.testPartNo,
partDesc: current.partDesc,
- projectCategory: current.projectCategory,
- cProjectTypeDb: current.projectCategory,
+ projectCategory: projectCategory,
+ cProjectTypeDb: projectCategory,
projectManager: current.projectManager,
projectOwner: current.projectOwner,
engineer: current.engineer,
@@ -1767,6 +1701,9 @@ export default {
createBy: this.$store.state.user.name,
updateBy: this.$store.state.user.name
})
+ if (this.isBlankValue(projectCategory)) {
+ this.$message.warning('未获取到项目分类,请手动选择')
+ }
this.proofDialogVisible = true
},
validateSyncToNpiRow (row) {
@@ -2607,6 +2544,12 @@ export default {
color: #409eff;
}
+.finish-tip-highlight {
+ font-size: 13px;
+ font-weight: 700;
+ color: #1f2d3d;
+}
+
.finish-proof-dialog .el-dialog__body {
padding-bottom: 8px;
}