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
sampleQty: number
fromAreaTypes: string
putawayRequestFlag: boolean
}
// 查询检验记录主列表
@ -85,3 +86,9 @@ export const exportInspectRecordMain = async (params) => {
export const importTemplate = () => {
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,12 +131,29 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = (row) => {
return [
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest'}), //
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest',hide:!row.putawayRequestFlag}), //
]
}
// -
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
}
}
/** 详情操作 */

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

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

Loading…
Cancel
Save