单位工程树选择接口修改
This commit is contained in:
parent
c9796e2057
commit
23a60c40e3
|
|
@ -53,10 +53,10 @@
|
|||
import { ref, reactive } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import {
|
||||
getUnitList,
|
||||
getProjectList,
|
||||
insertApp,
|
||||
getAgreementInfoById,
|
||||
getUnitList,
|
||||
getProjectList,
|
||||
insertApp,
|
||||
getAgreementInfoById, getUnitListNew, getProjectListNew,
|
||||
} from '../../services/back.js'
|
||||
import eselect from '@/components/tree-select/eselect.vue'
|
||||
import { useMemberStore } from '@/stores'
|
||||
|
|
@ -78,7 +78,7 @@ const getUnit = () => {
|
|||
let obj = {
|
||||
projectId: proId.value,
|
||||
}
|
||||
getUnitList(obj)
|
||||
getUnitListNew(obj)
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
unitList.value = res.data
|
||||
|
|
@ -99,7 +99,7 @@ const getProject = (e) => {
|
|||
unitId: unitId.value,
|
||||
// "isApp":true
|
||||
}
|
||||
getProjectList(obj)
|
||||
getProjectListNew(obj)
|
||||
.then((res) => {
|
||||
proList.value = res.data
|
||||
// proId.value=""
|
||||
|
|
|
|||
|
|
@ -25,6 +25,16 @@ export const getBackInfo = (id,keyWord) => {
|
|||
data:data,
|
||||
})
|
||||
}
|
||||
|
||||
// 单位下拉选---新
|
||||
export const getUnitListNew = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getMaterialUnitList',
|
||||
data:data,
|
||||
})
|
||||
}
|
||||
|
||||
// 领用工程下拉
|
||||
export const getLeaseProjectListApi = (data) => {
|
||||
return http({
|
||||
|
|
@ -40,8 +50,18 @@ export const getLeaseProjectListApi = (data) => {
|
|||
url: '/material/select/getProjectList',
|
||||
data:data,
|
||||
})
|
||||
}
|
||||
// 获取协议id
|
||||
}
|
||||
|
||||
// 工程下拉选---新
|
||||
export const getProjectListNew = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/select/getMaterialProjectList',
|
||||
data:data,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取协议id
|
||||
export const getAgreementInfoById = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
|
|
|
|||
Loading…
Reference in New Issue