2018-06-27

康英资产管理系统接口文档

[TOC]

文档查看地址

请求URL:http://172.16.1.135:8181/Api/资产管理接口文档.html

设备

接口名称:设备购入列表 assetsPurchaseList

请求URL http://172.16.30.24:8888/api/ky/assetsPurchaseList?HospitalID=1&starttime=2018-04&Page=3&Limit=10
请求类型: GET
返回值:

{
    "total": 22,
    "data": [
        {
            "AssetsNumber": "RL-YS18040001",             
            "AssetsName": "128导刺激开关及刺激器",
            "AssetsModel": "222",
            "ManufacturerName": "康英3",
            "PurchaseDate": "2018-04",
            "AssetsPrice": "166666.5000",
            "monthDiscount": 6944.4375,
            "DepartmentName": "消化科",
            "DepreciationYears": "2"
        },
        {
            "AssetsNumber": "RL-YS18040010",
            "AssetsName": "128导刺激开关及刺激器",
            "AssetsModel": "小蜜蜂",
            "ManufacturerName": "无11",
            "PurchaseDate": "2018-04",
            "AssetsPrice": "475.0000",
            "monthDiscount": 19.791666666667,
            "DepartmentName": "消化科",
            "DepreciationYears": "2"
        }
    ]
}

接口名称:设备到期列表 assetsExpireList

请求URL http://172.16.30.24:8888/api/ky/assetsExpireList?HospitalID=1&starttime=2018-03&Page=1&Limit=10
请求类型: GET
返回值:

{
    "total": 4,
    "data": [
        {
            "AssetsNumber": "RL-YS18030001",
            "AssetsName": "19-彩色显示器",
            "AssetsModel": "acbf",
            "ManufacturerName": "无11",
            "PurchaseDate": "2018-03",
            "AssetsPrice": "800.0000",
            "DepreciationYears": "2",
            "monthDiscount": 33.333333333333,
            "DepartmentName": "外六",
            "remnantValue": null,
            "expireTime": "2020-03"
        },
        {
            "AssetsNumber": "RL-YS18030031",
            "AssetsName": "128导刺激开关及刺激器",
            "AssetsModel": "222",
            "ManufacturerName": "康英维修商",
            "PurchaseDate": "2018-03",
            "AssetsPrice": "55.5000",
            "DepreciationYears": "5",
            "monthDiscount": 0.925,
            "DepartmentName": "CT室",
            "remnantValue": null,
            "expireTime": "2023-03"
        }
    ]
}

接口名称:验收登记导入 excelBhdr

请求URL: http://172.16.2.63:8888/api/ky/excelBhdr

请求类型: POST

返回值:

{
    "hcxx": [
        {
            "hcid": 9838,
            "hcbh": "10010",
            "ybbh": "",
            "hcmc": "金属缆索内固定系统-缆索",
            "ggxh": "",
            "sccj": null,
            "dw": "个",
            "dj": "1338.75",
            "hcsl": 1,
            "je": 1338.75,
            "fph": "",
            "fprq": "",
            "pc": "",
            "yxq": "",
            "mjph": ""
        }
    ],
    "errcode": 200,
    "errmsg": "导入成功"
}

合同

设备接口 getAssetsdictionariest

请求URL:http://172.16.1.135:8888/api/ky/getAssetsdictionariest?HospitalID=1

请求类型:GET

返回值:

参数 类型 描述 备注
total number 返回值总数量
data array 返回值列表
AssetsDictionariesID number 设备字典id
AssetsDictionariesNumbers string 设备字典编号
AssetsName string 设备名称
AssetsModel string 设备型号
AssetsPrice string 设备价格
zongjie string 总金额
ManufacturerName string 厂商名
{
    "total": 6479,
    "data": [
        {
            "AssetsDictionariesID": 11,
            "AssetsDictionariesNumbers": 4,
            "AssetsName": "128导刺激开关及刺激器",
            "AssetsModel": "",
            "AssetsPrice": "1.0000",
            "zongjie": "1.0000",
            "ManufacturerName": "康英维修商"
        },
        ......
        {
            "AssetsDictionariesID": 11,
            "AssetsDictionariesNumbers": 4,
            "AssetsName": "128导刺激开关及刺激器",
            "AssetsModel": "",
            "AssetsPrice": "1000.0000",
            "zongjie": "1000.0000",
            "ManufacturerName": "康英维修商"
        }
    ]
}

