|
|
@ -241,8 +241,23 @@ const butttondata = (row,$index) => { |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'point') { // 标签打印 |
|
|
|
labelPrint(row) |
|
|
|
}else if(val == 'inspectRequest'){//生成到货检验申请 |
|
|
|
handleCreateInspectRequest(row.number) |
|
|
|
} |
|
|
|
} |
|
|
|
/** 生成到货检验申请按钮操作 */ |
|
|
|
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 searchTableRef = ref() |
|
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
|
|
const labelPrint = async (row) => { |
|
|
|