|
@@ -433,8 +433,6 @@ export default {
|
|
this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.dataList.inOutFlag = 1
|
|
this.dataList.inOutFlag = 1
|
|
this.dataList.statusFlag = 3
|
|
this.dataList.statusFlag = 3
|
|
- // this.deptBudgetList.inOutFlag = 1
|
|
|
|
- // this.deptBudgetList.statusFlag = 3
|
|
|
|
addstorageputList(this.dataList)
|
|
addstorageputList(this.dataList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -442,29 +440,29 @@ export default {
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- //暂存按钮
|
|
|
|
- returnWarehouse() {
|
|
|
|
- this.$refs.dataList.validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
- this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
|
- this.dataList.statusFlag = 1
|
|
|
|
- addstorageputList(this.dataList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('添加成功')
|
|
|
|
- this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
|
|
+ EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // //暂存按钮
|
|
|
|
+ // returnWarehouse() {
|
|
|
|
+ // this.$refs.dataList.validate((valid) => {
|
|
|
|
+ // if (valid) {
|
|
|
|
+ // this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
|
+ // this.dataList.statusFlag = 1
|
|
|
|
+ // addstorageputList(this.dataList)
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.$message.success('添加成功')
|
|
|
|
+ // this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ // return false
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
tarechange(e) {
|
|
tarechange(e) {
|
|
if (this.dataList.grossWeight && this.dataList.tare) {
|
|
if (this.dataList.grossWeight && this.dataList.tare) {
|
|
this.dataList.netWeight = Number(
|
|
this.dataList.netWeight = Number(
|