|
@@ -1,49 +1,73 @@
|
|
//结转
|
|
//结转
|
|
<template>
|
|
<template>
|
|
<div class="steel_inbound">
|
|
<div class="steel_inbound">
|
|
- <div class="sache">
|
|
|
|
- <el-input
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="inputText"
|
|
|
|
- clearable>
|
|
|
|
- </el-input>
|
|
|
|
- <el-button type="primary" class="btn" @click="onclick">
|
|
|
|
|
|
+ <div class="sache">
|
|
|
|
+ <span class="demonstration">月</span>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="value"
|
|
|
|
+ type="month"
|
|
|
|
+ placeholder="选择月">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button type="primary" @click="exportData()"><i class="el-icon-download"></i>导出(Excel)</el-button>
|
|
|
|
+ <span style="margin-left: 1rem;">合计本月总库存:</span>
|
|
|
|
+ <el-input v-model="totalNumber" :disabled="true" style="width: 150px;"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
- <dilTable v-bind.sync="options">
|
|
|
|
|
|
+ <dilTable ref="excelDom" v-bind.sync="option" @func="func">
|
|
</dilTable>
|
|
</dilTable>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { sjTime } from '@/utils/sharedJsFile'
|
|
export default {
|
|
export default {
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
- inputText:"",
|
|
|
|
- options:{
|
|
|
|
|
|
+ value : null,
|
|
|
|
+ totalNumber: 0,
|
|
|
|
+ option:{
|
|
// first请求数据的地址
|
|
// first请求数据的地址
|
|
- requestUrl: "/api/v1/wms/getInventoryClose?apiId=95",
|
|
|
|
|
|
+ requestUrl: "/api/v1/wms/getInventoryClose?apiId=95&warehouseId=1&value="+ (sjTime(new Date() + "")),
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ func(res){
|
|
|
|
+ console.log(res)
|
|
|
|
+ var total = 0
|
|
|
|
+ res.list.forEach(e => {
|
|
|
|
+ total = total+e.close_thismonth_inventory
|
|
|
|
+ });
|
|
|
|
+ this.totalNumber = total
|
|
|
|
+
|
|
|
|
+ },
|
|
onclick(){
|
|
onclick(){
|
|
- console.log("点击事件");
|
|
|
|
|
|
+ console.log("value",this.value)
|
|
|
|
+ var value = null;
|
|
|
|
+ if(this.value){
|
|
|
|
+ value = sjTime(this.value)
|
|
|
|
+ }
|
|
|
|
+ this.option.requestUrl = "/api/v1/wms/getInventoryClose?apiId=95&warehouseId=1&value="+value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scode>
|
|
<style lang="scss" scode>
|
|
-.steel_inbound{
|
|
|
|
- .sache{
|
|
|
|
- height: 5rem;
|
|
|
|
|
|
+.steel_inbound {
|
|
|
|
+ .sache {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- padding-left: 1.875rem;
|
|
|
|
|
|
+ padding-left: 50px;
|
|
|
|
+ .el-date-editor{
|
|
|
|
+ margin: 20px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|