fix
wangpengfei
2023-08-28 c5a0eb549cba2cd358a2d0496c44f3a289f15d9c
docs/docs.go
@@ -5520,22 +5520,6 @@
                "summary": "获取收款单列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ReceiptKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
@@ -5548,14 +5532,34 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "sourceId",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                            1,
                            2,
                            3,
                            4,
                            5
                        ],
                        "type": "string",
                        "type": "integer",
                        "x-enum-comments": {
                            "ReceiptSourceTypeChuKuDan": "出库单it",
                            "ReceiptSourceTypeCollectionPlan": "收款计划",
                            "ReceiptSourceTypeInvoice": "销售发票",
                            "ReceiptSourceTypeSalesDetails": "销售明细单",
                            "ReceiptSourceTypeServiceContract": "服务合同"
                        },
                        "x-enum-varnames": [
                            "ReceiptQueryClassExpireLessThen60Days"
                            "ReceiptSourceTypeSalesDetails",
                            "ReceiptSourceTypeServiceContract",
                            "ReceiptSourceTypeInvoice",
                            "ReceiptSourceTypeCollectionPlan",
                            "ReceiptSourceTypeChuKuDan"
                        ],
                        "name": "queryClass",
                        "name": "sourceType",
                        "in": "query"
                    }
                ],
@@ -6779,7 +6783,19 @@
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/request.AddSalesDetails"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -7824,9 +7840,27 @@
                "parameters": [
                    {
                        "type": "integer",
                        "description": "服务合同id",
                        "name": "serviceContractId",
                        "in": "query"
                        "name": "sourceId",
                        "in": "query",
                        "required": true
                    },
                    {
                        "enum": [
                            1,
                            2
                        ],
                        "type": "integer",
                        "x-enum-comments": {
                            "CollectionSourceTypeSaleDetails": "销售明细",
                            "CollectionSourceTypeServiceContract": "服务合同"
                        },
                        "x-enum-varnames": [
                            "CollectionSourceTypeSaleDetails",
                            "CollectionSourceTypeServiceContract"
                        ],
                        "name": "sourceType",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
@@ -10379,24 +10413,6 @@
                "PaymentTypeQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ReceiptKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ReceiptKeywordCustomerName"
            ]
        },
        "constvar.ReceiptQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ReceiptQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ReceiptSourceType": {
            "type": "integer",
            "enum": [
@@ -10406,6 +10422,13 @@
                4,
                5
            ],
            "x-enum-comments": {
                "ReceiptSourceTypeChuKuDan": "出库单it",
                "ReceiptSourceTypeCollectionPlan": "收款计划",
                "ReceiptSourceTypeInvoice": "销售发票",
                "ReceiptSourceTypeSalesDetails": "销售明细单",
                "ReceiptSourceTypeServiceContract": "服务合同"
            },
            "x-enum-varnames": [
                "ReceiptSourceTypeSalesDetails",
                "ReceiptSourceTypeServiceContract",
@@ -11845,6 +11868,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -12233,6 +12264,9 @@
                "signTime": {
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                },
                "wechatOrderStatus": {
                    "$ref": "#/definitions/model.WechatOrderStatus"
                },
@@ -12266,6 +12300,9 @@
                    "type": "integer"
                },
                "desc": {
                    "type": "string"
                },
                "detail_address": {
                    "type": "string"
                },
                "followRecord": {
@@ -12318,6 +12355,9 @@
        "model.SalesRefund": {
            "type": "object",
            "properties": {
                "Source": {
                    "$ref": "#/definitions/model.SalesReturn"
                },
                "amountTotal": {
                    "description": "价税合计",
                    "type": "number"
@@ -12386,6 +12426,9 @@
                            "$ref": "#/definitions/constvar.RefundSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12465,6 +12508,9 @@
                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12543,6 +12589,14 @@
                    "description": "比例",
                    "type": "number"
                },
                "principal": {
                    "description": "收款负责人ID",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "收款负责人ID",
                    "type": "integer"
@@ -12615,6 +12669,12 @@
                "contactId": {
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "endTime": {
                    "type": "string"
                },
@@ -12676,6 +12736,9 @@
                    "type": "string"
                },
                "terms": {
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                }
            }
@@ -12746,6 +12809,12 @@
                "contactId": {
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "file": {
                    "type": "string"
                },
@@ -12799,6 +12868,9 @@
                },
                "timelyRateId": {
                    "type": "integer"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12834,6 +12906,12 @@
                "contactId": {
                    "description": "联系人id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "expectTime": {
                    "description": "希望处理时间",
@@ -12955,6 +13033,9 @@
                "timeSpentId": {
                    "description": "花费时间",
                    "type": "integer"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -13148,11 +13229,19 @@
                    "description": "物料类型",
                    "type": "string"
                },
                "MaxInventory": {
                    "description": "最大库存",
                    "type": "integer"
                },
                "MinInventory": {
                    "description": "安全库存",
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                },
                "Node": {
                    "description": "备注",
                    "type": "string"
                },
                "Number": {
@@ -13165,6 +13254,14 @@
                "SalePrice": {
                    "description": "销售价格",
                    "type": "number"
                },
                "Specs": {
                    "description": "规格",
                    "type": "string"
                },
                "Type": {
                    "description": "型号",
                    "type": "string"
                },
                "Unit": {
                    "type": "string"
@@ -13877,6 +13974,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -14207,6 +14312,10 @@
                    "description": "备注",
                    "type": "string"
                },
                "detail_address": {
                    "description": "详细地址",
                    "type": "string"
                },
                "member_id": {
                    "description": "销售负责人ID",
                    "type": "integer"
@@ -14331,6 +14440,12 @@
                    "type": "integer"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
@@ -15177,7 +15292,7 @@
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\"}",
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\",\"representative\": \"法定代表人\", \"registration_time\": \"注册时间\", \"business_scope\": \"经营范围\", \"remark\": \"备注\", \"not_admin\":\"1:我的客户; 2:admin客户\"}",
                    "type": "object",
                    "additionalProperties": true
                }
@@ -16930,6 +17045,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -17357,6 +17480,10 @@
                    "description": "备注",
                    "type": "string"
                },
                "detail_address": {
                    "description": "详细地址",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
@@ -17532,6 +17659,14 @@
                    "description": "比例",
                    "type": "number"
                },
                "principal": {
                    "description": "收款负责人ID",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "收款负责人ID",
                    "type": "integer"
@@ -17608,6 +17743,12 @@
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
                    "type": "integer"
                },