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