半成品出库分配-人工分配
parent
f4813bfe19
commit
63c8fd81e6
|
|
@ -40,11 +40,11 @@ export function cancelAllocate(ids) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function picking(pickDetailId) {
|
export function picking(datas) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/pickDetail/picking',
|
url: 'api/pickDetail/picking',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: pickDetailId
|
data: datas
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,10 @@
|
||||||
<rrOperation :crud="crud"/>
|
<rrOperation :crud="crud"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<crudOperation :permission="permission">
|
<crudOperation :permission="permission" :tableKey="this.$options.name">
|
||||||
</crudOperation>
|
</crudOperation>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0"
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0"
|
||||||
:title="crud.status.title" width="500px">
|
:title="crud.status.title" width="500px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
||||||
<el-form-item label="编号" prop="code">
|
<el-form-item label="编号" prop="code">
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="dispatchDate" label="发货时间" />
|
<el-table-column prop="dispatchDate" label="发货时间" />
|
||||||
<el-table-column prop="erTime" label="操作时间" />
|
<el-table-column prop="erTime" label="操作时间" />
|
||||||
<el-table-column v-if="checkPer(['admin','pick:edit','pick:del'])" label="操作" width="150px" align="center">
|
<el-table-column fixed="right" v-if="checkPer(['admin','pick:edit','pick:del'])" label="操作" width="150px" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<udOperation
|
<udOperation
|
||||||
:data="scope.row"
|
:data="scope.row"
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
:loading="crud.delAllLoading"
|
:loading="crud.delAllLoading"
|
||||||
:disabled="show_jh"
|
:disabled="crud.selections.length !== 1 || this.crud.selections[0].allocatedQty<=this.crud.selections[0].pickedQty"
|
||||||
@click="getPickTask(crud.selections[0].id)"
|
@click="getPickTask(crud.selections[0].id)"
|
||||||
>
|
>
|
||||||
拣货确认
|
拣货确认
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-lollipop"
|
icon="el-icon-lollipop"
|
||||||
@click="picking"
|
@click="picking(crud.selections)"
|
||||||
>整单拣货
|
>人工拣货
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table v-loading="loading" :data="data" style="width: 100%;margin-top: -10px;">
|
<el-table v-loading="loading" :data="data" style="width: 100%;margin-top: -10px;">
|
||||||
|
<el-table-column type="selection" width="50" />
|
||||||
<el-table-column type="index" :index="indexMethod" label="序号"/>
|
<el-table-column type="index" :index="indexMethod" label="序号"/>
|
||||||
<el-table-column :show-overflow-tooltip="true" prop="itemCode" label="任务号">
|
<el-table-column :show-overflow-tooltip="true" prop="itemCode" label="任务号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -117,15 +118,15 @@ export default {
|
||||||
indexMethod(index) {
|
indexMethod(index) {
|
||||||
return index * 1 + 1;
|
return index * 1 + 1;
|
||||||
},
|
},
|
||||||
picking() {
|
picking(datas) {
|
||||||
this.$confirm(`确认整单拣货?`, '提示', {
|
this.$confirm(`确认拣货?`, '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|
||||||
crudPickDetail.picking(this.pickDetailId).then(res => {
|
crudPickDetail.picking(datas).then(res => {
|
||||||
this.$parent.crud.notify('拣货成功!', CRUD.NOTIFICATION_TYPE.SUCCESS);
|
this.$parent.crud.notify(res.message, res.status)
|
||||||
this.queryPickTask(this.pickDetailId)
|
this.queryPickTask(this.pickDetailId)
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue