This commit is contained in:
bb_pan 2025-11-17 17:17:53 +08:00
parent 1d00227a36
commit ef5740c1a6
2 changed files with 12 additions and 2 deletions

View File

@ -53,6 +53,14 @@ export function getListUnite(data) {
data: data,
})
}
//领料申请租赁单位下拉框
export function getAgreementUnitListApi(data) {
return request({
url: '/material/select/getAgreementUnitList',
method: 'post',
data: data,
})
}
// 项目部-下拉
export function getListDepartApi(data) {

View File

@ -493,7 +493,7 @@ import { getToken } from '@/utils/auth'
import { Base64 } from 'js-base64'
import { forEach } from 'jszip'
import { listUser } from '@/api/system/user'
import { getListProject, getListUnite, getListDepartApi } from '@/api/lease/apply'
import { getListProject, getAgreementUnitListApi, getListDepartApi } from '@/api/lease/apply'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
@ -841,7 +841,7 @@ export default {
},
// ,getUnitList, getProjectList
getUnitList() {
getListUnite({ projectId: null }).then(response => {
getAgreementUnitListApi({ projectId: this.form.projectId }).then(response => {
this.uniteList = response.data
})
},
@ -868,7 +868,9 @@ export default {
handleSelectPro(val) {
console.log('🚀 ~ val:', val)
this.form.projectUnitId = ''
this.form.unitId = ''
this.departList = null
this.getUnitList()
this.getListDepart(val.name)
},
projectChange(val) {