From 9ce28811e94fa042adb7cabe6581b0393c6d576d Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期一, 09 十二月 2024 18:17:11 +0800 Subject: [PATCH] ll --- admin/src/views/finance/components/bullEdit.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/admin/src/views/finance/components/bullEdit.vue b/admin/src/views/finance/components/bullEdit.vue index 0d77432..40128b5 100644 --- a/admin/src/views/finance/components/bullEdit.vue +++ b/admin/src/views/finance/components/bullEdit.vue @@ -18,14 +18,14 @@ </el-select> </el-form-item> <el-form-item label="浠樻鏂�" prop="renterName"> - <el-input v-model="form.renterName" disabled placeholder="璇疯緭鍏ュ簲鏀堕噾棰�" v-trim /> + <el-input v-model="form.renterName" disabled placeholder="浠樻鏂�" v-trim /> </el-form-item> <el-form-item label="鎴挎簮" prop="ywContractRoomList"> - <el-select v-model="form.ywContractRoomList" multiple placeholder="璇烽�夋嫨"> + <el-select v-model="form.ywContractRoomList" @click="clickHouse" multiple placeholder="璇烽�夋嫨"> <el-option v-for="(item, index) in houseList" :key="index" - :value="item.id" + :value="item.roomId" :label="item.projectName + item.buildingName + item.floorName + item.roomName" /> </el-select> </el-form-item> @@ -149,6 +149,7 @@ methods: { open (title, target) { this.title = title + this.form.feeType = 0 this.form.multifileList = [] this.getListAll() this.getCompanyList() @@ -168,13 +169,19 @@ } }) }, + clickHouse () { + if (!this.form.contractId) { + return this.$message.warning('璇峰厛閫夋嫨鍚堝悓') + } + }, changeContract (e) { this.form.renterName = this.contract.filter(item => { if (item.id === e) { + this.form.companyId = item.companyId return item } })[0].renterName - this.getHouseDate() + // this.getHouseDate() }, getHouseDate () { getContractRoom({ contractId: this.form.contractId, type: 0 }) @@ -213,7 +220,7 @@ this.$refs.selectHouse.open('閫夋嫨鎴挎簮', { contractId: this.form.contractId, type: 0 }) }, getCompanyList () { - companyList({}) + companyList({ type: 2, status: 0 }) .then(res => { this.comparyList = res }) -- Gitblit v1.9.3