|
@ -177,12 +177,15 @@ const butttondata = (row,$index) => { |
|
|
return [] |
|
|
return [] |
|
|
} |
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
|
|
if(val == 'inspectRequest'){//生成到货检验申请 |
|
|
|
|
|
handleCreateInspectRequest(row.number) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
@ -194,6 +197,19 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'recordProductreceiptMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'recordProductreceiptMain') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 生成到货检验申请按钮操作 */ |
|
|
|
|
|
const handleCreateInspectRequest = async (number:string) => { |
|
|
|
|
|
try{ |
|
|
|
|
|
await message.confirm(t('ts.确认生成到货检验申请吗?')) |
|
|
|
|
|
tableObject.loading = true |
|
|
|
|
|
await ProductreceiptRecordMainApi.createInspectRequest(number) |
|
|
|
|
|
message.success(t('ts.到货检验申请生成成功')) |
|
|
|
|
|
await getList() |
|
|
|
|
|
}catch{}finally{ |
|
|
|
|
|
tableObject.loading = false |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
/** 导出按钮操作 */ |
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
const handleExport = async () => { |
|
|
const handleExport = async () => { |
|
|