This commit is contained in:
张江玮
2023-04-14 10:18:48 +08:00
parent 71c1dedd18
commit 18b3f9b31f
161 changed files with 6167 additions and 9030 deletions

View File

@@ -15,21 +15,12 @@
label-width="80px"
label-suffix=":"
>
<el-form-item label="物料类别">
<treeselect
v-model="query.material_type_id"
:load-options="loadClass"
:options="classes"
style="width: 200px;"
placeholder="选择物料类别"
/>
</el-form-item>
<el-form-item label="模糊搜索">
<el-form-item label="编码名称">
<el-input
v-model="query.search"
v-model="query.name"
clearable
size="mini"
placeholder="编码名称"
placeholder="编码名称"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
@@ -55,14 +46,15 @@
<el-radio v-model="tableRadio" :label="scope.row"><i /></el-radio>
</template>
</el-table-column>
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
<el-table-column prop="material_name" label="物料名称" min-width="200" show-overflow-tooltip />
<el-table-column prop="material_spec" label="规格" show-overflow-tooltip />
<el-table-column prop="material_model" label="号" show-overflow-tooltip />
<el-table-column prop="class_code" label="分类编码" show-overflow-tooltip />
<el-table-column prop="class_name" label="物料分类" show-overflow-tooltip />
<el-table-column prop="unit_name" label="计量单位" />
<el-table-column prop="material_code" label="物料编码" width="189" show-overflow-tooltip />
<el-table-column prop="material_name" label="物料名称" width="190" show-overflow-tooltip />
<el-table-column prop="standing_time" label="静置时间" width="75" />
<el-table-column prop="threshold_time" label="阈值时间" width="75" />
<el-table-column prop="product_code" label="产品编号" width="75" />
<el-table-column prop="a" label="长边长度" width="75" />
<el-table-column prop="b" label="短边长度" width="75" />
<el-table-column prop="h" label="梯形高度" width="75" />
<el-table-column prop="w" label="砖块厚度" width="75" />
</el-table>
<!--分页组件-->
<pagination />
@@ -79,13 +71,13 @@ import crudMaterialbase from '@/api/wms/basedata/materialbase'
import CRUD, { header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import pagination from '@crud/Pagination'
import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
import { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import crudClassstandard from '@/api/wms/basedata/classstandard'
export default {
name: 'MaterDtl',
components: { rrOperation, pagination, Treeselect },
components: { rrOperation, pagination },
cruds() {
return CRUD({ title: '物料', url: 'api/Materialbase', crudMethod: { ...crudMaterialbase }, optShow: {}})
},
@@ -126,9 +118,6 @@ export default {
clickChange(item) {
this.tableRadio = item
},
seriesFormat(row) {
return this.dict.label.product_series[row.product_series]
},
open() {
const param = {
'materOpt_code': this.materOptCode