This commit is contained in:
parent
1d00227a36
commit
ef5740c1a6
|
|
@ -53,6 +53,14 @@ export function getListUnite(data) {
|
||||||
data: data,
|
data: data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//领料申请租赁单位下拉框
|
||||||
|
export function getAgreementUnitListApi(data) {
|
||||||
|
return request({
|
||||||
|
url: '/material/select/getAgreementUnitList',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 项目部-下拉
|
// 项目部-下拉
|
||||||
export function getListDepartApi(data) {
|
export function getListDepartApi(data) {
|
||||||
|
|
|
||||||
|
|
@ -493,7 +493,7 @@ import { getToken } from '@/utils/auth'
|
||||||
import { Base64 } from 'js-base64'
|
import { Base64 } from 'js-base64'
|
||||||
import { forEach } from 'jszip'
|
import { forEach } from 'jszip'
|
||||||
import { listUser } from '@/api/system/user'
|
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 Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
|
@ -841,7 +841,7 @@ export default {
|
||||||
},
|
},
|
||||||
//获取单位类型 ,getUnitList, getProjectList
|
//获取单位类型 ,getUnitList, getProjectList
|
||||||
getUnitList() {
|
getUnitList() {
|
||||||
getListUnite({ projectId: null }).then(response => {
|
getAgreementUnitListApi({ projectId: this.form.projectId }).then(response => {
|
||||||
this.uniteList = response.data
|
this.uniteList = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -868,7 +868,9 @@ export default {
|
||||||
handleSelectPro(val) {
|
handleSelectPro(val) {
|
||||||
console.log('🚀 ~ val:', val)
|
console.log('🚀 ~ val:', val)
|
||||||
this.form.projectUnitId = ''
|
this.form.projectUnitId = ''
|
||||||
|
this.form.unitId = ''
|
||||||
this.departList = null
|
this.departList = null
|
||||||
|
this.getUnitList()
|
||||||
this.getListDepart(val.name)
|
this.getListDepart(val.name)
|
||||||
},
|
},
|
||||||
projectChange(val) {
|
projectChange(val) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue