This commit is contained in:
zds
2022-11-12 10:39:30 +08:00
parent 26831b9970
commit 6e1686c05e
52 changed files with 283 additions and 33 deletions

View File

@@ -168,7 +168,7 @@
</crudOperation>
<!--表单组件-->
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table ref="table" :max-height="590" 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 v-if="false" prop="bagrecord_id" label="袋记录标识" />
<el-table-column prop="bag_id" label="袋码" show-overflow-tooltip width="150px" />
@@ -227,6 +227,10 @@ export default {
url: 'api/bagrecord',
idField: 'bagrecord_id',
sort: 'bagrecord_id,desc',
props: {
// 每页数据条数
size: 20
},
crudMethod: { ...crudBagrecord },
optShow: {
add: false,

View File

@@ -160,7 +160,7 @@
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table :max-height="590" 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 v-permission="['admin','productplanproc:edit','productplanproc:del']" fixed="right" label="操作" width="70px" align="center">
<template slot-scope="scope">
@@ -217,6 +217,10 @@ export default {
title: '桶标签打印',
url: 'api/bucketrecord',
idField: 'bucket_record_id',
props: {
// 每页数据条数
size: 20
},
sort: '',
crudMethod: { ...crudBucketrecord },
optShow: {

View File

@@ -87,6 +87,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
lazy
:load="getClassDatas"
@@ -171,6 +172,10 @@ export default {
url: 'api/Classstandard',
idField: 'class_id',
sort: 'class_id,desc',
props: {
// 每页数据条数
size: 20
},
crudMethod: { ...crudClassstandard },
optShow: {
add: true,

View File

@@ -141,7 +141,7 @@
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table ref="table" :max-height="590" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column prop="material_code" label="物料编码" width="160" />
<el-table-column prop="material_name" label="物料名称" width="180" show-overflow-tooltip />
<el-table-column prop="material_spec" label="物料规格" width="140" />
@@ -197,7 +197,12 @@ export default {
components: { pagination, crudOperation, rrOperation, udOperation, Treeselect },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '物料', optShow: { add: true, reset: true }, url: 'api/Materialbase', idField: 'material_id', sort: 'material_id,desc', crudMethod: { ...crudMaterialbase }})
return CRUD({ title: '物料',
props: {
// 每页数据条数
size: 20
},
optShow: { add: true, reset: true }, url: 'api/Materialbase', idField: 'material_id', sort: 'material_id,desc', crudMethod: { ...crudMaterialbase }})
},
data() {
return {

View File

@@ -43,6 +43,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -149,6 +150,10 @@ export default {
title: '物料参数设置',
url: 'api/MaterialParameters',
idField: 'material_id',
props: {
// 每页数据条数
size: 20
},
sort: 'material_id,desc',
crudMethod: {...crudMaterialparameters},
optShow: {

View File

@@ -41,7 +41,7 @@
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table :max-height="590" ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column prop="unit_code" label="编码" />
<el-table-column prop="unit_name" label="名称" />
<el-table-column prop="qty_precision" label="数据精度" />
@@ -95,6 +95,10 @@ export default {
add: true,
reset: true
},
props: {
// 每页数据条数
size: 20
},
idField: 'measure_unit_id',
sort: 'measure_unit_id,desc',
crudMethod: { ...crudMdPbMeasureunit }})

View File

@@ -76,7 +76,7 @@
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table ref="table" :max-height="590" 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 v-if="false" prop="storagevehiclepoint_id" label="载具点位对应标识" />
<el-table-column v-if="false" prop="set_type" label="对应类型" />
@@ -134,6 +134,10 @@ export default {
url: 'api/storagevehiclecleaning',
idField: 'storagevehiclepoint_id',
sort: 'storagevehiclepoint_id,desc',
props: {
// 每页数据条数
size: 20
},
crudMethod: { ...crudStoragevehiclecleaning },
optShow: {
add: false,

View File

@@ -87,6 +87,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -169,6 +170,10 @@ export default {
return CRUD({
title: '载具扩展信息',
url: 'api/storagevehicleext',
props: {
// 每页数据条数
size: 20
},
idField: 'storagevehicleext_id',
sort: 'storagevehicleext_id,desc',
crudMethod: { ...crudStoragevehicleext },

View File

@@ -57,7 +57,7 @@
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table ref="table" :max-height="590" 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 v-if="false" prop="storagevehiclepoint_id" label="载具点位对应标识" />
<el-table-column v-if="false" prop="set_type" label="对应类型" />
@@ -122,6 +122,10 @@ export default {
url: 'api/storagevehiclepoint',
idField: 'storagevehiclepoint_id',
sort: 'storagevehiclepoint_id,desc',
props: {
// 每页数据条数
size: 20
},
crudMethod: { ...crudStoragevehiclepoint },
optShow: {
add: false,

View File

@@ -114,6 +114,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -202,6 +203,10 @@ export default {
title: '载具',
url: 'api/storagevehicleinfo',
idField: 'storagevehicle_id',
props: {
// 每页数据条数
size: 20
},
sort: 'storagevehicle_id,desc',
crudMethod: {...crudStoragevehicleinfo},
optShow: {

View File

@@ -44,7 +44,7 @@
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table ref="table" :max-height="590" 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="sect_code" label="库区编码" />
<el-table-column prop="sect_name" label="库区名称" />
@@ -85,7 +85,12 @@ export default {
components: { AddDialog, pagination, crudOperation, rrOperation, crudClass, Treeselect },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '物料存放设置', optShow: { add: false, reset: true }, idField: 'class_id',
return CRUD({ title: '物料存放设置',
props: {
// 每页数据条数
size: 20
},
optShow: { add: false, reset: true }, idField: 'class_id',
sort: 'class_id,desc', url: 'api/structrelamaterial', crudMethod: { ...crudStructrelamaterial }})
},
data() {

View File

@@ -43,6 +43,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -109,6 +110,10 @@ export default {
optShow: { reset: true },
url: 'api/materialsafeivt',
idField: 'material_id',
props: {
// 每页数据条数
size: 20
},
sort: 'material_id,desc',
crudMethod: { ...crudMaterialsafeivt }
})

View File

@@ -129,6 +129,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -232,6 +233,10 @@ export default {
optShow: { add: true, reset: true },
url: 'api/sectattr',
idField: 'sect_id',
props: {
// 每页数据条数
size: 20
},
sort: 'sect_id,desc',
crudMethod: { ...crudSectattr }
})

View File

@@ -141,6 +141,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -254,6 +255,10 @@ export default {
url: 'api/Storattr',
idField: 'stor_id',
sort: 'stor_id,desc',
props: {
// 每页数据条数
size: 20
},
crudMethod: { ...crudStorattr }
})
},

View File

@@ -196,6 +196,7 @@
<!--表格渲染-->
<el-table
ref="table"
:max-height="590"
v-loading="crud.loading"
:data="crud.data"
size="mini"
@@ -316,6 +317,10 @@ export default {
optShow: { add: true, reset: true },
url: 'api/structattr',
idField: 'struct_id',
props: {
// 每页数据条数
size: 20
},
crudMethod: { ...crudStructattr }
})
},