diff --git a/src/api/claimAndRefund/receive.js b/src/api/claimAndRefund/receive.js index 154e2ca..192c997 100644 --- a/src/api/claimAndRefund/receive.js +++ b/src/api/claimAndRefund/receive.js @@ -405,6 +405,17 @@ export function getFourMaTypeList(data) { }) } +export function getFourMaTypeListTwo(data) { + return request({ + url: '/material/select/getFourMaTypeListTwo', + method: 'post', + headers: { + repeatSubmit: false, + }, + data, + }) +} + // 获取预退数量 export function getPreAuditNum(params) { return request({ diff --git a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue index 0d729bf..5014ed1 100644 --- a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue +++ b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue @@ -116,15 +116,6 @@ - - - - + + + + - + 待出库数量:{{ outNum }}

@@ -305,7 +305,7 @@
- + @@ -362,7 +362,7 @@ - + @@ -644,6 +644,24 @@ export default { }, showSelect: true, rowTemp: {}, // 临时存储行数据 + queryRules: { + createTime: [ + { + required: true, + message: '请选择出库时间', + trigger: 'change', + }, + ], + }, + queryRulesNum: { + createTime: [ + { + required: true, + message: '请选择出库时间', + trigger: 'change', + }, + ], + } } }, created() { @@ -822,53 +840,66 @@ export default { }, //编码出库保存 saveCodeOut() { - if (this.maCodeList.length <= this.outObj.outNum) { - let params = this.maCodeList.map((item) => { - let obj = { - id: this.outObj.id, - maId: item, - manageType: 0, - carCode: this.codeOutForm.carCode, - remark: this.codeOutForm.remark, - typeId: this.outObj.typeId, - parentId: this.outObj.parentId, - outNum: 1, - taskId: this.outObj.taskId, - leaseType: this.leaseType, - maModel: this.outObj.maModel, - maName: this.outObj.maName, - createTime: this.codeOutForm.createTime, - // remark: this.outCodeList.find((v) => v.maId == item).remark, - } - return obj - }) + this.$refs.codeOutForm.validate(async (valid) => { + if (!valid) { + return false + } else { + if (this.maCodeList.length <= this.outObj.outNum) { + let params = this.maCodeList.map((item) => { + let obj = { + id: this.outObj.id, + maId: item, + manageType: 0, + carCode: this.codeOutForm.carCode, + remark: this.codeOutForm.remark, + typeId: this.outObj.typeId, + parentId: this.outObj.parentId, + outNum: 1, + taskId: this.outObj.taskId, + leaseType: this.leaseType, + maModel: this.outObj.maModel, + maName: this.outObj.maName, + createTime: this.codeOutForm.createTime, + // remark: this.outCodeList.find((v) => v.maId == item).remark, + } + return obj + }) - console.log(params, '编码出库时参数') - // console.log(params) - submitOut(params).then((response) => { - this.$modal.msgSuccess('出库成功') - this.openCode = false - this.handleDialogQuery() - this.handleQuery() - }) - } else { - this.$modal.msgError('所选机具编码已超出出库数量!') - } + console.log(params, '编码出库时参数') + // console.log(params) + submitOut(params).then((response) => { + this.$modal.msgSuccess('出库成功') + this.openCode = false + this.handleDialogQuery() + this.handleQuery() + }) + } else { + this.$modal.msgError('所选机具编码已超出出库数量!') + } + } + }) }, //数量出库保存 saveNumOut() { - this.outNumList[0].carCode = this.numOutForm.carCode - this.outNumList[0].remark = this.numOutForm.remark - this.outNumList[0].createTime = this.numOutForm.createTime - this.outNumList[0].leaseType = this.leaseType - let param = this.outNumList - // console.log(param, '数量出库时参数') - submitNumOut(param).then((response) => { - this.$modal.msgSuccess('出库成功') - this.openNum = false - this.handleDialogQuery() - this.handleQuery() + this.$refs.numOutForm.validate(async (valid) => { + if (!valid) { + return false + } else{ + this.outNumList[0].carCode = this.numOutForm.carCode + this.outNumList[0].remark = this.numOutForm.remark + this.outNumList[0].createTime = this.numOutForm.createTime + this.outNumList[0].leaseType = this.leaseType + let param = this.outNumList + // console.log(param, '数量出库时参数') + submitNumOut(param).then((response) => { + this.$modal.msgSuccess('出库成功') + this.openNum = false + this.handleDialogQuery() + this.handleQuery() + }) + } }) + }, //输入出库数量 diff --git a/src/views/claimAndreturn/return/receive/component/addReturn1.vue b/src/views/claimAndreturn/return/receive/component/addReturn1.vue index a449f45..7599f7d 100644 --- a/src/views/claimAndreturn/return/receive/component/addReturn1.vue +++ b/src/views/claimAndreturn/return/receive/component/addReturn1.vue @@ -42,7 +42,7 @@ - + + + + 导出 --> - + - + - + - + - +