diff --git a/src/views/mes/md/mditem/index.vue b/src/views/mes/md/mditem/index.vue index 6554b4d..eeee1e0 100644 --- a/src/views/mes/md/mditem/index.vue +++ b/src/views/mes/md/mditem/index.vue @@ -393,6 +393,35 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue index 0fbc1d0..dbb0047 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue @@ -4,10 +4,11 @@ import WmsInPlanDetailEntityTableCmps from "@/views/mes/wm/inPlan/wmsInPlanDetai import {addPLAN, updatePLAN} from "@/api/wm/PLAN"; import {listMdItem} from "@/api/mes/md/mdItem"; import {listTYPE} from "@/api/md/TYPE"; -import {isDuplicateRfid} from "@/api/mes/md/baseKnife"; +import {isDuplicateRfid, listBaseKnife} from "@/api/mes/md/baseKnife"; export default { name: "wmsInPlanKnifeBackFormCmps", + dicts: ['sys_yes_no', 'mes_item_product', 'is_locked', 'knife_fine_status', 'plan_source_type', 'in_plan_state'], components: {WmsInPlanDetailEntityTableCmps}, props: { dataForm: { @@ -25,6 +26,8 @@ export default { wmsInPlanDetailForm: {}, // 库位列表 areaList: [], + BaseKnifeList: [], + total: 0, // 入库计划明细实例 列表 wmsInPlanDetailEntityList: [], // 表单校验 @@ -34,7 +37,12 @@ export default { localVisible: this.visible, // 入库计划类型 inPlanTypeList: [], - mdItemList: [] + mdItemList: [], + queryParams: { + pageNum: 1, + pageSize: 10, + areaCode: "" + } } }, computed: { @@ -45,7 +53,6 @@ export default { methods: { /** 获取库位列表 */ getAreaList(areaName = "") { - this.loading = true; const params = { pageNum: 1, pageSize: 100, @@ -124,6 +131,15 @@ export default { this.inPlanTypeList = response.rows; }); }, + handleAreaSelectChange(){ + let result = this.areaList.filter(item => item.areaId == this.wmsInPlanDetailForm.cellId) + this.queryParams.areaCode = result[0].areaCode + + listBaseKnife(this.queryParams).then(response => { + this.BaseKnifeList = response.rows; + this.total = response.total; + }); + }, handlePlanTypeSelectChange(typeId) { this.$emit("planTypeSelectChange", typeId) }, @@ -194,20 +210,17 @@ export default {