refactor(入库计划): 获取库位列表修改
This commit is contained in:
parent
20cc48124c
commit
b663a8ef1c
@ -405,8 +405,10 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
// 物料名称
|
// 库位名称
|
||||||
itemName: areaName
|
areaName: areaName,
|
||||||
|
// 库区ID 立体库
|
||||||
|
locationId: 222
|
||||||
}
|
}
|
||||||
listArea(params).then(response => {
|
listArea(params).then(response => {
|
||||||
this.areaList = response.rows;
|
this.areaList = response.rows;
|
||||||
@ -537,7 +539,7 @@ export default {
|
|||||||
this.form.planTypeCode = filter[0].code;
|
this.form.planTypeCode = filter[0].code;
|
||||||
this.form.planTypeName = filter[0].name;
|
this.form.planTypeName = filter[0].name;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("系统错误,请联系管理员");
|
this.$message.error("计划类型查找失败");
|
||||||
console.error("计划类型查找失败")
|
console.error("计划类型查找失败")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -51,13 +51,18 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 获取库位列表 */
|
/**
|
||||||
|
* 获取库位列表
|
||||||
|
* @param areaName
|
||||||
|
*/
|
||||||
getAreaList(areaName = "") {
|
getAreaList(areaName = "") {
|
||||||
const params = {
|
const params = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
// 物料名称
|
// 库位名称
|
||||||
itemName: areaName
|
areaName: areaName,
|
||||||
|
// 库区ID 立体库
|
||||||
|
locationId: 222
|
||||||
}
|
}
|
||||||
listArea(params).then(response => {
|
listArea(params).then(response => {
|
||||||
this.areaList = response.rows;
|
this.areaList = response.rows;
|
||||||
@ -131,7 +136,7 @@ export default {
|
|||||||
this.inPlanTypeList = response.rows;
|
this.inPlanTypeList = response.rows;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleAreaSelectChange(){
|
handleAreaSelectChange() {
|
||||||
let result = this.areaList.filter(item => item.areaId == this.wmsInPlanDetailForm.cellId)
|
let result = this.areaList.filter(item => item.areaId == this.wmsInPlanDetailForm.cellId)
|
||||||
this.queryParams.areaCode = result[0].areaCode
|
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-divider content-position="center" v-if="localDataForm.planTypeCode!=='ZDHK'">库位包含物料</el-divider>
|
||||||
<el-table :data="BaseKnifeList" v-if="localDataForm.planTypeCode!=='ZDHK'">
|
<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="台账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="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="knifeCode" min-width="135"
|
||||||
<el-table-column label="刀具名称" align="center" prop="knifeName" min-width="135" :show-overflow-tooltip="true"/>
|
: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"
|
<el-table-column label="物料类型" align="center" key="itemOrProduct" prop="itemOrProduct"
|
||||||
:show-overflow-tooltip="true">
|
:show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.mes_item_product" :value="scope.row.itemOrProduct"/>
|
<dict-tag :options="dict.type.mes_item_product" :value="scope.row.itemOrProduct"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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"
|
<el-table-column label="刀具状态" align="center" prop="knifeFineState" min-width="100"
|
||||||
:show-overflow-tooltip="true">
|
:show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
Loading…
Reference in New Issue
Block a user