Browse Source

库存转移展示

master
chenfang 11 months ago
parent
commit
908f8faa6f
  1. 105
      src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
  2. 96
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  3. 11
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  4. 47
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue
  5. 48
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue
  6. 25
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

105
src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue

@ -174,10 +174,10 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
] ]
} }
@ -186,39 +186,39 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { // if (val == 'mainJobExe') { //
let aaa = { let aaa = {
"id": "1809200001805505476", "id": "1809200001805505479",
"requestNumber": "REQ1820231205-0005", "requestNumber": "REQ1820231220-0002",
"deliverRecordNumber": "JOB2420231205-0002", "deliverRecordNumber": "JOB2420231206-0005",
"deliverPlanNumber": "DP20231205-0002", "deliverPlanNumber": "DP20231205-0002",
"customerCode": "CF", "customerCode": "CF",
"customerDockCode": "CFCKYT", "customerDockCode": "CFCKYT",
"receiptDock": null, "receiptDock": null,
"carrierCode": "cys-001", "carrierCode": "",
"transferMode": "AIR", "transferMode": "",
"vehiclePlateNumber": "车牌号", "vehiclePlateNumber": "",
"fromWarehouseCode": null, "fromWarehouseCode": null,
"toWarehouseCode": null, "toWarehouseCode": null,
"requestTime": 1701756307000, "requestTime": 1703056874000,
"requestDueTime": 1704470400000, "requestDueTime": 0,
"status": "2", "status": "1",
"expiredTime": null, "expiredTime": null,
"updateTime": 1701764165000, "updateTime": 1703056901000,
"updater": "1", "updater": "超级管理员",
"jobStageStatus": null, "jobStageStatus": null,
"priority": null, "priority": null,
"priorityIncrement": null, "priorityIncrement": null,
"departmentCode": "研发部门", "departmentCode": "闻荫源码",
"acceptUserId": "1", "acceptUserId": null,
"acceptTime": 1701764178000, "acceptTime": null,
"completeUserId": null, "completeUserId": null,
"completeTime": null, "completeTime": null,
"fromLocationTypes": "INSP,HOLD", "fromLocationTypes": "INSP,HOLD,SCRAP",
"toLocationTypes": "HOLD,INSP", "toLocationTypes": "HOLD,INSP,SEMI,RAW",
"number": "JOB2520231205-0014", "number": "JOB2520231220-0007",
"businessType": "CustomerRejectJob", "businessType": "CustomerRejectJob",
"remark": "主表备注", "remark": "",
"createTime": 1701764165000, "createTime": 1703056901000,
"creator": "1", "creator": "超级管理员",
"fromAreaCodes": "采购在途库", "fromAreaCodes": "采购在途库",
"toAreaCodes": "采购在途库", "toAreaCodes": "采购在途库",
"toDockCode": null, "toDockCode": null,
@ -232,29 +232,64 @@ const buttonTableClick = async (val, row) => {
"allowPartialComplete": "TRUE", "allowPartialComplete": "TRUE",
"allowModifyBatch": "FALSE", "allowModifyBatch": "FALSE",
"allowModifyPackingNumber": "FALSE", "allowModifyPackingNumber": "FALSE",
"subList": [{ "subList": [
"id": "1809200000441442040", {
"id": "1809200000441442043",
"soNumber": null, "soNumber": null,
"soLine": null, "soLine": null,
"packingNumber": "testCF", "packingNumber": "M20230421000005",
"batch": "20230808", "batch": "20230808",
"inventoryStatus": "OK", "inventoryStatus": "OK",
"ownerCode": null, "ownerCode": null,
"containerNumber": null, "containerNumber": null,
"fromLocationCode": "Loc_testCF", "fromLocationCode": "Loc_testCF",
"toLocationCode": "INSPECT", "toLocationCode": "SFG",
"itemCode": "testCF", "itemCode": "testCF",
"itemName": null, "itemName": "陈放测试物品",
"itemDesc1": null, "itemDesc1": "测试用",
"itemDesc2": null, "itemDesc2": "测试用",
"projectCode": null, "projectCode": "5",
"qty": 22, "qty": 22,
"uom": "EA", "uom": "EA",
"number": "REQ1820231206-0001", "number": "REQ1820231220-0002",
"remark": "子表备注", "remark": "子表备注",
"createtime": null, "createtime": null,
"creator": "1" "creator": "超级管理员",
}] "handleQty": null,
"toPackingNumber": null,
"toContainerNumber": null,
"toBatch": null,
"toInventoryStatus": null
},
{
"id": "1809200000441442042",
"soNumber": null,
"soLine": null,
"packingNumber": "12",
"batch": "21",
"inventoryStatus": "OK",
"ownerCode": null,
"containerNumber": null,
"fromLocationCode": "Loc_testCF",
"toLocationCode": "H03",
"itemCode": "testCF",
"itemName": "陈放测试物品",
"itemDesc1": "测试用",
"itemDesc2": "测试用",
"projectCode": "5",
"qty": 10,
"uom": "EA",
"number": "REQ1820231220-0002",
"remark": "子表备注",
"createtime": null,
"creator": "超级管理员",
"handleQty": null,
"toPackingNumber": null,
"toContainerNumber": null,
"toBatch": null,
"toInventoryStatus": null
}
]
} }
handleHandle(aaa) handleHandle(aaa)
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //

96
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -3,26 +3,11 @@ import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain'
import { DeliverRecordMain } from '../../deliver/deliverRecordMain/deliverRecordMain.data' import { DeliverRecordMain } from '../../deliver/deliverRecordMain/deliverRecordMain.data'
import { DeliverPlanMain } from '../../deliverplan/deliverPlanMain/deliverPlanMain.data'
import * as SaleMainApi from '@/api/wms/saleMain'
import * as SaleDetailApi from '@/api/wms/saleDetail'
import { SaleDetail, SaleMain } from '../../deliverplan/saleMain/saleMain.data'
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import * as CarrierApi from '@/api/wms/carrier' import * as CarrierApi from '@/api/wms/carrier'
import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data' import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -618,32 +603,11 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
isInpuFocusShow: true, // 开启查询弹窗 disabled: true
searchListPlaceholder: '请选择物品代码',
searchField: 'code',
searchTitle: '物品基础信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, disabled: true
searchListPlaceholder: '请选择物品代码',
searchField: 'code',
searchTitle: '物品基础信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
} }
}, },
@ -701,22 +665,11 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
isInpuFocusShow: true, // 开启查询弹窗 disabled: true
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage
}, },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, disabled: true
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage
} }
} }
}, },
@ -767,7 +720,12 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
type: 'Select' disabled: true
},
form: {
componentProps: {
disabled: true
}
} }
}, },
{ {
@ -794,32 +752,11 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
isInpuFocusShow: true, // 开启查询弹窗 disabled: true
searchListPlaceholder: '请选择到库位代码',
searchField: 'code',
searchTitle: '库存余额信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, disabled: true
searchListPlaceholder: '请选择到库位代码',
searchField: 'code',
searchTitle: '库存余额信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
} }
}, },
@ -880,7 +817,14 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTable: false tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '创建时间', label: '创建时间',

