|
@@ -37,6 +37,9 @@
|
|
{{ this.$route.query.binNumber }}仓位
|
|
{{ this.$route.query.binNumber }}仓位
|
|
</span>
|
|
</span>
|
|
<span v-show="this.$route.query.warehouseType == 2">(临)</span>
|
|
<span v-show="this.$route.query.warehouseType == 2">(临)</span>
|
|
|
|
+ <el-date-picker style="margin: 0 10px 0 10px" class="dataClass" value-format='yyyy-MM-dd' v-model="value2" @change='datechange' type="daterange" align="right" range-separator="至"
|
|
|
|
+ start-placeholder="出入库日期起" end-placeholder="出入库日期止" >
|
|
|
|
+ </el-date-picker>
|
|
</h2>
|
|
</h2>
|
|
<el-table :data="improved.records">
|
|
<el-table :data="improved.records">
|
|
<el-table-column type="index" label="序号">
|
|
<el-table-column type="index" label="序号">
|
|
@@ -185,6 +188,7 @@ export default {
|
|
contractType: 2,
|
|
contractType: 2,
|
|
startDate: null,
|
|
startDate: null,
|
|
endDate: null,
|
|
endDate: null,
|
|
|
|
+ value2:[],
|
|
deletewarehouse: [],
|
|
deletewarehouse: [],
|
|
improved: [],
|
|
improved: [],
|
|
row: [],
|
|
row: [],
|
|
@@ -218,8 +222,10 @@ export default {
|
|
// this.getVesselData();
|
|
// this.getVesselData();
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
this.binNumber = this.$route.params.binNumber
|
|
this.binNumber = this.$route.params.binNumber
|
|
|
|
+ this.status = this.$route.query.status
|
|
this.deptBudgetList.warehouseType = this.$route.query.warehouseType
|
|
this.deptBudgetList.warehouseType = this.$route.query.warehouseType
|
|
- this.createType=this.$route.query.createType,
|
|
|
|
|
|
+ this.createType=this.$route.query.createType
|
|
|
|
+ this.getPassYearFormatDate()
|
|
//接参
|
|
//接参
|
|
this.getList(
|
|
this.getList(
|
|
this.$route.query.baseId,
|
|
this.$route.query.baseId,
|
|
@@ -229,11 +235,46 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ datechange(){
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
//返回按钮
|
|
//返回按钮
|
|
returnWarehouse() {
|
|
returnWarehouse() {
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ getPassYearFormatDate () {
|
|
|
|
+ var nowDate = new Date()
|
|
|
|
+ nowDate.setTime(nowDate.getTime()-24*60*60*1000*30)
|
|
|
|
+ var seperator1 = '-'
|
|
|
|
+ var year = nowDate.getFullYear()
|
|
|
|
+ var month = nowDate.getMonth() + 1
|
|
|
|
+ var strDate = nowDate.getDate()
|
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
|
+ month = '0' + month
|
|
|
|
+ }
|
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
|
+ strDate = '0' + strDate
|
|
|
|
+ }
|
|
|
|
+ var formatDate = year + seperator1 + month + seperator1 + strDate
|
|
|
|
+ this.getNowFormatDate(formatDate)
|
|
|
|
+ },
|
|
|
|
+ /* 获取现在时间,并接受过去时间的值 */
|
|
|
|
+ getNowFormatDate (formatDate) {
|
|
|
|
+ var date = new Date()
|
|
|
|
+ date.setTime(date.getTime()+24*60*60*1000)
|
|
|
|
+ var seperator1 = '-'
|
|
|
|
+ var year = date.getFullYear()
|
|
|
|
+ var month = date.getMonth() + 1
|
|
|
|
+ var strDate = date.getDate()
|
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
|
+ month = '0' + month
|
|
|
|
+ }
|
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
|
+ strDate = '0' + strDate
|
|
|
|
+ }
|
|
|
|
+ var nowData = year + seperator1 + month + seperator1 + strDate
|
|
|
|
+ this.value2= [formatDate, nowData] // 默认赋值一年时间
|
|
|
|
+ },
|
|
//编辑
|
|
//编辑
|
|
edits(row) {
|
|
edits(row) {
|
|
if (row.inOutFlag == 2) {
|
|
if (row.inOutFlag == 2) {
|
|
@@ -275,7 +316,7 @@ export default {
|
|
pureWeight:row.pureWeight,
|
|
pureWeight:row.pureWeight,
|
|
deductionAmount:row.deductionAmount,
|
|
deductionAmount:row.deductionAmount,
|
|
deductionWeight:row.deductionWeight,
|
|
deductionWeight:row.deductionWeight,
|
|
- allowEdit:row.allowEdit
|
|
|
|
|
|
+ allowEdit:row.allowEdit,
|
|
|
|
|
|
},
|
|
},
|
|
})
|
|
})
|
|
@@ -295,6 +336,7 @@ export default {
|
|
goodsName: row.goodsName,
|
|
goodsName: row.goodsName,
|
|
goodsNameKey: row.goodsNameKey,
|
|
goodsNameKey: row.goodsNameKey,
|
|
grade: row.grade,
|
|
grade: row.grade,
|
|
|
|
+ status:'',
|
|
grossWeight: row.grossWeight,
|
|
grossWeight: row.grossWeight,
|
|
inOutDate: row.inOutDate,
|
|
inOutDate: row.inOutDate,
|
|
inOutFlag: row.inOutFlag,
|
|
inOutFlag: row.inOutFlag,
|
|
@@ -363,6 +405,12 @@ export default {
|
|
},
|
|
},
|
|
//收
|
|
//收
|
|
getList(id, id1, id2) {
|
|
getList(id, id1, id2) {
|
|
|
|
+ var startDate=''
|
|
|
|
+ var endDate=''
|
|
|
|
+ if(this.value2){
|
|
|
|
+ startDate=this.value2[0]?this.value2[0]:''
|
|
|
|
+ endDate=this.value2[1]?this.value2[1]:''
|
|
|
|
+ }
|
|
if (id2 == 1) {
|
|
if (id2 == 1) {
|
|
complete({
|
|
complete({
|
|
// compId: localStorage.getItem('ws-pf_compId'),
|
|
// compId: localStorage.getItem('ws-pf_compId'),
|
|
@@ -370,6 +418,8 @@ export default {
|
|
positionId: id1,
|
|
positionId: id1,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
|
|
+ startDate:startDate,
|
|
|
|
+ endDate:endDate,
|
|
// inOutDate:this.inOutDate
|
|
// inOutDate:this.inOutDate
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
@@ -383,6 +433,9 @@ export default {
|
|
positionId: id1,
|
|
positionId: id1,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
|
|
+ startDate:startDate,
|
|
|
|
+ endDate:endDate,
|
|
|
|
+ searchType:this.status
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -571,6 +624,10 @@ export default {
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
|
|
+.dataClass {
|
|
|
|
+ width: 20% !important;
|
|
|
|
+ margin-left:10px;
|
|
|
|
+ }
|
|
.main_css{
|
|
.main_css{
|
|
height: calc(100vh - 120px);
|
|
height: calc(100vh - 120px);
|
|
}
|
|
}
|