This commit is contained in:
zds
2022-08-24 11:24:10 +08:00
parent 9b3d8a8d93
commit 73a6f7d44e
14 changed files with 63 additions and 31 deletions

View File

@@ -53,8 +53,8 @@
v-loading="crud.loading"
:data="crud.data"
size="mini"
height="420"
style="width: 100%;"
:max-height="420"
style="width: 100%;background: transparent;overflow:auto;"
@selection-change="crud.selectionChangeHandler"
>
<el-table-column type="index" label="序号" width="100" align="center" />
@@ -63,7 +63,8 @@
</template>
</el-table>
<!--分页组件-->
<pagination />
<pagination />
</div>
</div>
</template>
@@ -131,4 +132,7 @@ export default {
<style scoped>
::-webkit-scrollbar-corner{
background: transparent;
}
</style>

View File

@@ -188,7 +188,7 @@
v-loading="crud.loading"
size="mini"
:data="crud.data"
height="420"
:max-height="420"
style="width: 100%;"
:highlight-current-row="true"
@selection-change="crud.selectionChangeHandler"

View File

@@ -15,8 +15,9 @@
<el-cascader
placeholder="所属库区"
:options="sects"
:props="{ checkStrictly: true }"
:props="{ multiple: true }"
clearable
collapse-tags
class="filter-item"
@change="sectQueryChange"
/>
@@ -138,7 +139,6 @@
class="filter-item"
type="success"
icon="el-icon-check"
:disabled="downdtl_flag"
size="mini"
@click="downdtl"
>
@@ -151,7 +151,7 @@
ref="table"
v-loading="crud.loading"
:data="crud.data"
height="420"
:max-height="420"
size="mini"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
@@ -168,9 +168,9 @@
</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="120" show-overflow-tooltip />
<el-table-column prop="material_spec" label="物料规格" show-overflow-tooltip/>
<el-table-column prop="material_spec" label="物料规格" show-overflow-tooltip />
<el-table-column prop="material_model" label="型号" />
<el-table-column prop="pcsn" label="批次" show-overflow-tooltip width="150px"/>
<el-table-column prop="pcsn" label="批次" show-overflow-tooltip width="150px" />
<el-table-column prop="quality_scode" label="品质类型" :formatter="format_quality_scode" />
<el-table-column prop="ivt_level" label="库存等级" :formatter="format_ivt_level" />
<el-table-column prop="is_active" label="是否可用" :formatter="format_is_active" />
@@ -185,7 +185,7 @@
<!--分页组件-->
<pagination />
</div>
<BucketDialog :dialog-show.sync="bucketDialog" :open-param="openParam"/>
<BucketDialog :dialog-show.sync="bucketDialog" :open-param="openParam" />
</div>
</template>
@@ -259,17 +259,16 @@ export default {
return true
},
sectQueryChange(val) {
if (val.length === 1) {
this.query.stor_id = val[0]
this.query.sect_id = ''
}
debugger
if (val.length === 0) {
this.query.sect_id = ''
this.query.stor_id = ''
}
if (val.length === 2) {
this.query.stor_id = val[0]
this.query.sect_id = val[1]
} else {
this.query.stor_id = val[0][0]
this.query.sect_id = ''
for (var i = 0; i < val.length; i++) {
this.query.sect_id = this.query.sect_id + ',' + val[i][1]
}
}
this.crud.toQuery()
},

View File

@@ -57,7 +57,7 @@
ref="table"
v-loading="crud.loading"
:data="crud.data"
height="420"
:max-height="420"
size="mini"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"

View File

@@ -101,7 +101,7 @@
ref="table"
v-loading="crud.loading"
size="mini"
height="420"
:max-height="420"
:data="crud.data"
style="width: 100%;"
:highlight-current-row="true"

View File

@@ -119,7 +119,7 @@
ref="table"
v-loading="crud.loading"
:data="crud.data"
height="420"
:max-height="420"
size="mini"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"

View File

@@ -68,7 +68,7 @@
<!--表格渲染-->
<el-table
ref="table"
height="420"
:max-height="420"
v-loading="crud.loading"
:data="crud.data"
size="mini"

View File

@@ -52,7 +52,7 @@
v-loading="crud.loading"
:data="crud.data"
size="mini"
height="420"
:max-height="420"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
>

View File

@@ -63,7 +63,7 @@
v-loading="crud.loading"
:data="crud.data"
size="mini"
height="420"
:max-height="420"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
>

View File

@@ -92,7 +92,7 @@
v-loading="crud.loading"
:data="crud.data"
size="mini"
height="420"
:max-height="420"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
>

View File

@@ -81,7 +81,7 @@
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission"/>
<!--表格渲染-->
<el-table ref="table" show-summary :summary-method="getSum" height="420" v-loading="crud.loading" :data="crud.data" size="mini"
<el-table ref="table" show-summary :summary-method="getSum" :max-height="420" v-loading="crud.loading" :data="crud.data" size="mini"
style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column prop="class_name" label="物料分类"/>
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip/>

View File

@@ -52,7 +52,7 @@
ref="table"
v-loading="crud.loading"
:data="crud.data"
height="420"
:max-height="420"
size="mini"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"