Browse Source

fix: [SBBJ-971]手填库位移动代码

master
zengqinyuan 1 month ago
parent
commit
4b5bf6b27a
  1. 2
      src/api/costCenterMapping/index.ts
  2. 12
      src/pages/outLocation/addForm.vue

2
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 )
}

12
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
}
</script>

Loading…
Cancel
Save