|
|
|
@ -120,6 +120,9 @@ export default {
|
|
|
|
|
if (this.formData.count == null) {
|
|
|
|
|
return this.$message.error("请输入损耗数量")
|
|
|
|
|
}
|
|
|
|
|
if (this.formData.count > this.prescribeData.reCount) {
|
|
|
|
|
return this.$message.error("损耗出库数量不能超出剩余数量")
|
|
|
|
|
}
|
|
|
|
|
let query = {
|
|
|
|
|
outCount: this.formData.count,
|
|
|
|
|
remark: this.formData.remark,
|
|
|
|
@ -143,11 +146,20 @@ export default {
|
|
|
|
|
this.closeDialog()
|
|
|
|
|
return this.$message.success("损耗出库成功")
|
|
|
|
|
} else {
|
|
|
|
|
return this.$message.error("损耗出库失败")
|
|
|
|
|
return this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else if (this.destroyType == 3) {
|
|
|
|
|
destroySplitOut(query).then(res => {
|
|
|
|
|
if (res.code == 20000){
|
|
|
|
|
this.closeDialog()
|
|
|
|
|
this.$message.success("损耗出库成功")
|
|
|
|
|
}else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -168,6 +180,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
console.log("djhdjjdjd",this.prescribeData)
|
|
|
|
|
if (this.prescribeData.produceDate != null) {
|
|
|
|
|
this.produceDate = this.conversionDate(this.prescribeData.produceDate)
|
|
|
|
|
}
|
|
|
|
|