diff --git a/src/views/main/Taskmanage/BcFileDetail/Editing.vue b/src/views/main/Taskmanage/BcFileDetail/Editing.vue index 87ce835..8d946e7 100644 --- a/src/views/main/Taskmanage/BcFileDetail/Editing.vue +++ b/src/views/main/Taskmanage/BcFileDetail/Editing.vue @@ -2,7 +2,7 @@
- +

Booking Confirmation({{ form.carrierId }})

订舱时间:{{ form.bookingConfirmDate }}

@@ -339,7 +339,7 @@ - + @@ -378,7 +378,7 @@ @search="SearchCustomer" @change="ChangeCustomer" > - + {{ item.shortName }} @@ -555,7 +555,15 @@ - + {{ item.name }} @@ -629,7 +637,7 @@ export default { }, ChangeCustomer(e) { this.CustomerList.forEach(item => { - if (item.codeName == e) { + if (item.id == e) { this.CreateData.customerName = item.shortName } }) @@ -664,7 +672,10 @@ export default { }) }, FnCancelTask() { - CancelTaskBC().then(res => { + const ApiData = { + taskPKId: this.$route.query.taskPKId + } + CancelTaskBC(ApiData).then(res => { if (res.data.succ) { this.$message.success(res.data.msg) } else { @@ -678,7 +689,7 @@ export default { getList() { this.spinning = true const ApiData = { - taskPkId: this.$route.query.taskPKId + taskPKId: this.$route.query.taskPKId } GetInfoByTaskId(ApiData).then(res => { console.log(res.data) @@ -720,8 +731,10 @@ export default { }, OpenModal() { this.visible = true + this.CreateData = {} }, OpenUser() { + this.UserId = '' this.UserVisible = true }, handleOk() { @@ -734,8 +747,8 @@ export default { let ApiData = { bcTaskId: this.$route.query.taskPKId, - bcPkId: '', - slotId: '', + // bcPkId: '', + // slotId: '', projectList, ...this.CreateData } @@ -751,7 +764,7 @@ export default { }, UserhandleOk() { const ApiData = { - taskPkId: this.$route.query.taskPKId, + taskPKId: this.$route.query.taskPKId, userId: this.UserId } TransferTask(ApiData).then(res => { @@ -766,16 +779,16 @@ export default { }, Rcolor(hexColor) { let hex = hexColor.replace('#', '').toLowerCase() - let red = parseInt(hex.substring(0, 2), 16) - 80 - let green = parseInt(hex.substring(2, 4), 16) - 80 - let blue = parseInt(hex.substring(4, 6), 16) + let red = parseInt(hex.substring(0, 2), 16) - 90 + let green = parseInt(hex.substring(2, 4), 16) - 90 + let blue = parseInt(hex.substring(4, 6), 16) - 50 return `rgb(${red}, ${green}, ${blue})` } } }