盘点自动分配测试
This commit is contained in:
@@ -260,7 +260,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listStockCheck, getStockCheck, delStockCheck, addStockCheck, updateStockCheck } from "@/api/check/stockCheck"
|
||||
import { listStockCheck, getStockCheck, delStockCheck, addStockCheck, updateStockCheck,autoAllocation } from "@/api/check/stockCheck"
|
||||
import { listStockCheckDetail } from "@/api/check/stockCheckDetail"
|
||||
import { listWarehouse } from "@/api/bas/warehouse"
|
||||
|
||||
@@ -297,6 +297,8 @@ export default {
|
||||
detailTotal: 0,
|
||||
// 明细表格数据
|
||||
stockCheckDetailList: [],
|
||||
// 选中数据
|
||||
selectedRows: [],
|
||||
// 明细查询参数
|
||||
queryDetailParams: {
|
||||
pageNum: 1,
|
||||
@@ -520,6 +522,17 @@ export default {
|
||||
},
|
||||
handleAutoAllocation(row){
|
||||
|
||||
if (this.ids.length !== 1){
|
||||
this.$modal.msgError(this.$t('checkStockCheck.onlyOneCanAutoAllocation'))
|
||||
}
|
||||
|
||||
const stockCheckData = {
|
||||
"stockGuid": this.ids[0]
|
||||
}
|
||||
autoAllocation(stockCheckData).then(response => {
|
||||
this.$modal.msgSuccess(this.$t('checkStockCheck.autoAllocationSuccess'))
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user