优化
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user