获取省份

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, data: data,
}) })
} }
// 获取省份
export const getProvinceListAPI = () => {
return request({
url: '/material-mall/cnarea/provinces',
method: 'GET',
})
}

View File

@ -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()
// //