Browse Source

生成收料任务修改

master
陈薪名 1 year ago
parent
commit
19cc363727
  1. 189
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue
  2. 20
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts

189
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

@ -154,92 +154,109 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { // if (val == 'mainJobExe') { //
let aaa = { let aaa = {
id: '1809190000221670786', "id": "1809180000625614571",
requestNumber: "REC4620231120-0001", "issueJobNumber": "JOB0620231121-0001",
workShopCode: "222", "workshopCode": "222",
fromWarehouseCode: null, "fromWarehouseCode": "11",
toWarehouseCode: null, "toWarehouseCode": "22",
requestTime: 1700449299000, "requestTime": 1700550442000,
requestDueTime: 1700448320000, "requestDueTime": null,
status: "4", "status": "2",
expiredTime: null, "expiredTime": null,
// updateTime: 1700551119000, "updateTime": 1700550582000,
// updater: "1", "updater": "1",
priority: null, "jobStageStatus": null,
priorityIncrement: null, "priority": null,
departmentCode: "研发部门", "priorityIncrement": null,
acceptUserId: "1", "departmentCode": "研发部门",
acceptTime: 1700562156000, "acceptUserId": "1",
completeUserName: null, "acceptTime": 1700737729000,
completeTime: null, "completeUserId": null,
fromLocationTypes: "RAW,SEMI", "completeTime": null,
toLocationTypes: "WIP", "fromLocationTypes": "RAW,SEMI",
number: "JOB0620231121-0001", "toLocationTypes": "WIP",
businessType: "Issue", "number": "JOB2920231123-0001",
remark: null, "businessType": "ProductionReceipt",
createTime: 1700551119000, "remark": null,
creator: "1", "createTime": 1700550581000,
fromAreaCodes: "", "creator": "1",
toAreaCodes: "", "fromAreaCodes": "33",
useOnTheWayLocation: "TRUE", "toAreaCodes": "44",
autoComplete: "FALSE", "useOnTheWayLocation": "FALSE",
allowModifyLocation: "TRUE", "autoComplete": "FALSE",
allowModifyQty: "TRUE", "allowModifyLocation": "TRUE",
allowBiggerQty: "TRUE", "allowModifyQty": "TRUE",
allowSmallerQty: "TRUE", "allowBiggerQty": "TRUE",
allowModifyInventoryStatus: "TRUE", "allowSmallerQty": "TRUE",
allowContinuousScanning: "TRUE", "allowModifyInventoryStatus": "TRUE",
allowPartialComplete: "TRUE", "allowContinuousScanning": "TRUE",
allowModifyPackingNumber: "FALSE", "allowPartialComplete": "TRUE",
allowModifyBatch: "FALSE", "allowModifyBatch": "FALSE",
subList: [{ "allowModifyPackingNumber": "FALSE",
id: '1809190000965784282', subList: [
productionLineCode: "111", {
workStationCode: "555", "id": "1809180001922347895",
inventoryStatus: "OK", "productionLineCode": "111",
onTheWayLocationCode: null, "workStationCode": "555",
packingNumber: "12", "onTheWayLocationCode": "",
containerNumber: "001", "packingNumber": "001",
batch: "21", "containerNumber": "002",
fromLocationCode: "H03", "batch": "003",
toLocationCode: "1", "inventoryStatus": "OK",
itemCode: "item01", "fromLocationCode": "H03",
itemName: "物品01", "itemCode": "item01",
itemDesc1: "", "itemName": "物品01",
itemDesc2: "", "itemDesc1": "",
stdPackQty: null, "itemDesc2": "",
stdPackUnit: null, "projectCode": "xm01",
supplierQty: null, "qty": 22,
supplierUom: null, "uom": "EA",
projectCode: "xm01", "number": "JOB2920231123-0001",
qty: 50, "remark": null,
uom: "EA", "createTime": 1700550582000,
number: "JOB0620231121-0001", "creator": "1",
remark: null, "fromOwnerCode": null,
createTime: 1700550582000, "toOwnerCode": null,
creator: "1", handleQty: 10,
fromOwnerCode: null, toPackingNumber: '12',
toOwnerCode: null, toContainerNumber: '001',
// updateTime: 1700551119000, toBatch: '21',
// updater: "1", toInventoryStatus: 'OK',
recordLst: [{ toLocationCode: 'H03',
handleQty: 10, supplierCode: 'MRL',
toPackingNumber: '12', },
toContainerNumber: '001', {
toBatch: '21', "id": "1809180001922347894",
toInventoryStatus: 'OK', "productionLineCode": "111",
toLocationCode: 'H03', "workStationCode": "555",
supplierCode: '31213', "onTheWayLocationCode": "",
},{ "packingNumber": "2222",
handleQty: 22, "containerNumber": "333",
toPackingNumber: 'M20230421000005', "batch": "444",
toContainerNumber: '001', "inventoryStatus": "OK",
toBatch: '20230808', "fromLocationCode": "H03",
toInventoryStatus: 'OK', "itemCode": "item01",
toLocationCode: 'SFG', "itemName": "物品01",
supplierCode: '31213', "itemDesc1": "",
}] "itemDesc2": "",
}] "projectCode": "xm01",
"qty": 10,
"uom": "EA",
"number": "JOB2920231123-0001",
"remark": null,
"createTime": 1700550582000,
"creator": "1",
"fromOwnerCode": null,
"toOwnerCode": null,
handleQty: 10,
toPackingNumber: '12',
toContainerNumber: '001',
toBatch: '21',
toInventoryStatus: 'OK',
toLocationCode: 'H03',
supplierCode: 'MRL',
}
]
} }
ProductionreceiptJobMainApi.executeIssueMain(aaa) ProductionreceiptJobMainApi.executeIssueMain(aaa)
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //

20
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts

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

Loading…
Cancel
Save