jiangshuai
2023-12-08 27bccf679a48389285b788742cf7aa4b16ad4ecc
操作excel 手动变比io资源。
文件模版配置表增加字段taleInfo
5个文件已修改
103 ■■■■■ 已修改文件
controllers/operation.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/file_template_attachment.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/operation.go
@@ -927,6 +927,7 @@
        return "", errors.New("读取excel模版失败:" + err.Error())
    }
    readerCloser.Close()
    defer f.Close()
    style, _ := f.NewStyle(&excelize.Style{
        Border: []excelize.Border{
@@ -1007,6 +1008,7 @@
        return "", errors.New("读取excel模版失败:" + err.Error())
    }
    readerCloser.Close()
    defer f.Close()
    style, _ := f.NewStyle(&excelize.Style{
        Border: []excelize.Border{
docs/docs.go
@@ -1097,6 +1097,25 @@
                }
            }
        },
        "/api-wms/v1/operation/getClientList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "获取物流公司列表",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/getLogisticCompanyList": {
            "get": {
                "produces": [
@@ -1131,6 +1150,25 @@
                }
            }
        },
        "/api-wms/v1/operation/getSupplierList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "获取物流公司列表",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/list": {
            "post": {
                "produces": [
docs/swagger.json
@@ -1085,6 +1085,25 @@
                }
            }
        },
        "/api-wms/v1/operation/getClientList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "获取物流公司列表",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/getLogisticCompanyList": {
            "get": {
                "produces": [
@@ -1119,6 +1138,25 @@
                }
            }
        },
        "/api-wms/v1/operation/getSupplierList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "获取物流公司列表",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/list": {
            "post": {
                "produces": [
docs/swagger.yaml
@@ -2261,6 +2261,18 @@
      summary: 更改记录状态
      tags:
      - 入库/出库
  /api-wms/v1/operation/getClientList:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 获取物流公司列表
      tags:
      - 入库/出库
  /api-wms/v1/operation/getLogisticCompanyList:
    get:
      produces:
@@ -2280,6 +2292,18 @@
      summary: 获取物流公司列表
      tags:
      - 入库/出库
  /api-wms/v1/operation/getSupplierList:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 获取物流公司列表
      tags:
      - 入库/出库
  /api-wms/v1/operation/list:
    post:
      parameters:
models/file_template_attachment.go
@@ -15,6 +15,7 @@
        Name         string                        `json:"name" gorm:"type:varchar(63);comment:模版名称"`
        AttachmentId uint                          `json:"attachmentId" gorm:"comment:附件表外键"`
        Attachment   Attachment                    `json:"attachment" gorm:"foreignKey:AttachmentId;references:Id"`
        TableInfo    string                        `json:"tableInfo" gorm:"type:varchar(31);comment:表名"`
    }
    FileTemplateAttachmentSearch struct {
        FileTemplateAttachment