Commit a668732e authored by Nate 赵宇's avatar Nate 赵宇

新业务页面更新 2022-06-17

parent e593a123
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/barcodeSku',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/barcodeSku/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/barcodeSku',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/finishedWorkOrder',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/finishedWorkOrder/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/finishedWorkOrder',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/materialIssuing',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/materialIssuing/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/materialIssuing',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/workOrder',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/workOrder/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/workOrder',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/invDetails',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/invDetails/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/invDetails',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/invTransferRecords',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/invTransferRecords/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/invTransferRecords',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/pickOrderDetails',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/pickOrderDetails/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/pickOrderDetails',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/putAwayRequest',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/putAwayRequest/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/putAwayRequest',
method: 'put',
data
})
}
export default { add, edit, del }
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/receiveOrders',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/receiveOrders/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/receiveOrders',
method: 'put',
data
})
}
export default { add, edit, del }
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码" prop="sku">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="是否有效" prop="activeFlag">
<el-input v-model="form.activeFlag" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品大类">
<el-input v-model="form.skuCategory" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品小类" prop="smallCategory">
<el-input v-model="form.smallCategory" style="width: 370px;" />
</el-form-item>
<el-form-item label="备注1">
<el-input v-model="form.remark1" style="width: 370px;" />
</el-form-item>
<el-form-item label="备注2">
<el-input v-model="form.remark2" style="width: 370px;" />
</el-form-item>
<el-form-item label="辅助条码1">
<el-input v-model="form.alternateSku1" style="width: 370px;" />
</el-form-item>
<el-form-item label="辅助条码2">
<el-input v-model="form.alternateSku2" style="width: 370px;" />
</el-form-item>
<el-form-item label="JDE单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="最小包装">
<el-input v-model="form.mpq" style="width: 370px;" />
</el-form-item>
<el-form-item label="产线UPH">
<el-input v-model="form.uph" style="width: 370px;" />
</el-form-item>
<el-form-item label="leadTime">
<el-input v-model="form.leadTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="是否启用期效">
<el-input v-model="form.isEffect" style="width: 370px;" />
</el-form-item>
<el-form-item label="是否管控批次">
<el-input v-model="form.batchControl" style="width: 370px;" />
</el-form-item>
<el-form-item label="失效天数">
<el-input v-model="form.expiredDays" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="activeFlag" label="是否有效" />
<el-table-column prop="skuCategory" label="商品大类" />
<el-table-column prop="smallCategory" label="商品小类" />
<el-table-column prop="remark1" label="备注1" />
<el-table-column prop="remark2" label="备注2" />
<el-table-column prop="alternateSku1" label="辅助条码1" />
<el-table-column prop="alternateSku2" label="辅助条码2" />
<el-table-column prop="jdeUom" label="JDE单位" />
<el-table-column prop="mpq" label="最小包装" />
<el-table-column prop="uph" label="产线UPH" />
<el-table-column prop="leadTime" label="leadTime" />
<el-table-column prop="isEffect" label="是否启用期效" />
<el-table-column prop="batchControl" label="是否管控批次" />
<el-table-column prop="expiredDays" label="失效天数" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','barcodeSku:edit','barcodeSku:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudBarcodeSku from '@/api/barcode/barcodeSku'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, sku: null, skuDesc: null, activeFlag: null, skuCategory: null, smallCategory: null, remark1: null, remark2: null, alternateSku1: null, alternateSku2: null, jdeUom: null, mpq: null, uph: null, leadTime: null, isEffect: null, batchControl: null, expiredDays: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'BarcodeSku',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:商品接口', url: 'api/barcodeSku', idField: 'id', sort: 'id,desc', crudMethod: { ...crudBarcodeSku }})
},
data() {
return {
permission: {
add: ['admin', 'barcodeSku:add'],
edit: ['admin', 'barcodeSku:edit'],
del: ['admin', 'barcodeSku:del']
},
rules: {
sku: [
{ required: true, message: '商品编码不能为空', trigger: 'blur' }
],
activeFlag: [
{ required: true, message: '是否有效不能为空', trigger: 'blur' }
],
smallCategory: [
{ required: true, message: '商品小类不能为空', trigger: 'blur' }
]
} }
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">工单号 JDE工单号</label>
<el-input v-model="query.workOrder" clearable placeholder="工单号 JDE工单号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">工单类型 JDE工单类型</label>
<el-input v-model="query.workOrderType" clearable placeholder="工单类型 JDE工单类型" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">完工工单号 WMS完工单号</label>
<el-input v-model="query.finishedWorkOrder" clearable placeholder="完工工单号 WMS完工单号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">完工类型 10=半成品/30=成品</label>
<el-input v-model="query.finishedWoType" clearable placeholder="完工类型 10=半成品/30=成品" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="工单号 JDE工单号" prop="workOrder">
<el-input v-model="form.workOrder" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单类型 JDE工单类型">
<el-input v-model="form.workOrderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工工单号 WMS完工单号">
<el-input v-model="form.finishedWorkOrder" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工类型 10=半成品/30=成品">
<el-input v-model="form.finishedWoType" style="width: 370px;" />
</el-form-item>
<el-form-item label="pass标签 与WMS完工单号一一对应,成品发运按照pass标签发运">
<el-input v-model="form.passPanel" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="库位 完工库位">
<el-input v-model="form.location" style="width: 370px;" />
</el-form-item>
<el-form-item label="仓库 默认2930001">
<el-input v-model="form.warehouse" style="width: 370px;" />
</el-form-item>
<el-form-item label="库区 JDE库位">
<el-input v-model="form.zone" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品单位 JDE主计量单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工数量 本次完工录入数量">
<el-input v-model="form.qtyFinish" style="width: 370px;" />
</el-form-item>
<el-form-item label="未完数量 工单未完工数量">
<el-input v-model="form.qtyUn" style="width: 370px;" />
</el-form-item>
<el-form-item label="已完工数量 工单已完工数量">
<el-input v-model="form.qtyComplete" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工日期">
<el-input v-model="form.finishDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="批次 按照完工日期生成流水号">
<el-input v-model="form.lot" style="width: 370px;" />
</el-form-item>
<el-form-item label="qa日期">
<el-input v-model="form.qaDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="pass状态 10=欠料/20=扣料完成待回传JDE/30=完工待回传JDE">
<el-input v-model="form.passStatus" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="workOrder" label="工单号 JDE工单号" />
<el-table-column prop="workOrderType" label="工单类型 JDE工单类型" />
<el-table-column prop="finishedWorkOrder" label="完工工单号 WMS完工单号" />
<el-table-column prop="finishedWoType" label="完工类型 10=半成品/30=成品" />
<el-table-column prop="passPanel" label="pass标签 与WMS完工单号一一对应,成品发运按照pass标签发运" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="location" label="库位 完工库位" />
<el-table-column prop="warehouse" label="仓库 默认2930001" />
<el-table-column prop="zone" label="库区 JDE库位" />
<el-table-column prop="jdeUom" label="商品单位 JDE主计量单位" />
<el-table-column prop="qtyFinish" label="完工数量 本次完工录入数量" />
<el-table-column prop="qtyUn" label="未完数量 工单未完工数量" />
<el-table-column prop="qtyComplete" label="已完工数量 工单已完工数量" />
<el-table-column prop="finishDate" label="完工日期" />
<el-table-column prop="lot" label="批次 按照完工日期生成流水号" />
<el-table-column prop="qaDate" label="qa日期" />
<el-table-column prop="passStatus" label="pass状态 10=欠料/20=扣料完成待回传JDE/30=完工待回传JDE" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','finishedWorkOrder:edit','finishedWorkOrder:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudFinishedWorkOrder from '@/api/mes/finishWorkOrder/finishedWorkOrder'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { workOrder: null, workOrderType: null, finishedWorkOrder: null, finishedWoType: null, passPanel: null, sku: null, skuDesc: null, location: null, warehouse: null, zone: null, jdeUom: null, qtyFinish: null, qtyUn: null, qtyComplete: null, finishDate: null, lot: null, qaDate: null, passStatus: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'FinishedWorkOrder',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:工单完工记录', url: 'api/finishedWorkOrder', idField: 'workOrder', sort: 'workOrder,desc', crudMethod: { ...crudFinishedWorkOrder }})
},
data() {
return {
permission: {
add: ['admin', 'finishedWorkOrder:add'],
edit: ['admin', 'finishedWorkOrder:edit'],
del: ['admin', 'finishedWorkOrder:del']
},
rules: {
workOrder: [
{ required: true, message: '工单号 JDE工单号不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'workOrder', display_name: '工单号 JDE工单号' },
{ key: 'workOrderType', display_name: '工单类型 JDE工单类型' },
{ key: 'finishedWorkOrder', display_name: '完工工单号 WMS完工单号' },
{ key: 'finishedWoType', display_name: '完工类型 10=半成品/30=成品' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">物料凭证头文本 Y</label>
<el-input v-model="query.materialDocHeader" clearable placeholder="物料凭证头文本 Y" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">物料凭证编号</label>
<el-input v-model="query.materialDocNo" clearable placeholder="物料凭证编号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料凭证头文本 Y" prop="materialDocHeader">
<el-input v-model="form.materialDocHeader" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料凭证编号">
<el-input v-model="form.materialDocNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料移动编码">
<el-input v-model="form.goodsMoveCode" style="width: 370px;" />
</el-form-item>
<el-form-item label="打印标识">
<el-input v-model="form.printTrigger" style="width: 370px;" />
</el-form-item>
<el-form-item label="汇总打印">
<el-input v-model="form.versionPrint" style="width: 370px;" />
</el-form-item>
<el-form-item label="回传日期">
<el-input v-model="form.postingDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料凭证年">
<el-input v-model="form.materialDocYear" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料凭证行项目">
<el-input v-model="form.materialDocItem" style="width: 370px;" />
</el-form-item>
<el-form-item label="单位">
<el-input v-model="form.entryUnit" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料编码">
<el-input v-model="form.material" style="width: 370px;" />
</el-form-item>
<el-form-item label="物料名称">
<el-input v-model="form.materialDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="工厂">
<el-input v-model="form.plant" style="width: 370px;" />
</el-form-item>
<el-form-item label="预留">
<el-input v-model="form.reservation" style="width: 370px;" />
</el-form-item>
<el-form-item label="预留项目">
<el-input v-model="form.reservationItem" style="width: 370px;" />
</el-form-item>
<el-form-item label="批次">
<el-input v-model="form.batch" style="width: 370px;" />
</el-form-item>
<el-form-item label="数量">
<el-input v-model="form.entryQty" style="width: 370px;" />
</el-form-item>
<el-form-item label="移动类型">
<el-input v-model="form.goodsMoveType" style="width: 370px;" />
</el-form-item>
<el-form-item label="销售单行项目">
<el-input v-model="form.salesOrderItem" style="width: 370px;" />
</el-form-item>
<el-form-item label="库位">
<el-input v-model="form.storageLocation" style="width: 370px;" />
</el-form-item>
<el-form-item label="销售单号">
<el-input v-model="form.salesOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="生产单号">
<el-input v-model="form.manufactOrder" style="width: 370px;" />
</el-form-item>
<el-form-item label="状态">
<el-input v-model="form.state" style="width: 370px;" />
</el-form-item>
<el-form-item label="source_sys">
<el-input v-model="form.sourceSys" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="materialDocHeader" label="物料凭证头文本 Y" />
<el-table-column prop="materialDocNo" label="物料凭证编号" />
<el-table-column prop="goodsMoveCode" label="物料移动编码" />
<el-table-column prop="printTrigger" label="打印标识" />
<el-table-column prop="versionPrint" label="汇总打印" />
<el-table-column prop="postingDate" label="回传日期" />
<el-table-column prop="materialDocYear" label="物料凭证年" />
<el-table-column prop="materialDocItem" label="物料凭证行项目" />
<el-table-column prop="entryUnit" label="单位" />
<el-table-column prop="material" label="物料编码" />
<el-table-column prop="materialDesc" label="物料名称" />
<el-table-column prop="plant" label="工厂" />
<el-table-column prop="reservation" label="预留" />
<el-table-column prop="reservationItem" label="预留项目" />
<el-table-column prop="batch" label="批次" />
<el-table-column prop="entryQty" label="数量" />
<el-table-column prop="goodsMoveType" label="移动类型" />
<el-table-column prop="salesOrderItem" label="销售单行项目" />
<el-table-column prop="storageLocation" label="库位" />
<el-table-column prop="salesOrderNo" label="销售单号" />
<el-table-column prop="manufactOrder" label="生产单号" />
<el-table-column prop="state" label="状态" />
<el-table-column prop="sourceSys" label="source_sys" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','materialIssuing:edit','materialIssuing:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudMaterialIssuing from '@/api/mes/materialIssuing/materialIssuing'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, materialDocHeader: null, materialDocNo: null, goodsMoveCode: null, printTrigger: null, versionPrint: null, postingDate: null, materialDocYear: null, materialDocItem: null, entryUnit: null, material: null, materialDesc: null, plant: null, reservation: null, reservationItem: null, batch: null, entryQty: null, goodsMoveType: null, salesOrderItem: null, storageLocation: null, salesOrderNo: null, manufactOrder: null, state: null, sourceSys: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'MaterialIssuing',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:生产领料接口', url: 'api/materialIssuing', idField: 'id', sort: 'id,desc', crudMethod: { ...crudMaterialIssuing }})
},
data() {
return {
permission: {
add: ['admin', 'materialIssuing:add'],
edit: ['admin', 'materialIssuing:edit'],
del: ['admin', 'materialIssuing:del']
},
rules: {
materialDocHeader: [
{ required: true, message: '物料凭证头文本 Y不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'materialDocHeader', display_name: '物料凭证头文本 Y' },
{ key: 'materialDocNo', display_name: '物料凭证编号' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">工单号</label>
<el-input v-model="query.workOrder" clearable placeholder="工单号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">工单类型</label>
<el-input v-model="query.workOrderType" clearable placeholder="工单类型" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">工单描述</label>
<el-input v-model="query.workOrderDesc" clearable placeholder="工单描述" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="工单号" prop="workOrder">
<el-input v-model="form.workOrder" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单类型">
<el-input v-model="form.workOrderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单描述">
<el-input v-model="form.workOrderDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="库位">
<el-input v-model="form.location" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单状态">
<el-input v-model="form.orderStatus" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单日期">
<el-input v-model="form.orderDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单开始时间">
<el-input v-model="form.startDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="需求日期">
<el-input v-model="form.requireDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工日期">
<el-input v-model="form.completeDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单数量">
<el-input v-model="form.qtyWo" style="width: 370px;" />
</el-form-item>
<el-form-item label="未完数量">
<el-input v-model="form.qtyUn" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工数量">
<el-input v-model="form.qtyComplete" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="workOrder" label="工单号" />
<el-table-column prop="workOrderType" label="工单类型" />
<el-table-column prop="workOrderDesc" label="工单描述" />
<el-table-column prop="location" label="库位" />
<el-table-column prop="orderStatus" label="工单状态" />
<el-table-column prop="orderDate" label="工单日期" />
<el-table-column prop="startDate" label="工单开始时间" />
<el-table-column prop="requireDate" label="需求日期" />
<el-table-column prop="completeDate" label="完工日期" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="jdeUom" label="商品单位" />
<el-table-column prop="qtyWo" label="工单数量" />
<el-table-column prop="qtyUn" label="未完数量" />
<el-table-column prop="qtyComplete" label="完工数量" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','workOrder:edit','workOrder:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudWorkOrder from '@/api/mes/workOrder/workOrder'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { workOrder: null, workOrderType: null, workOrderDesc: null, location: null, orderStatus: null, orderDate: null, startDate: null, requireDate: null, completeDate: null, sku: null, skuDesc: null, jdeUom: null, qtyWo: null, qtyUn: null, qtyComplete: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'WorkOrder',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:工单接口', url: 'api/workOrder', idField: 'workOrder', sort: 'workOrder,desc', crudMethod: { ...crudWorkOrder }})
},
data() {
return {
permission: {
add: ['admin', 'workOrder:add'],
edit: ['admin', 'workOrder:edit'],
del: ['admin', 'workOrder:del']
},
rules: {
workOrder: [
{ required: true, message: '工单号不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'workOrder', display_name: '工单号' },
{ key: 'workOrderType', display_name: '工单类型' },
{ key: 'workOrderDesc', display_name: '工单描述' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">商品编号</label>
<el-input v-model="query.sku" clearable placeholder="商品编号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">商品名称</label>
<el-input v-model="query.skuDesc" clearable placeholder="商品名称" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">库位编号</label>
<el-input v-model="query.location" clearable placeholder="库位编号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编号" prop="sku">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="库位编号">
<el-input v-model="form.location" style="width: 370px;" />
</el-form-item>
<el-form-item label="批次号">
<el-input v-model="form.lot" style="width: 370px;" />
</el-form-item>
<el-form-item label="from库位">
<el-input v-model="form.locationFrom" style="width: 370px;" />
</el-form-item>
<el-form-item label="from批次">
<el-input v-model="form.lotFrom" style="width: 370px;" />
</el-form-item>
<el-form-item label="to库位">
<el-input v-model="form.locationTo" style="width: 370px;" />
</el-form-item>
<el-form-item label="to批次">
<el-input v-model="form.lotTo" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单号">
<el-input v-model="form.workOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购单号">
<el-input v-model="form.orderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单公司">
<el-input v-model="form.orderCo" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单行号">
<el-input v-model="form.orderLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购单类型">
<el-input v-model="form.orderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购单日期">
<el-input v-model="form.orderDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="完工单号">
<el-input v-model="form.finishedWo" style="width: 370px;" />
</el-form-item>
<el-form-item label="入库日期">
<el-input v-model="form.createDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="数量">
<el-input v-model="form.quantity" style="width: 370px;" />
</el-form-item>
<el-form-item label="单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="移动类型">
<el-input v-model="form.movementType" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移批号">
<el-input v-model="form.batchNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移类型">
<el-input v-model="form.batchType" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移行号">
<el-input v-model="form.batchLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="sku" label="商品编号" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="location" label="库位编号" />
<el-table-column prop="lot" label="批次号" />
<el-table-column prop="locationFrom" label="from库位" />
<el-table-column prop="lotFrom" label="from批次" />
<el-table-column prop="locationTo" label="to库位" />
<el-table-column prop="lotTo" label="to批次" />
<el-table-column prop="workOrderNo" label="工单号" />
<el-table-column prop="orderNo" label="采购单号" />
<el-table-column prop="orderCo" label="订单公司" />
<el-table-column prop="orderLine" label="订单行号" />
<el-table-column prop="orderType" label="采购单类型" />
<el-table-column prop="orderDate" label="采购单日期" />
<el-table-column prop="finishedWo" label="完工单号" />
<el-table-column prop="createDate" label="入库日期" />
<el-table-column prop="quantity" label="数量" />
<el-table-column prop="jdeUom" label="单位" />
<el-table-column prop="movementType" label="移动类型" />
<el-table-column prop="batchNo" label="转移批号" />
<el-table-column prop="batchType" label="转移类型" />
<el-table-column prop="batchLine" label="转移行号" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','invDetails:edit','invDetails:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudInvDetails from '@/api/wms/inventory/query/invDetails'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, sku: null, skuDesc: null, location: null, lot: null, locationFrom: null, lotFrom: null, locationTo: null, lotTo: null, workOrderNo: null, orderNo: null, orderCo: null, orderLine: null, orderType: null, orderDate: null, finishedWo: null, createDate: null, quantity: null, jdeUom: null, movementType: null, batchNo: null, batchType: null, batchLine: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'InvDetails',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:库存查询接口', url: 'api/invDetails', idField: 'id', sort: 'id,desc', crudMethod: { ...crudInvDetails }})
},
data() {
return {
permission: {
add: ['admin', 'invDetails:add'],
edit: ['admin', 'invDetails:edit'],
del: ['admin', 'invDetails:del']
},
rules: {
sku: [
{ required: true, message: '商品编号不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'sku', display_name: '商品编号' },
{ key: 'skuDesc', display_name: '商品名称' },
{ key: 'location', display_name: '库位编号' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">转移单号</label>
<el-input v-model="query.invTransferNo" clearable placeholder="转移单号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">转移单类型</label>
<el-input v-model="query.invTransferType" clearable placeholder="转移单类型" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">from库位</label>
<el-input v-model="query.locationFrom" clearable placeholder="from库位" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">to库位</label>
<el-input v-model="query.locationTo" clearable placeholder="to库位" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移单号" prop="invTransferNo">
<el-input v-model="form.invTransferNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移单类型">
<el-input v-model="form.invTransferType" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移单行号">
<el-input v-model="form.invTransferLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="from库区">
<el-input v-model="form.zoneFrom" style="width: 370px;" />
</el-form-item>
<el-form-item label="from库位">
<el-input v-model="form.locationFrom" style="width: 370px;" />
</el-form-item>
<el-form-item label="to库区">
<el-input v-model="form.zoneTo" style="width: 370px;" />
</el-form-item>
<el-form-item label="to库位">
<el-input v-model="form.locationTo" style="width: 370px;" />
</el-form-item>
<el-form-item label="批次">
<el-input v-model="form.lot" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="申请数量">
<el-input v-model="form.qtyRequest" style="width: 370px;" />
</el-form-item>
<el-form-item label="转移数量">
<el-input v-model="form.qtyTransfer" style="width: 370px;" />
</el-form-item>
<el-form-item label="状态">
<el-input v-model="form.status" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="invTransferNo" label="转移单号" />
<el-table-column prop="invTransferType" label="转移单类型" />
<el-table-column prop="invTransferLine" label="转移单行号" />
<el-table-column prop="zoneFrom" label="from库区" />
<el-table-column prop="locationFrom" label="from库位" />
<el-table-column prop="zoneTo" label="to库区" />
<el-table-column prop="locationTo" label="to库位" />
<el-table-column prop="lot" label="批次" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="jdeUom" label="商品单位" />
<el-table-column prop="qtyRequest" label="申请数量" />
<el-table-column prop="qtyTransfer" label="转移数量" />
<el-table-column prop="status" label="状态" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','invTransferRecords:edit','invTransferRecords:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudInvTransferRecords from '@/api/wms/inventory/transfer/invTransferRecords'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, invTransferNo: null, invTransferType: null, invTransferLine: null, zoneFrom: null, locationFrom: null, zoneTo: null, locationTo: null, lot: null, sku: null, skuDesc: null, jdeUom: null, qtyRequest: null, qtyTransfer: null, status: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'InvTransferRecords',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:库存转移接口', url: 'api/invTransferRecords', idField: 'id', sort: 'id,desc', crudMethod: { ...crudInvTransferRecords }})
},
data() {
return {
permission: {
add: ['admin', 'invTransferRecords:add'],
edit: ['admin', 'invTransferRecords:edit'],
del: ['admin', 'invTransferRecords:del']
},
rules: {
invTransferNo: [
{ required: true, message: '转移单号不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'invTransferNo', display_name: '转移单号' },
{ key: 'invTransferType', display_name: '转移单类型' },
{ key: 'locationFrom', display_name: 'from库位' },
{ key: 'locationTo', display_name: 'to库位' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">拣货任务号</label>
<el-input v-model="query.pickOrderNo" clearable placeholder="拣货任务号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="拣货任务号" prop="pickOrderNo">
<el-input v-model="form.pickOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="拣货行号">
<el-input v-model="form.pickOrderLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="销售单号">
<el-input v-model="form.salesOrder" style="width: 370px;" />
</el-form-item>
<el-form-item label="销售单类型">
<el-input v-model="form.salesOrderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="公司号">
<el-input v-model="form.company" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单号">
<el-input v-model="form.workOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="工单类型">
<el-input v-model="form.workOrderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品大类">
<el-input v-model="form.skuCategory" style="width: 370px;" />
</el-form-item>
<el-form-item label="大类名称">
<el-input v-model="form.categoryName" style="width: 370px;" />
</el-form-item>
<el-form-item label="开始时间">
<el-input v-model="form.startTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="需求时间">
<el-input v-model="form.requireTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="配送频率">
<el-input v-model="form.frequency" style="width: 370px;" />
</el-form-item>
<el-form-item label="配送波次">
<el-input v-model="form.deliveryWave" style="width: 370px;" />
</el-form-item>
<el-form-item label="批次号">
<el-input v-model="form.lot" style="width: 370px;" />
</el-form-item>
<el-form-item label="建议拣货库位">
<el-input v-model="form.location" style="width: 370px;" />
</el-form-item>
<el-form-item label="实际拣货库位">
<el-input v-model="form.locationPick" style="width: 370px;" />
</el-form-item>
<el-form-item label="状态">
<el-input v-model="form.status" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="波次数量">
<el-input v-model="form.qtyWave" style="width: 370px;" />
</el-form-item>
<el-form-item label="建议拣货数量">
<el-input v-model="form.qtySuggestion" style="width: 370px;" />
</el-form-item>
<el-form-item label="实际拣货数量">
<el-input v-model="form.qtyActual" style="width: 370px;" />
</el-form-item>
<el-form-item label="单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="pickOrderNo" label="拣货任务号" />
<el-table-column prop="pickOrderLine" label="拣货行号" />
<el-table-column prop="salesOrder" label="销售单号" />
<el-table-column prop="salesOrderType" label="销售单类型" />
<el-table-column prop="company" label="公司号" />
<el-table-column prop="workOrderNo" label="工单号" />
<el-table-column prop="workOrderType" label="工单类型" />
<el-table-column prop="skuCategory" label="商品大类" />
<el-table-column prop="categoryName" label="大类名称" />
<el-table-column prop="startTime" label="开始时间" />
<el-table-column prop="requireTime" label="需求时间" />
<el-table-column prop="frequency" label="配送频率" />
<el-table-column prop="deliveryWave" label="配送波次" />
<el-table-column prop="lot" label="批次号" />
<el-table-column prop="location" label="建议拣货库位" />
<el-table-column prop="locationPick" label="实际拣货库位" />
<el-table-column prop="status" label="状态" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="qtyWave" label="波次数量" />
<el-table-column prop="qtySuggestion" label="建议拣货数量" />
<el-table-column prop="qtyActual" label="实际拣货数量" />
<el-table-column prop="jdeUom" label="单位" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','pickOrderDetails:edit','pickOrderDetails:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudPickOrderDetails from '@/api/wms/picking/pickOrderDetails'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, pickOrderNo: null, pickOrderLine: null, salesOrder: null, salesOrderType: null, company: null, workOrderNo: null, workOrderType: null, skuCategory: null, categoryName: null, startTime: null, requireTime: null, frequency: null, deliveryWave: null, lot: null, location: null, locationPick: null, status: null, sku: null, skuDesc: null, qtyWave: null, qtySuggestion: null, qtyActual: null, jdeUom: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'PickOrderDetails',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:拣货接口', url: 'api/pickOrderDetails', idField: 'id', sort: 'id,desc', crudMethod: { ...crudPickOrderDetails }})
},
data() {
return {
permission: {
add: ['admin', 'pickOrderDetails:add'],
edit: ['admin', 'pickOrderDetails:edit'],
del: ['admin', 'pickOrderDetails:del']
},
rules: {
pickOrderNo: [
{ required: true, message: '拣货任务号不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'pickOrderNo', display_name: '拣货任务号' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">上架任务号</label>
<el-input v-model="query.putAwayNo" clearable placeholder="上架任务号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">上架类型</label>
<el-input v-model="query.putAwayType" clearable placeholder="上架类型" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">上架请求日期</label>
<el-input v-model="query.requestDate" clearable placeholder="上架请求日期" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架任务号" prop="putAwayNo">
<el-input v-model="form.putAwayNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架类型">
<el-input v-model="form.putAwayType" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架任务行号">
<el-input v-model="form.putAwayLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架请求日期">
<el-date-picker v-model="form.requestDate" type="datetime" style="width: 370px;" />
</el-form-item>
<el-form-item label="仓库编号">
<el-input v-model="form.warehouse" style="width: 370px;" />
</el-form-item>
<el-form-item label="库区编号">
<el-input v-model="form.zone" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货任务号">
<el-input v-model="form.receiveOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货任务行号">
<el-input v-model="form.receiveOrderLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单公司">
<el-input v-model="form.purchaseOrderCo" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单类型">
<el-input v-model="form.purchaseOrderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购订单号">
<el-input v-model="form.purchaseOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购订单行号">
<el-input v-model="form.purchaseOrderLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="配送任务号">
<el-input v-model="form.deliveryNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购订单日期">
<el-input v-model="form.purchaseOrderDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货日期">
<el-input v-model="form.receiveDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="供应商编号">
<el-input v-model="form.supplier" style="width: 370px;" />
</el-form-item>
<el-form-item label="供应商名称">
<el-input v-model="form.supplierName" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="状态">
<el-input v-model="form.status" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架数量">
<el-input v-model="form.quantity" style="width: 370px;" />
</el-form-item>
<el-form-item label="已上架数量">
<el-input v-model="form.qtyComplete" style="width: 370px;" />
</el-form-item>
<el-form-item label="from库位">
<el-input v-model="form.locationFrom" style="width: 370px;" />
</el-form-item>
<el-form-item label="from批次">
<el-input v-model="form.lotFrom" style="width: 370px;" />
</el-form-item>
<el-form-item label="to库位">
<el-input v-model="form.locationTo" style="width: 370px;" />
</el-form-item>
<el-form-item label="to批次">
<el-input v-model="form.lotTo" style="width: 370px;" />
</el-form-item>
<el-form-item label="上一状态">
<el-input v-model="form.lastStatus" style="width: 370px;" />
</el-form-item>
<el-form-item label="下一状态">
<el-input v-model="form.nextStatus" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架日期">
<el-input v-model="form.putAwayDate" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架员">
<el-input v-model="form.staffPutAway" style="width: 370px;" />
</el-form-item>
<el-form-item label="上架员名称">
<el-input v-model="form.staffPutAwayName" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货员">
<el-input v-model="form.staffReceive" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货员名称">
<el-input v-model="form.staffReceiveName" style="width: 370px;" />
</el-form-item>
<el-form-item label="是否预收">
<el-input v-model="form.isPre" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="putAwayNo" label="上架任务号" />
<el-table-column prop="putAwayType" label="上架类型" />
<el-table-column prop="putAwayLine" label="上架任务行号" />
<el-table-column prop="requestDate" label="上架请求日期" />
<el-table-column prop="warehouse" label="仓库编号" />
<el-table-column prop="zone" label="库区编号" />
<el-table-column prop="receiveOrderNo" label="收货任务号" />
<el-table-column prop="receiveOrderLine" label="收货任务行号" />
<el-table-column prop="purchaseOrderCo" label="订单公司" />
<el-table-column prop="purchaseOrderType" label="订单类型" />
<el-table-column prop="purchaseOrderNo" label="采购订单号" />
<el-table-column prop="purchaseOrderLine" label="采购订单行号" />
<el-table-column prop="deliveryNo" label="配送任务号" />
<el-table-column prop="purchaseOrderDate" label="采购订单日期" />
<el-table-column prop="receiveDate" label="收货日期" />
<el-table-column prop="supplier" label="供应商编号" />
<el-table-column prop="supplierName" label="供应商名称" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="jdeUom" label="商品单位" />
<el-table-column prop="status" label="状态" />
<el-table-column prop="quantity" label="上架数量" />
<el-table-column prop="qtyComplete" label="已上架数量" />
<el-table-column prop="locationFrom" label="from库位" />
<el-table-column prop="lotFrom" label="from批次" />
<el-table-column prop="locationTo" label="to库位" />
<el-table-column prop="lotTo" label="to批次" />
<el-table-column prop="lastStatus" label="上一状态" />
<el-table-column prop="nextStatus" label="下一状态" />
<el-table-column prop="putAwayDate" label="上架日期" />
<el-table-column prop="staffPutAway" label="上架员" />
<el-table-column prop="staffPutAwayName" label="上架员名称" />
<el-table-column prop="staffReceive" label="收货员" />
<el-table-column prop="staffReceiveName" label="收货员名称" />
<el-table-column prop="isPre" label="是否预收" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','putAwayRequest:edit','putAwayRequest:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudPutAwayRequest from '@/api/wms/putaway/putAwayRequest'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, putAwayNo: null, putAwayType: null, putAwayLine: null, requestDate: null, warehouse: null, zone: null, receiveOrderNo: null, receiveOrderLine: null, purchaseOrderCo: null, purchaseOrderType: null, purchaseOrderNo: null, purchaseOrderLine: null, deliveryNo: null, purchaseOrderDate: null, receiveDate: null, supplier: null, supplierName: null, sku: null, skuDesc: null, jdeUom: null, status: null, quantity: null, qtyComplete: null, locationFrom: null, lotFrom: null, locationTo: null, lotTo: null, lastStatus: null, nextStatus: null, putAwayDate: null, staffPutAway: null, staffPutAwayName: null, staffReceive: null, staffReceiveName: null, isPre: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'PutAwayRequest',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:上架接口', url: 'api/putAwayRequest', idField: 'id', sort: 'id,desc', crudMethod: { ...crudPutAwayRequest }})
},
data() {
return {
permission: {
add: ['admin', 'putAwayRequest:add'],
edit: ['admin', 'putAwayRequest:edit'],
del: ['admin', 'putAwayRequest:del']
},
rules: {
putAwayNo: [
{ required: true, message: '上架任务号不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'putAwayNo', display_name: '上架任务号' },
{ key: 'putAwayType', display_name: '上架类型' },
{ key: 'requestDate', display_name: '上架请求日期' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<label class="el-form-item-label">收货单号 Y</label>
<el-input v-model="query.receiveOrderNo" clearable placeholder="收货单号 Y" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">采购订单号</label>
<el-input v-model="query.purchaseOrderNo" clearable placeholder="采购订单号" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">采购订单日期</label>
<el-input v-model="query.purchaseOrderDate" clearable placeholder="采购订单日期" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<label class="el-form-item-label">收货日期</label>
<el-input v-model="query.receiveDate" clearable placeholder="收货日期" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="主键id">
<el-input v-model="form.id" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货单号 Y" prop="receiveOrderNo">
<el-input v-model="form.receiveOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货单行号 Y">
<el-input v-model="form.receiveOrderLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购订单号">
<el-input v-model="form.purchaseOrderNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购订单行号">
<el-input v-model="form.purchaseOrderLine" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单公司">
<el-input v-model="form.purchaseOrderCo" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单类型">
<el-input v-model="form.purchaseOrderType" style="width: 370px;" />
</el-form-item>
<el-form-item label="配送任务号">
<el-input v-model="form.deliveryNo" style="width: 370px;" />
</el-form-item>
<el-form-item label="采购订单日期">
<el-date-picker v-model="form.purchaseOrderDate" type="datetime" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货日期">
<el-date-picker v-model="form.receiveDate" type="datetime" style="width: 370px;" />
</el-form-item>
<el-form-item label="供应商编号">
<el-input v-model="form.supplier" style="width: 370px;" />
</el-form-item>
<el-form-item label="供应商名称">
<el-input v-model="form.supplierName" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货库区">
<el-input v-model="form.zone" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品编码">
<el-input v-model="form.sku" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="form.skuDesc" style="width: 370px;" />
</el-form-item>
<el-form-item label="商品单位">
<el-input v-model="form.jdeUom" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货库位">
<el-input v-model="form.location" style="width: 370px;" />
</el-form-item>
<el-form-item label="批次">
<el-input v-model="form.lot" style="width: 370px;" />
</el-form-item>
<el-form-item label="订单数量">
<el-input v-model="form.quantity" style="width: 370px;" />
</el-form-item>
<el-form-item label="未收数量">
<el-input v-model="form.qtyUn" style="width: 370px;" />
</el-form-item>
<el-form-item label="状态">
<el-input v-model="form.status" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货员">
<el-input v-model="form.staffReceive" style="width: 370px;" />
</el-form-item>
<el-form-item label="收货员名称">
<el-input v-model="form.staffReceiveName" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段1">
<el-input v-model="form.reservedField01" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段2">
<el-input v-model="form.reservedField02" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段3">
<el-input v-model="form.reservedField03" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段4">
<el-input v-model="form.reservedField04" style="width: 370px;" />
</el-form-item>
<el-form-item label="扩展字段5">
<el-input v-model="form.reservedField05" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建人">
<el-input v-model="form.createdBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="创建时间">
<el-input v-model="form.createdTime" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新人">
<el-input v-model="form.updatedBy" style="width: 370px;" />
</el-form-item>
<el-form-item label="更新时间">
<el-input v-model="form.updatedTime" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="id" label="主键id" />
<el-table-column prop="receiveOrderNo" label="收货单号 Y" />
<el-table-column prop="receiveOrderLine" label="收货单行号 Y" />
<el-table-column prop="purchaseOrderNo" label="采购订单号" />
<el-table-column prop="purchaseOrderLine" label="采购订单行号" />
<el-table-column prop="purchaseOrderCo" label="订单公司" />
<el-table-column prop="purchaseOrderType" label="订单类型" />
<el-table-column prop="deliveryNo" label="配送任务号" />
<el-table-column prop="purchaseOrderDate" label="采购订单日期" />
<el-table-column prop="receiveDate" label="收货日期" />
<el-table-column prop="supplier" label="供应商编号" />
<el-table-column prop="supplierName" label="供应商名称" />
<el-table-column prop="zone" label="收货库区" />
<el-table-column prop="sku" label="商品编码" />
<el-table-column prop="skuDesc" label="商品名称" />
<el-table-column prop="jdeUom" label="商品单位" />
<el-table-column prop="location" label="收货库位" />
<el-table-column prop="lot" label="批次" />
<el-table-column prop="quantity" label="订单数量" />
<el-table-column prop="qtyUn" label="未收数量" />
<el-table-column prop="status" label="状态" />
<el-table-column prop="staffReceive" label="收货员" />
<el-table-column prop="staffReceiveName" label="收货员名称" />
<el-table-column prop="reservedField01" label="扩展字段1" />
<el-table-column prop="reservedField02" label="扩展字段2" />
<el-table-column prop="reservedField03" label="扩展字段3" />
<el-table-column prop="reservedField04" label="扩展字段4" />
<el-table-column prop="reservedField05" label="扩展字段5" />
<el-table-column prop="createdBy" label="创建人" />
<el-table-column prop="createdTime" label="创建时间" />
<el-table-column prop="updatedBy" label="更新人" />
<el-table-column prop="updatedTime" label="更新时间" />
<el-table-column v-if="checkPer(['admin','receiveOrders:edit','receiveOrders:del'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
</template>
<script>
import crudReceiveOrders from '@/api/wms/receive/receiveOrders'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { id: null, receiveOrderNo: null, receiveOrderLine: null, purchaseOrderNo: null, purchaseOrderLine: null, purchaseOrderCo: null, purchaseOrderType: null, deliveryNo: null, purchaseOrderDate: null, receiveDate: null, supplier: null, supplierName: null, zone: null, sku: null, skuDesc: null, jdeUom: null, location: null, lot: null, quantity: null, qtyUn: null, status: null, staffReceive: null, staffReceiveName: null, reservedField01: null, reservedField02: null, reservedField03: null, reservedField04: null, reservedField05: null, createdBy: null, createdTime: null, updatedBy: null, updatedTime: null }
export default {
name: 'ReceiveOrders',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '条码系统:收货信息接口', url: 'api/receiveOrders', idField: 'id', sort: 'id,desc', crudMethod: { ...crudReceiveOrders }})
},
data() {
return {
permission: {
add: ['admin', 'receiveOrders:add'],
edit: ['admin', 'receiveOrders:edit'],
del: ['admin', 'receiveOrders:del']
},
rules: {
receiveOrderNo: [
{ required: true, message: '收货单号 Y不能为空', trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'receiveOrderNo', display_name: '收货单号 Y' },
{ key: 'purchaseOrderNo', display_name: '采购订单号' },
{ key: 'purchaseOrderDate', display_name: '采购订单日期' },
{ key: 'receiveDate', display_name: '收货日期' }
]
}
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
}
}
}
</script>
<style scoped>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment