修复当前库存的跳转问题

master
toesbieya 6 years ago
parent 3946f31952
commit a3ce8e86d7
  1. 6
      vue/src/layout/component/Sidebar/index.vue
  2. 6
      vue/src/view/stock/current/DetailDialog.vue
  3. 8
      vue/src/view/stock/current/indexPage.vue

@ -93,15 +93,15 @@ export default {
immediate: true,
handler(v) {
if (!this.sidebarAutoHidden) return
const key = `${v ? 'add' : 'remove'}EventListener`
document[key]('mousemove', this.moveEvent)
const method = `${v ? 'add' : 'remove'}EventListener`
document[method]('mousemove', this.moveEvent)
}
}
},
methods: {
moveEvent(e) {
if (e.clientX <= 15) this.mouseOutside = false
if (e.clientX <= 1) this.mouseOutside = false
},
//

@ -13,7 +13,7 @@
<el-table-column align="center" label="采购订单" show-overflow-tooltip>
<router-link
slot-scope="{row}"
:to="{name:'purchaseOrderDetail',params:{type:'see',id:row.cgddid}}"
:to="`/purchase/order/detail/see/${row.cgddid}`"
@click.native="cancel"
>
{{ row.cgddid }}
@ -23,7 +23,7 @@
<el-table-column align="center" label="采购入库单" show-overflow-tooltip>
<router-link
slot-scope="{row}"
:to="{name:'purchaseInboundDetail',params:{type:'see',id:row.cgrkid}}"
:to="`/purchase/inbound/detail/see/${row.cgrkid}`"
@click.native="cancel"
>
{{ row.cgrkid }}
@ -98,7 +98,7 @@ export default {
if (a.cgddid < b.cgddid) return 1
return 0
})
let count = {}
const count = {}
data.forEach(i => {
i.total = mul(i.num, i.price)
i._span = {rowspan: 0, colspan: 0}

@ -41,8 +41,12 @@
</el-row>
<el-row v-loading="config.loading" class="table-container">
<abstract-table :data="tableData" :highlight-current-row="false" show-summary
:summary-method="summary">
<abstract-table
:data="tableData"
:highlight-current-row="false"
show-summary
:summary-method="summary"
>
<el-table-column align="center" label="#" type="index" width="80"/>
<el-table-column align="center" label="商品分类">
<el-link slot-scope="{row}" @click="more(row)">{{ row.cname }}</el-link>

Loading…
Cancel
Save