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':