zhangqian
2024-04-19 0ddbf564f6e2a33c4f73141423ad0905da4278d0
docs/swagger.yaml
@@ -393,20 +393,8 @@
        description: 栈名
        type: string
    type: object
  constvar.BoolType:
  constvar.MiniDictType:
    enum:
    - 1
    - 2
    type: integer
    x-enum-comments:
      BoolTypeFalse: "false"
      BoolTypeTrue: "true"
    x-enum-varnames:
    - BoolTypeTrue
    - BoolTypeFalse
  constvar.OutsourcingOrderStatus:
    enum:
    - 0
    - 1
    - 2
    - 3
@@ -414,31 +402,23 @@
    - 5
    - 6
    - 7
    - 8
    - 9
    type: integer
    x-enum-comments:
      OutsourcingOrderStatusAssigned: 已分配委外商
      OutsourcingOrderStatusClose: 关闭
      OutsourcingOrderStatusCreate: 新建待分配委外商
      OutsourcingOrderStatusDeliveryFinish: 发货完成
      OutsourcingOrderStatusFinish: 生产完成
      OutsourcingOrderStatusMaterialApplying: 物料申请中/待领料审核
      OutsourcingOrderStatusMaterialExamineRefused: 领料审核拒绝
      OutsourcingOrderStatusProducing: 生产中
      OutsourcingOrderStatusReceiveFinish: 收货完成
      OutsourcingOrderStatusWaitProduce: 待生产
      EarlyWarningDay: 预警天数
      InspectionWayType: 质检方式类型
      MiniDictTypeBomVersionType: Bom版本类型
      MiniDictTypePlcBrand: PLC品牌
      OutsourcingSupplierCreditGrade: 信用等级
      OutsourcingSupplierRange: 供货范围
      OutsourcingSupplierType: 委外供应商类型
    x-enum-varnames:
    - OutsourcingOrderStatusCreate
    - OutsourcingOrderStatusAssigned
    - OutsourcingOrderStatusWaitProduce
    - OutsourcingOrderStatusMaterialApplying
    - OutsourcingOrderStatusMaterialExamineRefused
    - OutsourcingOrderStatusProducing
    - OutsourcingOrderStatusFinish
    - OutsourcingOrderStatusDeliveryFinish
    - OutsourcingOrderStatusReceiveFinish
    - OutsourcingOrderStatusClose
    - MiniDictTypePlcBrand
    - MiniDictTypeBomVersionType
    - EarlyWarningDay
    - InspectionWayType
    - OutsourcingSupplierType
    - OutsourcingSupplierCreditGrade
    - OutsourcingSupplierRange
  constvar.RecordStatus:
    enum:
    - 0
@@ -468,6 +448,25 @@
      valid:
        description: Valid is true if Time is not NULL
        type: boolean
    type: object
  model.MiniDict:
    properties:
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      id:
        type: integer
      isDefault:
        type: boolean
      name:
        type: string
      type:
        $ref: '#/definitions/constvar.MiniDictType'
      updatedAt:
        type: string
      value:
        type: string
    type: object
  models.OutsourcingEnterprise:
    properties:
@@ -512,152 +511,6 @@
        description: 联系方式
        type: string
      updatedAt:
        type: string
    type: object
  models.OutsourcingOrder:
    properties:
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      deliveryDate:
        type: string
      enterpriseID:
        description: 供应商ID
        type: integer
      enterpriseName:
        description: 供应商名称
        type: string
      enterpriseType:
        description: 供应商类型
        type: string
      id:
        type: integer
      number:
        description: 订单编号
        type: string
      productQuantity:
        description: 产品数量
        type: integer
      projectId:
        type: string
      projectOrderID:
        type: string
      reason:
        type: string
      salesDetailsNumber:
        type: string
      signTime:
        type: string
      status:
        allOf:
        - $ref: '#/definitions/constvar.OutsourcingOrderStatus'
        description: 状态
      updatedAt:
        type: string
    type: object
  models.OutsourcingOrderProduct:
    properties:
      amount:
        type: integer
      bomID:
        type: string
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      enterpriseID:
        description: 供应商ID
        type: integer
      finishAmount:
        type: integer
      id:
        type: integer
      outsourcingOrderID:
        type: integer
      productId:
        type: string
      productName:
        type: string
      specs:
        type: string
      type:
        type: string
      unit:
        type: string
      updatedAt:
        type: string
    type: object
  outsourcingrequest.ChangeStatus:
    properties:
      outsourcingOrderNumber:
        description: 委外订单编码
        type: string
      reason:
        type: string
      status:
        $ref: '#/definitions/constvar.OutsourcingOrderStatus'
    type: object
  outsourcingrequest.ConfirmDeliveryList:
    properties:
      outsourcingOrderDeliveryDetailsIds:
        description: 发货记录id
        items:
          type: integer
        type: array
      outsourcingOrderID:
        description: 委外订单ID
        type: integer
      warehouseId:
        description: 仓库id
        type: string
    type: object
  outsourcingrequest.GetDeliveryList:
    properties:
      isReceived:
        allOf:
        - $ref: '#/definitions/constvar.BoolType'
        description: 是否确认收货 1 已确认 2未确认 传0或不传获取全部
      outsourcingOrderID:
        description: 委外订单ID
        type: integer
    type: object
  outsourcingrequest.GetInventoryInputDetails:
    properties:
      outsourcingOrderID:
        description: 委外订单ID
        type: integer
    type: object
  outsourcingrequest.GetMaterialApplyList:
    properties:
      keyword:
        description: 关键字
        type: string
      number:
        description: 委外订单编码
        type: string
      page:
        description: 页码
        type: integer
      pageSize:
        description: 每页大小
        type: integer
    type: object
  outsourcingrequest.MaterialApply:
    properties:
      amount:
        type: number
      materialName:
        type: string
      materialNumber:
        type: string
      outsourcingOrderNumber:
        type: string
      specs:
        type: string
      type:
        type: string
      unit:
        type: string
    type: object
  outsourcingrequest.OutsourcingEnterprise:
