单位工程下拉修改

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

View File

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