|
@ -149,7 +149,7 @@ const buttonBaseClick = (val, item) => { |
|
|
} |
|
|
} |
|
|
// 根据状态返回该按钮是否显示 |
|
|
// 根据状态返回该按钮是否显示 |
|
|
const isShowMainButton = (row,val) => { |
|
|
const isShowMainButton = (row,val) => { |
|
|
if (val.indexOf(row.status) > -1) { |
|
|
if (val.indexOf(row.receiveStatus) > -1) { |
|
|
return false |
|
|
return false |
|
|
} else { |
|
|
} else { |
|
|
return true |
|
|
return true |
|
@ -197,20 +197,36 @@ const buttonTableClick = async (val, row) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 拒收 |
|
|
// 拒收 |
|
|
const handleRefusal = async () => { |
|
|
const handleRefusal = async (row) => { |
|
|
try { |
|
|
try { |
|
|
loadStart() |
|
|
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 { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
loadDone() |
|
|
loadDone() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 接收 |
|
|
// 接收 |
|
|
const handleRecept = async () => { |
|
|
const handleRecept = async (row) => { |
|
|
try { |
|
|
try { |
|
|
loadStart() |
|
|
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 { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
loadDone() |
|
|
loadDone() |
|
|