出库自动分配
This commit is contained in:
@@ -56,5 +56,13 @@ export function getOutStockoutDetail(query) {
|
||||
})
|
||||
}
|
||||
|
||||
export function autoAllot(data) {
|
||||
return request({
|
||||
url: '/out/outStockout/autoAllot',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOutStockout } from "@/api/out/outStockout"
|
||||
import { listOutStockout,autoAllot } from "@/api/out/outStockout"
|
||||
import { getOutStockoutDetail,updateOutStockStatus } from "@/api/out/outStockout"
|
||||
|
||||
export default {
|
||||
@@ -319,8 +319,14 @@ export default {
|
||||
return
|
||||
}
|
||||
const stockoutIds = this.selectedRows.map(row => row.stockoutId)
|
||||
// TODO: 调用自动分配接口
|
||||
console.log("自动分配:", stockoutIds)
|
||||
let data = {
|
||||
stockoutIds: stockoutIds
|
||||
}
|
||||
autoAllot(data).then(response => {
|
||||
this.$modal.msgSuccess(response)
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
/** 手动分配按钮操作 */
|
||||
handleManualAllot() {
|
||||
|
||||
Reference in New Issue
Block a user