diff --git a/src/api/claimAndRefund/receive.js b/src/api/claimAndRefund/receive.js index 8927937..7045a7f 100644 --- a/src/api/claimAndRefund/receive.js +++ b/src/api/claimAndRefund/receive.js @@ -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({ diff --git a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue index 68a3473..26f0f15 100644 --- a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue +++ b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue @@ -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() + }) } },