opt:修复出入库单据查询时间范围问题;增加物料查;修复ERP单据同步时间范围问题;
This commit is contained in:
@@ -20,6 +20,39 @@
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料编码">
|
||||
<el-input
|
||||
v-model="query.material_code"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
size="mini"
|
||||
placeholder="请输入物料编码"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="载具编码">
|
||||
<el-input
|
||||
v-model="query.vehicle_code"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
size="mini"
|
||||
placeholder="请输入载具编码"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批次">
|
||||
<el-input
|
||||
v-model="query.pcsn"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
size="mini"
|
||||
placeholder="请输入批次信息"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="变动日期" prop="analyseData">
|
||||
<el-date-picker
|
||||
v-model="query.datepick"
|
||||
@@ -30,10 +63,10 @@
|
||||
end-placeholder="结束日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation/>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission"/>
|
||||
<crudOperation :permission="permission" />
|
||||
<el-table
|
||||
ref="table"
|
||||
v-loading="crud.loading"
|
||||
@@ -42,30 +75,30 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="55"/>
|
||||
<el-table-column prop="struct_code" label="仓位编码" width="150" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="material_code" label="物料编码" width="150" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="material_name" label="物料名称" width="150" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="vehicle_code" label="载具编码" width="150" show-tooltip-when-overflow/>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="struct_code" label="仓位编码" width="150" show-tooltip-when-overflow />
|
||||
<el-table-column prop="material_code" label="物料编码" width="150" show-tooltip-when-overflow />
|
||||
<el-table-column prop="material_name" label="物料名称" width="150" show-tooltip-when-overflow />
|
||||
<el-table-column prop="vehicle_code" label="载具编码" width="150" show-tooltip-when-overflow />
|
||||
<el-table-column prop="growth" label="是否增加库存" width="150" show-tooltip-when-overflow>
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.growth}}
|
||||
{{ scope.row.growth }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="pcsn" label="批次" min-width="150" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="qty" label="总库存" min-width="150" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="frozen_qty" label="冻结库存" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="change_qty" label="变动库存" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="unit_name" label="单位" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="vehicle_form_data" label="物料扩展信息" width="300" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="source_form_type" label="单据编号" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="source_form_id" label="单据表名" min-width="120" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="pcsn" label="批次" min-width="150" show-tooltip-when-overflow />
|
||||
<el-table-column prop="qty" label="总库存" min-width="150" show-tooltip-when-overflow />
|
||||
<el-table-column prop="frozen_qty" label="冻结库存" show-tooltip-when-overflow />
|
||||
<el-table-column prop="change_qty" label="变动库存" show-tooltip-when-overflow />
|
||||
<el-table-column prop="unit_name" label="单位" show-tooltip-when-overflow />
|
||||
<el-table-column prop="vehicle_form_data" label="物料扩展信息" width="300" show-tooltip-when-overflow />
|
||||
<el-table-column prop="source_form_type" label="单据编号" show-tooltip-when-overflow />
|
||||
<el-table-column prop="source_form_id" label="单据表名" min-width="120" show-tooltip-when-overflow />
|
||||
<el-table-column prop="task_type" show-overflow-tooltip show-tooltip-when-overflow label="变动类型">
|
||||
<template slot-scope="scope">
|
||||
{{ statusEnum.label.TASK_TYPE[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="update_time" label="修改时间" width="120" show-tooltip-when-overflow/>
|
||||
<el-table-column prop="update_time" label="修改时间" width="120" show-tooltip-when-overflow />
|
||||
|
||||
<!-- <el-table-column-->
|
||||
<!-- label="操作"-->
|
||||
@@ -80,14 +113,14 @@
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination/>
|
||||
<pagination />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import curdStructIvtFlow from './curdStructIvtFlow'
|
||||
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 crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
@@ -112,7 +145,7 @@ const defaultForm = {
|
||||
export default {
|
||||
dicts: [],
|
||||
name: 'StructIvtFlow',
|
||||
components: {pagination, crudOperation, rrOperation, udOperation},
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
statusEnums: ['TASK_TYPE'],
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
@@ -125,7 +158,7 @@ export default {
|
||||
},
|
||||
idField: 'id',
|
||||
sort: 'id,desc',
|
||||
crudMethod: {...curdStructIvtFlow}
|
||||
crudMethod: { ...curdStructIvtFlow }
|
||||
})
|
||||
},
|
||||
data() {
|
||||
@@ -139,12 +172,12 @@ export default {
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.query.datepick){
|
||||
if (this.query.datepick) {
|
||||
this.query.start_time = this.query.datepick[0]
|
||||
if (this.query.datepick.length>1){
|
||||
if (this.query.datepick.length > 1) {
|
||||
this.query.end_time = this.query.datepick[1]
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
this.query.start_time = ''
|
||||
this.query.end_time = ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user