|
|
@ -110,7 +110,7 @@ import { requestData } from "@/utils/processButtonData" |
|
|
|
import currenTableFlex from "@/components/currenTableFlex" |
|
|
|
import { filterSelectMixins } from '@/mixins/filter-Select' |
|
|
|
import detailsRules from '@/utils/rules'; |
|
|
|
import { getPageList,itemTransformNewCreate } from "@/api/wms-api" |
|
|
|
import { getPageList,itemTransformNewCreate,getLocationByTypes } from "@/api/wms-api" |
|
|
|
import { postInventoryLabelCode_count } from "@/api/wms-core" |
|
|
|
import { getNowToT,formatTimeStampToNorm } from '@/utils/formatTime' |
|
|
|
import {initPrintPackingCodeData } from "@/mixins/printMixin" |
|
|
@ -207,7 +207,7 @@ export default { |
|
|
|
}, |
|
|
|
{ type: "filterSelect", label: "箱标签", prop: "packingCode", optionsLabel: "packingCode", optionsValue: "packingCode", clearable:true, |
|
|
|
beforeFocus:(tableScope)=>{if(!this.addPopData_YL[tableScope.$index].itemCode || this.addPopData_YL[tableScope.$index].length <= 0){this.$message.error('请选择物品代码'); return false}else{return true}}, |
|
|
|
focus: (type,val,tableScope) => { return this.getFilterList(type, val, "wms/inventory/Inventory-Balance",this.isFilter("itemCode", this.addPopData_YL[tableScope.$index].itemCode),1000)}, |
|
|
|
focus: async (type,val,tableScope) => { return this.getFilterList(type, val, "wms/inventory/Inventory-Balance",await this.getPackingFilterYl(this.addPopData_YL[tableScope.$index].itemCode),1000)}, |
|
|
|
width:"auto", |
|
|
|
}, |
|
|
|
// 库存数量、库位:自动带出 |
|
|
@ -693,6 +693,22 @@ export default { |
|
|
|
this.addPopData_FS[scope.$index].poNumber = null |
|
|
|
} |
|
|
|
}, |
|
|
|
// 原料箱标签筛选条件 |
|
|
|
async getPackingFilterYl(itemCode){ |
|
|
|
let _filters = [] |
|
|
|
_filters = this.isFilter("itemCode",itemCode) |
|
|
|
// 获取原料库的库位代码 |
|
|
|
let _locationsYL = await getLocationByTypes({types:2}) |
|
|
|
let _ylArr = [] |
|
|
|
_locationsYL.forEach(item=>{ _ylArr.push(item.code)}) |
|
|
|
_filters.push({ |
|
|
|
logic: "And", |
|
|
|
column: "locationCode", |
|
|
|
action: "In", |
|
|
|
value: JSON.stringify(_ylArr) |
|
|
|
}) |
|
|
|
return _filters |
|
|
|
}, |
|
|
|
// 原料下拉 |
|
|
|
pushYL(data){ |
|
|
|
if(data[1].prop=="itemCode"){ |
|
|
|