This commit is contained in:
hongchao 2025-02-27 14:40:40 +08:00
commit e60a5b0f44
2 changed files with 27 additions and 0 deletions

View File

@ -95,6 +95,15 @@ export function getUnitData(params = {}) {
})
}
// 获取-长期领用-单位列表
export function getLevelTwoUnitCbx(params = {}) {
return request({
url: '/material/select/getLevelTwoUnitCbx',
method: 'post',
data: params,
})
}
// 获取 工程 列表
export function getProData(params = {}) {
return request({

View File

@ -357,6 +357,7 @@ import {
getCostBearingApi,
getAgreementInfoByIdApi,
getHoldingPoleSelListApi,
getLevelTwoUnitCbx,
} from '@/api/claimAndRefund/receive'
import { getInfo } from '@/api/login'
export default {
@ -654,6 +655,13 @@ export default {
this.GetAgreementInfoById()
},
async getLevelTwoUnitCbx() {
const res = await getLevelTwoUnitCbx({id: ''})
console.log('🚀 ~ getLevelTwoUnitCbx ~ res:', res)
this.unitList = res.data
this.GetAgreementInfoById()
},
//
async GetProData() {
const params = {
@ -1135,10 +1143,20 @@ export default {
//
leaseTypeChange(val) {
console.log('🚀 ~ leaseTypeChange ~ val:', val)
if (val == 0) {
this.$set(this.queryParams, 'costBearingParty', '')
this.GetUnitData()
this.GetProData()
} else {
this.$delete(this.queryParams, 'costBearingParty')
this.queryParams.unitId = ''
this.queryParams.proId = ''
this.proList = []
this.getLevelTwoUnitCbx()
this.$nextTick(() => {
this.$refs.queryForm.clearValidate()
})
}
},