|
@@ -31,7 +31,9 @@
|
|
|
alt=""
|
|
|
/>
|
|
|
{{ this.$route.query.warehouseName }}库
|
|
|
- <span class="position" v-show="this.$route.query.warehouseType == 1"> {{ this.$route.query.binNumber }}仓位 </span>
|
|
|
+ <span class="position" v-show="this.$route.query.warehouseType == 1">
|
|
|
+ {{ this.$route.query.binNumber }}仓位
|
|
|
+ </span>
|
|
|
<span v-show="this.$route.query.warehouseType == 2">(临)</span>
|
|
|
</h2>
|
|
|
<el-table :data="improved.records">
|
|
@@ -200,8 +202,13 @@ export default {
|
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
|
this.binNumber = this.$route.params.binNumber
|
|
|
this.deptBudgetList.warehouseType = this.$route.query.warehouseType
|
|
|
+ this.createType=this.$route.query.createType,
|
|
|
//接参
|
|
|
- this.getList(this.$route.query.baseId, this.$route.query.positionId , this.$route.query.warehouseType)
|
|
|
+ this.getList(
|
|
|
+ this.$route.query.baseId,
|
|
|
+ this.$route.query.positionId,
|
|
|
+ this.$route.query.warehouseType
|
|
|
+ )
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
@@ -216,60 +223,62 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: 'warehouseManagementPerfectput',
|
|
|
query: {
|
|
|
- id:row.id,
|
|
|
- agent:row.agent,
|
|
|
- baseId: row.baseId,
|
|
|
- binNumber: row.binNumber,
|
|
|
- carNo:row.carNo,
|
|
|
- compId:row.compId,
|
|
|
- contractNo:row.contractNo,
|
|
|
- goodsName:row.goodsName,
|
|
|
- goodsNameKey:row.goodsNameKey,
|
|
|
- grade:row.grade,
|
|
|
- grossWeight:row.grossWeight,
|
|
|
- inOutDate:row.inOutDate,
|
|
|
- inOutFlag:row.inOutFlag,
|
|
|
- inOutType:row.inOutType,
|
|
|
- inOutTypeKey:row.inOutTypeKey,
|
|
|
- netWeight:row.netWeight,
|
|
|
- positionId: row.positionId,
|
|
|
- statusFlag:row.statusFlag,
|
|
|
- tare:row.tare,
|
|
|
- warehouseName: row.warehouseName,
|
|
|
- warehouseInOutDetail:row.warehouseInOutDetail,
|
|
|
- warehouseType: this.deptBudgetList.warehouseType
|
|
|
+ id: row.id,
|
|
|
+ agent: row.agent,
|
|
|
+ baseId: row.baseId,
|
|
|
+ binNumber: row.binNumber,
|
|
|
+ carNo: row.carNo,
|
|
|
+ compId: row.compId,
|
|
|
+ contractNo: row.contractNo,
|
|
|
+ goodsName: row.goodsName,
|
|
|
+ goodsNameKey: row.goodsNameKey,
|
|
|
+ grade: row.grade,
|
|
|
+ grossWeight: row.grossWeight,
|
|
|
+ inOutDate: row.inOutDate,
|
|
|
+ inOutFlag: row.inOutFlag,
|
|
|
+ inOutType: row.inOutType,
|
|
|
+ inOutTypeKey: row.inOutTypeKey,
|
|
|
+ netWeight: row.netWeight,
|
|
|
+ positionId: row.positionId,
|
|
|
+ statusFlag: row.statusFlag,
|
|
|
+ tare: row.tare,
|
|
|
+ warehouseName: row.warehouseName,
|
|
|
+ warehouseInOutDetail: row.warehouseInOutDetail,
|
|
|
+ warehouseType: this.deptBudgetList.warehouseType,
|
|
|
+ createType: this.createType
|
|
|
+
|
|
|
},
|
|
|
})
|
|
|
- } else if(row.inOutFlag==1){
|
|
|
+ } else if (row.inOutFlag == 1) {
|
|
|
this.$store.dispatch('app/setdeptBudgetList', row)
|
|
|
- // this.$store.commit('deptBudgetList',row)
|
|
|
+ // this.$store.commit('deptBudgetList',row)
|
|
|
this.$router.push({
|
|
|
path: 'warehouseManagementPerfectDelivery',
|
|
|
query: {
|
|
|
- id:row.id,
|
|
|
- agent:row.agent,
|
|
|
- baseId: row.baseId,
|
|
|
- binNumber: row.binNumber,
|
|
|
- carNo:row.carNo,
|
|
|
- compId:row.compId,
|
|
|
- contractNo:row.contractNo,
|
|
|
- goodsName:row.goodsName,
|
|
|
- goodsNameKey:row.goodsNameKey,
|
|
|
- grade:row.grade,
|
|
|
- grossWeight:row.grossWeight,
|
|
|
- inOutDate:row.inOutDate,
|
|
|
- inOutFlag:row.inOutFlag,
|
|
|
- inOutType:row.inOutType,
|
|
|
- inOutTypeKey:row.inOutTypeKey,
|
|
|
- netWeight:row.netWeight,
|
|
|
- positionId: row.positionId,
|
|
|
- statusFlag:row.statusFlag,
|
|
|
- tare:row.tare,
|
|
|
- warehouseName: row.warehouseName,
|
|
|
- warehouseInOutDetail:row.warehouseInOutDetail,
|
|
|
- warehouseType: this.deptBudgetList.warehouseType,
|
|
|
- }
|
|
|
- })
|
|
|
+ id: row.id,
|
|
|
+ agent: row.agent,
|
|
|
+ baseId: row.baseId,
|
|
|
+ binNumber: row.binNumber,
|
|
|
+ carNo: row.carNo,
|
|
|
+ compId: row.compId,
|
|
|
+ contractNo: row.contractNo,
|
|
|
+ goodsName: row.goodsName,
|
|
|
+ goodsNameKey: row.goodsNameKey,
|
|
|
+ grade: row.grade,
|
|
|
+ grossWeight: row.grossWeight,
|
|
|
+ inOutDate: row.inOutDate,
|
|
|
+ inOutFlag: row.inOutFlag,
|
|
|
+ inOutType: row.inOutType,
|
|
|
+ inOutTypeKey: row.inOutTypeKey,
|
|
|
+ netWeight: row.netWeight,
|
|
|
+ positionId: row.positionId,
|
|
|
+ statusFlag: row.statusFlag,
|
|
|
+ tare: row.tare,
|
|
|
+ warehouseName: row.warehouseName,
|
|
|
+ warehouseInOutDetail: row.warehouseInOutDetail,
|
|
|
+ warehouseType: this.deptBudgetList.warehouseType,
|
|
|
+ },
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
dateFormat(fmt, date) {
|
|
@@ -308,31 +317,31 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
//收
|
|
|
- getList(id, id1,id2) {
|
|
|
- if(id2==1){
|
|
|
- complete({
|
|
|
- // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- baseId: id,
|
|
|
- positionId: id1,
|
|
|
- pageSize: this.pageSize,
|
|
|
- currentPage: this.currentPage,
|
|
|
- // inOutDate:this.inOutDate
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.improved = response
|
|
|
+ getList(id, id1, id2) {
|
|
|
+ if (id2 == 1) {
|
|
|
+ complete({
|
|
|
+ // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ baseId: id,
|
|
|
+ positionId: id1,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ // inOutDate:this.inOutDate
|
|
|
})
|
|
|
- }else if(id2==2){
|
|
|
- completeList({
|
|
|
- baseId: id,
|
|
|
- positionId: id1,
|
|
|
- pageSize: this.pageSize,
|
|
|
- currentPage: this.currentPage,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.improved = response
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.improved = response
|
|
|
+ })
|
|
|
+ } else if (id2 == 2) {
|
|
|
+ completeList({
|
|
|
+ baseId: id,
|
|
|
+ positionId: id1,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ currentPage: this.currentPage,
|
|
|
})
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.improved = response
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
handleExamine(row) {
|
|
@@ -342,29 +351,32 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//删除
|
|
|
- handleDelete(row) {
|
|
|
+ handleDelete(row) {
|
|
|
this.$confirm(`删除后不可恢复,确认删除?`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
.then(() => {
|
|
|
- delInOut({id:row.id})
|
|
|
+ delInOut({ id: row.id })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.$notify.success({
|
|
|
title: '成功',
|
|
|
message: '删除成功',
|
|
|
})
|
|
|
- this.getList(row.baseId,row.positionId,this.$route.query.warehouseType)
|
|
|
- })
|
|
|
- .catch((response) => {
|
|
|
+ this.getList(
|
|
|
+ row.baseId,
|
|
|
+ row.positionId,
|
|
|
+ this.$route.query.warehouseType
|
|
|
+ )
|
|
|
})
|
|
|
+ .catch((response) => {})
|
|
|
})
|
|
|
.catch(() => {
|
|
|
return false
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
find() {
|
|
|
this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
|