描述:查询房间传递企业id

This commit is contained in:
SelfRidicule 2024-06-12 09:22:22 +08:00
parent 14970b6c98
commit 769a3c8032

View File

@ -408,40 +408,31 @@
<script> <script>
import { getTenantList } from '@/api/tenant' import { getTenantList } from '@/api/tenant'
let downloadLoadingInstance
import moment from 'moment'
import storage from 'store' import storage from 'store'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import { import {
saveCustomer,
getCustomer, getCustomer,
getQiXinBasicInfo, getQiXinBasicInfo,
getStaffList,
selectCustomerStaffList,
updateStaffByCustomer,
importData, importData,
exportTemplate, saveCustomer,
selectUserDeviceList, saveUserEquipment,
selectCustomerStaffList,
selectEquipmentListById, selectEquipmentListById,
saveUserEquipment selectUserDeviceList,
updateStaffByCustomer
} from '@/api/admin/customer' } from '@/api/admin/customer'
import { import { getRoomListByBuildIdsRq } from '@/api/admin/meeting/roomContent'
getFloorList,
getRoomListByFloorId,
getRoomListByBuildIdsRq
} from '@/api/admin/meeting/roomContent'
import { getCustomerContractList } from '@/api/admin/customerContract' import { getCustomerContractList } from '@/api/admin/customerContract'
import CustomerContactsModal from './modules/CustomerContactsModal.vue' import CustomerContactsModal from './modules/CustomerContactsModal.vue'
import CustomerAttachmentList from './modules/CustomerAttachmentList.vue' import CustomerAttachmentList from './modules/CustomerAttachmentList.vue'
import pick from 'lodash.pick' import pick from 'lodash.pick'
import { message } from 'ant-design-vue'
import { download } from '@/utils/request'
import { getParkList } from '@/api/admin/park' import { getParkList } from '@/api/admin/park'
import { getBuildingList } from '@/api/admin/building' import { getBuildingList } from '@/api/admin/building'
import { getBuildingDetailList } from '@/api/admin/buildingDetail' import { getBuildingDetailList } from '@/api/admin/buildingDetail'
import { getInfo } from '@/api/login' import { getInfo } from '@/api/login'
let downloadLoadingInstance
export default { export default {
name: 'BaseForm', name: 'BaseForm',
components: { components: {
@ -586,8 +577,8 @@ export default {
roomList: [], // roomList: [], //
tenantEnable: false, tenantEnable: false,
parkEnable: false, parkEnable: false,
mdl: {} mdl: {},
customerId: null
} }
}, },
filters: { filters: {
@ -720,7 +711,7 @@ export default {
this.getRoomListByFloorIdMethod(buildingDetailId) this.getRoomListByFloorIdMethod(buildingDetailId)
}, },
// //
getRoomListByFloorIdMethod(buildingDetailIds, ids) { getRoomListByFloorIdMethod(buildingDetailIds) {
// //
this.mdl.roomIds = [] // this.mdl.roomIds = [] //
@ -736,7 +727,7 @@ export default {
} }
// //
getRoomListByBuildIdsRq({ getRoomListByBuildIdsRq({
'ids': ids, 'customerId': this.customerId,
'buildingDetailIds': buildingDetailIds, 'buildingDetailIds': buildingDetailIds,
'type': type 'type': type
}).then((res) => { }).then((res) => {
@ -861,6 +852,7 @@ export default {
}, },
handleInit() { handleInit() {
const { customerId } = this.$route.query const { customerId } = this.$route.query
this.customerId = customerId
if (customerId) { if (customerId) {
getCustomer(customerId).then(res => { getCustomer(customerId).then(res => {
this.mdl = Object.assign(this.mdl, res) this.mdl = Object.assign(this.mdl, res)