|
@@ -576,8 +576,8 @@ export default {
|
|
|
getStockForceDetail() {
|
|
|
getStockForceDetail().then(res => {
|
|
|
this.forcedHoldForm = {
|
|
|
- warehouse: res.data.stockCorrespondId,
|
|
|
- category: res.data.stockForceCategories.map(k => k.categoryId)
|
|
|
+ warehouse: res.data?.stockCorrespondId || '',
|
|
|
+ category: res.data?.stockForceCategories.map(k => k.categoryId) || []
|
|
|
}
|
|
|
})
|
|
|
},
|