接口名称:合同录入-添加 AddContract

请求URL:http://172.16.1.135:8888/api/ky/AddContract

请求类型:POST

请求参数:

参数 类型 描述 备注
AssetsID int 设备字典ID
AssetsModel string 设备型号
DepartmentApplyID int 设备所属科室ID
ManufacturerID string 厂商
Price string 单价
Number string 数量
TenderDetailsID string 招标明细ID
SupplierID string 型号
ContractNumber string 合同编号
ContractIName string 合同名称
PartyBUnitID string 乙方单位
PartyBUnitUser string 乙方负责人
PhoneNaumber string 联系电话
SigningDate string 签订日期
ClosingDate string 截止日期
ContractAcount string 合同金额
ArchivesNumber string 档案编号
AcceptanceDate string 验收日期
ChargePersonID string 院方负责人
AdministratorsID string 档案管理员
ImportUserID string 录入人
ContractContent string 合同内容
HospitalID int 医院ID
UserID int 用户ID
Action string 行为 新增:add 编辑:edit
nper int 期数
money string 付款金额
prepayDate string 预付款日期
payDate string 付款日期
status string 付款状态 1-未付款 2-已付款

请求参数示例:

AssetsID[0][AssetsID]:8
AssetsID[0][AssetsModel]:ky
AssetsID[0][DepartmentApplyID]:97
AssetsID[0][ManufacturerID]:6
AssetsID[0][Price]:1
AssetsID[0][Number]:2
TenderDetailsID[]:12
SupplierID:undefined
ContractNumber:101112
ContractIName:哈哈哈
PartyBUnitID:4
PartyBUnitUser:呵呵
PhoneNaumber:13826505722
SigningDate:2018-04-25
ClosingDate:2018-04-25
ContractAcount:2
ArchivesNumber:123456
AcceptanceDate:2018-04-25
ChargePersonID:847
AdministratorsID:847
ImportUserID:844
ContractContent:123456
HospitalID:1
UserID:844
Action:add
payInfo[0][nper]:1
payInfo[0][money]:100
payInfo[0][prepayDate]:2018-04-20
payInfo[0][payDate]:2018-04-25
payInfo[0][status]:2  

返回值:

{
    "errcode": 200,
    "errmsg": "新增成功"
}

接口名称:厂商管理--合同列表 GetContracttList

请求URL: http://172.16.1.135:8888/api/ky/GetContracttList?Page=1&PartyBUnitID=1&ContractIName=333&ContractType=1&ClosingDate=2018-01-30

请求类型:GET

返回值:

参数 类型 描述 备注
total int 数量
data array 数据列表
ContractID int 合同ID
ContractNumber string 合同编号
ContractIName string 合同名称
ManufacturerName string 乙方单位
PartyBUnitUser string 乙方联系人
PhoneNaumber string 联系电话
SigningDate string 签订日期
ClosingDate string 截止日期
ContractContent string 合同内容
ContractType string 合同类型 1-采购合同 2 保修合同
{
    "total": 2,
    "data": [
        {
            "ContractID": 1,
            "ContractNumber": "3333",
            "ContractIName": "3333",
            "ManufacturerName": "南洋康健实业公司",
            "PartyBUnitUser": "undefined",
            "PhoneNaumber": "undefined",
            "SigningDate": "2018-01-29",
            "ClosingDate": "2018-01-30",
            "ContractContent": "undefined",
            "ContractType": 1
        },
        {
            "ContractID": 2,
            "ContractNumber": "333",
            "ContractIName": "333",
            "ManufacturerName": "南洋康健实业公司",
            "PartyBUnitUser": "undefined",
            "PhoneNaumber": "undefined",
            "SigningDate": "2018-01-29",
            "ClosingDate": "2018-01-30",
            "ContractContent": "",
            "ContractType": 1
        }
    ]
}

接口名称: 合同管理详情 GetContracttDetail

请求URL:http://172.16.1.135:8888/api/ky/GetContracttDetail?ContractID=18

请求类型:GET

返回值:

