获取省份
This commit is contained in:
parent
52cb62467d
commit
d861606971
|
|
@ -43,3 +43,11 @@ export const addProjectOutAPI = (data) => {
|
||||||
data: data,
|
data: data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取省份
|
||||||
|
export const getProvinceListAPI = () => {
|
||||||
|
return request({
|
||||||
|
url: '/material-mall/cnarea/provinces',
|
||||||
|
method: 'GET',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -752,7 +752,7 @@ import {
|
||||||
getManufacturerSelectApi
|
getManufacturerSelectApi
|
||||||
} from '@/api/EquipmentLedger/index.js'
|
} from '@/api/EquipmentLedger/index.js'
|
||||||
import { firstLevel, secondAndThirdLevel } from '@/api/EquipmentEntryApply'
|
import { firstLevel, secondAndThirdLevel } from '@/api/EquipmentEntryApply'
|
||||||
import { getMaxFeatureAPI } from '@/api/EquipmentLedger/equ-out.js'
|
import { getMaxFeatureAPI, getProvinceListAPI } from '@/api/EquipmentLedger/equ-out.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EquipmentLedger',
|
name: 'EquipmentLedger',
|
||||||
|
|
@ -901,6 +901,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取省份
|
||||||
|
getProvinceList() {
|
||||||
|
getProvinceListAPI().then((res) => {
|
||||||
|
this.provinceList = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取厂家
|
// 获取厂家
|
||||||
getManufacturerSelectList() {
|
getManufacturerSelectList() {
|
||||||
getManufacturerSelectApi().then((res) => {
|
getManufacturerSelectApi().then((res) => {
|
||||||
|
|
@ -1340,6 +1346,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
async created() {
|
async created() {
|
||||||
|
this.getProvinceList()
|
||||||
this.getFirstLevel()
|
this.getFirstLevel()
|
||||||
this.getManufacturerSelectList()
|
this.getManufacturerSelectList()
|
||||||
// 并行加载初始数据
|
// 并行加载初始数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue