Explorar o código

委外申请单必填

huang_an %!s(int64=2) %!d(string=hai) anos
pai
achega
176964d751
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/views/warehouseManagement/stockManagement/add.vue

+ 6 - 0
src/views/warehouseManagement/stockManagement/add.vue

@@ -2779,6 +2779,12 @@
         if (!this.title) return this.$message.error('请选择入库产品类型');
         if (!this.formData.bizType)
           return this.$message.error('请选择入库场景');
+        if (
+          this.formData.bizType == 12 &&
+          !this.formData.extInfo.documentSource
+        ) {
+          return this.$message.error('请选择委外申请单');
+        }
         this.visibleDialog = true;
       },
       handleChange(data) {