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 = {}) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue