diff --git a/src/api/costCenterMapping/index.ts b/src/api/costCenterMapping/index.ts index 13c1abc..2106f3f 100644 --- a/src/api/costCenterMapping/index.ts +++ b/src/api/costCenterMapping/index.ts @@ -12,5 +12,5 @@ export interface CostCenterMappingVO { // 根据库区编号获取成本中心 export function findList(data) { console.log('findList.data',data) - return http.get( `/eam/cost-center-mapping/findList`, data ) + return http.post( `/eam/cost-center-mapping/findList`, data ) } \ No newline at end of file diff --git a/src/pages/outLocation/addForm.vue b/src/pages/outLocation/addForm.vue index 47d045b..3ab558c 100644 --- a/src/pages/outLocation/addForm.vue +++ b/src/pages/outLocation/addForm.vue @@ -425,9 +425,12 @@ async function searchItem(keywords) { // 获取备件列表 async function getSparePartsList(warehouseArea) { - const param = { - ccAccount: form.value.costCenter, - warehouseArea: warehouseArea || form1.value.areaNumber + const param = { moveCode: '', ccAccount: '', warehouseArea: '' } + if (warehouseArea) { + param.moveCode = warehouseArea + } else { + param.ccAccount = form.value.costCenter + param.warehouseArea = form1.value.areaNumber } await costCenterMappingApi .findList(param) @@ -444,8 +447,9 @@ async function getSparePartsList(warehouseArea) { proxy.$modal.closeLoading() }) } + function sure(data) { - form1.value.moveCode = data.warehouseArea + form1.value.moveCode = data.moveCode }