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