领用申请工程下拉
This commit is contained in:
parent
a088ae99e4
commit
80450ea699
|
|
@ -79,6 +79,15 @@ export function getListProject(data) {
|
|||
})
|
||||
}
|
||||
|
||||
// 领用申请工程下拉
|
||||
export function getLeaseProjectListApi(data) {
|
||||
return request({
|
||||
url: '/material/select/getLeaseProjectList',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 领料申请获取协议单id
|
||||
export function getAgreement(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@
|
|||
|
||||
<script>
|
||||
import { equipmentTypeTree } from '@/api/purchase/goodsArrived'
|
||||
import { getListProject, getListUnite, getAgreement } from '@/api/lease/apply'
|
||||
import { getLeaseProjectListApi, getListUnite, getAgreement } from '@/api/lease/apply'
|
||||
import {
|
||||
getStandardConfigList,
|
||||
getListsByConfigId,
|
||||
|
|
@ -911,12 +911,6 @@ export default {
|
|||
this.isFileFbs = false
|
||||
this.rules['bmFileInfos'][0].required = false
|
||||
}
|
||||
// setTimeout(() => {
|
||||
// getListProject({ unitId: this.maForm.unitId }).then(response => {
|
||||
// this.projectList = response.data
|
||||
// this.maForm.projectId = null
|
||||
// })
|
||||
// }, 500)
|
||||
},
|
||||
projectChange(val) {
|
||||
this.maForm.projectName = val.name
|
||||
|
|
@ -959,14 +953,14 @@ export default {
|
|||
getListUnite({ projectId: null, enableFilter: true }).then(response => {
|
||||
this.uniteList = response.data
|
||||
})
|
||||
getListProject({ unitId: null, enableFilter: true }).then(response => {
|
||||
getLeaseProjectListApi({ unitId: null, enableFilter: true }).then(response => {
|
||||
this.projectList = response.data
|
||||
})
|
||||
} else {
|
||||
getListUnite({ projectId: null, enableFilter: true }).then(response => {
|
||||
this.uniteList = response.data
|
||||
})
|
||||
getListProject({ unitId: this.maForm.unitId, enableFilter: true }).then(response => {
|
||||
getLeaseProjectListApi({ unitId: this.maForm.unitId, enableFilter: true }).then(response => {
|
||||
this.projectList = response.data
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue