优化
This commit is contained in:
@@ -56,7 +56,7 @@ function CRUD(options) {
|
|||||||
reset: true
|
reset: true
|
||||||
},
|
},
|
||||||
// 自定义一些扩展属性
|
// 自定义一些扩展属性
|
||||||
props: {},
|
props: { size: 10 },
|
||||||
// 在主页准备
|
// 在主页准备
|
||||||
queryOnPresenterCreated: true,
|
queryOnPresenterCreated: true,
|
||||||
// 调试开关
|
// 调试开关
|
||||||
@@ -97,7 +97,7 @@ function CRUD(options) {
|
|||||||
// 页码
|
// 页码
|
||||||
page: 0,
|
page: 0,
|
||||||
// 每页数据条数
|
// 每页数据条数
|
||||||
size: 10,
|
size: options.props.size,
|
||||||
// 总数据条数
|
// 总数据条数
|
||||||
total: 0
|
total: 0
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<el-table-column prop="stock_standard_weight" label="原料标准桶重" width="100px" :formatter="crud.formatNum3"/>
|
<el-table-column prop="stock_standard_weight" label="原料标准桶重" width="100px" :formatter="crud.formatNum3"/>
|
||||||
<el-table-column prop="stock_is_report" label="原料是否生成理化报告" width="150px" :formatter="stockIsReport"/>
|
<el-table-column prop="stock_is_report" label="原料是否生成理化报告" width="150px" :formatter="stockIsReport"/>
|
||||||
<el-table-column prop="wc_seqno" label="原料碳化钨顺序号" width="120px"/>
|
<el-table-column prop="wc_seqno" label="原料碳化钨顺序号" width="120px"/>
|
||||||
<el-table-column prop="old_mark" label="原牌号"/>
|
<el-table-column prop="old_mark" label="粉料牌号"/>
|
||||||
<el-table-column prop="standard_mark" label="标准牌号"/>
|
<el-table-column prop="standard_mark" label="标准牌号"/>
|
||||||
<el-table-column prop="product_mode" label="生产方式" :formatter="formatProductMode"/>
|
<el-table-column prop="product_mode" label="生产方式" :formatter="formatProductMode"/>
|
||||||
<el-table-column prop="is_auto_open" label="是否允许自动开单" width="120px" :formatter="isAutoOpen"/>
|
<el-table-column prop="is_auto_open" label="是否允许自动开单" width="120px" :formatter="isAutoOpen"/>
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="原牌号">
|
<el-form-item label="粉料牌号">
|
||||||
<el-input v-model="formData.old_mark" style="width: 200px;" />
|
<el-input v-model="formData.old_mark" style="width: 200px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const LODOP = getLodop()
|
const LODOP = getLodop()
|
||||||
LODOP.PRINT_INIT('')
|
LODOP.PRINT_INIT('')
|
||||||
LODOP.SET_PRINT_PAGESIZE(1, '150mm', '100mm', '')
|
LODOP.SET_PRINT_PAGESIZE(2, '150mm', '100mm', '')
|
||||||
LODOP.ADD_PRINT_RECT('2mm', '2mm', '146mm', '96mm', 0, 1)
|
LODOP.ADD_PRINT_RECT('2mm', '2mm', '146mm', '96mm', 0, 1)
|
||||||
LODOP.SET_PRINT_STYLE('FontSize', 23)
|
LODOP.SET_PRINT_STYLE('FontSize', 23)
|
||||||
LODOP.SET_PRINT_STYLE('Bold', 1)
|
LODOP.SET_PRINT_STYLE('Bold', 1)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
style="width: 100%;background: transparent;overflow:auto;"
|
style="width: 100%;background: transparent;overflow:auto;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
@@ -90,6 +90,10 @@ export default {
|
|||||||
idField: 'performance_id',
|
idField: 'performance_id',
|
||||||
sort: 'performance_id,desc',
|
sort: 'performance_id,desc',
|
||||||
crudMethod: { ... crudHpcQuery },
|
crudMethod: { ... crudHpcQuery },
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
size="mini"
|
size="mini"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
@@ -243,7 +243,11 @@ export default {
|
|||||||
name: 'IoStorQuery',
|
name: 'IoStorQuery',
|
||||||
components: { crudOperation, rrOperation, pagination, TaskDialog, DivDialog },
|
components: { crudOperation, rrOperation, pagination, TaskDialog, DivDialog },
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({ title: '出入库单报表', idField: 'iostorinv_id', url: 'api/checkoutbill', crudMethod: { ...checkoutbill },
|
return CRUD({ title: '出入库单报表',
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},idField: 'iostorinv_id', url: 'api/checkoutbill', crudMethod: { ...checkoutbill },
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -151,14 +151,14 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column prop="stor_name" label="仓库" />
|
<el-table-column prop="stor_name" label="仓库" />
|
||||||
<el-table-column prop="sect_name" label="库区" />
|
<el-table-column prop="sect_name" label="库区" min-width="100" />
|
||||||
<el-table-column prop="struct_code" label="货位编码" width="120" />
|
<el-table-column prop="struct_code" label="货位编码" width="120" />
|
||||||
<el-table-column prop="struct_name" label="货位名称" min-width="150" show-overflow-tooltip />
|
<el-table-column prop="struct_name" label="货位名称" min-width="150" show-overflow-tooltip />
|
||||||
<el-table-column prop="storagevehicle_code" label="托盘号">
|
<el-table-column prop="storagevehicle_code" label="托盘号">
|
||||||
@@ -215,6 +215,10 @@ export default {
|
|||||||
url: 'api/ivtQuery',
|
url: 'api/ivtQuery',
|
||||||
idField: 'point_id',
|
idField: 'point_id',
|
||||||
sort: 'point_id,desc',
|
sort: 'point_id,desc',
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
@@ -111,6 +111,10 @@ export default {
|
|||||||
url: 'api/purchaseorderproc/ledgerQuery',
|
url: 'api/purchaseorderproc/ledgerQuery',
|
||||||
idField: 'id',
|
idField: 'id',
|
||||||
sort: 'id,desc',
|
sort: 'id,desc',
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
size="mini"
|
size="mini"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
@@ -140,7 +140,11 @@ export default {
|
|||||||
name: 'outStorQuery',
|
name: 'outStorQuery',
|
||||||
components: { StructIvt, crudOperation, rrOperation, pagination },
|
components: { StructIvt, crudOperation, rrOperation, pagination },
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({ title: '生产配粉领料', idField: 'iostorinv_id', url: 'api/checkoutbill/queryDtl', crudMethod: { ...checkoutbill },
|
return CRUD({ title: '生产配粉领料',
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},idField: 'iostorinv_id', url: 'api/checkoutbill/queryDtl', crudMethod: { ...checkoutbill },
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
@@ -158,6 +158,10 @@ export default {
|
|||||||
idField: 'performance_id',
|
idField: 'performance_id',
|
||||||
sort: 'performance_id,desc',
|
sort: 'performance_id,desc',
|
||||||
crudMethod: { ...crudPhySicalQuery },
|
crudMethod: { ...crudPhySicalQuery },
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
@@ -179,7 +183,6 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table
|
<el-table
|
||||||
ref="table"
|
ref="table"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -107,6 +107,10 @@ export default {
|
|||||||
idField: 'workorder_id',
|
idField: 'workorder_id',
|
||||||
sort: 'workorder_id,desc',
|
sort: 'workorder_id,desc',
|
||||||
crudMethod: { ...crudPowderorder },
|
crudMethod: { ...crudPowderorder },
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
@@ -98,6 +98,10 @@ export default {
|
|||||||
url: 'api/powderProductionQuery',
|
url: 'api/powderProductionQuery',
|
||||||
idField: 'workorder_id',
|
idField: 'workorder_id',
|
||||||
sort: 'workorder_id,desc',
|
sort: 'workorder_id,desc',
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
@@ -101,6 +101,10 @@ export default {
|
|||||||
idField: 'workorder_id',
|
idField: 'workorder_id',
|
||||||
sort: 'workorder_id,desc',
|
sort: 'workorder_id,desc',
|
||||||
crudMethod: { ...crudProductionday },
|
crudMethod: { ...crudProductionday },
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
@@ -130,6 +130,10 @@ export default {
|
|||||||
idField: 'performance_id',
|
idField: 'performance_id',
|
||||||
sort: 'performance_id,desc',
|
sort: 'performance_id,desc',
|
||||||
crudMethod: { ...crudRawuatwcquery },
|
crudMethod: { ...crudRawuatwcquery },
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<crudOperation :permission="permission"/>
|
<crudOperation :permission="permission"/>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" show-summary :summary-method="getSum" :max-height="420" v-loading="crud.loading" :data="crud.data" size="mini"
|
<el-table ref="table" show-summary :summary-method="getSum" :max-height="550" v-loading="crud.loading" :data="crud.data" size="mini"
|
||||||
style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||||
<el-table-column prop="class_name" label="物料分类"/>
|
<el-table-column prop="class_name" label="物料分类"/>
|
||||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip/>
|
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip/>
|
||||||
@@ -149,6 +149,10 @@ export default {
|
|||||||
idField: 'stordaily_id',
|
idField: 'stordaily_id',
|
||||||
sort: '',
|
sort: '',
|
||||||
crudMethod: {...crudIostordaily},
|
crudMethod: {...crudIostordaily},
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
:max-height="420"
|
:max-height="550"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
@@ -89,6 +89,10 @@ export default {
|
|||||||
idField: 'performance_id',
|
idField: 'performance_id',
|
||||||
sort: 'performance_id,desc',
|
sort: 'performance_id,desc',
|
||||||
crudMethod: { ...crudStifleQuery },
|
crudMethod: { ...crudStifleQuery },
|
||||||
|
props: {
|
||||||
|
// 每页数据条数
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user