Browse Source

完善盘点管理

master
yunuo970428 3 days ago
parent
commit
ca35af1012
  1. 1346
      yxt-as-ui/src/views/storage/stocktaking/index.vue
  2. 2
      yxt-as-ui/src/views/storage/stocktaking/stocktakingEditReport.vue
  3. 346
      yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeDetail.vue
  4. 486
      yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeList.vue
  5. 2
      yxt-as-ui/src/views/storage/stocktaking/stocktakingReportDetail.vue

1346
yxt-as-ui/src/views/storage/stocktaking/index.vue

File diff suppressed because it is too large

2
yxt-as-ui/src/views/storage/stocktaking/stocktakingEditReport.vue

@ -127,7 +127,7 @@
</div>
<el-table :data="formobj.arehouseAreaeStocktakList" :index="index" border style="width: 100%;">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" />
<el-table-column prop="warehouseAreaeName" label="仓库-库区" width="200" align="center" />
<el-table-column prop="warehouseAreaeName" label="仓库-区域-库区" width="200" align="center" />
<el-table-column prop="ypNum" label="应盘" align="center" />
<el-table-column prop="ypMoney" label="应盘金额" align="center" />
<el-table-column prop="spNum" label="实盘" align="center" />

346
yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeDetail.vue

@ -1,7 +1,7 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<button-bar ref="btnbar" view-title="库位商品盘点明细" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<button-bar ref="btnbar" view-title="库位商品盘点明细" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">
@ -10,13 +10,13 @@
<div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header">
<el-form-item label="商品ID">
<el-input v-model="queryParams.params.goodsID" placeholder="" clearable />
<el-input v-model="queryParams.params.goodsID" placeholder="" clearable/>
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="queryParams.params.goodsSkuTitle" placeholder="" clearable />
<el-input v-model="queryParams.params.goodsSkuTitle" placeholder="" clearable/>
</el-form-item>
<el-form-item label="商品图号">
<el-input v-model="queryParams.params.goodsSkuCode" placeholder="" clearable />
<el-input v-model="queryParams.params.goodsSkuCode" placeholder="" clearable/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
@ -33,239 +33,187 @@
<!-- Start 项目列表 -->
<div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column prop="goodsID" label="商品ID" width="120" align="center" />
<el-table-column prop="goodsSkuTitle" label="商品名称" width="120" align="center" />
<el-table-column prop="goodsSkuCode" label="图号" width="120" align="center" />
<el-table-column prop="warehouseName" label="仓库" width="120" align="center" />
<el-table-column prop="warehouseArea" label="库区" width="120" align="center" />
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center" />
<el-table-column prop="unit" label="单位" width="120" align="center" />
<el-table-column prop="cost" label="单价" width="120" align="center" />
<el-table-column prop="bookCount" label="库存数量" width="120" align="center" />
<el-table-column prop="bookAmount" label="库存金额" width="120" align="center" />
<el-table-column prop="realCount" label="实盘数量" width="120" align="center" />
<el-table-column prop="realCount" label="实盘金额" width="120" align="center" />
<el-table-column prop="state" label="状态" width="120" align="center" />
<el-table-column prop="profitAndLoseCount" label="亏盈数" width="120" align="center" />
<el-table-column prop="profitAndLoseAmount" label="盈亏金额" width="120" align="center" />
<el-table-column prop="lossCount" label="盘损数量" width="120" align="center" />
<el-table-column prop="lossAmount" label="盘损金额" width="120" align="center" />
<el-table-column prop="remarks" label="备注" align="center" width="200" />
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="goodsID" label="商品ID" width="120" align="center"/>
<el-table-column prop="goodsSkuTitle" label="商品名称" width="120" align="center"/>
<el-table-column prop="goodsSkuCode" label="图号" width="120" align="center"/>
<el-table-column prop="warehouseName" label="仓库" width="120" align="center"/>
<el-table-column prop="zoneName" label="区域" width="120" align="center"/>
<el-table-column prop="warehouseArea" label="库区" width="120" align="center"/>
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center"/>
<el-table-column prop="unit" label="单位" width="120" align="center"/>
<el-table-column prop="cost" label="单价" width="120" align="center"/>
<el-table-column prop="bookCount" label="库存数量" width="120" align="center"/>
<el-table-column prop="bookAmount" label="库存金额" width="120" align="center"/>
<el-table-column prop="realCount" label="实盘数量" width="120" align="center"/>
<el-table-column prop="realAmount" label="实盘金额" width="120" align="center"/>
<el-table-column prop="state" label="状态" width="120" align="center"/>
<el-table-column prop="profitAndLoseCount" label="亏盈数" width="120" align="center"/>
<el-table-column prop="profitAndLoseAmount" label="亏盈金额" width="120" align="center"/>
<el-table-column prop="lossCount" label="盘损数量" width="120" align="center"/>
<el-table-column prop="lossAmount" label="盘损金额" width="120" align="center"/>
<el-table-column prop="remarks" label="备注" align="center" width="200"/>
<el-table-column label="附件" align="center">
<template slot-scope="scope">
<div style="color: #1890FF; text-decoration: underline ;" @click="showImage(scope.row.fillPaths)">
查看
</div>
<span class="bluezi" @click="showImage(scope.row.fillPaths)">查看</span>
</template>
</el-table-column>
</el-table>
</div>
<!-- End 项目列表 -->
<div class="pages">
<div class="tit" />
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current"
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" />
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
</div>
</div>
<el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose">
<el-form ref="dataForm1" class="formadd" style="margin-top: -30px;">
<el-row class="first_row">
<el-col :span="24" class="trightb">
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;"
v-for="(item,index) in fileList" :src="item.url" :preview-src-list="[item]">
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;" v-for="(item, index) in fileList" :key="index" :src="item.url" :preview-src-list="[item]">
</el-image>
</el-col>
</el-row>
</el-form>
</el-dialog>
</div>
</template>
<script>
import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
export default {
components: {
ButtonBar,
Pagination,
pageye,
import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
export default {
components: {
ButtonBar,
Pagination
},
data() {
return {
dialogVisible: false,
btndisabled: false,
viewState: 1, // 1 2 3 4
isSearchShow: false,
searchxianshitit: '显示查询条件',
tableLoading: false,
dataList: [],
btnList: [{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
billSid: '',
warehouseRackSid: '',
goodsID: '',
goodsSkuTitle: '',
goodsSkuCode: ''
}
},
billSid: '',
warehouseRackSid: '',
fileList: []
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
showImage(paths) {
this.fileList = paths
this.dialogVisible = true
},
handleClose() {
this.dialogVisible = false
},
data() {
return {
dialogVisible: false,
btndisabled: false,
viewState: 1, // 1 2 3 4
isSearchShow: false,
searchxianshitit: '显示查询条件',
tableLoading: false,
dataList: [],
btnList: [{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
"billSid": "",
"warehouseRackSid": "",
"goodsID": "",
"goodsSkuTitle": "",
"goodsSkuCode": ""
}
},
billSid: "",
warehouseRackSid: "",
fileList: []
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
btnHandle(btnKey) {
switch (btnKey) {
case 'doClose':
this.close()
break
default:
break
}
},
created() {
showDetail(sid, warehouseRackSid) {
this.billSid = sid
this.warehouseRackSid = warehouseRackSid
this.queryParams.params.billSid = sid
this.queryParams.params.warehouseRackSid = warehouseRackSid
this.loadList()
},
methods: {
showImage(paths) {
this.fileList = paths
this.dialogVisible = true
},
handleClose() {
this.dialogVisible = false
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
loadList() {
this.tableLoading = true
req.billRackCodeDetail(this.queryParams).then((resp) => {
this.tableLoading = false
if (resp.success) {
const data = resp.data
this.queryParams.total = data.total
this.dataList = data.records
} else {
this.searchxianshitit = '显示查询条件'
// resp.code
this.dataList = []
this.queryParams.total = 0
}
},
btnHandle(btnKey) {
switch (btnKey) {
case 'doClose':
this.close()
break
default:
break
}
},
showDetail(sid, warehouseRackSid) {
this.billSid = sid
this.warehouseRackSid = warehouseRackSid
this.queryParams.params.billSid = sid
this.queryParams.params.warehouseRackSid = warehouseRackSid
this.loadList()
},
loadList() {
this.tableLoading = true
req.billRackCodeDetail(this.queryParams).then((resp) => {
this.tableLoading = false
if (resp.success) {
const data = resp.data
this.queryParams.total = data.total
this.dataList = data.records
} else {
// resp.code
this.dataList = []
this.queryParams.total = 0
}
}).catch(() => {
this.tableLoading = false
})
},
}).catch(() => {
this.tableLoading = false
})
},
//
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
"billSid": this.billSid,
"warehouseRackSid": this.warehouseRackSid,
"goodsID": "",
"goodsSkuTitle": "",
"goodsSkuCode": ""
}
//
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
billSid: this.billSid,
warehouseRackSid: this.warehouseRackSid,
goodsID: '',
goodsSkuTitle: '',
goodsSkuCode: ''
}
this.loadList()
},
close() {
this.$emit('doback')
},
}
this.loadList()
},
close() {
this.$emit('doback')
}
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 90px !important;
}
.addinputInfo {
margin-left: 80px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 80px !important;
width: calc(100% - 70px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
/deep/ .el-form-item__error {
margin-left: 180px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
.first_row {
border-top: 1px solid #E0E3EB;
}
</style>

486
yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeList.vue

@ -1,7 +1,7 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<button-bar ref="btnbar" view-title="盘库明细" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<button-bar ref="btnbar" view-title="盘库明细" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">
@ -10,24 +10,26 @@
<div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header">
<el-form-item label="仓库">
<el-select v-model="queryParams.params.warehouseName" placeholder="请选择仓库"
@change="selectWarehouseChange">
<el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName"
:value="item.sid" />
<el-select v-model="queryParams.params.warehouseName" filterable clearable placeholder="请选择" style="width:100%" @change="selectWarehouseName">
<el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName" :value="item.sid">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="区域">
<el-select v-model="queryParams.params.zoneName" filterable clearable placeholder="请选择" @change="selectWareZoneName">
<el-option v-for="item in warehouseZoneList" :key="item.sid" :label="item.zoneName" :value="item.sid">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="库区">
<el-select v-model="queryParams.params.warehouseAreaName" placeholder="请选择库区"
@change="selectWarehouseAreaChange">
<el-option v-for="item in warehouseAreaList" :key="item.sid" :label="item.areaName"
:value="item.sid" />
<el-select v-model="queryParams.params.warehouseAreaName" filterable clearable placeholder="请选择" @change="selectWareAreaName">
<el-option v-for="item in wareAreaList" :key="item.sid" :label="item.areaName" :value="item.sid">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="库位">
<el-select v-model="queryParams.params.warehouseRackName" placeholder="请选择库位"
@change="selectWarehouseRackChange">
<el-option v-for="item in warehouseRackList" :key="item.sid" :label="item.rackName"
:value="item.sid">
<el-select v-model="queryParams.params.warehouseRackCode" filterable clearable placeholder="请选择" style="width:100%">
<el-option v-for="item in warehouseRackList" :key="item.rackCode" :label="item.rackCode" :value="item.rackCode">
</el-option>
</el-select>
</el-form-item>
@ -46,310 +48,254 @@
<!-- Start 项目列表 -->
<div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" align="center" width="100">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toDetail(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="warehouseName" label="仓库" width="120" align="center" />
<el-table-column prop="warehouseArea" label="库区" width="120" align="center" />
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center" />
<el-table-column prop="warehouseName" label="仓库" width="120" align="center"/>
<el-table-column prop="zoneName" label="区域" width="120" align="center"/>
<el-table-column prop="warehouseArea" label="库区" width="120" align="center"/>
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center"/>
<el-table-column label="应盘" align="center">
<el-table-column prop="bookCount" label="数量" align="center" width="100" />
<el-table-column prop="bookAmount" label="金额" align="center" width="100" />
<el-table-column prop="bookCount" label="数量" align="center" width="100"/>
<el-table-column prop="bookAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="实盘" align="center">
<el-table-column prop="realCount" label="数量" align="center" width="100" />
<el-table-column prop="realAmount" label="金额" align="center" width="100" />
<el-table-column prop="realCount" label="数量" align="center" width="100"/>
<el-table-column prop="realAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="未盘" align="center">
<el-table-column prop="notCount" label="数量" align="center" width="100" />
<el-table-column prop="notAmount" label="金额" align="center" width="100" />
<el-table-column prop="notCount" label="数量" align="center" width="100"/>
<el-table-column prop="notAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="盘盈" align="center">
<el-table-column prop="profitCount" label="数量" align="center" width="100" />
<el-table-column prop="profitAmount" label="金额" align="center" width="100" />
<el-table-column prop="profitCount" label="数量" align="center" width="100"/>
<el-table-column prop="profitAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="盘亏" align="center">
<el-table-column prop="loseCount" label="数量" align="center" width="100" />
<el-table-column prop="loseAmount" label="金额" align="center" width="100" />
<el-table-column prop="loseCount" label="数量" align="center" width="100"/>
<el-table-column prop="loseAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="盘损" align="center">
<el-table-column prop="lossCount" label="数量" align="center" width="100" />
<el-table-column prop="lossAmount" label="金额" align="center" width="100" />
<el-table-column prop="lossCount" label="数量" align="center" width="100"/>
<el-table-column prop="lossAmount" label="金额" align="center" width="100"/>
</el-table-column>
</el-table>
</div>
<!-- End 项目列表 -->
<div class="pages">
<div class="tit" />
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current"
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" />
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
</div>
</div>
<!-- 查看库位明细 -->
<stocktakingRackCodeDetail v-show="viewState == 2" ref="divSp" @doback="resetState" />
<stocktakingRackCodeDetail v-show="viewState == 2" ref="divSp" @doback="resetState"/>
</div>
</template>
<script>
import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import stocktakingRackCodeDetail from './stocktakingRackCodeDetail.vue'
import req2 from '@/api/warehouse/warehouse.js'
import req3 from '@/api/warehouse/warehouseArea.js'
import req4 from '@/api/warehouse/goodsShelves.js'
export default {
components: {
ButtonBar,
Pagination,
pageye,
stocktakingRackCodeDetail
},
data() {
return {
dialogVisible: false,
btndisabled: false,
viewState: 1, // 1 2 3 4
isSearchShow: false,
searchxianshitit: '显示查询条件',
tableLoading: false,
dataList: [],
btnList: [{
import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import stocktakingRackCodeDetail from './stocktakingRackCodeDetail.vue'
import { getAllRackByKQSid, getAllWarehouse, getAllWarehouseareaByZoneSid, getAllWarehousezoneBysid } from '@/api/Common/dictcommons'
export default {
components: {
ButtonBar,
Pagination,
stocktakingRackCodeDetail
},
data() {
return {
dialogVisible: false,
btndisabled: false,
viewState: 1, // 1 2 3 4
isSearchShow: false,
searchxianshitit: '显示查询条件',
tableLoading: false,
dataList: [],
btnList: [
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
"billSid": "",
"warehouseSid": "",
"warehouseName": "",
"warehouseAreaSid": "",
"warehouseAreaName": "",
"warehouseRackSid": "",
"warehouseRackName": "",
}
},
billSid: "",
warehouseList: [],
warehouseAreaList: [],
warehouseRackList: []
}
],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
billSid: '',
warehouseName: '',
zoneName: '',
wareAreaName: '',
warehouseRackCode: ''
}
},
billSid: '',
warehouseList: [],
warehouseAreaList: [],
warehouseRackList: []
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
initData() {
getAllWarehouse({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), warehouseTypeValue: '配件库' }).then((res) => {
if (res.success) {
this.warehouseList = res.data
}
})
},
selectWarehouseName(val) {
this.warehouseZoneList = []
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseList.filter((item) => item.sid === val)
if (choose !== null || choose.length > 0) {
this.queryParams.params.warehouseName = choose[0].warehouseName
this.getWarehouseZoneList(choose[0].sid)
} else {
this.queryParams.params.warehouseName = ''
}
this.queryParams.params.wareZoneName = ''
this.queryParams.params.wareAreaName = ''
this.queryParams.params.warehouseRackCode = ''
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
getWarehouseZoneList(sid) {
getAllWarehousezoneBysid({ ckSid: sid }).then((res) => {
if (res.success) {
this.warehouseZoneList = res.data
}
})
},
created() {
selectWareZoneName(val) {
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseZoneList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.queryParams.params.wareZoneName = choose[0].zoneName
this.getWareAreaList(choose[0].sid)
} else {
this.queryParams.params.wareZoneName = ''
}
this.queryParams.params.wareAreaName = ''
this.queryParams.params.warehouseRackCode = ''
},
methods: {
initData() {
var parpams = {
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
}
req2.getAllWarehouse(parpams).then(resp => {
this.warehouseList = resp.data
})
},
getWarehouseArea(sid) {
this.queryParams.params.warehouseAreaSid = ''
this.queryParams.params.warehouseAreaName = ''
var params = {
ckSid: sid
getWareAreaList(sid) {
getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
if (res.success) {
this.wareAreaList = res.data
}
req3.getAllWarehouseareaBysid(params).then(resp => {
console.log('>>>>>>>>>getAllWarehousearea', resp)
this.warehouseAreaList = resp.data
}).catch(() => {})
},
getAllTypeByAreaSid(sid) {
this.queryParams.params.warehouseRackSid = ''
this.queryParams.params.warehouseRackName = ''
var params = {
areaSid: sid
})
},
selectWareAreaName(val) {
this.warehouseRackList = []
const choose = this.wareAreaList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.queryParams.params.wareAreaName = choose[0].areaName
this.getWarehouseRackList(choose[0].sid)
} else {
this.queryParams.params.wareAreaName = ''
}
this.queryParams.params.warehouseRackCode = ''
},
getWarehouseRackList(sid) {
getAllRackByKQSid({ kqSid: sid }).then((res) => {
if (res.success) {
this.warehouseRackList = res.data
}
req4.getAllTypeByAreaSid(params).then(resp => {
console.log('>>>>>>>>>getAllTypeByAreaSid', resp)
this.warehouseRackList = resp.data
}).catch(() => {})
},
selectWarehouseChange(val) {
const choose = this.warehouseList.filter((item) => item.sid == val)
console.log('>>>>>>>>>selectWarehouseChange', choose)
this.queryParams.params.warehouseSid = choose[0].sid
this.queryParams.params.warehouseName = choose[0].warehouseName
this.getWarehouseArea(choose[0].sid)
},
selectWarehouseAreaChange(val) {
const choose = this.warehouseAreaList.filter((item) => item.sid == val)
console.log('>>>>>>>>>selectWarehouseAreaChange', choose)
this.queryParams.params.warehouseAreaSid = choose[0].sid
this.queryParams.params.warehouseAreaName = choose[0].areaName
this.getAllTypeByAreaSid(choose[0].sid)
},
selectWarehouseRackChange(val) {
const choose = this.warehouseRackList.filter((item) => item.sid == val)
console.log('>>>>>>>>>selectWarehouseRackChange', choose)
this.queryParams.params.warehouseRackSid = choose[0].sid
this.queryParams.params.warehouseRackName = choose[0].rackName
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
})
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
switch (btnKey) {
case 'doClose':
this.close()
break
default:
break
}
},
showDetail(sid) {
this.initData()
this.billSid = sid
this.queryParams.params.billSid = sid
this.loadList()
},
loadList() {
this.tableLoading = true
req.billStocktak(this.queryParams).then((resp) => {
this.tableLoading = false
if (resp.success) {
const data = resp.data
this.queryParams.total = data.total
this.dataList = data.records
} else {
this.searchxianshitit = '显示查询条件'
// resp.code
this.dataList = []
this.queryParams.total = 0
}
},
btnHandle(btnKey) {
switch (btnKey) {
case 'doClose':
this.close()
break
default:
break
}
},
showDetail(sid) {
this.initData()
this.billSid = sid
this.queryParams.params.billSid = sid
this.loadList()
},
loadList() {
this.tableLoading = true
req.billStocktak(this.queryParams).then((resp) => {
this.tableLoading = false
if (resp.success) {
const data = resp.data
this.queryParams.total = data.total
this.dataList = data.records
} else {
// resp.code
this.dataList = []
this.queryParams.total = 0
}
}).catch(() => {
this.tableLoading = false
})
},
//
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
"billSid": this.billSid,
"warehouseSid": "",
"warehouseName": "",
"warehouseAreaSid": "",
"warehouseAreaName": "",
"warehouseRackSid": "",
"warehouseRackName": "",
}
}).catch(() => {
this.tableLoading = false
})
},
//
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
billSid: this.billSid,
warehouseName: '',
zoneName: '',
wareAreaName: '',
warehouseRackCode: ''
}
this.loadList()
},
toDetail(row) {
this.viewState = 2
this.$refs['divSp'].showDetail(row.billSid, row.warehouseRackSid)
},
close() {
this.$emit('doback')
},
resetState() {
this.viewState = 1
}
this.loadList()
},
toDetail(row) {
this.viewState = 2
this.$refs['divSp'].showDetail(row.billSid, row.warehouseRackSid)
},
close() {
this.$emit('doback')
},
resetState() {
this.viewState = 1
}
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 90px !important;
}
.addinputInfo {
margin-left: 80px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 80px !important;
width: calc(100% - 70px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
/deep/ .el-form-item__error {
margin-left: 180px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
<style scoped>
</style>

2
yxt-as-ui/src/views/storage/stocktaking/stocktakingReportDetail.vue

@ -124,7 +124,7 @@
</div>
<el-table :data="formobj.arehouseAreaeStocktakList" :index="index" border style="width: 100%;">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" />
<el-table-column prop="warehouseAreaeName" label="仓库-库区" align="center" />
<el-table-column prop="warehouseAreaeName" label="仓库-区域-库区" align="center" />
<el-table-column prop="ypNum" label="应盘" align="center" />
<el-table-column prop="ypMoney" label="应盘金额" width="150" align="center" />
<el-table-column prop="spNum" label="实盘" width="150" align="center" />

Loading…
Cancel
Save