|
@@ -232,7 +232,7 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
-import { allocWarehouseDetailList, allocWarehouseDetail, productQuery, allocWarehouseDetailCount, allocWarehouseDetailSave, allocWarehouseDetailDel, allocWarehouseSubmit } from '@/api/allocWarehouse'
|
|
|
+import { allocWarehouseDetailList, allocWarehouseDetail, updatePutWhLocation, productQuery, allocWarehouseDetailCount, allocWarehouseDetailSave, allocWarehouseDetailDel, allocWarehouseSubmit } from '@/api/allocWarehouse'
|
|
|
import { dealerProductBrandQuery } from '@/api/dealerProductBrand'
|
|
|
import { dealerProductTypeList } from '@/api/dealerProductType'
|
|
|
import { warehouseLocAllList } from '@/api/warehouse'
|
|
@@ -495,8 +495,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 已选产品 仓位 change
|
|
|
- chooseWarehouseLocChange (record) {
|
|
|
- this.handleAdd(record, 'edit')
|
|
|
+ chooseWarehouseLocChange (row) {
|
|
|
+ const params = {
|
|
|
+ allocationWarehouseSn: this.$route.params.sn,
|
|
|
+ productSn: row.productSn,
|
|
|
+ outWarehouseLocationSn: row.outWarehouseLocationSn,
|
|
|
+ putWarehouseLocationSn: row.putWarehouseLocationSn
|
|
|
+ }
|
|
|
+ this.spinning = true
|
|
|
+ updatePutWhLocation(params).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.$message.success(res.message)
|
|
|
+ this.$refs.table.refresh()
|
|
|
+ this.$refs.chooseTable.refresh()
|
|
|
+ this.spinning = false
|
|
|
+ } else {
|
|
|
+ this.spinning = false
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 产品分类 change
|
|
|
changeProductType (val, opt) {
|