|
@@ -2,7 +2,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="container">
|
|
<div class="container">
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
- <div class="top_form" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`">
|
|
|
|
|
|
+ <div v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" class="top_form" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`">
|
|
<div style='position:relative;' class="title">
|
|
<div style='position:relative;' class="title">
|
|
<span style="font-size:18px;font-weight: 600;margin-left:20px">今日储量明细</span><span style="color:#8890B1;font-size:16px">({{dateTime}})</span>
|
|
<span style="font-size:18px;font-weight: 600;margin-left:20px">今日储量明细</span><span style="color:#8890B1;font-size:16px">({{dateTime}})</span>
|
|
<ws-button type="primary" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleall()" style="margin-left:20px;position:absolute;right:10px;top:50%;transform: translateY(-50%);">库存明细</ws-button>
|
|
<ws-button type="primary" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleall()" style="margin-left:20px;position:absolute;right:10px;top:50%;transform: translateY(-50%);">库存明细</ws-button>
|
|
@@ -16,7 +16,7 @@
|
|
<el-form class="position" ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
|
|
<el-form class="position" ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
|
|
<div class="title"><span class="cangInfo">仓库信息</span></div>
|
|
<div class="title"><span class="cangInfo">仓库信息</span></div>
|
|
<!-- 仓储部负责人 -->
|
|
<!-- 仓储部负责人 -->
|
|
- <el-form-item label-width="120px" label="仓储部负责人" span="1" prop="acceptanceMethod">
|
|
|
|
|
|
+ <el-form-item v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" label-width="120px" label="仓储部负责人" span="1" prop="acceptanceMethod">
|
|
<el-input v-model="responsible" placeholder="暂无" maxlength="100" size="small" disabled/>
|
|
<el-input v-model="responsible" placeholder="暂无" maxlength="100" size="small" disabled/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--仓库名称-->
|
|
<!--仓库名称-->
|
|
@@ -44,7 +44,7 @@
|
|
<el-input v-model="warehouseInfo.personCharge" placeholder="暂无" maxlength="100" size="small" disabled/>
|
|
<el-input v-model="warehouseInfo.personCharge" placeholder="暂无" maxlength="100" size="small" disabled/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--其他负责人-->
|
|
<!--其他负责人-->
|
|
- <el-form-item label-width="120px" label="其他驻库人员" span="1" prop="otherPersonCharge">
|
|
|
|
|
|
+ <el-form-item v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" label-width="120px" label="其他驻库人员" span="1" prop="otherPersonCharge">
|
|
<!-- <el-select v-model="WarehouseInfo.otherPersonPhone" placeholder="暂无" @change="selectstaffOther" multiple filterable clearable collapse-tags disabled> -->
|
|
<!-- <el-select v-model="WarehouseInfo.otherPersonPhone" placeholder="暂无" @change="selectstaffOther" multiple filterable clearable collapse-tags disabled> -->
|
|
<el-input v-model="warehouseInfo.otherPersonCharge" placeholder="暂无" maxlength="100" size="small" disabled/>
|
|
<el-input v-model="warehouseInfo.otherPersonCharge" placeholder="暂无" maxlength="100" size="small" disabled/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -68,8 +68,8 @@
|
|
<div v-for="(item , index) in totalReserves" :key="index" class="reservesInfo">
|
|
<div v-for="(item , index) in totalReserves" :key="index" class="reservesInfo">
|
|
<div class="reservesInfo_item" v-if="warehouseType == '1'"><div class="reservesInfo_GoodsName">{{item.goodsName}}</div>
|
|
<div class="reservesInfo_item" v-if="warehouseType == '1'"><div class="reservesInfo_GoodsName">{{item.goodsName}}</div>
|
|
<span class="reservesInfo_Amount">{{item.stockNum == 0 ? "-":item.stockNum}}(吨)</span><br/>
|
|
<span class="reservesInfo_Amount">{{item.stockNum == 0 ? "-":item.stockNum}}(吨)</span><br/>
|
|
- <span v-if="item.stockNum&&item.cost" class="reservesInfo_Amount">{{item.cost == 0 ? "-":item.cost}}(元/吨)</span>
|
|
|
|
- <span v-else class="reservesInfo_Amount">{{item.conversionCost == 0 ? "-":item.conversionCost}}(元/吨)</span><br/>
|
|
|
|
|
|
+ <span v-if="item.stockNum&&item.cost&&compId!='258fba198eea4cd1a5eddc71ba421b4a'" class="reservesInfo_Amount">{{item.cost == 0 ? "-":item.cost}}(元/吨)</span>
|
|
|
|
+ <span v-else-if="compId!='258fba198eea4cd1a5eddc71ba421b4a'" class="reservesInfo_Amount">{{item.conversionCost == 0 ? "-":item.conversionCost}}(元/吨)</span><br/>
|
|
<div style="display:grid">
|
|
<div style="display:grid">
|
|
<span v-if="item.cargoWeight && item.cargoWeight != 0" class="reservesInfo_Amount">含转入:{{ item.cargoWeight }}(吨)</span>
|
|
<span v-if="item.cargoWeight && item.cargoWeight != 0" class="reservesInfo_Amount">含转入:{{ item.cargoWeight }}(吨)</span>
|
|
<span v-if="item.redemptionWeight && item.redemptionWeight != 0" class="reservesInfo_Amount">待赎回:{{ item.redemptionWeight }}(吨)</span>
|
|
<span v-if="item.redemptionWeight && item.redemptionWeight != 0" class="reservesInfo_Amount">待赎回:{{ item.redemptionWeight }}(吨)</span>
|
|
@@ -81,7 +81,39 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="position">
|
|
|
|
|
|
+ <div v-if="this.compId=='258fba198eea4cd1a5eddc71ba421b4a'" class="map">
|
|
|
|
+ <div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">{{maptitle}}</span></div>
|
|
|
|
+ <div class="map_switch">
|
|
|
|
+ <div :class="btnCss1" @click="mapChange(1)" v-if="warehouseType == '1'">监控</div>
|
|
|
|
+ <div :class="btnCss2" @click="mapChange(2)">定位</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="map-item" v-if="mapshow && warehousePositioning.lat && warehousePositioning.lng">
|
|
|
|
+ <map-drag @marker="marker" ref="childMap" :isShowaddress='true' v-on:addressListen='getAddress' v-on:pickedAddress='searchAddress' :warehousePositioning="warehousePositioning"></map-drag>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="!mapshow && warehouseType == '1'" class="monitor">
|
|
|
|
+ <!-- <div v-if="!monitorUrl1" class="video1">
|
|
|
|
+ <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
|
|
|
|
+ <div>监控视频未连接</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else class="video1">
|
|
|
|
+ <iframe :src="monitorUrl1" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
|
|
|
|
+ mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="!monitorUrl2" class="video1">
|
|
|
|
+ <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
|
|
|
|
+ <div>监控视频未连接</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else class="video2">
|
|
|
|
+ <iframe :src="monitorUrl2" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
|
|
|
|
+ mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
|
|
|
|
+ </div> -->
|
|
|
|
+ <div v-for="(item , index) in monitorList" :key="index" class="video1">
|
|
|
|
+ <iframe :src="item" width="440" height="360" allowfullscreen="true" webkitallowfullscreen="true"
|
|
|
|
+ mozallowfullscreen="true" allow="autoplay; fullscreen; microphone;"></iframe>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" class="position">
|
|
<div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">当期储量</span></div>
|
|
<div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">当期储量</span></div>
|
|
<ws-button type="primary" @click="handleAdd()" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.add`" style="margin-left:20px">添加</ws-button>
|
|
<ws-button type="primary" @click="handleAdd()" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.add`" style="margin-left:20px">添加</ws-button>
|
|
<ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.view` " @click="handleLook()">查看</ws-button>
|
|
<ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.view` " @click="handleLook()">查看</ws-button>
|
|
@@ -186,7 +218,112 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- <div class="map">
|
|
|
|
|
|
+ <div v-else v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.delete`" class="position">
|
|
|
|
+ <div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">当期储量</span></div>
|
|
|
|
+ <ws-button type="primary" @click="handleAdd()" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.add`" style="margin-left:20px">添加</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.view` " @click="handleLook()">查看</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.edit` " @click="handleEdit()">编辑</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.delete`" @click="handleDelete()">删除</ws-button>
|
|
|
|
+ <ws-button v-hasPermission=" `warehouseManagement.warehouse.warehouseInfo.view`" @click="record()">记录</ws-button>
|
|
|
|
+ <!-- <ws-button v-if="warehouseType == '1'" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.view`" @click="loss()">盘库</ws-button> -->
|
|
|
|
+ <ws-button v-if="warehouseInfo.clearStatusFlag == 1 && warehouseType == '2'" @click="clearance()">清库</ws-button>
|
|
|
|
+ <ws-button v-if="warehouseInfo.clearStatusFlag == 3 && warehouseType == '2'" disabled> 已清库</ws-button>
|
|
|
|
+ <!-- createType 1手动创建 2 自动创建 -->
|
|
|
|
+ <ws-button v-if='warehouseInfo.createType==1' v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.delete`" @click="indialog = true">入库量</ws-button>
|
|
|
|
+ <ws-button v-if='list.length>0' @click="handlTask()">任务</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.add`" @click="outData(1)">导出</ws-button>
|
|
|
|
+ <ws-button @click="outData(2)">打印</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="exportHistoricalData()">导出历史库存记录</ws-button>
|
|
|
|
+ <ws-button @click="transformation()" v-hasPermission=" `warehouseManagement.warehouse.warehouseInfo.view`">折转</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleall()">全部仓库</ws-button>
|
|
|
|
+ <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleMintor()">查看监控</ws-button>
|
|
|
|
+ <ws-button @click="dryClick()">烘干入库</ws-button>
|
|
|
|
+ <ws-button @click="materialInOut()">物料出入库</ws-button>
|
|
|
|
+ <el-table ref='table' show-summary :summary-method="getSummaries" class="wenzi setUp_css" :data="warehouseList" style="width: 100%; margin-top: 20px" height="calc(100% - 45px)" v-if="warehouseType == '1'">
|
|
|
|
+ <el-table-column prop="warehouseName" label="仓库名">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="binNumber" label="仓位编号">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="capacity" label="容量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.capacity != 'null' && scope.row.capacity != null">
|
|
|
|
+ {{ scope.row.capacity }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="货名">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{ item.goodsName }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="入库量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{item.inNetWeight}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="出库量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{ item.outNetWeight == 0 ? "0":Number(item.outNetWeight).toFixed(3)}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="应余量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{ item.storage}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <!-- 临时库 -->
|
|
|
|
+ <el-table class="wenzi" :data="warehouseList" style="width: 100%; margin-top: 20px" height="calc(100% - 45px)" v-if="warehouseType == '2'">
|
|
|
|
+ <el-table-column prop="warehouseName" label="仓库名">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="binNumber" label="仓位编号">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="capacity" label="容量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.capacity != 'null' && scope.row.capacity != null">
|
|
|
|
+ {{ scope.row.capacity }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="货名">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{ item.goodsName }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="入库量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{item.inNetWeight}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="出库量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{ item.outNetWeight }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="应余量(吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList" :key="i">
|
|
|
|
+ {{ item.surplus }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="this.compId!='258fba198eea4cd1a5eddc71ba421b4a'" class="map">
|
|
<div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">{{maptitle}}</span></div>
|
|
<div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">{{maptitle}}</span></div>
|
|
<div class="map_switch">
|
|
<div class="map_switch">
|
|
<div :class="btnCss1" @click="mapChange(1)" v-if="warehouseType == '1'">监控</div>
|
|
<div :class="btnCss1" @click="mapChange(1)" v-if="warehouseType == '1'">监控</div>
|
|
@@ -412,11 +549,13 @@
|
|
warehousePositioning:{},
|
|
warehousePositioning:{},
|
|
monitorUrl1:'',
|
|
monitorUrl1:'',
|
|
monitorUrl2:'',
|
|
monitorUrl2:'',
|
|
|
|
+ monitorList:[],
|
|
goodnameList:[]
|
|
goodnameList:[]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
this.tableData = []
|
|
this.tableData = []
|
|
|
|
+ this.monitorList = []
|
|
this.getList()
|
|
this.getList()
|
|
// this.$refs.childMap.clearVal()
|
|
// this.$refs.childMap.clearVal()
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
@@ -922,12 +1061,16 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
selectstaff(e){
|
|
selectstaff(e){
|
|
|
|
+ this.monitorList = []
|
|
this.warehouseInfo.warehouseName = e
|
|
this.warehouseInfo.warehouseName = e
|
|
for(var tmp = 0 ; tmp < this.warehouseAllXiaLa.length; tmp++){
|
|
for(var tmp = 0 ; tmp < this.warehouseAllXiaLa.length; tmp++){
|
|
if(this.warehouseAllXiaLa[tmp].warehouseName == e){
|
|
if(this.warehouseAllXiaLa[tmp].warehouseName == e){
|
|
this.warehouseType = this.warehouseAllXiaLa[tmp].warehouseType
|
|
this.warehouseType = this.warehouseAllXiaLa[tmp].warehouseType
|
|
this.monitorUrl1 = this.warehouseAllXiaLa[tmp].monitorUrl1
|
|
this.monitorUrl1 = this.warehouseAllXiaLa[tmp].monitorUrl1
|
|
this.monitorUrl2 = this.warehouseAllXiaLa[tmp].monitorUrl2
|
|
this.monitorUrl2 = this.warehouseAllXiaLa[tmp].monitorUrl2
|
|
|
|
+ if(this.warehouseAllXiaLa[tmp].monitorUrl1){
|
|
|
|
+ this.monitorList = this.warehouseAllXiaLa[tmp].monitorUrl1.split(',')
|
|
|
|
+ }
|
|
if(this.warehouseType == '2'){
|
|
if(this.warehouseType == '2'){
|
|
this.maptitle = '定位'
|
|
this.maptitle = '定位'
|
|
this.btnCss2 ='btn1'
|
|
this.btnCss2 ='btn1'
|
|
@@ -1233,6 +1376,9 @@
|
|
this.warehouseInfo.warehouseName = this.warehouseXiaLa[0].warehouseName
|
|
this.warehouseInfo.warehouseName = this.warehouseXiaLa[0].warehouseName
|
|
this.monitorUrl1 = this.warehouseXiaLa[0].monitorUrl1
|
|
this.monitorUrl1 = this.warehouseXiaLa[0].monitorUrl1
|
|
this.monitorUrl2 = this.warehouseXiaLa[0].monitorUrl2
|
|
this.monitorUrl2 = this.warehouseXiaLa[0].monitorUrl2
|
|
|
|
+ if(this.warehouseXiaLa[0].monitorUrl1){
|
|
|
|
+ this.monitorList = this.warehouseXiaLa[0].monitorUrl1.split(',')
|
|
|
|
+ }
|
|
for(var tmp = 0 ; tmp < response.length ; tmp++){
|
|
for(var tmp = 0 ; tmp < response.length ; tmp++){
|
|
if(response[tmp].warehouseType == '2'){
|
|
if(response[tmp].warehouseType == '2'){
|
|
response[tmp].warehouseName = response[tmp].warehouseName + ' (临)'
|
|
response[tmp].warehouseName = response[tmp].warehouseName + ' (临)'
|
|
@@ -1549,7 +1695,7 @@
|
|
.map{
|
|
.map{
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
width: 99%;
|
|
width: 99%;
|
|
- margin: 100px auto 50px;
|
|
|
|
|
|
+ margin: 0px auto 50px;
|
|
height: 560px;
|
|
height: 560px;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
.map_switch{
|
|
.map_switch{
|