From 30108297680da9da9f6d8e6d12597ebf64fbdc22 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Tue, 13 Jun 2023 16:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingLedger/detail/components/autoView.vue | 3 ++- .../BookingLedger/list/components/selectView.vue | 3 ++- src/views/main/BookingTemplate/index.vue | 14 ++++++++++++-- .../main/ViewDeletedList/components/selectView.vue | 3 ++- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/main/BookingLedger/detail/components/autoView.vue b/src/views/main/BookingLedger/detail/components/autoView.vue index 8a24604..283dd86 100644 --- a/src/views/main/BookingLedger/detail/components/autoView.vue +++ b/src/views/main/BookingLedger/detail/components/autoView.vue @@ -57,6 +57,7 @@ import { getVesselInfoService, GetForwarderlist, BookingTemplate, + GetTemplateShare, CodeCountryList, GetPortloadlist, GetPortlist @@ -151,7 +152,7 @@ export default { case 'GetForwarderlist': return GetForwarderlist case 'BookingTemplate': - return BookingTemplate + return GetTemplateShare case 'CodeCountryList': return CodeCountryList case 'GetPortloadlist': diff --git a/src/views/main/BookingLedger/list/components/selectView.vue b/src/views/main/BookingLedger/list/components/selectView.vue index 805eab1..e89236d 100644 --- a/src/views/main/BookingLedger/list/components/selectView.vue +++ b/src/views/main/BookingLedger/list/components/selectView.vue @@ -60,6 +60,7 @@ import { GetPortloadlist, GetPortlist, BookingTemplate, + GetTemplateShare, DjyCustomerpage, DjyCustomerSuggest, getContractno, @@ -201,7 +202,7 @@ export default { case 'GetPortlist': return GetPortlist case 'BookingTemplate': - return BookingTemplate + return GetTemplateShare case 'DjyCustomerpage': return DjyCustomerpage case 'DjyCustomerSuggest': diff --git a/src/views/main/BookingTemplate/index.vue b/src/views/main/BookingTemplate/index.vue index 1695679..4daa60d 100644 --- a/src/views/main/BookingTemplate/index.vue +++ b/src/views/main/BookingTemplate/index.vue @@ -97,7 +97,7 @@ { - console.log(res) + if (res.success) { + const arrId = [] + const arrName = [] + res.data.forEach(item => { + arrId.push(item.shareToId) + arrName.push(item.shareToName) + }) + this.selectUserId = arrId + this.selectUserName = arrName + this.form.setFieldsValue({ 'userIds': arrId, 'remark': res.data[0] ? res.data[0].remark : '' }) + } }) }, handleSearch(e) { diff --git a/src/views/main/ViewDeletedList/components/selectView.vue b/src/views/main/ViewDeletedList/components/selectView.vue index 805eab1..e89236d 100644 --- a/src/views/main/ViewDeletedList/components/selectView.vue +++ b/src/views/main/ViewDeletedList/components/selectView.vue @@ -60,6 +60,7 @@ import { GetPortloadlist, GetPortlist, BookingTemplate, + GetTemplateShare, DjyCustomerpage, DjyCustomerSuggest, getContractno, @@ -201,7 +202,7 @@ export default { case 'GetPortlist': return GetPortlist case 'BookingTemplate': - return BookingTemplate + return GetTemplateShare case 'DjyCustomerpage': return DjyCustomerpage case 'DjyCustomerSuggest':