no message
parent
2b4ab2b7b1
commit
32323c7cac
|
|
@ -2,6 +2,10 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!--工具栏-->
|
<!--工具栏-->
|
||||||
<div class="head-container">
|
<div class="head-container">
|
||||||
|
<label class="el-form-item-label">任务号</label>
|
||||||
|
<el-input v-model="query.billCode" clearable placeholder="任务号" style="width: 170px;" class="filter-item"
|
||||||
|
@keyup.enter.native="crud.toQuery"/>
|
||||||
|
|
||||||
<label class="el-form-item-label">物料编码</label>
|
<label class="el-form-item-label">物料编码</label>
|
||||||
<el-select v-model="query.itemCode" placeholder="物料编码" filterable style="width: 170px;" class="filter-item">
|
<el-select v-model="query.itemCode" placeholder="物料编码" filterable style="width: 170px;" class="filter-item">
|
||||||
<el-option
|
<el-option
|
||||||
|
|
@ -41,11 +45,17 @@
|
||||||
<date-range-picker v-model="query.createTime" class="date-item" style="width: 100px"/>
|
<date-range-picker v-model="query.createTime" class="date-item" style="width: 100px"/>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
<label class="el-form-item-label">Mo票</label>
|
||||||
|
<el-input v-model="query.propC1" clearable placeholder="Mo票" style="width: 180px;" class="filter-item"
|
||||||
|
@keyup.enter.native="crud.toQuery"/>
|
||||||
|
<label class="el-form-item-label">送货单号</label>
|
||||||
|
<el-input v-model="query.orderNumber" clearable placeholder="送货单号" style="width: 170px;" class="filter-item"
|
||||||
|
@keyup.enter.native="crud.toQuery"/>
|
||||||
<label class="el-form-item-label">原点位</label>
|
<label class="el-form-item-label">原点位</label>
|
||||||
<el-input v-model="query.srcPointCode" clearable placeholder="原点位" style="width: 185px;" class="filter-item"
|
<el-input v-model="query.srcPointCode" clearable placeholder="原点位" style="width: 185px;" class="filter-item"
|
||||||
@keyup.enter.native="crud.toQuery"/>
|
@keyup.enter.native="crud.toQuery"/>
|
||||||
<label class="el-form-item-label">目标点位</label>
|
<label class="el-form-item-label">目标点位</label>
|
||||||
<el-input v-model="query.dstPointCode" clearable placeholder="目标点位" style="width: 170px;"
|
<el-input v-model="query.dstPointCode" clearable placeholder="目标点位" style="width: 150px;"
|
||||||
class="filter-item" @keyup.enter.native="crud.toQuery"/>
|
class="filter-item" @keyup.enter.native="crud.toQuery"/>
|
||||||
<rrOperation :crud="crud"/>
|
<rrOperation :crud="crud"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -54,9 +64,21 @@
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
|
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" height="66vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
<el-table ref="table" height="66vh" 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 type="selection" width="55"/>
|
||||||
<el-table-column prop="xh" type="index" :index="indexMethod" label="序号"/>
|
<el-table-column prop="xh" type="index" :index="indexMethod" label="序号"/>
|
||||||
|
<el-table-column prop="billCode" label="任务号"/>
|
||||||
|
<el-table-column prop="orderNumber" label="送货单号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ scope.row.itemKey.orderNumber }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="propC1" label="Mo票">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ scope.row.itemKey.propC1 }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<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.item.code }}</div>
|
<div>{{ scope.row.item.code }}</div>
|
||||||
|
|
@ -98,14 +120,51 @@ import pagination from '@crud/Pagination'
|
||||||
import DateRangePicker from "@/components/DateRangePicker/index.vue";
|
import DateRangePicker from "@/components/DateRangePicker/index.vue";
|
||||||
import {getItemsList} from "@/api/item";
|
import {getItemsList} from "@/api/item";
|
||||||
|
|
||||||
const defaultForm = { id: null, itemId: null, itemKeyId: null, billCode: null, taskType: null, asnDetailId: null, moveDetailId: null, waveDetailId: null, pickDetailId: null, srcStockId: null, dstStockId: null, srcPointId: null, dstPointId: null, srcStockCode: null, dstStockCode: null, srcPointCode: null, dstPointCode: null, invStatus: null, taskStatus: null, beSkip: null, beBack: null, planQty: null, moveQty: null, putCode: null, invId: null, deptId: null, createBy: null, updateBy: null, createTime: null, updateTime: null }
|
const defaultForm = {
|
||||||
|
id: null,
|
||||||
|
itemId: null,
|
||||||
|
itemKeyId: null,
|
||||||
|
billCode: null,
|
||||||
|
taskType: null,
|
||||||
|
asnDetailId: null,
|
||||||
|
moveDetailId: null,
|
||||||
|
waveDetailId: null,
|
||||||
|
pickDetailId: null,
|
||||||
|
srcStockId: null,
|
||||||
|
dstStockId: null,
|
||||||
|
srcPointId: null,
|
||||||
|
dstPointId: null,
|
||||||
|
srcStockCode: null,
|
||||||
|
dstStockCode: null,
|
||||||
|
srcPointCode: null,
|
||||||
|
dstPointCode: null,
|
||||||
|
invStatus: null,
|
||||||
|
taskStatus: null,
|
||||||
|
beSkip: null,
|
||||||
|
beBack: null,
|
||||||
|
planQty: null,
|
||||||
|
moveQty: null,
|
||||||
|
putCode: null,
|
||||||
|
invId: null,
|
||||||
|
deptId: null,
|
||||||
|
createBy: null,
|
||||||
|
updateBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateTime: null
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'Task',
|
name: 'Task',
|
||||||
components: {DateRangePicker, pagination, crudOperation, rrOperation, udOperation},
|
components: {DateRangePicker, pagination, crudOperation, rrOperation, udOperation},
|
||||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||||
dicts: ['task_status'],
|
dicts: ['task_status'],
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({ query:{taskType:['PICK']}, title: '出库任务', url: 'api/task', idField: 'id', sort: 'id,desc', crudMethod: { ...crudTask },
|
return CRUD({
|
||||||
|
query: {taskType: ['PICK']},
|
||||||
|
title: '出库任务',
|
||||||
|
url: 'api/task',
|
||||||
|
idField: 'id',
|
||||||
|
sort: 'id,desc',
|
||||||
|
crudMethod: {...crudTask},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|
@ -124,8 +183,7 @@ export default {
|
||||||
edit: ['admin', 'task:edit'],
|
edit: ['admin', 'task:edit'],
|
||||||
del: ['admin', 'task:del']
|
del: ['admin', 'task:del']
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {},
|
||||||
},
|
|
||||||
queryTypeOptions: [
|
queryTypeOptions: [
|
||||||
{key: 'itemCode', display_name: '物料代码'},
|
{key: 'itemCode', display_name: '物料代码'},
|
||||||
{key: 'itemName', display_name: '物料名称'},
|
{key: 'itemName', display_name: '物料名称'},
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<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="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="po" label="任务号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.pickDetail.po }}</div>
|
<div>{{ scope.row.pickDetail.po }}</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue