获取省份

This commit is contained in:
bb_pan 2025-10-14 17:44:41 +08:00
parent 52cb62467d
commit d861606971
2 changed files with 16 additions and 1 deletions

View File

@ -43,3 +43,11 @@ export const addProjectOutAPI = (data) => {
data: data,
})
}
// 获取省份
export const getProvinceListAPI = () => {
return request({
url: '/material-mall/cnarea/provinces',
method: 'GET',
})
}

View File

@ -752,7 +752,7 @@ import {
getManufacturerSelectApi
} from '@/api/EquipmentLedger/index.js'
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 {
name: 'EquipmentLedger',
@ -901,6 +901,12 @@ export default {
}
},
methods: {
//
getProvinceList() {
getProvinceListAPI().then((res) => {
this.provinceList = res.data
})
},
//
getManufacturerSelectList() {
getManufacturerSelectApi().then((res) => {
@ -1340,6 +1346,7 @@ export default {
},
async created() {
this.getProvinceList()
this.getFirstLevel()
this.getManufacturerSelectList()
//