参数 类型 描述 备注
contracttInfo array 合同信息
ContractID int 合同ID
ContractIName string 合同名称
ContractType int 合同类型 1-采购合同 2-保修合同
PartyBUnitID int 乙方单位ID
PartyBUnitUser string 乙方联系人
PhoneNaumber string 联系电话
SigningDate string 签订日期
ClosingDate string 截止日期
ContractAcount string 合同金额
ArchivesNumber string 档案编号
AcceptanceDate string 验收日期
ChargePersonID int 院方负责人ID
AdministratorsID int 档案管理员ID
ImportUserID string 录入人ID
ContractContent string 合同内容
payInfo array 付款信息
PaymentInfoID int 付款信息ID
PaymentPeriods sting 期数
PaymentAmount array 付款金额
EstimatedPaymentDate array 预计付款日期
PaymentDate array 付款日期
PaymentStatus array 付款状态 1待付款2付款
attachmentInfo array 合同信息
assetsInfo array 设备信息
PurchaseContractID int 采购id
{
    "contracttInfo": {
        "ContractID": 97,
        "ContractNumber": "NO.11112",
        "ContractIName": "万科",
        "ContractType": 1,
        "PartyBUnitID": 1,
        "PartyBUnitUser": "科万",
        "PhoneNaumber": "13826505722",
        "SigningDate": "2018-04-27",
        "ClosingDate": "2018-04-30",
        "ContractAcount": "10000.0000",
        "ArchivesNumber": "11112",
        "AcceptanceDate": "2018-04-28",
        "ChargePersonID": 844,
        "AdministratorsID": 844,
        "ImportUserID": "844",
        "ContractContent": "采购。。。。"
    },
    "payInfo": [
        {
            "PaymentInfoID": 30,
            "HospitalID": 1,
            "ContractID": 97,
            "PaymentPeriods": "1",
            "PaymentAmount": "5000.0000",
            "EstimatedPaymentDate": "2018-04-28",
            "PaymentDate": "0000-00-00",
            "PaymentStatus": "已付款",
            "EditUserID": 844,
            "EditTime": "2018-04-28 09:55:13"
        },
        {
            "PaymentInfoID": 31,
            "HospitalID": 1,
            "ContractID": 97,
            "PaymentPeriods": "2",
            "PaymentAmount": "3000.0000",
            "EstimatedPaymentDate": "2018-04-27",
            "PaymentDate": "0000-00-00",
            "PaymentStatus": "已付款",
            "EditUserID": 844,
            "EditTime": "2018-04-28 09:55:13"
        },
        {
            "PaymentInfoID": 32,
            "HospitalID": 1,
            "ContractID": 97,
            "PaymentPeriods": "3",
            "PaymentAmount": "1000.0000",
            "EstimatedPaymentDate": "2018-04-28",
            "PaymentDate": "2018-04-28",
            "PaymentStatus": "已付款",
            "EditUserID": 844,
            "EditTime": "2018-04-28 09:52:32"
        },
        {
            "PaymentInfoID": 33,
            "HospitalID": 1,
            "ContractID": 97,
            "PaymentPeriods": "3",
            "PaymentAmount": "1000.0000",
            "EstimatedPaymentDate": "2018-04-28",
            "PaymentDate": "2018-04-28",
            "PaymentStatus": "已付款",
            "EditUserID": 844,
            "EditTime": "2018-04-28 09:55:13"
        }
    ],
    "assetsInfo": [
        {
            "PurchaseContractID": 50,
            "AssetsDictionariesNumbers": 4,
            "AssetsID": 12826,
            "AssetsName": "128导刺激开关及刺激器",
            "ManufacturerName": "无11",
            "AssetsModel": "",
            "ManufacturerID": 2,
            "AssetsPrice": "6000.0000",
            "Number": "0.0000",
            "zongjie": "0.00000000",
            "AffiliatedDepartmentID": 215
        },
        {
            "PurchaseContractID": 51,
            "AssetsDictionariesNumbers": 4,
            "AssetsID": 12826,
            "AssetsName": "128导刺激开关及刺激器",
            "ManufacturerName": "无11",
            "AssetsModel": "",
            "ManufacturerID": 2,
            "AssetsPrice": "6000.0000",
            "Number": "0.0000",
            "zongjie": "0.00000000",
            "AffiliatedDepartmentID": 215
        }
    ]
}

接口名称:厂商管理--合同付款列表 contracttPayList

请求URL: http://172.16.1.135:8888/api/ky/contracttPayList?Page=1

请求类型:GET

返回值:

参数 类型 描述 备注
total int 数量
data array 数据列表
PaymentInfoID int 合同ID
ContractNumber string 合同编号
ContractIName string 合同名称
ManufacturerName string 乙方单位
PaymentPeriods string 期数
EstimatedPaymentDate string 预付款日期
PaymentStatus string 付款状态 1-未付款 2 已付款
{
    "total": 12,
    "data": [
        {
            "PaymentInfoID": 1,
            "ContractNumber": "101112",
            "ContractIName": "哈哈哈",
            "ManufacturerName": "康英1",
            "PaymentStatus": "2",
            "EstimatedPaymentDate": "2018-04-20",
            "PaymentAmount": "100.0000",
            "PaymentPeriods": "1"
        },
        ......
        {
            "PaymentInfoID": 10,
            "ContractNumber": "1",
            "ContractIName": "1",
            "ManufacturerName": "无11",
            "PaymentStatus": "1",
            "EstimatedPaymentDate": "2018-04-18",
            "PaymentAmount": "1.0000",
            "PaymentPeriods": "1"
        }
    ]
}

接口名称: 合同付款 editHtfk

请求URL:http://172.16.1.135:8888/api/ky/editHtfk

请求参数:

PaymentInfoID[0]:1
PaymentInfoID[1]:2

请求参数说明:

参数 类型 描述 备注
PaymentInfoID array 付款ID数组 多个或单个时都应是Array类型

请求类型:POST

返回值:

{
    "errcode": 200,
    "errmsg": "新增成功"
}

删除合同设备 delContracttAssets

请求URL:http://172.16.1.135:8888/api/ky/delContracttAssets

请求类型:POST

请求参数:

参数 类型 描述 备注
PurchaseContractID int 采购id

返回值:

{
    "errcode": 200,
    "errmsg": "删除成功"
}

删除合同付款期数 delPaymentInfo

请求URL:http://172.16.1.135:8888/api/ky/delPaymentInfo

请求类型:POST

请求参数:

参数 类型 描述 备注
PaymentInfoID int 付款信息ID

返回值:

{
    "errcode": 200,
    "errmsg": "删除成功"
}

器械注册证

建表

CREATE TABLE `hcqxzj` (
  `hczj_id` INT (11) NOT NULL AUTO_INCREMENT COMMENT '耗材证件id',
  `HospitalID` INT (11) NOT NULL COMMENT '医院id',
  `hc_id` INT (11) NOT NULL COMMENT '耗材id',
  `hczj_zczh` VARCHAR (250) NOT NULL COMMENT '注册证号',
  `hczj_fjlj` VARCHAR (250) NOT NULL COMMENT '证件附件路径',
  `hczj_yxqs` DATE NOT NULL COMMENT '有效期开始时间',
  `hczj_yxqe` DATE DEFAULT NULL COMMENT '证件有效期截止日期',
  `hczj_status` TINYINT (1) DEFAULT NULL COMMENT '状态(1启用2停用)',
  `hczj_xgr` INT (11) DEFAULT NULL COMMENT '修改人',
  `hczj_xgsj` DATETIME DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`hczj_id`),
  UNIQUE KEY `hczj_id` (`hczj_id`) USING BTREE
) ENGINE = INNODB DEFAULT CHARSET = utf8 COMMENT = '耗材器械注册证件表' ;

接口名称: 厂商证件是否过期 isExpire

请求URL:http://172.16.1.135:8888/api/ky/isExpire?ManufacturerID=1851

请求参数:


请求类型:GET

返回值:

参数 类型 描述 备注
zj_status int 厂商证件状态 0-在有效期 1-过期 2-缺失
{
    "zj_status": 0
}

接口名称: 耗材证件是否过期 isHcExpire

请求URL:http://172.16.1.135:8888/api/ky/isHcExpire?SuppliesDictionaryID=1851

请求参数:


请求类型:GET

返回值:

参数 类型 描述 备注
zj_status int 耗材证件状态 0-在有效期 1-过期 2-缺失
{
    "zj_status": 0
}

