Commit 5b2d1046 authored by renjintao's avatar renjintao

outCount

parent 087f6e52
......@@ -47,7 +47,14 @@
</div>
</Split>
<Modal v-model="ModalAccList" title="出库记录" width="1000" footer-hide>
<DataGrid :action="action" :columns="colsList" ref="grid" :conditions="easySearch" height="400" :tool="false"></DataGrid>
<DataGrid
:action="action"
:columns="colsList"
ref="grid"
:conditions="easySearch"
height="400"
:tool="false"
></DataGrid>
</Modal>
</div>
</template>
......@@ -96,7 +103,7 @@ export default {
{
attrs: {
oprate: "detail",
title: "查看明细",
title: params.row.outCount&&params.row.outCount>0?"出库明细":"",
},
style: {
color: "blue",
......@@ -105,7 +112,7 @@ export default {
click: () => this.openAccessoryList(params.row),
},
},
params.row.outCount
params.row.outCount ? params.row.outCount : "0"
);
},
},
......@@ -379,9 +386,11 @@ export default {
this.$set(this.datasOut, index, row);
},
openAccessoryList(row) {
this.ModalAccList = true;
this.easySearch.supportItemId.value = row.id;
this.$refs.grid.reload(this.easySearch);
if (row.outCount && row.outCount > 0) {
this.ModalAccList = true;
this.easySearch.supportItemId.value = row.id;
this.$refs.grid.reload(this.easySearch);
}
},
l(key) {
key = "support_main" + "." + key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment