|
|
@@ -1324,6 +1324,21 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
async commit() {
|
|
|
+ // 业务类型为13时,校验调入仓库、区域、货位
|
|
|
+ if (this.formData.businessType === "13") {
|
|
|
+ if (!this.formData.warehouseId) {
|
|
|
+ this.$modal.msgError("调入仓库不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.formData.areaCode) {
|
|
|
+ this.$modal.msgError("调入区域不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.formData.locationCode) {
|
|
|
+ this.$modal.msgError("调入货位不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
const menuId = this.$route.meta.id;
|
|
|
|
|
|
// 只提取需要的字段
|
|
|
@@ -1343,6 +1358,21 @@ export default {
|
|
|
},
|
|
|
/** 撤销按钮 */
|
|
|
async cancel() {
|
|
|
+ // // 业务类型为13时,校验调入仓库、区域、货位
|
|
|
+ // if (this.formData.businessType === "13") {
|
|
|
+ // if (!this.formData.warehouseId) {
|
|
|
+ // this.$modal.msgError("调入仓库不能为空");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (!this.formData.areaCode) {
|
|
|
+ // this.$modal.msgError("调入区域不能为空");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (!this.formData.locationCode) {
|
|
|
+ // this.$modal.msgError("调入货位不能为空");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
const requestData = {
|
|
|
id: this.formData.id,
|
|
|
};
|
|
|
@@ -1354,6 +1384,21 @@ export default {
|
|
|
},
|
|
|
/** 审核按钮 */
|
|
|
async audit() {
|
|
|
+ // 业务类型为13时,校验调入仓库、区域、货位
|
|
|
+ if (this.formData.businessType === "13") {
|
|
|
+ if (!this.formData.warehouseId) {
|
|
|
+ this.$modal.msgError("调入仓库不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.formData.areaCode) {
|
|
|
+ this.$modal.msgError("调入区域不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.formData.locationCode) {
|
|
|
+ this.$modal.msgError("调入货位不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
// 检查是否存在工作流实例ID
|
|
|
if (this.formData.bpmInstanceId) {
|
|
|
// 如果存在工作流实例,跳转到审批任务tab页
|
|
|
@@ -1373,6 +1418,21 @@ export default {
|
|
|
},
|
|
|
/** 反审核按钮 */
|
|
|
async antiAudit() {
|
|
|
+ // // 业务类型为13时,校验调入仓库、区域、货位
|
|
|
+ // if (this.formData.businessType === "13") {
|
|
|
+ // if (!this.formData.warehouseId) {
|
|
|
+ // this.$modal.msgError("调入仓库不能为空");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (!this.formData.areaCode) {
|
|
|
+ // this.$modal.msgError("调入区域不能为空");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (!this.formData.locationCode) {
|
|
|
+ // this.$modal.msgError("调入货位不能为空");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
const requestData = {
|
|
|
id: this.formData.id,
|
|
|
};
|