Commit 5b2d1046 authored by renjintao's avatar renjintao

outCount

parent 087f6e52
...@@ -47,7 +47,14 @@ ...@@ -47,7 +47,14 @@
</div> </div>
</Split> </Split>
<Modal v-model="ModalAccList" title="出库记录" width="1000" footer-hide> <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> </Modal>
</div> </div>
</template> </template>
...@@ -96,7 +103,7 @@ export default { ...@@ -96,7 +103,7 @@ export default {
{ {
attrs: { attrs: {
oprate: "detail", oprate: "detail",
title: "查看明细", title: params.row.outCount&&params.row.outCount>0?"出库明细":"",
}, },
style: { style: {
color: "blue", color: "blue",
...@@ -105,7 +112,7 @@ export default { ...@@ -105,7 +112,7 @@ export default {
click: () => this.openAccessoryList(params.row), click: () => this.openAccessoryList(params.row),
}, },
}, },
params.row.outCount params.row.outCount ? params.row.outCount : "0"
); );
}, },
}, },
...@@ -379,9 +386,11 @@ export default { ...@@ -379,9 +386,11 @@ export default {
this.$set(this.datasOut, index, row); this.$set(this.datasOut, index, row);
}, },
openAccessoryList(row) { openAccessoryList(row) {
if (row.outCount && row.outCount > 0) {
this.ModalAccList = true; this.ModalAccList = true;
this.easySearch.supportItemId.value = row.id; this.easySearch.supportItemId.value = row.id;
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}
}, },
l(key) { l(key) {
key = "support_main" + "." + 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