Browse Source

装配收货子子表记录生成

master_hella_20240701
chenfang 6 months ago
parent
commit
974924b1e8
  1. 51
      src/api/wms/productreceiptDetailb/index.ts
  2. 81
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  3. 83
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue
  4. 20
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts
  5. 8
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  6. 113
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

51
src/api/wms/productreceiptDetailb/index.ts

@ -0,0 +1,51 @@
import request from '@/config/axios'
export interface ProductreceiptDetailbVO {
id: number
packingNumber: string
batch: string
masterId: number
number: string
itemCode: string
itemName: string
outsideItemCode: string
outsideProduceDate: string
outsideSerialNumber: string
remark: string
}
// 查询制品收货记录子列表
export const getProductreceiptDetailbPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productreceipt-detailb/senior', data })
} else {
return await request.get({ url: `/wms/productreceipt-detailb/page`, params })
}
}
// 查询制品收货记录子详情
export const getProductreceiptDetailb = async (id: number) => {
return await request.get({ url: `/wms/productreceipt-detailb/get?id=` + id })
}
// 新增制品收货记录子
export const createProductreceiptDetailb = async (data: ProductreceiptDetailbVO) => {
return await request.post({ url: `/wms/productreceipt-detailb/create`, data })
}
// 修改制品收货记录子
export const updateProductreceiptDetailb = async (data: ProductreceiptDetailbVO) => {
return await request.put({ url: `/wms/productreceipt-detailb/update`, data })
}
// 删除制品收货记录子
export const deleteProductreceiptDetailb = async (id: number) => {
return await request.delete({ url: `/wms/productreceipt-detailb/delete?id=` + id })
}
// 导出制品收货记录子 Excel
export const exportProductreceiptDetailb = async (params) => {
return await request.download({ url: `/wms/productreceipt-detailb/export-excel`, params })
}

81
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -172,35 +172,35 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { //
let aaa = {
"id": "1809190001478278226",
"requestNumber": "REC4620231212-0011",
"productionPlanNumber": "WP20231212-0002",
"workShopCode": "work2",
"team": "7",
"shift": "8",
"id": 8,
"requestNumber": "REQ1120240401-0001",
"productionPlanNumber": "WP20240401-0001",
"workShopCode": "work1",
"team": "T01",
"shift": "bc002",
"details": null,
"requestTime": 1702376849000,
"requestTime": 1711952813000,
"requestDueTime": null,
"status": "2",
"expiredTime": null,
"updateTime": 1702376904000,
"updateTime": 1711952823000,
"updater": "超级管理员",
"jobStageStatus": null,
"priority": null,
"priorityIncrement": null,
"departmentCode": "103",
"departmentCode": "100",
"acceptUserId": "1",
"acceptTime": 1702376913000,
"completeUserId": "1",
"completeTime": 1702377036000,
"acceptTime": 1711952975000,
"completeUserId": null,
"completeTime": null,
"toWarehouseCode": null,
"toAreaCodes": "",
"fromAreaTypes": "WIP",
"toAreaTypes": "WIP",
"number": "JOB2120231212-0001",
"number": "JOB2120240401-0001",
"businessType": "ProductReceipt",
"remark": null,
"createTime": 1702376904000,
"createTime": 1711952823000,
"creator": "超级管理员",
"autoComplete": "FALSE",
"allowModifyLocation": "FALSE",
@ -214,41 +214,44 @@ const buttonTableClick = async (val, row) => {
"allowModifyPackingNumber": "FALSE",
"inInventoryStatuses": "OK",
"outInventoryStatuses": "OK",
"concurrencyStamp": null,
"concurrencyStamp": 2,
"type": "assemble",
subList: [
{
"id": "1809190000003953999",
"productionLineCode": "line4",
"workStationCode": "station4",
"id": 8,
"productionLineCode": "work1-line1",
"workStationCode": "station1",
"processCode": null,
"packingNumber": "PN-00113",
"packingNumber": "PN0401-000072",
"containerNumber": null,
"batch": "20231212",
"produceDate": null,
"expireDate": null,
"batch": "20240401",
"produceDate": 1711987200000,
"expireDate": 1712073600000,
"inventoryStatus": "OK",
"toLocationCode": "901",
"woNumber": null,
"woLine": null,
"packQty": 8,
"packUnit": "BOX",
"itemCode": "item01",
"itemName": "物料01",
"itemDesc1": "",
"itemDesc2": "",
"projectCode": "xm01",
"qty": 2,
"packQty": 5,
"packUnit": "Box-05",
"itemCode": "399.960-12",
"itemName": "远光内侧反射镜(镀铝)右灯",
"itemDesc1": null,
"itemDesc2": null,
"projectCode": null,
"qty": 5,
"uom": "EA",
"number": "JOB2120231212-0001",
"number": "JOB2120240401-0001",
"remark": null,
"createTime": 1702376904000,
"creator": "1",
"createTime": 1711952823000,
"creator": "超级管理员",
"toOwnerCode": null,
handleQty: 10,
toPackingNumber: '12',
toContainerNumber: '001',
toBatch: '21',
toInventoryStatus: 'OK',
toLocationCode: 'H03',
"updateTime": 1711952823000,
"updater": "超级管理员",
handleQty: 5,
toPackingNumber: "PN0401-000072",
toContainerNumber: null,
toBatch: '20240401',
toInventoryStatus: 'OK'
}
]
}

83
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue

@ -171,35 +171,35 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { //
let aaa = {
"id": "1809190001478278226",
"requestNumber": "REC4620231212-0011",
"productionPlanNumber": "WP20231212-0002",
"workShopCode": "work2",
"team": "7",
"shift": "8",
"id": 8,
"requestNumber": "REQ1120240401-0001",
"productionPlanNumber": "WP20240401-0001",
"workShopCode": "work1",
"team": "T01",
"shift": "bc002",
"details": null,
"requestTime": 1702376849000,
"requestTime": 1711952813000,
"requestDueTime": null,
"status": "2",
"expiredTime": null,
"updateTime": 1702376904000,
"updateTime": 1711952823000,
"updater": "超级管理员",
"jobStageStatus": null,
"priority": null,
"priorityIncrement": null,
"departmentCode": "103",
"departmentCode": "100",
"acceptUserId": "1",
"acceptTime": 1702376913000,
"completeUserId": "1",
"completeTime": 1702377036000,
"acceptTime": 1711952975000,
"completeUserId": null,
"completeTime": null,
"toWarehouseCode": null,
"toAreaCodes": "",
"fromAreaTypes": "WIP",
"toAreaTypes": "WIP",
"number": "JOB2120231212-0001",
"number": "JOB2120240401-0001",
"businessType": "ProductReceipt",
"remark": null,
"createTime": 1702376904000,
"createTime": 1711952823000,
"creator": "超级管理员",
"autoComplete": "FALSE",
"allowModifyLocation": "FALSE",
@ -213,41 +213,44 @@ const buttonTableClick = async (val, row) => {
"allowModifyPackingNumber": "FALSE",
"inInventoryStatuses": "OK",
"outInventoryStatuses": "OK",
"concurrencyStamp": null,
subList: [
"concurrencyStamp": 2,
"type": "assemble",
"subList": [
{
"id": "1809190000003953999",
"productionLineCode": "line4",
"workStationCode": "station4",
"id": 8,
"productionLineCode": "work1-line1",
"workStationCode": "station1",
"processCode": null,
"packingNumber": "PN-00113",
"packingNumber": "PN0401-000072",
"containerNumber": null,
"batch": "20231212",
"produceDate": null,
"expireDate": null,
"batch": "20240401",
"produceDate": 1711987200000,
"expireDate": 1712073600000,
"inventoryStatus": "OK",
"toLocationCode": "901",
"woNumber": null,
"woLine": null,
"packQty": 8,
"packUnit": "BOX",
"itemCode": "item01",
"itemName": "物料01",
"itemDesc1": "",
"itemDesc2": "",
"projectCode": "xm01",
"qty": 2,
"packQty": 5,
"packUnit": "Box-05",
"itemCode": "399.960-12",
"itemName": "远光内侧反射镜(镀铝)右灯",
"itemDesc1": null,
"itemDesc2": null,
"projectCode": null,
"qty": 5,
"uom": "EA",
"number": "JOB2120231212-0001",
"number": "JOB2120240401-0001",
"remark": null,
"createTime": 1702376904000,
"creator": "1",
"createTime": 1711952823000,
"creator": "超级管理员",
"toOwnerCode": null,
handleQty: 10,
toPackingNumber: '12',
toContainerNumber: '001',
toBatch: '21',
toInventoryStatus: 'OK',
toLocationCode: 'H03',
"updateTime": 1711952823000,
"updater": "超级管理员",
handleQty: 5,
toPackingNumber: "PN0401-000072",
toContainerNumber: null,
toBatch: '20240401',
toInventoryStatus: 'OK'
}
]
}

20
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts

@ -536,16 +536,16 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
// {
// label: '操作',
// field: 'action',
// isDetail: false,
// isForm: false,
// table: {
// width: 120,
// fixed: 'right'
// },
// }
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 120,
fixed: 'right'
},
}
]))
//表单校验

