|
@@ -77,28 +77,28 @@
|
|
|
<div class="tabbox">
|
|
<div class="tabbox">
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="tabClick" class="basic-tab">
|
|
<el-tabs v-model="activeName" type="card" @tab-click="tabClick" class="basic-tab">
|
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
|
- :label="`在用(${countInfo.inUseSum ? countInfo.inUseSum : '0'})`"
|
|
|
|
|
|
|
+ :label="`在用(${countInfo.useCount ? countInfo.useCount : '0'})`"
|
|
|
name="inUse"
|
|
name="inUse"
|
|
|
>
|
|
>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
|
:label="`在库(${
|
|
:label="`在库(${
|
|
|
- countInfo.inLibrarySum ? countInfo.inLibrarySum : '0'
|
|
|
|
|
|
|
+ countInfo.libraryCount ? countInfo.libraryCount : '0'
|
|
|
})`"
|
|
})`"
|
|
|
name="inLibrary"
|
|
name="inLibrary"
|
|
|
>
|
|
>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
|
:label="`消耗(${
|
|
:label="`消耗(${
|
|
|
- countInfo.consumeSum ? countInfo.consumeSum : '0'
|
|
|
|
|
|
|
+ countInfo.consumeCount ? countInfo.consumeCount : '0'
|
|
|
})`"
|
|
})`"
|
|
|
name="hasConsume"
|
|
name="hasConsume"
|
|
|
>
|
|
>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
- <el-button icon="el-icon-printer" size="small" @click="handlPrint"
|
|
|
|
|
|
|
+ <!-- <el-button icon="el-icon-printer" size="small" @click="handlPrint"
|
|
|
>打印条码</el-button
|
|
>打印条码</el-button
|
|
|
- >
|
|
|
|
|
|
|
+ > -->
|
|
|
</div>
|
|
</div>
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -169,7 +169,7 @@
|
|
|
// import { getAssetPage, getCount } from '@/api/ledgerAssets/asset'
|
|
// import { getAssetPage, getCount } from '@/api/ledgerAssets/asset'
|
|
|
// import { batchBarPrint } from '@/api/ledgerAssets/booksList'
|
|
// import { batchBarPrint } from '@/api/ledgerAssets/booksList'
|
|
|
// import QrPrint from '@/components/print/printPDF.vue'
|
|
// import QrPrint from '@/components/print/printPDF.vue'
|
|
|
- import { getPageSingle } from '@/api/ledgerAssets';
|
|
|
|
|
|
|
+ import { getPageSingle , getCount } from '@/api/ledgerAssets';
|
|
|
import { getDetails } from '@/api/classifyManage/itemInformation.js';
|
|
import { getDetails } from '@/api/classifyManage/itemInformation.js';
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
created () {
|
|
created () {
|
|
|
this.getDetilInfo()
|
|
this.getDetilInfo()
|
|
|
this.handleList()
|
|
this.handleList()
|
|
|
- // this.getCountNum()
|
|
|
|
|
|
|
+ this.getCountNum()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getDetilInfo(){
|
|
getDetilInfo(){
|
|
@@ -358,10 +358,9 @@ export default {
|
|
|
|
|
|
|
|
getCountNum () {
|
|
getCountNum () {
|
|
|
const params = {
|
|
const params = {
|
|
|
- assetType: 'WULIAO',
|
|
|
|
|
- informationId: this.rowInfo.id,
|
|
|
|
|
- outInCode: this.searchForm.outInCode,
|
|
|
|
|
- batchNum: this.searchForm.batchNum
|
|
|
|
|
|
|
+ categoryId: this.rowId,
|
|
|
|
|
+ sourceBizNo: this.searchForm.sourceBizNo,
|
|
|
|
|
+ sourceBatchNo: this.searchForm.sourceBatchNo
|
|
|
}
|
|
}
|
|
|
getCount(params).then(res => {
|
|
getCount(params).then(res => {
|
|
|
if (res?.success) {
|
|
if (res?.success) {
|