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 = {}) { export function getProData(params = {}) {
return request({ return request({

View File

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