|
|
@ -149,7 +149,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton = (row,val) => { |
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
|
if (val.indexOf(row.receiveStatus) > -1) { |
|
|
|
return false |
|
|
|
} else { |
|
|
|
return true |
|
|
@ -197,20 +197,36 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
// 拒收 |
|
|
|
const handleRefusal = async () => { |
|
|
|
const handleRefusal = async (row) => { |
|
|
|
try { |
|
|
|
loadStart() |
|
|
|
// 接口 |
|
|
|
InventorymoveRecordMainApi.refuse(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
loadDone() |
|
|
|
} |
|
|
|
} |
|
|
|
// 接收 |
|
|
|
const handleRecept = async () => { |
|
|
|
const handleRecept = async (row) => { |
|
|
|
try { |
|
|
|
loadStart() |
|
|
|
// 接口 |
|
|
|
InventorymoveRecordMainApi.receive(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
loadDone() |
|
|
|