8
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -70,7 +70,7 @@
max-height="450px"
>
<Table
:columns="BackflushRecordDetailb.allSchemas.tableColumns"
:columns="ProductreceiptDetailb.allSchemas.tableColumns"
:data="detatableDataBom.tableList"
:loading="detatableDataBom.loading"
:pagination="{
@ -85,11 +85,11 @@
<script setup lang="ts">
import download from '@/utils/download'
import { ProductreceiptRecordMain,ProductreceiptRecordMainRules,ProductreceiptRecordDetail,ProductreceiptRecordDetailRules, BackflushRecordDetailb } from './productreceiptAssembleRecordMain.data'
import { ProductreceiptRecordMain,ProductreceiptRecordMainRules,ProductreceiptRecordDetail,ProductreceiptRecordDetailRules, ProductreceiptDetailb } from './productreceiptAssembleRecordMain.data'
import * as ProductreceiptRecordMainApi from '@/api/wms/productreceiptRecordMain'
import * as ProductreceiptRecordDetailApi from '@/api/wms/productreceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as BackflushRecordDetailbApi from '@/api/wms/backflushRecordDetailb'
import * as ProductreceiptDetailbApi from '@/api/wms/productreceiptDetailb'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
//
@ -118,7 +118,7 @@ const buttondataTable = ref([{
const DialogTitle = ref('Bom信息')
const bomModelVisible = ref(false)
const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({
getListApi: BackflushRecordDetailbApi.getBackflushRecordDetailbPage
getListApi: ProductreceiptDetailbApi.getProductreceiptDetailbPage
})
const { getList:getDetailListBom } = detatableMethodsBom

113
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

@ -957,3 +957,116 @@ export const BackflushRecordDetailbRules = reactive({
{ required: true, message: '请输入创建者', trigger: 'blur' }
],
})
// 表单校验
export const ProductreceiptDetailbRules = reactive({
masterId: [required],
})
export const ProductreceiptDetailb = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
isSearch: true,
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: true,
},
{
label: '主表ID',
field: 'masterId',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
isSearch: true,
},
{
label: '外部零件号',
field: 'outsideItemCode',
sort: 'custom',
isSearch: true,
},
{
label: '外部生产日期',
field: 'outsideProduceDate',
sort: 'custom',
formatter: dateFormatter,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '外部流水号',
field: 'outsideSerialNumber',
sort: 'custom',
isSearch: true,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: true,
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false,
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))

Loading…
Cancel
Save