修改的接口:getXzHcList 增加耗材证件状态

请求URL: http://172.16.1.135:8888/api/ky/getXzHcList?hcmc=&hcfl=&gllb=1&glms=2&page=1&gys=1449

返回值:

{
    "total": 1,
    "data": [
        {
            "hcid": 1489,
            "hcbh": "RL-HC18040001",
            "hcmc": "止血纱布",
            "ggxh": "10*20 w1912",
            "sccj": "南洋康健实业公司",
            "rkdj": "0.00",
            "dw": "片",
            "zj_status": 2
        }
    ]
}

接口名称: 耗材证件上传 uploadHczj

请求URL: http://172.16.1.135:8888/api/ky/uploadHczj

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
UserID int 用户ID
file file对象 上传的文件图片

返回值:

{
    "name": "5ae2c1f5a4581csgl000.jpg",
    "path": "uploads/yh/1/2018-04-27/",
    "oldname": "斯巴鲁.jpg",
    "size": "0.385M",
    "type": "image/jpeg",
    "ext": "jpg"
}

接口名称: 查看耗材证件 getHczjImg

请求URL: http://172.16.1.135:8888/api/ky/getHczjImg

请求类型:POST

请求参数:

参数 类型 描述 备注
path string 图片路径

请求参数实例:path: uploads/yh/1/2018-04-27/5ae2c1f5a4581csgl000.jpg

返回值:


修改接口名称: 新增耗材字典 AddSuppliesDictionary

请求URL: http://172.16.1.135:8888/api/ky/AddSuppliesDictionary

请求参数(只对接口新增的字段说明):

参数 类型 描述 备注
Action string 请求行为 新增:Add 编辑:edit
hczj array 耗材证件数组
hczj_id int 耗材证件id 编辑时需要有值
fjlj string 上传的图片路径
hczj_yxqs string DATE
hczj_yxqe string DATE
hczj_status int 证件状态 1启用 2停用

参数示例:

SuppliesName: 医用防护服
RegistrationDocumentNumber: 
GenericName: 医用防护服
SuppliesDictionaryOddNumber: 
StoragePrice: 200
SuppliesPrice: 220
CharacteristicCode: 
InstrumentClassificationID: 
PurchasingPlatformCode: 
ManufacturerID: 1
Brand: 
PlaceOfOrigin: 
SuppliesClassificationID: 7
ManagementLevel: 1
ManagementCategory: 2
IsImport: 2
Unit: 康英
DefaultSupplier: 1
IsCharging: 2
SpecificationModel: 
BiddingType: 1
BiddingOddNumber: 
InventoryCeiling: undefined
LowerInventoryLimit: 
MinimumPackage: 
Sfbm: undefined
Status: 1
yghcbh: 
UserID: 844
HospitalID: 1
EnclosureData[0][md5]: 5ae2c37fa17b9sbzd000.png
EnclosureData[0][ywjm]: KZ5TV}COJW[WSDE}31)[email protected]
EnclosureData[0][src]: uploads/yy//jcsz/2018-04-27/
EnclosureData[0][size]: 0.12M
Action: add
hczj[0][hczj_id]
hczj[0][hczj_zczh]5656656
hczj[0][fjlj]: uploads/yh//2018-04-27/5ae2b87a0d4d9csgl000.png
hczj[0][hczj_yxqs]: 2018-04-12
hczj[0][hczj_yxqe]: 2018-05-09
hczj[0][hczj_status]: 2

返回值:

{
    "errcode": 200,
    "errmsg": "提交成功"
}

接口名称: 查看耗材证件 GetSuppliesDictionaryDetail

请求URL:http://172.16.1.135:8888/api/ky/GetSuppliesDictionaryDetail?SuppliesDictionaryID=12472

请求类型:GET

请求参数:

参数 类型 描述 备注
path string 图片路径

返回值:

