单位工程下拉修改

This commit is contained in:
hongchao 2026-01-28 15:36:36 +08:00
parent 6aaa6898f1
commit 40523d5595
2 changed files with 12 additions and 9 deletions

View File

@ -777,10 +777,13 @@
import { getListLeaseApply, getApplyInfo, getCheckInfo } from '@/api/lease/apply' import { getListLeaseApply, getApplyInfo, getCheckInfo } from '@/api/lease/apply'
import { outInfoList, getDetailsByTypeId, submitOut, submitNumOut, rejectLeaseOut, getOutNumApi,deleteLeaseOut,updatePreNum } from '@/api/lease/out' import { outInfoList, getDetailsByTypeId, submitOut, submitNumOut, rejectLeaseOut, getOutNumApi,deleteLeaseOut,updatePreNum } from '@/api/lease/out'
import { import {
getProjectList,
getUnitList,
getImpUnitNameListApi getImpUnitNameListApi
} from '@/api/back/index.js' } from '@/api/back/index.js'
import {
getProData,
getUnitData,
} from '@/api/lease/outbound.js'
import vueEasyPrint from 'vue-easy-print' import vueEasyPrint from 'vue-easy-print'
import Treeselect from "@riophae/vue-treeselect" import Treeselect from "@riophae/vue-treeselect"
import "@riophae/vue-treeselect/dist/vue-treeselect.css" import "@riophae/vue-treeselect/dist/vue-treeselect.css"
@ -932,7 +935,7 @@ export default {
}, },
// //
async GetUnitData() { async GetUnitData() {
const res = await getUnitList({}) const res = await getUnitData({})
this.unitList = res.data this.unitList = res.data
console.log('🚀 ~ this.unitList:', this.unitList) console.log('🚀 ~ this.unitList:', this.unitList)
}, },
@ -944,7 +947,7 @@ export default {
// //
async GetProData() { async GetProData() {
const params = { unitId: this.queryParams.leaseUnitId} const params = { unitId: this.queryParams.leaseUnitId}
const res = await getProjectList({}) const res = await getProData({})
this.proList = res.data this.proList = res.data
this.queryParams.leaseProjectId=null this.queryParams.leaseProjectId=null
}, },

View File

@ -205,9 +205,9 @@ import {
getProjUsingRecordListApi,getProjUsingRecordListNoPage getProjUsingRecordListApi,getProjUsingRecordListNoPage
} from '@/api/stquery/stquery'; } from '@/api/stquery/stquery';
import { import {
getProjectList, getProData,
getUnitList, getUnitData,
} from '@/api/back/index.js' } from '@/api/lease/outbound.js'
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default { export default {
@ -308,7 +308,7 @@ export default {
const params = { const params = {
// projectId: this.queryParams.proId /* */, // projectId: this.queryParams.proId /* */,
} }
const res = await getUnitList(params) const res = await getProData(params)
this.unitList = res.data this.unitList = res.data
}, },
unitChange(val){ unitChange(val){
@ -325,7 +325,7 @@ export default {
// //
async GetProData() { async GetProData() {
const params = { unitId: this.queryParams.unitId} const params = { unitId: this.queryParams.unitId}
const res = await getProjectList(params) const res = await getProData(params)
this.proList = res.data this.proList = res.data
this.queryParams.proId=null this.queryParams.proId=null
}, },