Browse Source

增加记录创建申请

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
fecd4d4b9d
  1. 7
      src/api/wms/inspectRecordMain/index.ts
  2. 19
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
  3. 18
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/inspectRecordMain.data.ts

7
src/api/wms/inspectRecordMain/index.ts

@ -38,6 +38,7 @@ export interface InspectRecordMainVO {
available: string available: string
sampleQty: number sampleQty: number
fromAreaTypes: string fromAreaTypes: string
putawayRequestFlag: boolean
} }
// 查询检验记录主列表 // 查询检验记录主列表
@ -85,3 +86,9 @@ export const exportInspectRecordMain = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/inspect-record-main/get-import-template' }) return request.download({ url: '/wms/inspect-record-main/get-import-template' })
} }
// 创建上架申请
export const createPutAwayRequest = async (number:string) => {
return await request.post({ url: `/wms/inspect-record-main/createPutAwayRequest?number=`+number })
}

19
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue

@ -131,14 +131,31 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest'}), // defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest',hide:!row.putawayRequestFlag}), //
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'putawayRequest') { //
handlePutawayRequest(row.number)
}
} }
/** 生成采购上架申请按钮操作 */
const handlePutawayRequest = async (number:string) => {
try{
await message.confirm(t('确认生成上架申请吗?'))
tableObject.loading = true
await InspectRecordMainApi.createPutAwayRequest(number)
message.success(t('上架申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {

18
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/inspectRecordMain.data.ts

@ -209,14 +209,6 @@ export const InspectRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
// {
// label: '代码',
// field: 'code',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
@ -413,6 +405,16 @@ export const InspectRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
} }
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 300,
fixed: 'right'
},
} }
])) ]))

Loading…
Cancel
Save