11
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -82,6 +82,7 @@ import { CustomerreturnRequestMain,CustomerreturnRequestMainRules,Customerreturn
import * as CustomerreturnRequestMainApi from '@/api/wms/customerreturnRequestMain' import * as CustomerreturnRequestMainApi from '@/api/wms/customerreturnRequestMain'
import * as CustomerreturnRequestDetailApi from '@/api/wms/customerreturnRequestDetail' import * as CustomerreturnRequestDetailApi from '@/api/wms/customerreturnRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
// 退 // 退
defineOptions({ name: 'CustomerreturnRequestMain' }) defineOptions({ name: 'CustomerreturnRequestMain' })
@ -116,12 +117,22 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {
console.log(11111111)
const setV = {} const setV = {}
if(formField == 'deliverRecordNumber') { if(formField == 'deliverRecordNumber') {
setV['deliverRecordNumber'] = val[0]['number'] setV['deliverRecordNumber'] = val[0]['number']
setV['deliverPlanNumber'] = val[0]['deliverPlanNumber'] setV['deliverPlanNumber'] = val[0]['deliverPlanNumber']
setV['customerCode'] = val[0]['customerCode'] setV['customerCode'] = val[0]['customerCode']
setV['customerDockCode'] = val[0]['customerDockCode'] setV['customerDockCode'] = val[0]['customerDockCode']
// getBomDisassemble
DeliverRecordDetailApi.getDeliverRecordDetailPage(val[0]['id'])
.then(res => {
console.log(555,res)
if (res) tableData.value = res.list
}).catch(err => {
console.log(err)
message.error('错误')
})
} else { } else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }

47
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -83,6 +83,9 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(InventorymoveJobMain.allSchemas.tableColumns) const tableColumns = ref(InventorymoveJobMain.allSchemas.tableColumns)
const fromInventoryStatus = ref()
const toInventoryStatus = ref()
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
@ -130,6 +133,50 @@ const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: InventorymoveJobMainApi.getInventorymoveJobMainPage // getListApi: InventorymoveJobMainApi.getInventorymoveJobMainPage //
}) })
console.log(99 , routeName.value)
//
/**
* OktoholdJobMain 合格转隔离
*/
if ( routeName.value == 'OktoholdJobMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD"
} else if ( routeName.value == 'HoldtookJobMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
} else if ( routeName.value == 'HoldtoscrapJobMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
} else if ( routeName.value == 'OktoscrapJobMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
} else if ( routeName.value == 'ScraptoholdJobMain') {
tableObject.params = {
fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD"
} else {
console.log(146 , fromInventoryStatus.value)
fromInventoryStatus.value = null
}
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods

48
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

@ -78,6 +78,10 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(InventorymoveRecordMain.allSchemas.tableColumns) const tableColumns = ref(InventorymoveRecordMain.allSchemas.tableColumns)
console.log(99 , routeName.value)
const fromInventoryStatus = ref()
const toInventoryStatus = ref()
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
@ -87,6 +91,50 @@ const { tableObject, tableMethods } = useTable({
getListApi: InventorymoveRecordMainApi.getInventorymoveRecordMainPage // getListApi: InventorymoveRecordMainApi.getInventorymoveRecordMainPage //
}) })
//
/**
* OktoholdRequestMain 合格转隔离
*/
if ( routeName.value == 'OktoholdRecordMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD"
} else if ( routeName.value == 'HoldtookRecordMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
} else if ( routeName.value == 'HoldtoscrapRecordMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
} else if ( routeName.value == 'OktoscrapRecordMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
} else if ( routeName.value == 'ScraptoholdRecordMain') {
tableObject.params = {
fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD"
} else {
console.log(146 , fromInventoryStatus.value)
fromInventoryStatus.value = null
}
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods

25
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -160,6 +160,13 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
delete item.tableForm.searchCondition delete item.tableForm.searchCondition
} }
} }
if(item.field == "toInventoryStatus"){
if (fromInventoryStatus.value) {
item.tableForm.disabled = true
} else {
item.tableForm.disabled = false
}
}
}) })
// //
@ -178,6 +185,20 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['fromBatch'] = val[0]['batch'] row['fromBatch'] = val[0]['batch']
row['fromInventoryStatus'] = val[0]['inventoryStatus'] row['fromInventoryStatus'] = val[0]['inventoryStatus']
row['fromLocationCode'] = val[0]['locationCode'] row['fromLocationCode'] = val[0]['locationCode']
row['uom'] = val[0]['uom']
if(routeName.value == 'OktoholdRequestMain'){
row['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') {
row['toInventoryStatus'] = "OK"
}else if ( routeName.value == 'HoldtoscrapRequestMain') {
row['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'OktoscrapRequestMain') {
row['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'ScraptoholdRequestMain') {
row['toInventoryStatus'] = "HOLD"
}else{
row['toInventoryStatus'] = null
}
} else { } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
@ -393,8 +414,12 @@ const handleDeleteTable = (item, index) => {
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
data.subList.forEach(item => { data.subList.forEach(item => {
console.log(fromInventoryStatus.value)
console.log(!fromInventoryStatus.value)
if(fromInventoryStatus.value){
item.fromInventoryStatus = fromInventoryStatus.value item.fromInventoryStatus = fromInventoryStatus.value
item.toInventoryStatus = toInventoryStatus.value item.toInventoryStatus = toInventoryStatus.value
}
}) })
try { try {
if (formType === 'create') { if (formType === 'create') {

Loading…
Cancel
Save