|
@@ -338,7 +338,6 @@ export default {
|
|
warehouseInOutDetail: {},
|
|
warehouseInOutDetail: {},
|
|
},
|
|
},
|
|
historyList: [],
|
|
historyList: [],
|
|
-
|
|
|
|
pickerBeginDateBefore: {
|
|
pickerBeginDateBefore: {
|
|
disabledDate: (time) => {
|
|
disabledDate: (time) => {
|
|
return time.getTime() > Date.now()
|
|
return time.getTime() > Date.now()
|
|
@@ -389,7 +388,6 @@ export default {
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.$message.success('暂存成功')
|
|
this.$message.success('暂存成功')
|
|
- this.deptBudgetList=response
|
|
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -404,43 +402,35 @@ export default {
|
|
},
|
|
},
|
|
//提交按钮
|
|
//提交按钮
|
|
submit() {
|
|
submit() {
|
|
- if (
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.qualityInspector.length < 2 ||
|
|
|
|
- deptBudgetList.warehouseInOutDetail.qualityInspector > 10
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '质检员姓名长度错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.warehouseInOutDetail.qualityInspector.length < 2 ||
|
|
|
|
- deptBudgetList.warehouseInOutDetail.qualityInspector > 10
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '质检员姓名长度错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
|
|
+ console.log(123456)
|
|
|
|
+ this.$confirm(`确定提交入库信息`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
|
+ 'ws-pf_compId'
|
|
|
|
+ )
|
|
|
|
+ this.deptBudgetList.inOutFlag = 1
|
|
|
|
+ this.deptBudgetList.statusFlag = 3
|
|
|
|
+ addstorageputList(this.deptBudgetList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('添加成功')
|
|
|
|
+ this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
})
|
|
})
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
- this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
|
- this.deptBudgetList.inOutFlag = 1
|
|
|
|
- this.deptBudgetList.statusFlag = 3
|
|
|
|
- addstorageputList(this.deptBudgetList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('添加成功')
|
|
|
|
- this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
|
|
+ .catch(() => {
|
|
return false
|
|
return false
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
//暂存按钮
|
|
//暂存按钮
|
|
returnWarehouse() {
|
|
returnWarehouse() {
|