增加批次商品选择

This commit is contained in:
季圣华
2021-09-29 01:17:39 +08:00
parent ef30a7cc3b
commit fdfcc81147
9 changed files with 388 additions and 13 deletions

View File

@@ -6,7 +6,7 @@
@ok="handleSubmit"
@cancel="close"
cancelText="关闭"
style="margin-top: -70px"
style="top:5%;height: 100%;overflow-y: hidden"
wrapClassName="ant-modal-cust-warp"
>
<a-row :gutter="10" style="padding: 10px; margin: -10px">
@@ -76,11 +76,11 @@
name: 'JSelectMaterialModal',
mixins:[JeecgListMixin],
components: {},
props: ['modalWidth', 'multi', 'barCode'],
props: ['modalWidth', 'rows', 'multi', 'barCode'],
data() {
return {
queryParam: {
q: "",
q: '',
depotId: ''
},
labelCol: {
@@ -163,6 +163,11 @@
}
},
async loadData(arg) {
if(this.rows) {
if(JSON.parse(this.rows).depotId){
this.queryParam.depotId = JSON.parse(this.rows).depotId-0
}
}
if (arg === 1) {
this.ipagination.current = 1;
}
@@ -233,7 +238,6 @@
this.visible = false;
},
handleTableChange(pagination, filters, sorter) {
//TODO 筛选
if (Object.keys(sorter).length > 0) {
this.isorter.column = sorter.field;
this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc';