Browse Source

【nev-pc】回收料原料的箱码先获取原料库代码

ag_report_nev
安虹睿 12 months ago
parent
commit
35f614722c
  1. 9
      fe/PC/src/api/wms-api.js
  2. 2
      fe/PC/src/filters/status.js
  3. 2
      fe/PC/src/mixins/filter-Select.js
  4. 6
      fe/PC/src/router/index.js
  5. 20
      fe/PC/src/views/inventoryManage/recycledMaterials/materialsAdjustmentFunc.vue

9
fe/PC/src/api/wms-api.js

@ -735,6 +735,15 @@ export function handleRequestIsHasNewJob(URL,requestNumber,data) {
}) })
} }
// 通过类型获取库位
export async function getLocationByTypes(params) {
return request({
url: baseURL + 'basedata/Location/list/by-types',
method: 'get',
params:params
})
}
// 客户退拆任务-完成 todo // 客户退拆任务-完成 todo
// export async function productionRecycleJobComplete(id) { // export async function productionRecycleJobComplete(id) {

2
fe/PC/src/filters/status.js

@ -134,7 +134,7 @@ import store from '@/store/index'
30: { 30: {
label: "等待", label: "等待",
value: 30, value: 30,
background:"#EC5B28", background:"#00b6ff",
}, },
} }
return Enum(status, index, prop) return Enum(status, index, prop)

2
fe/PC/src/mixins/filter-Select.js

@ -37,7 +37,7 @@ export const filterSelectMixins = {
} }
}, },
methods: { methods: {
getFilterList(type,params,url,newFilter,resultCount){ async getFilterList(type,params,url,newFilter,resultCount){
// 正常过滤条件获取列表(getPageList) // 正常过滤条件获取列表(getPageList)
return new Promise(resolve => { return new Promise(resolve => {
if(!type || type == "getPageList"){ if(!type || type == "getPageList"){

6
fe/PC/src/router/index.js

@ -321,7 +321,7 @@ export const constantRoutes = [
name: 'IssueRequestZP', name: 'IssueRequestZP',
meta: { meta: {
keepAlive : true, keepAlive : true,
title: '人工发料申请(装配)', title: '装配申请',
icon: '成品发运任务', icon: '成品发运任务',
} }
}] }]
@ -337,7 +337,7 @@ export const constantRoutes = [
name: 'IssueJobZP', name: 'IssueJobZP',
meta: { meta: {
keepAlive : true, keepAlive : true,
title: '人工发料任务(装配)', title: '装配任务',
icon: '成品发运任务', icon: '成品发运任务',
} }
}] }]
@ -353,7 +353,7 @@ export const constantRoutes = [
name: 'IssueNoteZP', name: 'IssueNoteZP',
meta: { meta: {
keepAlive : true, keepAlive : true,
title: '人工发料记录(装配)', title: '装配记录',
icon: '成品发运任务', icon: '成品发运任务',
} }
}] }]

20
fe/PC/src/views/inventoryManage/recycledMaterials/materialsAdjustmentFunc.vue

@ -110,7 +110,7 @@ import { requestData } from "@/utils/processButtonData"
import currenTableFlex from "@/components/currenTableFlex" import currenTableFlex from "@/components/currenTableFlex"
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
import detailsRules from '@/utils/rules'; 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 { postInventoryLabelCode_count } from "@/api/wms-core"
import { getNowToT,formatTimeStampToNorm } from '@/utils/formatTime' import { getNowToT,formatTimeStampToNorm } from '@/utils/formatTime'
import {initPrintPackingCodeData } from "@/mixins/printMixin" import {initPrintPackingCodeData } from "@/mixins/printMixin"
@ -207,7 +207,7 @@ export default {
}, },
{ type: "filterSelect", label: "箱标签", prop: "packingCode", optionsLabel: "packingCode", optionsValue: "packingCode", clearable:true, { 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}}, 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", width:"auto",
}, },
// //
@ -693,6 +693,22 @@ export default {
this.addPopData_FS[scope.$index].poNumber = null 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){ pushYL(data){
if(data[1].prop=="itemCode"){ if(data[1].prop=="itemCode"){

Loading…
Cancel
Save