{
    "data": {
        "SuppliesDictionaryID": 12472,
        "SuppliesName": "医用防护服",
        "RegistrationDocumentNumber": "",
        "GenericName": "医用防护服",
        "SuppliesDictionaryOddNumber": "RL-HC18040020",
        "PackingInstructions": "",
        "ManagementWarehouse": 0,
        "StoragePrice": "200.0000",
        "SuppliesPrice": "220.00",
        "CharacteristicCode": "",
        "InstrumentClassificationID": 0,
        "PurchasingPlatformCode": "",
        "ManufacturerID": 1,
        "Brand": "",
        "PlaceOfOrigin": "",
        "SuppliesClassificationID": 7,
        "ManagementCategory": 2,
        "ManagementModel": 0,
        "IsImport": 2,
        "Unit": "康英",
        "DefaultSupplier": 1,
        "IsCharging": 2,
        "SpecificationModel": "",
        "BiddingType": 1,
        "BiddingOddNumber": "",
        "LowerInventoryLimit": "0.0000",
        "InventoryCeiling": "0.0000",
        "ManagementLevel": 1,
        "MinimumPackage": "",
        "Status": 1,
        "qxflmc": null,
        "sccsmc": "南洋康健实业公司",
        "hcflmc": "普通耗材",
        "Sfbm": "undefined"
    },
    "enclosure": [
        {
            "md5": "5ae2c37fa17b9sbzd000.png",
            "ywjm": "KZ5TV}COJW[WSDE}31)[email protected]",
            "size": 0,
            "src": "uploads/yy//jcsz/2018-04-27/"
        }
    ],
    "hczj": [
        {
            "hczj_id": 3,
            "HospitalID": 1,
            "hc_id": 12472,
            "hczj_zczh": "",
            "hczj_fjlj": "uploads/yh//2018-04-27/5ae2b87a0d4d9csgl000.png",
            "hczj_yxqs": "2018-04-12",
            "hczj_yxqe": "2018-05-09",
            "hczj_status": 2,
            "hczj_xgr": 844,
            "hczj_xgsj": "2018-04-27 14:46:34"
        },
        {
            "hczj_id": 5,
            "HospitalID": 1,
            "hc_id": 12472,
            "hczj_zczh": "1243124",
            "hczj_fjlj": "",
            "hczj_yxqs": "2018-04-25",
            "hczj_yxqe": "2018-04-30",
            "hczj_status": 1,
            "hczj_xgr": 844,
            "hczj_xgsj": "2018-04-30 16:01:43"
        }
    ]
}

接口名称: 修改耗材证件状态 isStatus

请求URL:http://172.16.1.135:8888/api/ky/isStatus?hczj_id=2&status=2

请求类型:GET

请求参数:

参数 类型 描述 备注
hczj_id int 证件ID
status int 状态 1-启用 2-停用

返回值:

{
    "errcode": 200,
    "errmsg": "编辑成功"
}

修改表

ALTER TABLE `test1-25`.`suppliesdictionaryt`   
  ADD COLUMN `zj_status` TINYINT(1) DEFAULT 1  NOT NULL   COMMENT '耗材证件状态,1-正常,2-过期,3-缺失' AFTER `HcUid`;
ALTER TABLE `test1-25`.`suppliesdictionaryt`   
  CHANGE `zj_status` `zj_status` TINYINT(1) DEFAULT 1  NOT NULL   COMMENT '耗材证件状态,1-缺失,2-过期,3-正常'; 

导入耗材 importHcList

请求URL:http://172.16.1.135:8888/api/ky/importHcList

请求类型:POST

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
UserID int 用户ID
file object 上传的文件对象

返回值:

{
    "errcode": 200,
    "errmsg": "导入成功"
}

新增耗材--发送消息 sendcode

请求URL:http://172.16.1.135:8888/api/ky/sendcode?HospitalID=1&SuppliesDictionaryID=203000009

请求类型:GET

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
SuppliesDictionaryID int 耗材字典ID

返回值:

{
    "errcode": 200,
    "errmsg": "发送失败"
}

获取耗材名称 第三类 HcmcList

请求URL:http://172.16.1.135:8888/api/ky/HcmcList?HospitalID=1&page=1&limit=10

请求类型:GET

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
Page int 医院ID
Limit int 医院ID
hcflid int HcflList接口中:选中的分类ID
SuppliesClassificationID int 选中的分类ID

返回值:

{
    "total": 15,
    "data": [
        {
            "SuppliesClassificationID": 111,
            "SuppliesClassificationOddNumber": "01",
            "ClassificationName": "测试分类4",
            "PreSuppliesClassification": 109,
            "levelStatus": 3
        },
        ...
        {
            "SuppliesClassificationID": 143,
            "SuppliesClassificationOddNumber": "600200020001",
            "ClassificationName": "外科小手术-1",
            "PreSuppliesClassification": 142,
            "levelStatus": 3
        }
    ]
}

获取耗材分类 第二类 HcflList

请求URL:http://172.16.1.135:8888/api/ky/HcflList?HospitalID=1&page=1&limit=10

请求类型:GET

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
Page int 医院ID
Limit int 医院ID
SuppliesClassificationID int 选中的分类ID

返回值:

{
    "total": 15,
    "data": [
        {
            "SuppliesClassificationID": 111,
            "SuppliesClassificationOddNumber": "01",
            "ClassificationName": "测试分类4",
            "PreSuppliesClassification": 109,
            "levelStatus": 3
        },
        ...
        {
            "SuppliesClassificationID": 143,
            "SuppliesClassificationOddNumber": "600200020001",
            "ClassificationName": "外科小手术-1",
            "PreSuppliesClassification": 142,
            "levelStatus": 3
        }
    ]
}

批量修改医保编号和价格 modifyData

请求URL:http://172.16.1.135:8888/api/ky/modifyData

请求类型:POST

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
SuppliesClassificationID int 耗材分类第三类id
ManufacturerID int 生产厂家
price int 要修改的价格
ybbh int 要修改的医保编号

返回值:

{
    "errcode": 200,
    "errmsg": "修改成功"
}

获取科室出库查询 GetDepartmentOutputList

请求URL:http://172.16.1.135:8888/api/ky/GetDepartmentOutputList?DepartmentID=303&Page=1&Limit=10

请求类型:GET

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
Page int 页码
Limit int 每页显示数量
LeadingBeginDate date 领用开始日期
LeadingEndDate date 领用结束日期
DepartmentID string 领用科室名称

返回值说明:

参数 类型 描述 备注
total int 数量
data array 数据列表
SuppliesDictionaryID int 耗材字典ID
LeadNumber string 领用数量
Price string 单价
SuppliesBatch string 耗材批次
SuppliesValidity string 耗材有效期
SuppliesDictionaryOddNumber string 耗材字典编号
SuppliesName string 耗材名称
SpecificationModel string 耗材型号
Unit string 耗材单位
LeadDate string 领用时间
Amout string 金额

返回值示例:

{
    "total": 5,
    "data": [
        {
            "SuppliesDictionaryID": 1980,
            "DepartmentLeadingOddNumber": "RL-PL18040003",
            "LeadNumber": "2.0000",
            "Price": "34.6500",
            "SuppliesBatch": "200411",
            "SuppliesValidity": "2012-12-12",
            "SuppliesDictionaryOddNumber": "130106590001",
            "SuppliesName": "张口钳",
            "SpecificationModel": "1",
            "ManufacturerName": null,
            "Unit": "把",
            "SuppliesStockID": 5121,
            "Amout": "69.3000"
        },
        ......
        {
            "SuppliesDictionaryID": 1970,
            "DepartmentLeadingOddNumber": "RL-PL18050006",
            "LeadNumber": "1.0000",
            "Price": "260.0000",
            "SuppliesBatch": "201711",
            "SuppliesValidity": "2102-12-12",
            "SuppliesDictionaryOddNumber": "130101910001",
            "SuppliesName": "定时钟",
            "SpecificationModel": "1",
            "ManufacturerName": null,
            "Unit": "只",
            "SuppliesStockID": 800,
            "Amout": "260.0000"
        }
    ]
}

获取单机设备使用率查询 GetAssetsUseRateList

请求URL:http://172.16.1.135:8888/api/ky/GetAssetsUseRateList?HospitalID=1&UserID=844&AssetsID=&AssetsName=&DepartmentID=&DepartmentName=&Limit=10&Page=1&BeginDate=2018-04&isdc=1

请求类型:GET

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
Page int 页码
Limit int 每页显示数量
AssetsID date 设备ID
AssetsName date 设备名称
DepartmentID string 科室名称ID
DepartmentName string 科室名称
BeginDate string 查询时间
isdc string 是否导出 值为1则导出,否则为空

返回值说明:

参数 类型 描述 备注
total int 数量
data array 数据列表
DepartmentName string 科室名称
AssetsID int 设备ID
AssetsName string 设备名称
AssetsNumber string 设备编号
AssetsPrice string 设备原值
cb string 成本
sr string 收入
lr string 利润
hbl string 回报率
yzj string 月折旧

返回值示例:

{
    "total": 15,
    "data": [
        {
            "AssetsID": 6067,
            "DepartmentName": "MRI室",
            "AssetsName": "磁共振成像系统",
            "AssetsNumber": "03-45-2-8-02-0301-0002",
            "AssetsPrice": "110.0000",
            "cb": "-137316.6000",
            "sr": "413560.0000",
            "lr": "551096.6000",
            "hbl": "-301.17261861",
            "yzj": "141526.6000"
        },
        ......
        {
            "AssetsID": 6106,
            "DepartmentName": "内窥镜室",
            "AssetsName": "内窥镜:胃镜EG-450肠镜EC-45",
            "AssetsNumber": "03-45-2-3-03-0301-0040",
            "AssetsPrice": "980000.0000",
            "cb": "984100.0000",
            "sr": "4200.0000",
            "lr": "980100.0000",
            "hbl": "0.42678590",
            "yzj": "0.0000"
        }
    ]
}

计量台账导入 importMeasurementledgert

请求URL:http://172.16.1.135:8888/api/ky/importMeasurementledgert

请求类型:POST

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
UserID int 用户ID
file 对象 要导入的文件

返回值:

{
    "errcode": 200,
    "errmsg": "修改成功"
}

导入计量检测结果 importMetrologyInspection

请求URL:http://172.16.1.135:8888/api/ky/importMetrologyInspection

请求类型:POST

请求参数:

参数 类型 描述 备注
HospitalID int 医院ID
UserID int 用户ID
file 对象 要导入的文件

返回值:

{
    "errcode": 200,
    "errmsg": "修改成功"
}

note

http://172.16.1.135:8888/api/ky/GetDepartmentOutputList?DepartmentID=303&Page=1&Limit=10

http://172.16.1.135:8888/api/ky/GetDepartmentOutputList?DepartmentID=&LeadingBeginDate=&LeadingEndDate=

ALTER TABLE `ky0503`.`suppliesclassificationt`   
  ADD COLUMN `levelStatus` TINYINT DEFAULT 1  NOT NULL   COMMENT '耗材等级状态1-一级,2-二级,3-三级' AFTER `isksed`;

ALTER TABLE `ky0503`.`suppliesdictionaryt`   
  ADD COLUMN `SuppliesClassificationIDs` INT(11) NOT NULL   COMMENT '耗材名称(第三类id)' AFTER `SuppliesClassificationID`;

ALTER TABLE `ky0503`.`suppliesclassificationt`   
  CHANGE `levelStatus` `levelStatus` TINYINT(1) NULL   COMMENT '1-账类2-大类3-小类4-名称';

Date:2018/5/28

ALTER TABLE `ky0503`.`commonacceptancewarehousingt`   
  ADD COLUMN `leadingDepartmentID` INT(11) NOT NULL   COMMENT '出库科室ID' AFTER `EditTime`;



ALTER TABLE `ky0503`.`commonacceptancewarehousingt`   
  ADD COLUMN `leadingDepartmentID` INT(11) NULL   COMMENT '出库科室ID--领用科室id' AFTER `EditTime`;

ALTER TABLE `ky0601`.`maintenanceimplementationt`   
  CHANGE `MaintenancePrice` `MaintenancePrice` DECIMAL(18,4) DEFAULT 0  NOT NULL   COMMENT '保养费用';


CREATE TABLE `UserSignaturentAttachment` (
  `AttachmentId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '附件主键id',
  `userID` int(11) unsigned NOT NULL COMMENT '用户id',
  `AttachmentPath` char(128) NOT NULL DEFAULT '' COMMENT '附件相对路径',
  `Name` char(128) NOT NULL COMMENT '附件加密名称',
  `OriginalAttachmentName` char(128) NOT NULL COMMENT '原始附件名称',
  `Size` char(128) NOT NULL COMMENT '附件大小',
  PRIMARY KEY (`AttachmentId`),
  KEY `AttachmentId` (`AttachmentId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户签名附件表'

你可能感兴趣的:(2018-06-27)