Commit e2a67d7f authored by jingnan's avatar jingnan 👀

台账合计修改

parent 418dedd8
......@@ -12,11 +12,11 @@
:lay-config="{ typeName: 'Inventory', layKey: 'inventoryLedger'}"
@requestSuccess="onRequestSuccess"
/>
<div class="sumCon">
<div v-if="amountObjs.amount" class="sumCon">
<strong>合计:</strong>
<span class="clumnLabel">库存数量: <span class="count">0</span>&nbsp;</span>
<span class="clumnLabel">占用数量: <span class="count">0</span>&nbsp;</span>
<span class="clumnLabel">可用数量: <span class="count">0</span></span>
<span class="clumnLabel">库存数量: <span class="count">{{ amountObjs.amount }}</span>&nbsp;</span>
<span class="clumnLabel">占用数量: <span class="count">{{ amountObjs.takeAmount }}</span>&nbsp;</span>
<span class="clumnLabel">可用数量: <span class="count">{{ amountObjs.usableAmount }}</span></span>
</div>
</div>
......@@ -34,7 +34,9 @@ export default {
}
},
data() {
return {}
return {
amountObjs: {}
}
},
computed: {},
watch: {},
......@@ -43,7 +45,11 @@ export default {
// 组件方法
methods: {
onRequestSuccess(res) {
console.log('res: ', res)
this.amountObjs = {
amount: res.items.amount,
takeAmount: res.items.takeAmount,
usableAmount: res.items.usableAmount
}
}
}
}
......
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