2022-10-08 13:44:33 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
<!--工具栏-->
|
|
|
|
|
|
<div class="head-container">
|
|
|
|
|
|
<div v-if="crud.props.searchToggle">
|
|
|
|
|
|
<!-- 搜索 -->
|
|
|
|
|
|
<el-form
|
|
|
|
|
|
:inline="true"
|
|
|
|
|
|
class="demo-form-inline"
|
|
|
|
|
|
label-position="right"
|
|
|
|
|
|
label-width="90px"
|
|
|
|
|
|
label-suffix=":"
|
|
|
|
|
|
>
|
2022-11-29 13:17:16 +08:00
|
|
|
|
<el-form-item label="仓库">
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="query.stor_id"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
filterable
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
class="filter-item"
|
|
|
|
|
|
style="width: 200px;"
|
2022-12-01 09:15:12 +08:00
|
|
|
|
@change="hand"
|
2022-11-29 13:17:16 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in storlist"
|
|
|
|
|
|
:label="item.stor_name"
|
|
|
|
|
|
:value="item.stor_id"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
2022-10-08 13:44:33 +08:00
|
|
|
|
<el-form-item label="仓位搜索">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="query.struct"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
placeholder="仓位编码或名称"
|
|
|
|
|
|
style="width: 200px;"
|
|
|
|
|
|
class="filter-item"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="物料搜索">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="query.material"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
placeholder="物料编码、名称或规格"
|
|
|
|
|
|
style="width: 200px;"
|
|
|
|
|
|
class="filter-item"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
2022-11-27 18:40:25 +08:00
|
|
|
|
<el-form-item label="子卷号">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="query.pcsn"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
placeholder="子卷号"
|
|
|
|
|
|
style="width: 200px;"
|
2022-11-30 14:36:23 +08:00
|
|
|
|
class="filter-item"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="sap批次">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="query.sap_pcsn"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
placeholder="sap批次"
|
|
|
|
|
|
style="width: 200px;"
|
2022-11-27 18:40:25 +08:00
|
|
|
|
class="filter-item"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
2022-10-08 13:44:33 +08:00
|
|
|
|
<rrOperation :crud="crud" />
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
|
|
|
|
|
<crudOperation :permission="permission" />
|
|
|
|
|
|
<!--表格渲染-->
|
|
|
|
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
|
|
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
|
|
|
<el-table-column prop="point_code" label="仓位编码" min-width="120" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column prop="point_name" label="仓位名称" min-width="120" show-overflow-tooltip />
|
2022-12-01 09:15:12 +08:00
|
|
|
|
<el-table-column prop="stor_name" label="仓库" min-width="120" show-overflow-tooltip />
|
2022-11-16 19:42:32 +08:00
|
|
|
|
<el-table-column prop="sect_name" label="库区" min-width="120" show-overflow-tooltip />
|
2022-11-01 18:21:57 +08:00
|
|
|
|
<!-- <el-table-column prop="region_name" label="下料区域" min-width="120" show-overflow-tooltip />-->
|
2022-10-08 13:44:33 +08:00
|
|
|
|
<el-table-column prop="material_code" label="物料编码" min-width="120" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column prop="material_name" label="物料名称" min-width="120" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column prop="quality_scode" label="品质类型" min-width="120" show-overflow-tooltip>
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
{{ dict.label.ST_QUALITY_SCODE[scope.row.quality_scode] }}
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2022-11-27 18:40:25 +08:00
|
|
|
|
<el-table-column prop="pcsn" label="子卷号" min-width="120" show-overflow-tooltip />
|
2022-11-28 10:24:54 +08:00
|
|
|
|
<el-table-column prop="sap_pcsn" label="sap批次" min-width="120" show-overflow-tooltip />
|
2022-10-08 13:44:33 +08:00
|
|
|
|
<el-table-column prop="canuse_qty" label="可用数" :formatter="rounding" />
|
|
|
|
|
|
<el-table-column prop="frozen_qty" label="冻结数" :formatter="rounding" />
|
|
|
|
|
|
<el-table-column prop="ivt_qty" label="库存数" :formatter="rounding" />
|
|
|
|
|
|
<el-table-column prop="warehousing_qty" label="待入数" :formatter="rounding" />
|
|
|
|
|
|
<el-table-column prop="unit_name" label="计量单位" />
|
|
|
|
|
|
<el-table-column prop="instorage_time" label="入库时间" min-width="150" />
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<!--分页组件-->
|
|
|
|
|
|
<pagination />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import crudStructivt from '@/views/wms/basedata/st/ivt/structivt'
|
|
|
|
|
|
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'
|
|
|
|
|
|
import crudPoint from '@/views/wms/sch/point/point'
|
2022-11-29 13:17:16 +08:00
|
|
|
|
import crudStorattr from '@/views/wms/basedata/st/stor/storattr'
|
2022-12-01 09:15:12 +08:00
|
|
|
|
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
2022-10-08 13:44:33 +08:00
|
|
|
|
|
|
|
|
|
|
const defaultForm = { stockrecord_id: null, cascader: null, struct_id: null, struct_code: null, struct_name: null, workprocedure_id: null, material_id: null, material_code: null, quality_scode: null, pcsn: null, canuse_qty: null, frozen_qty: null, ivt_qty: null, warehousing_qty: null, qty_unit_id: null, instorage_time: null, sale_id: null }
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'Structivt',
|
|
|
|
|
|
dicts: ['ST_QUALITY_SCODE'],
|
|
|
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation },
|
|
|
|
|
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
|
|
|
|
|
cruds() {
|
|
|
|
|
|
return CRUD({ title: '库存管理', url: 'api/structivt', idField: 'stockrecord_id', sort: 'stockrecord_id,desc',
|
|
|
|
|
|
optShow: {
|
|
|
|
|
|
add: false,
|
|
|
|
|
|
edit: false,
|
|
|
|
|
|
del: false,
|
|
|
|
|
|
download: false,
|
|
|
|
|
|
reset: true
|
|
|
|
|
|
},
|
|
|
|
|
|
crudMethod: { ...crudStructivt }})
|
|
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2022-11-29 13:17:16 +08:00
|
|
|
|
storlist: [],
|
2022-10-08 13:44:33 +08:00
|
|
|
|
permission: {
|
|
|
|
|
|
},
|
|
|
|
|
|
rules: {
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
2022-12-01 09:15:12 +08:00
|
|
|
|
crudUserStor.getUserStor().then(res => {
|
|
|
|
|
|
this.storlist = res
|
2022-10-08 13:44:33 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
// 取两位小数点
|
|
|
|
|
|
rounding(row, column) {
|
|
|
|
|
|
return parseFloat(row[column.property]).toFixed(2)
|
|
|
|
|
|
},
|
|
|
|
|
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
|
|
|
|
|
[CRUD.HOOK.beforeRefresh]() {
|
|
|
|
|
|
return true
|
2022-12-01 09:15:12 +08:00
|
|
|
|
},
|
|
|
|
|
|
hand(value) {
|
|
|
|
|
|
this.crud.toQuery()
|
2022-10-08 13:44:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|