This commit is contained in:
parent
758b91dbbb
commit
9b4c769538
|
|
@ -1118,6 +1118,12 @@ export default {
|
|||
saveCodeOut() {
|
||||
this.$refs.codeOutForm.validate((valid) => {
|
||||
if (!valid) return
|
||||
// 弹框提示
|
||||
this.$confirm('确定出库该设备么?设备出库后无法修改', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}).then(() => {
|
||||
if (this.maCodeList.length <= this.outObj.outNum) {
|
||||
let params = this.maCodeList.map((item) => {
|
||||
let obj = {
|
||||
|
|
@ -1145,11 +1151,17 @@ export default {
|
|||
this.$modal.msgError('所选机具编码已超出出库数量!')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
//数量出库保存
|
||||
saveNumOut() {
|
||||
this.$refs.numOutForm.validate((valid) => {
|
||||
if (!valid) return
|
||||
this.$confirm('确定出库该设备么?设备出库后无法修改', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}).then(() => {
|
||||
this.outNumList[0].carCode = this.numOutForm.carCode
|
||||
let param = this.outNumList
|
||||
submitNumOut(param).then((res) => {
|
||||
|
|
@ -1159,6 +1171,7 @@ export default {
|
|||
this.handleQuery()
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 输入出库数量
|
||||
|
|
|
|||
Loading…
Reference in New Issue