@@ -714,38 +567,6 @@
      total:
        description: 总量
        type: integer
    type: object
  outsourcingrequest.OutsourcingOrderAssign:
    properties:
      enterpriseID:
        type: integer
      orderID:
        type: integer
      orderIDs:
        items:
          type: integer
        type: array
    required:
    - enterpriseID
    type: object
  outsourcingrequest.OutsourcingOrderOverview:
    properties:
      hasAssigned:
        description: 已分配数量
        type: integer
      total:
        description: 总量
        type: integer
      waitAssigned:
        description: 待分配数量
        type: integer
    type: object
  outsourcingrequest.SaveMaterialApply:
    properties:
      applyList:
        items:
          $ref: '#/definitions/outsourcingrequest.MaterialApply'
        type: array
    type: object
  purchase.OrderStatus:
    enum:
@@ -1547,6 +1368,29 @@
      total:
        type: integer
    type: object
  v1.GetMiniDictList:
    properties:
      type:
        $ref: '#/definitions/constvar.MiniDictType'
    type: object
  v1.MiniDict:
    properties:
      isDefault:
        type: boolean
      name:
        type: string
      value:
        type: string
    type: object
  v1.SaveMiniDict:
    properties:
      list:
        items:
          $ref: '#/definitions/v1.MiniDict'
        type: array
      type:
        $ref: '#/definitions/constvar.MiniDictType'
    type: object
info:
  contact: {}
  description: This is a sample Server pets
@@ -1795,6 +1639,61 @@
      summary: 更新Contract
      tags:
      - Contract
  /dict/getMiniDictList:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/v1.GetMiniDictList'
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.MiniDict'
                  type: array
              type: object
      summary: 获取迷你字典列表
      tags:
      - 数据字典
  /dict/saveMiniDict:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/v1.SaveMiniDict'
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.Response'
      summary: 更新迷你字典
      tags:
      - 数据字典
  /downloadContract:
    get:
      consumes:
@@ -2333,46 +2232,6 @@
      summary: 企业统计
      tags:
      - 委外企业管理
  /outsourcing/enterprise/productList:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - in: query
        name: enterpriseID
        required: true
        type: integer
      - in: query
        name: keyword
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.OutsourcingOrderProduct'
                  type: array
              type: object
      summary: 委外企业供货历史
      tags:
      - 委外企业管理
  /outsourcing/enterprise/update:
    post:
      parameters:
@@ -2395,273 +2254,6 @@
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 企业修改
      tags:
      - 委外企业管理
  /outsourcing/order/assign:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.OutsourcingOrderAssign'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 委外订单分配企业
      tags:
      - 委外企业管理
  /outsourcing/order/changeStatus:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.ChangeStatus'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.Response'
      summary: 修改状态
      tags:
      - 委外企业管理
  /outsourcing/order/confirmReceipt:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.ConfirmDeliveryList'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.ResponseList'
      summary: 委外入库 确认入库
      tags:
      - 委外企业管理
  /outsourcing/order/deliveryList:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.GetDeliveryList'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.ResponseList'
      summary: 获取发货列表
      tags:
      - 委外企业管理
  /outsourcing/order/getInventoryInputDetails:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.GetInventoryInputDetails'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.ResponseList'
      summary: 获取委外入库明细
      tags:
      - 委外企业管理
  /outsourcing/order/getMaterialApplyList:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.GetMaterialApplyList'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.ResponseList'
      summary: 获取物料申请单
      tags:
      - 委外企业管理
  /outsourcing/order/list:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - in: query
        name: keyword
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.OutsourcingOrder'
                  type: array
              type: object
      summary: 委外订单列表
      tags:
      - 委外企业管理
  /outsourcing/order/overview:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  $ref: '#/definitions/outsourcingrequest.OutsourcingOrderOverview'
              type: object
      summary: 订单统计
      tags:
      - 委外企业管理
  /outsourcing/order/productList:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - in: query
        name: keyword
        type: string
      - in: query
        name: outsourcingOrderId
        required: true
        type: integer
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.OutsourcingOrderProduct'
                  type: array
              type: object
      summary: 委外订单产品列表
      tags:
      - 委外企业管理
  /outsourcing/order/saveMaterialApply:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.SaveMaterialApply'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.Response'
      summary: 保存物料申请单
      tags:
      - 委外企业管理
  /p/createProduct: