refactor(入库计划): 获取库位列表修改

This commit is contained in:
Kelvin 2025-01-02 14:44:11 +08:00
parent 20cc48124c
commit b663a8ef1c
2 changed files with 21 additions and 11 deletions

View File

@ -405,8 +405,10 @@ export default {
const params = {
pageNum: 1,
pageSize: 100,
//
itemName: areaName
//
areaName: areaName,
// ID
locationId: 222
}
listArea(params).then(response => {
this.areaList = response.rows;
@ -537,7 +539,7 @@ export default {
this.form.planTypeCode = filter[0].code;
this.form.planTypeName = filter[0].name;
} else {
this.$message.error("系统错误,请联系管理员");
this.$message.error("计划类型查找失败");
console.error("计划类型查找失败")
return;
}

View File

@ -51,13 +51,18 @@ export default {
},
},
methods: {
/** 获取库位列表 */
/**
* 获取库位列表
* @param areaName
*/
getAreaList(areaName = "") {
const params = {
pageNum: 1,
pageSize: 100,
//
itemName: areaName
//
areaName: areaName,
// ID
locationId: 222
}
listArea(params).then(response => {
this.areaList = response.rows;
@ -131,7 +136,7 @@ export default {
this.inPlanTypeList = response.rows;
});
},
handleAreaSelectChange(){
handleAreaSelectChange() {
let result = this.areaList.filter(item => item.areaId == this.wmsInPlanDetailForm.cellId)
this.queryParams.areaCode = result[0].areaCode
@ -249,16 +254,19 @@ export default {
<el-divider content-position="center" v-if="localDataForm.planTypeCode!=='ZDHK'">库位包含物料</el-divider>
<el-table :data="BaseKnifeList" v-if="localDataForm.planTypeCode!=='ZDHK'">
<el-table-column label="台账ID" align="center" prop="baseKnifeId" min-width="60" :show-overflow-tooltip="true"/>
<el-table-column label="rfid" align="center" prop="rfid" />
<el-table-column label="刀具编码" align="center" prop="knifeCode" min-width="135" :show-overflow-tooltip="true"/>
<el-table-column label="刀具名称" align="center" prop="knifeName" min-width="135" :show-overflow-tooltip="true"/>
<el-table-column label="rfid" align="center" prop="rfid"/>
<el-table-column label="刀具编码" align="center" prop="knifeCode" min-width="135"
:show-overflow-tooltip="true"/>
<el-table-column label="刀具名称" align="center" prop="knifeName" min-width="135"
:show-overflow-tooltip="true"/>
<el-table-column label="物料类型" align="center" key="itemOrProduct" prop="itemOrProduct"
:show-overflow-tooltip="true">
<template slot-scope="scope">
<dict-tag :options="dict.type.mes_item_product" :value="scope.row.itemOrProduct"/>
</template>
</el-table-column>
<el-table-column label="刀具寿命" align="center" prop="knifeLife" min-width="100" :show-overflow-tooltip="true"/>
<el-table-column label="刀具寿命" align="center" prop="knifeLife" min-width="100"
:show-overflow-tooltip="true"/>
<el-table-column label="刀具状态" align="center" prop="knifeFineState" min-width="100"
:show-overflow-tooltip="true">
<template slot-scope="scope">