Merge branch 'main' of http://192.168.0.75:3000/bonus/nw-cqdevicemgt-ui
This commit is contained in:
commit
e60a5b0f44
|
|
@ -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({
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue