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> </div>
<el-table :data="formobj.arehouseAreaeStocktakList" :index="index" border style="width: 100%;"> <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 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="ypNum" label="应盘" align="center" />
<el-table-column prop="ypMoney" label="应盘金额" align="center" /> <el-table-column prop="ypMoney" label="应盘金额" align="center" />
<el-table-column prop="spNum" 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> <template>
<div class="app-container"> <div class="app-container">
<div v-show="viewState == 1"> <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="main-content">
<div class="searchcon"> <div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow"> <el-button size="small" class="searchbtn" @click="clicksearchShow">
@ -10,13 +10,13 @@
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header"> <el-form :inline="true" class="tab-header">
<el-form-item label="商品ID"> <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>
<el-form-item label="商品名称"> <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>
<el-form-item label="商品图号"> <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-item>
</el-form> </el-form>
<div class="btn" style="text-align: center;"> <div class="btn" style="text-align: center;">
@ -33,239 +33,187 @@
<!-- Start 项目列表 --> <!-- Start 项目列表 -->
<div class=""> <div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> <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 prop="goodsID" label="商品ID" width="120" 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="goodsSkuTitle" label="商品名称" width="120" align="center"/>
<el-table-column prop="goodsSkuCode" 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="warehouseName" label="仓库" width="120" align="center"/>
<el-table-column prop="warehouseArea" label="库区" width="120" align="center" /> <el-table-column prop="zoneName" label="区域" width="120" align="center"/>
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center" /> <el-table-column prop="warehouseArea" label="库区" width="120" align="center"/>
<el-table-column prop="unit" label="单位" width="120" align="center" /> <el-table-column prop="warehouseRackName" label="库位" width="120" align="center"/>
<el-table-column prop="cost" label="单价" width="120" align="center" /> <el-table-column prop="unit" label="单位" width="120" align="center"/>
<el-table-column prop="bookCount" label="库存数量" width="120" align="center" /> <el-table-column prop="cost" label="单价" width="120" align="center"/>
<el-table-column prop="bookAmount" label="库存金额" width="120" align="center" /> <el-table-column prop="bookCount" label="库存数量" width="120" align="center"/>
<el-table-column prop="realCount" 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="realAmount" label="实盘金额" width="120" align="center"/>
<el-table-column prop="profitAndLoseCount" label="亏盈数" width="120" align="center" /> <el-table-column prop="state" label="状态" width="120" align="center"/>
<el-table-column prop="profitAndLoseAmount" label="盈亏金额" width="120" align="center" /> <el-table-column prop="profitAndLoseCount" label="亏盈数" width="120" align="center"/>
<el-table-column prop="lossCount" label="盘损数量" width="120" align="center" /> <el-table-column prop="profitAndLoseAmount" label="亏盈金额" width="120" align="center"/>
<el-table-column prop="lossAmount" label="盘损金额" width="120" align="center" /> <el-table-column prop="lossCount" label="盘损数量" width="120" align="center"/>
<el-table-column prop="remarks" label="备注" align="center" width="200" /> <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"> <el-table-column label="附件" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: #1890FF; text-decoration: underline ;" @click="showImage(scope.row.fillPaths)"> <span class="bluezi" @click="showImage(scope.row.fillPaths)">查看</span>
查看
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<!-- End 项目列表 --> <!-- End 项目列表 -->
<div class="pages"> <div class="pages">
<div class="tit" /> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" <pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" />
</div> </div>
</div> </div>
</div> </div>
<el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose"> <el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose">
<el-form ref="dataForm1" class="formadd" style="margin-top: -30px;"> <el-form ref="dataForm1" class="formadd" style="margin-top: -30px;">
<el-row class="first_row"> <el-row class="first_row">
<el-col :span="24" class="trightb"> <el-col :span="24" class="trightb">
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;" <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]">
v-for="(item,index) in fileList" :src="item.url" :preview-src-list="[item]">
</el-image> </el-image>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import req from '@/api/storage/stocktaking.js' import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar' import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
export default { export default {
components: { components: {
ButtonBar, ButtonBar,
Pagination, Pagination
pageye, },
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 { clicksearchShow() {
dialogVisible: false, this.isSearchShow = !this.isSearchShow
btndisabled: false, if (this.isSearchShow) {
viewState: 1, // 1 2 3 4 this.searchxianshitit = '隐藏查询条件'
isSearchShow: false, } else {
searchxianshitit: '显示查询条件', this.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() { btnHandle(btnKey) {
this.$refs['btnbar'].setButtonList(this.btnList) 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) { loadList() {
this.fileList = paths this.tableLoading = true
this.dialogVisible = true req.billRackCodeDetail(this.queryParams).then((resp) => {
}, this.tableLoading = false
handleClose() { if (resp.success) {
this.dialogVisible = false const data = resp.data
}, this.queryParams.total = data.total
// this.dataList = data.records
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else { } else {
this.searchxianshitit = '显示查询条件' // resp.code
this.dataList = []
this.queryParams.total = 0
} }
}, }).catch(() => {
btnHandle(btnKey) { this.tableLoading = false
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
})
},
// //
indexMethod(index) { indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart var pageindex = index + 1 + pagestart
return pageindex return pageindex
}, },
dosearch() { dosearch() {
this.queryParams.current = 1 this.queryParams.current = 1
this.loadList() this.loadList()
}, },
resetQuery() { resetQuery() {
this.queryParams = { this.queryParams = {
current: 1, current: 1,
size: 10, size: 10,
total: 0, total: 0,
params: { params: {
"billSid": this.billSid, billSid: this.billSid,
"warehouseRackSid": this.warehouseRackSid, warehouseRackSid: this.warehouseRackSid,
"goodsID": "", goodsID: '',
"goodsSkuTitle": "", goodsSkuTitle: '',
"goodsSkuCode": "" goodsSkuCode: ''
}
} }
this.loadList() }
}, this.loadList()
},
close() { close() {
this.$emit('doback') this.$emit('doback')
},
} }
} }
}
</script> </script>
<style scoped> <style scoped>
/deep/ .el-form-item__error { .first_row {
margin-left: 120px !important; border-top: 1px solid #E0E3EB;
} }
.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> </style>

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

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="viewState == 1"> <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="main-content">
<div class="searchcon"> <div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow"> <el-button size="small" class="searchbtn" @click="clicksearchShow">
@ -10,24 +10,26 @@
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header"> <el-form :inline="true" class="tab-header">
<el-form-item label="仓库"> <el-form-item label="仓库">
<el-select v-model="queryParams.params.warehouseName" placeholder="请选择仓库" <el-select v-model="queryParams.params.warehouseName" filterable clearable placeholder="请选择" style="width:100%" @change="selectWarehouseName">
@change="selectWarehouseChange"> <el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName" :value="item.sid">
<el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName" </el-option>
:value="item.sid" /> </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-select>
</el-form-item> </el-form-item>
<el-form-item label="库区"> <el-form-item label="库区">
<el-select v-model="queryParams.params.warehouseAreaName" placeholder="请选择库区" <el-select v-model="queryParams.params.warehouseAreaName" filterable clearable placeholder="请选择" @change="selectWareAreaName">
@change="selectWarehouseAreaChange"> <el-option v-for="item in wareAreaList" :key="item.sid" :label="item.areaName" :value="item.sid">
<el-option v-for="item in warehouseAreaList" :key="item.sid" :label="item.areaName" </el-option>
:value="item.sid" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="库位"> <el-form-item label="库位">
<el-select v-model="queryParams.params.warehouseRackName" placeholder="请选择库位" <el-select v-model="queryParams.params.warehouseRackCode" filterable clearable placeholder="请选择" style="width:100%">
@change="selectWarehouseRackChange"> <el-option v-for="item in warehouseRackList" :key="item.rackCode" :label="item.rackCode" :value="item.rackCode">
<el-option v-for="item in warehouseRackList" :key="item.sid" :label="item.rackName"
:value="item.sid">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -46,310 +48,254 @@
<!-- Start 项目列表 --> <!-- Start 项目列表 -->
<div class=""> <div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> <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"> <el-table-column fixed label="操作" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="mini" @click="toDetail(scope.row)">查看</el-button> <el-button type="primary" size="mini" @click="toDetail(scope.row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="warehouseName" 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="zoneName" label="区域" width="120" align="center"/>
<el-table-column prop="warehouseRackName" 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 label="应盘" align="center">
<el-table-column prop="bookCount" 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 prop="bookAmount" label="金额" align="center" width="100"/>
</el-table-column> </el-table-column>
<el-table-column label="实盘" align="center"> <el-table-column label="实盘" align="center">
<el-table-column prop="realCount" 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 prop="realAmount" label="金额" align="center" width="100"/>
</el-table-column> </el-table-column>
<el-table-column label="未盘" align="center"> <el-table-column label="未盘" align="center">
<el-table-column prop="notCount" 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 prop="notAmount" label="金额" align="center" width="100"/>
</el-table-column> </el-table-column>
<el-table-column label="盘盈" align="center"> <el-table-column label="盘盈" align="center">
<el-table-column prop="profitCount" 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 prop="profitAmount" label="金额" align="center" width="100"/>
</el-table-column> </el-table-column>
<el-table-column label="盘亏" align="center"> <el-table-column label="盘亏" align="center">
<el-table-column prop="loseCount" 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 prop="loseAmount" label="金额" align="center" width="100"/>
</el-table-column> </el-table-column>
<el-table-column label="盘损" align="center"> <el-table-column label="盘损" align="center">
<el-table-column prop="lossCount" 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 prop="lossAmount" label="金额" align="center" width="100"/>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<!-- End 项目列表 --> <!-- End 项目列表 -->
<div class="pages"> <div class="pages">
<div class="tit" /> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" <pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" />
</div> </div>
</div> </div>
</div> </div>
<!-- 查看库位明细 --> <!-- 查看库位明细 -->
<stocktakingRackCodeDetail v-show="viewState == 2" ref="divSp" @doback="resetState" /> <stocktakingRackCodeDetail v-show="viewState == 2" ref="divSp" @doback="resetState"/>
</div> </div>
</template> </template>
<script> <script>
import req from '@/api/storage/stocktaking.js' import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar' import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import stocktakingRackCodeDetail from './stocktakingRackCodeDetail.vue'
import stocktakingRackCodeDetail from './stocktakingRackCodeDetail.vue' import { getAllRackByKQSid, getAllWarehouse, getAllWarehouseareaByZoneSid, getAllWarehousezoneBysid } from '@/api/Common/dictcommons'
import req2 from '@/api/warehouse/warehouse.js'
import req3 from '@/api/warehouse/warehouseArea.js' export default {
import req4 from '@/api/warehouse/goodsShelves.js' components: {
export default { ButtonBar,
components: { Pagination,
ButtonBar, stocktakingRackCodeDetail
Pagination, },
pageye, data() {
stocktakingRackCodeDetail return {
}, dialogVisible: false,
data() { btndisabled: false,
return { viewState: 1, // 1 2 3 4
dialogVisible: false, isSearchShow: false,
btndisabled: false, searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4 tableLoading: false,
isSearchShow: false, dataList: [],
searchxianshitit: '显示查询条件', btnList: [
tableLoading: false, {
dataList: [],
btnList: [{
type: 'info', type: 'info',
size: 'small', size: 'small',
icon: 'cross', icon: 'cross',
btnKey: 'doClose', btnKey: 'doClose',
btnLabel: '关闭' btnLabel: '关闭'
}], }
queryParams: { ],
current: 1, queryParams: {
size: 10, current: 1,
total: 0, size: 10,
params: { total: 0,
"billSid": "", params: {
"warehouseSid": "", billSid: '',
"warehouseName": "", warehouseName: '',
"warehouseAreaSid": "", zoneName: '',
"warehouseAreaName": "", wareAreaName: '',
"warehouseRackSid": "", warehouseRackCode: ''
"warehouseRackName": "", }
} },
}, billSid: '',
billSid: "", warehouseList: [],
warehouseList: [], warehouseAreaList: [],
warehouseAreaList: [], warehouseRackList: []
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() { getWarehouseZoneList(sid) {
this.$refs['btnbar'].setButtonList(this.btnList) 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: { getWareAreaList(sid) {
getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
initData() { if (res.success) {
this.wareAreaList = res.data
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
} }
})
req3.getAllWarehouseareaBysid(params).then(resp => { },
console.log('>>>>>>>>>getAllWarehousearea', resp) selectWareAreaName(val) {
this.warehouseAreaList = resp.data this.warehouseRackList = []
}).catch(() => {}) const choose = this.wareAreaList.filter((item) => item.sid === val)
}, if (choose !== null && choose.length > 0) {
this.queryParams.params.wareAreaName = choose[0].areaName
getAllTypeByAreaSid(sid) { this.getWarehouseRackList(choose[0].sid)
this.queryParams.params.warehouseRackSid = '' } else {
this.queryParams.params.warehouseRackName = '' this.queryParams.params.wareAreaName = ''
}
var params = { this.queryParams.params.warehouseRackCode = ''
areaSid: sid },
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 clicksearchShow() {
}).catch(() => {}) this.isSearchShow = !this.isSearchShow
}, if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
selectWarehouseChange(val) { this.searchxianshitit = '显示查询条件'
const choose = this.warehouseList.filter((item) => item.sid == val) }
console.log('>>>>>>>>>selectWarehouseChange', choose) },
this.queryParams.params.warehouseSid = choose[0].sid btnHandle(btnKey) {
this.queryParams.params.warehouseName = choose[0].warehouseName switch (btnKey) {
case 'doClose':
this.getWarehouseArea(choose[0].sid) this.close()
break
}, default:
break
selectWarehouseAreaChange(val) { }
const choose = this.warehouseAreaList.filter((item) => item.sid == val) },
console.log('>>>>>>>>>selectWarehouseAreaChange', choose) showDetail(sid) {
this.queryParams.params.warehouseAreaSid = choose[0].sid this.initData()
this.queryParams.params.warehouseAreaName = choose[0].areaName this.billSid = sid
this.queryParams.params.billSid = sid
this.getAllTypeByAreaSid(choose[0].sid) this.loadList()
}, },
loadList() {
selectWarehouseRackChange(val) { this.tableLoading = true
const choose = this.warehouseRackList.filter((item) => item.sid == val) req.billStocktak(this.queryParams).then((resp) => {
console.log('>>>>>>>>>selectWarehouseRackChange', choose) this.tableLoading = false
this.queryParams.params.warehouseRackSid = choose[0].sid if (resp.success) {
this.queryParams.params.warehouseRackName = choose[0].rackName const data = resp.data
this.queryParams.total = data.total
}, this.dataList = data.records
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else { } else {
this.searchxianshitit = '显示查询条件' // resp.code
this.dataList = []
this.queryParams.total = 0
} }
}, }).catch(() => {
btnHandle(btnKey) { this.tableLoading = false
switch (btnKey) { })
case 'doClose': },
this.close() //
break indexMethod(index) {
default: var pagestart = (this.queryParams.current - 1) * this.queryParams.size
break var pageindex = index + 1 + pagestart
} return pageindex
}, },
showDetail(sid) { dosearch() {
this.initData() this.queryParams.current = 1
this.billSid = sid this.loadList()
this.queryParams.params.billSid = sid },
this.loadList() resetQuery() {
}, this.queryParams = {
current: 1,
loadList() { size: 10,
this.tableLoading = true total: 0,
req.billStocktak(this.queryParams).then((resp) => { params: {
this.tableLoading = false billSid: this.billSid,
if (resp.success) { warehouseName: '',
const data = resp.data zoneName: '',
this.queryParams.total = data.total wareAreaName: '',
this.dataList = data.records warehouseRackCode: ''
} 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": "",
}
} }
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> </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 { <style scoped>
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> </style>

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

@ -124,7 +124,7 @@
</div> </div>
<el-table :data="formobj.arehouseAreaeStocktakList" :index="index" border style="width: 100%;"> <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 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="ypNum" label="应盘" align="center" />
<el-table-column prop="ypMoney" label="应盘金额" width="150" align="center" /> <el-table-column prop="ypMoney" label="应盘金额" width="150" align="center" />
<el-table-column prop="spNum" label="实盘" width="150" align="center" /> <el-table-column prop="spNum" label="实盘" width="150" align="center" />

Loading…
Cancel
Save