|
@@ -816,16 +816,18 @@ export default {
|
|
|
chooseWarehouseOk (sn) {
|
|
|
const _this = this
|
|
|
const snArr = []
|
|
|
- _this.rowSelectionInfo.selectedRows.forEach(item => {
|
|
|
- snArr.push(item.salesBillDetailSn)
|
|
|
- })
|
|
|
- const ajax_data = {
|
|
|
+ if (_this.rowSelectionInfo && _this.rowSelectionInfo.selectedRows && _this.rowSelectionInfo.selectedRows.length > 0) {
|
|
|
+ _this.rowSelectionInfo.selectedRows.forEach(item => {
|
|
|
+ snArr.push(item.salesBillDetailSn)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ const ajaxData = {
|
|
|
warehouseSn: sn,
|
|
|
salesBillDetailSnList: snArr,
|
|
|
salesBillSn: _this.salesBillSn,
|
|
|
allFlag: _this.warehouseTit ? true : undefined
|
|
|
}
|
|
|
- _this.setWarehouseInfo(ajax_data)
|
|
|
+ _this.setWarehouseInfo(ajaxData)
|
|
|
},
|
|
|
// 更改仓库信息
|
|
|
setWarehouseInfo (data) {
|