半成品-人工拣货
parent
63c8fd81e6
commit
25414b6354
|
|
@ -20,7 +20,7 @@
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-lollipop"
|
icon="el-icon-lollipop"
|
||||||
@click="picking(crud.selections)"
|
@click="picking()"
|
||||||
>人工拣货
|
>人工拣货
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
|
@ -37,12 +37,12 @@
|
||||||
</div>
|
</div>
|
||||||
</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;" @selection-change="selectionChangeHandlerTwos">
|
||||||
<el-table-column type="selection" width="50" />
|
<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">
|
||||||
<div>{{ scope.row.pickDetail.po }}</div>
|
<div>{{ scope.row.pickDetail.pick.relatedBill1 }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
|
<el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
|
||||||
|
|
@ -55,10 +55,8 @@
|
||||||
<div>{{ scope.row.item.name }}</div>
|
<div>{{ scope.row.item.name }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="srcStockCode" label="容器"/>
|
<el-table-column prop="srcPoint.code" label="原点位" />
|
||||||
|
<el-table-column prop="dstPoint.code" label="目标点位" />
|
||||||
<el-table-column prop="srcPointCode" label="原点位"/>
|
|
||||||
<el-table-column prop="dstPointCode" label="目标点位"/>
|
|
||||||
|
|
||||||
<el-table-column prop="planQty" label="分配数量"/>
|
<el-table-column prop="planQty" label="分配数量"/>
|
||||||
<el-table-column prop="moveQty" label="拣货数量"/>
|
<el-table-column prop="moveQty" label="拣货数量"/>
|
||||||
|
|
@ -115,17 +113,25 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
selectionChangeHandlerTwos(val) {
|
||||||
|
crud.selections = val
|
||||||
|
console.log(crud.selections)
|
||||||
|
},
|
||||||
indexMethod(index) {
|
indexMethod(index) {
|
||||||
return index * 1 + 1;
|
return index * 1 + 1;
|
||||||
},
|
},
|
||||||
picking(datas) {
|
picking() {
|
||||||
this.$confirm(`确认拣货?`, '提示', {
|
this.$confirm(`确认拣货?`, '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
const ids = []
|
||||||
crudPickDetail.picking(datas).then(res => {
|
for (let i = 0; i < crud.selections.length; i++) {
|
||||||
|
ids.push(crud.selections[i].id)
|
||||||
|
}
|
||||||
|
console.log('ids:'+ids)
|
||||||
|
crudPickDetail.picking(ids).then(res => {
|
||||||
this.$parent.crud.notify(res.message, res.status)
|
this.$parent.crud.notify(res.message, res.status)
|
||||||
this.queryPickTask(this.pickDetailId)
|
this.queryPickTask(this.pickDetailId)
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue