|
@@ -6,11 +6,11 @@
|
|
|
<el-descriptions title="" :column="4" size="medium" border>
|
|
<el-descriptions title="" :column="4" size="medium" border>
|
|
|
<el-descriptions-item>
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 物品编码 </template>
|
|
<template slot="label"> 物品编码 </template>
|
|
|
- {{ information.informationCode }}
|
|
|
|
|
|
|
+ {{ information.code }}
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 原料名称 </template>
|
|
<template slot="label"> 原料名称 </template>
|
|
|
- {{ information.informationName }}
|
|
|
|
|
|
|
+ {{ information.name }}
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 牌号</template>
|
|
<template slot="label"> 牌号</template>
|
|
@@ -26,7 +26,7 @@
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item :span="2">
|
|
<el-descriptions-item :span="2">
|
|
|
<template slot="label"> 分类 </template>
|
|
<template slot="label"> 分类 </template>
|
|
|
- {{ information.classificationUrl }}
|
|
|
|
|
|
|
+ {{ information.categoryLevelPath }}
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
|
|
|
|
@@ -45,7 +45,7 @@
|
|
|
type="text"
|
|
type="text"
|
|
|
size="small"
|
|
size="small"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
- v-model="searchForm.outInCode"
|
|
|
|
|
|
|
+ v-model="searchForm.sourceBizNo"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -55,7 +55,7 @@
|
|
|
type="text"
|
|
type="text"
|
|
|
size="small"
|
|
size="small"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
- v-model="searchForm.batchNum"
|
|
|
|
|
|
|
+ v-model="searchForm.sourceBatchNo"
|
|
|
></el-input
|
|
></el-input
|
|
|
></el-form-item>
|
|
></el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -75,7 +75,7 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
<div class="tabbox">
|
|
<div class="tabbox">
|
|
|
- <el-tabs v-model="activeName" type="card" @tab-click="tabClick">
|
|
|
|
|
|
|
+ <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.inUseSum ? countInfo.inUseSum : '0'})`"
|
|
|
name="inUse"
|
|
name="inUse"
|
|
@@ -109,8 +109,9 @@
|
|
|
<el-table-column type="selection" width="55"> </el-table-column>
|
|
<el-table-column type="selection" width="55"> </el-table-column>
|
|
|
<el-table-column type="index" label="序号" width="100">
|
|
<el-table-column type="index" label="序号" width="100">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="assetCode" label="原料编码"> </el-table-column>
|
|
|
|
|
- <el-table-column prop="batchNum" label="批次号"> </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="code" label="编码"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="name" label="名称" > </el-table-column>
|
|
|
|
|
+ <el-table-column prop="sourceBatchNo" label="批次号"> </el-table-column>
|
|
|
<el-table-column prop="bucketNum" label="包装编码"> </el-table-column>
|
|
<el-table-column prop="bucketNum" label="包装编码"> </el-table-column>
|
|
|
<el-table-column prop="minPackUnit" label="最小包装单元">
|
|
<el-table-column prop="minPackUnit" label="最小包装单元">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -146,7 +147,7 @@
|
|
|
:total="total"
|
|
:total="total"
|
|
|
:page-sizes="[15, 30, 50, 100, 500]"
|
|
:page-sizes="[15, 30, 50, 100, 500]"
|
|
|
:page-size="pagination.size"
|
|
:page-size="pagination.size"
|
|
|
- :current-page.sync="pagination.page"
|
|
|
|
|
|
|
+ :current-page.sync="pagination.pageNum"
|
|
|
@current-change="handleCurrent"
|
|
@current-change="handleCurrent"
|
|
|
@size-change="handleSize"
|
|
@size-change="handleSize"
|
|
|
>
|
|
>
|
|
@@ -169,7 +170,8 @@
|
|
|
// 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 {
|
|
import {
|
|
|
- getCategoryInfo
|
|
|
|
|
|
|
+ getCategoryInfo,
|
|
|
|
|
+ getPageSingle
|
|
|
} from '@/api/ledgerAssets/boat.js';
|
|
} from '@/api/ledgerAssets/boat.js';
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -187,28 +189,25 @@ export default {
|
|
|
activeName: 'inUse',
|
|
activeName: 'inUse',
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
pagination: {
|
|
pagination: {
|
|
|
- page: 1,
|
|
|
|
|
|
|
+ pageNum: 1,
|
|
|
size: 15
|
|
size: 15
|
|
|
},
|
|
},
|
|
|
total: 0,
|
|
total: 0,
|
|
|
searchForm: {
|
|
searchForm: {
|
|
|
- assetType: 'WULIAO',
|
|
|
|
|
- informationId: '',
|
|
|
|
|
- source: 1
|
|
|
|
|
|
|
+ categoryId:this.rowId,
|
|
|
|
|
+ positionType:1
|
|
|
},
|
|
},
|
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
|
openWindows: false, //打印弹窗
|
|
openWindows: false, //打印弹窗
|
|
|
barCodeConfig: [],
|
|
barCodeConfig: [],
|
|
|
- source: 1,
|
|
|
|
|
|
|
+ positionType: 1,
|
|
|
countInfo: {}
|
|
countInfo: {}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {},
|
|
watch: {},
|
|
|
created () {
|
|
created () {
|
|
|
this.getDetilInfo()
|
|
this.getDetilInfo()
|
|
|
- // this.searchForm.informationId = this.rowInfo.id
|
|
|
|
|
- // this.getDetilInfo(this.rowInfo.id)
|
|
|
|
|
- // this.handleList()
|
|
|
|
|
|
|
+ this.handleList()
|
|
|
// this.getCountNum()
|
|
// this.getCountNum()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -224,21 +223,21 @@ export default {
|
|
|
tabClick (val) {
|
|
tabClick (val) {
|
|
|
switch (this.activeName) {
|
|
switch (this.activeName) {
|
|
|
case 'inUse': {
|
|
case 'inUse': {
|
|
|
- this.source = 1
|
|
|
|
|
|
|
+ this.positionType = 1
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'inLibrary': {
|
|
case 'inLibrary': {
|
|
|
- this.source = 2
|
|
|
|
|
|
|
+ this.positionType = 2
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'hasConsume': {
|
|
case 'hasConsume': {
|
|
|
- this.source = 3
|
|
|
|
|
|
|
+ this.positionType = 3
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
default:
|
|
default:
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
- this.searchForm.source = this.source
|
|
|
|
|
|
|
+ this.searchForm.positionType = this.positionType
|
|
|
this.handleList()
|
|
this.handleList()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -247,22 +246,21 @@ export default {
|
|
|
this.handleList()
|
|
this.handleList()
|
|
|
},
|
|
},
|
|
|
handleSize (size) {
|
|
handleSize (size) {
|
|
|
- this.pagination.page = 1
|
|
|
|
|
|
|
+ this.pagination.pageNum = 1
|
|
|
this.pagination.size = size
|
|
this.pagination.size = size
|
|
|
this.handleList()
|
|
this.handleList()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 搜索
|
|
// 搜索
|
|
|
doSearch () {
|
|
doSearch () {
|
|
|
- this.pagination.page = 1
|
|
|
|
|
|
|
+ this.pagination.pageNum = 1
|
|
|
this.handleList()
|
|
this.handleList()
|
|
|
},
|
|
},
|
|
|
// 重置
|
|
// 重置
|
|
|
reset () {
|
|
reset () {
|
|
|
this.searchForm = {
|
|
this.searchForm = {
|
|
|
- assetType: 'WULIAO',
|
|
|
|
|
- informationId: this.rowInfo.id,
|
|
|
|
|
- source: this.source
|
|
|
|
|
|
|
+ categoryId:this.rowId,
|
|
|
|
|
+ positionType:1
|
|
|
}
|
|
}
|
|
|
this.doSearch()
|
|
this.doSearch()
|
|
|
},
|
|
},
|
|
@@ -272,10 +270,10 @@ export default {
|
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
|
...this.pagination
|
|
...this.pagination
|
|
|
}
|
|
}
|
|
|
- const res = await getAssetPage(params)
|
|
|
|
|
- if (res?.success) {
|
|
|
|
|
- this.tableData = res.data.records
|
|
|
|
|
- this.total = res.data.total
|
|
|
|
|
|
|
+ const res = await getPageSingle(params)
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ this.tableData = res.list
|
|
|
|
|
+ this.total = res.count
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -390,6 +388,13 @@ export default {
|
|
|
.content {
|
|
.content {
|
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
|
}
|
|
}
|
|
|
|
|
+ .basic-details-title{
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ margin: 15px 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ .basic-tab{
|
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
|
+ }
|
|
|
.upload-container {
|
|
.upload-container {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
.img-box {
|
|
.img-box {
|