liujiandao
2024-03-30 411dd0df172658585da0d583d04e37ede892a6f1
controllers/operation.go
@@ -538,9 +538,6 @@
               return err
            }
         }
         if operation.Source != "" {
            go UpdatePurchaseStatus(operation.Source, operation.SourceNumber)
         }
      }
@@ -582,9 +579,6 @@
               return errors.New("当前仓库没有该产品,请先入库")
            }
         }
         if operation.Source != "" {
            go UpdateOutStatus(operation.Source, operation.SourceNumber, 4)
         }
      }
      if operation.BaseOperationType == constvar.BaseOperationTypeInternal {
@@ -625,6 +619,16 @@
      util.ResponseFormat(c, code.RequestError, err.Error())
      return
   }
   //修改其他系统订单状态
   if operation.BaseOperationType == constvar.BaseOperationTypeIncoming {
      if operation.Source != "" {
         go UpdatePurchaseStatus(operation.Source, operation.SourceNumber)
      }
   } else if operation.BaseOperationType == constvar.BaseOperationTypeOutgoing {
      if operation.Source != "" {
         go UpdateOutStatus(operation.Source, operation.SourceNumber, 4)
      }
   }
   util.ResponseFormat(c, code.Success, "操作成功")
}