出库-分配库存,不足整托提示

main
bbl\baobl 2024-03-25 15:20:00 +08:00
parent ff99e3ed28
commit 51c52e02c1
3 changed files with 8 additions and 9 deletions

View File

@ -19,14 +19,14 @@
<rrOperation :crud="crud"/> <rrOperation :crud="crud"/>
</div> </div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'--> <!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission" :tableKey="tableKey"> <crudOperation :permission="permission" :table-key="this.$options.name">
<el-button <el-button
slot="right" slot="right"
class="filter-item" class="filter-item"
type="success" type="success"
icon="el-icon-edit" icon="el-icon-edit"
size="mini" size="mini"
:disabled="crud.selections.length !== 1 || this.crud.selections[0].orderQty<=this.crud.selections[0].allocatedQty" :disabled="crud.selections.length !== 1 || this.crud.selections[0].status !=='OPEN'"
@click="allocate(crud.selections)" @click="allocate(crud.selections)"
> >
分配 分配
@ -38,7 +38,7 @@
icon="el-icon-edit" icon="el-icon-edit"
size="mini" size="mini"
:loading="crud.delAllLoading" :loading="crud.delAllLoading"
:disabled="crud.selections.length !== 1 || this.crud.selections[0].status!=='ALLOCATE' || this.crud.selections[0].status!=='PICKUP'" :disabled="crud.selections.length !== 1 || this.crud.selections[0].status !=='ALLOCATE'"
@click="cancelAllocate(crud.selections)" @click="cancelAllocate(crud.selections)"
> >
取消分配 取消分配
@ -121,13 +121,12 @@
</template> </template>
<script> <script>
import crudPick, { allocate,cancelAllocate } from '@/api/pick' import crudPick from '@/api/pick'
import CRUD, { presenter, header, form, crud } from '@crud/crud' import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation' import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation' import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation' import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import crudPickDetail from "@/api/pickDetail";
const defaultForm = { id: null, deptId: null, billType: null, orderOrigin: null, priority: null, owner: null, relatedBill1: null, relatedBill2: null, sourceName: null, status: null, address: null, dispatchDate: null, erTime: null, createBy: null, updateBy: null, createTime: null, updateTime: null, orderDate: null } const defaultForm = { id: null, deptId: null, billType: null, orderOrigin: null, priority: null, owner: null, relatedBill1: null, relatedBill2: null, sourceName: null, status: null, address: null, dispatchDate: null, erTime: null, createBy: null, updateBy: null, createTime: null, updateTime: null, orderDate: null }
export default { export default {
@ -168,7 +167,7 @@ export default {
ids.push(datas[i].id) ids.push(datas[i].id)
} }
crudPick.allocate(ids).then(res => { crudPick.allocate(ids).then(res => {
this.crud.notify(res.message, res.status) this.crud.notify(res.data, res.status)
this.crud.toQuery() this.crud.toQuery()
}).catch(() => { }).catch(() => {
this.crud.toQuery() this.crud.toQuery()

View File

@ -2,7 +2,7 @@
<div class="app-container"> <div class="app-container">
<div class="head-container"> <div class="head-container">
<Search /> <Search />
<crudOperation> <crudOperation :table-key="this.$options.name">
<el-button <el-button
slot="left" slot="left"
class="filter-item" class="filter-item"
@ -17,7 +17,7 @@
</crudOperation> </crudOperation>
</div> </div>
<!--表格渲染--> <!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> <el-table ref="table" border v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="expand"> <el-table-column type="expand">
<template slot-scope="props"> <template slot-scope="props">
<el-form label-position="left" inline class="demo-table-expand"> <el-form label-position="left" inline class="demo-table-expand">