康英資產(chǎn)管理系統(tǒng)接口文檔
[TOC]
文檔查看地址
請(qǐng)求URL:http://172.16.1.135:8181/Api/資產(chǎn)管理接口文檔.html
設(shè)備
接口名稱:設(shè)備購入列表 assetsPurchaseList
請(qǐng)求URL http://172.16.30.24:8888/api/ky/assetsPurchaseList?HospitalID=1&starttime=2018-04&Page=3&Limit=10
請(qǐng)求類型: GET
返回值:
{
"total": 22,
"data": [
{
"AssetsNumber": "RL-YS18040001",
"AssetsName": "128導(dǎo)刺激開關(guān)及刺激器",
"AssetsModel": "222",
"ManufacturerName": "康英3",
"PurchaseDate": "2018-04",
"AssetsPrice": "166666.5000",
"monthDiscount": 6944.4375,
"DepartmentName": "消化科",
"DepreciationYears": "2"
},
{
"AssetsNumber": "RL-YS18040010",
"AssetsName": "128導(dǎo)刺激開關(guān)及刺激器",
"AssetsModel": "小蜜蜂",
"ManufacturerName": "無11",
"PurchaseDate": "2018-04",
"AssetsPrice": "475.0000",
"monthDiscount": 19.791666666667,
"DepartmentName": "消化科",
"DepreciationYears": "2"
}
]
}
接口名稱:設(shè)備到期列表 assetsExpireList
請(qǐng)求URL http://172.16.30.24:8888/api/ky/assetsExpireList?HospitalID=1&starttime=2018-03&Page=1&Limit=10
請(qǐng)求類型: 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導(dǎo)刺激開關(guān)及刺激器",
"AssetsModel": "222",
"ManufacturerName": "康英維修商",
"PurchaseDate": "2018-03",
"AssetsPrice": "55.5000",
"DepreciationYears": "5",
"monthDiscount": 0.925,
"DepartmentName": "CT室",
"remnantValue": null,
"expireTime": "2023-03"
}
]
}
接口名稱:驗(yàn)收登記導(dǎo)入 excelBhdr
請(qǐng)求URL: http://172.16.2.63:8888/api/ky/excelBhdr
請(qǐng)求類型: POST
返回值:
{
"hcxx": [
{
"hcid": 9838,
"hcbh": "10010",
"ybbh": "",
"hcmc": "金屬纜索內(nèi)固定系統(tǒng)-纜索",
"ggxh": "",
"sccj": null,
"dw": "個(gè)",
"dj": "1338.75",
"hcsl": 1,
"je": 1338.75,
"fph": "",
"fprq": "",
"pc": "",
"yxq": "",
"mjph": ""
}
],
"errcode": 200,
"errmsg": "導(dǎo)入成功"
}
合同
設(shè)備接口 getAssetsdictionariest
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/getAssetsdictionariest?HospitalID=1
請(qǐng)求類型:GET
返回值:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| total | number | 返回值總數(shù)量 | |
| data | array | 返回值列表 | |
| AssetsDictionariesID | number | 設(shè)備字典id | |
| AssetsDictionariesNumbers | string | 設(shè)備字典編號(hào) | |
| AssetsName | string | 設(shè)備名稱 | |
| AssetsModel | string | 設(shè)備型號(hào) | |
| AssetsPrice | string | 設(shè)備價(jià)格 | |
| zongjie | string | 總金額 | |
| ManufacturerName | string | 廠商名 |
{
"total": 6479,
"data": [
{
"AssetsDictionariesID": 11,
"AssetsDictionariesNumbers": 4,
"AssetsName": "128導(dǎo)刺激開關(guān)及刺激器",
"AssetsModel": "",
"AssetsPrice": "1.0000",
"zongjie": "1.0000",
"ManufacturerName": "康英維修商"
},
......
{
"AssetsDictionariesID": 11,
"AssetsDictionariesNumbers": 4,
"AssetsName": "128導(dǎo)刺激開關(guān)及刺激器",
"AssetsModel": "",
"AssetsPrice": "1000.0000",
"zongjie": "1000.0000",
"ManufacturerName": "康英維修商"
}
]
}
接口名稱:合同錄入-添加 AddContract
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/AddContract
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| AssetsID | int | 設(shè)備字典ID | |
| AssetsModel | string | 設(shè)備型號(hào) | |
| DepartmentApplyID | int | 設(shè)備所屬科室ID | |
| ManufacturerID | string | 廠商 | |
| Price | string | 單價(jià) | |
| Number | string | 數(shù)量 | |
| SupplierID | string | 型號(hào) | |
| ContractNumber | string | 合同編號(hào) | |
| ContractIName | string | 合同名稱 | |
| PartyBUnitID | string | 乙方單位 | |
| PartyBUnitUser | string | 乙方負(fù)責(zé)人 | |
| PhoneNaumber | string | 聯(lián)系電話 | |
| SigningDate | string | 簽訂日期 | |
| ClosingDate | string | 截止日期 | |
| ContractAcount | string | 合同金額 | |
| ArchivesNumber | string | 檔案編號(hào) | |
| AcceptanceDate | string | 驗(yàn)收日期 | |
| ChargePersonID | string | 院方負(fù)責(zé)人 | |
| AdministratorsID | string | 檔案管理員 | |
| ImportUserID | string | 錄入人 | |
| ContractContent | string | 合同內(nèi)容 | |
| HospitalID | int | 醫(yī)院ID | |
| UserID | int | 用戶ID | |
| Action | string | 行為 | 新增:add 編輯:edit |
| nper | int | 期數(shù) | |
| money | string | 付款金額 | |
| prepayDate | string | 預(yù)付款日期 | |
| payDate | string | 付款日期 | |
| status | string | 付款狀態(tài) | 1-未付款 2-已付款 |
請(qǐng)求參數(shù)示例:
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
請(qǐng)求類型:GET
返回值:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| total | int | 數(shù)量 | |
| data | array | 數(shù)據(jù)列表 | |
| ContractID | int | 合同ID | |
| ContractNumber | string | 合同編號(hào) | |
| ContractIName | string | 合同名稱 | |
| ManufacturerName | string | 乙方單位 | |
| PartyBUnitUser | string | 乙方聯(lián)系人 | |
| PhoneNaumber | string | 聯(lián)系電話 | |
| SigningDate | string | 簽訂日期 | |
| ClosingDate | string | 截止日期 | |
| ContractContent | string | 合同內(nèi)容 | |
| ContractType | string | 合同類型 | 1-采購合同 2 保修合同 |
{
"total": 2,
"data": [
{
"ContractID": 1,
"ContractNumber": "3333",
"ContractIName": "3333",
"ManufacturerName": "南洋康健實(shí)業(yè)公司",
"PartyBUnitUser": "undefined",
"PhoneNaumber": "undefined",
"SigningDate": "2018-01-29",
"ClosingDate": "2018-01-30",
"ContractContent": "undefined",
"ContractType": 1
},
{
"ContractID": 2,
"ContractNumber": "333",
"ContractIName": "333",
"ManufacturerName": "南洋康健實(shí)業(yè)公司",
"PartyBUnitUser": "undefined",
"PhoneNaumber": "undefined",
"SigningDate": "2018-01-29",
"ClosingDate": "2018-01-30",
"ContractContent": "",
"ContractType": 1
}
]
}
接口名稱: 合同管理詳情 GetContracttDetail
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/GetContracttDetail?ContractID=18
請(qǐng)求類型:GET
返回值:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| contracttInfo | array | 合同信息 | |
| ContractID | int | 合同ID | |
| ContractIName | string | 合同名稱 | |
| ContractType | int | 合同類型 | 1-采購合同 2-保修合同 |
| PartyBUnitID | int | 乙方單位ID | |
| PartyBUnitUser | string | 乙方聯(lián)系人 | |
| PhoneNaumber | string | 聯(lián)系電話 | |
| SigningDate | string | 簽訂日期 | |
| ClosingDate | string | 截止日期 | |
| ContractAcount | string | 合同金額 | |
| ArchivesNumber | string | 檔案編號(hào) | |
| AcceptanceDate | string | 驗(yàn)收日期 | |
| ChargePersonID | int | 院方負(fù)責(zé)人ID | |
| AdministratorsID | int | 檔案管理員ID | |
| ImportUserID | string | 錄入人ID | |
| ContractContent | string | 合同內(nèi)容 | |
| payInfo | array | 付款信息 | |
| PaymentInfoID | int | 付款信息ID | |
| PaymentPeriods | sting | 期數(shù) | |
| PaymentAmount | array | 付款金額 | |
| EstimatedPaymentDate | array | 預(yù)計(jì)付款日期 | |
| PaymentDate | array | 付款日期 | |
| PaymentStatus | array | 付款狀態(tài) | 1待付款2付款 |
| assetsInfo | array | 設(shè)備信息 | |
| 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導(dǎo)刺激開關(guān)及刺激器",
"ManufacturerName": "無11",
"AssetsModel": "",
"ManufacturerID": 2,
"AssetsPrice": "6000.0000",
"Number": "0.0000",
"zongjie": "0.00000000",
"AffiliatedDepartmentID": 215
},
{
"PurchaseContractID": 51,
"AssetsDictionariesNumbers": 4,
"AssetsID": 12826,
"AssetsName": "128導(dǎo)刺激開關(guān)及刺激器",
"ManufacturerName": "無11",
"AssetsModel": "",
"ManufacturerID": 2,
"AssetsPrice": "6000.0000",
"Number": "0.0000",
"zongjie": "0.00000000",
"AffiliatedDepartmentID": 215
}
]
}
接口名稱:廠商管理--合同付款列表 contracttPayList
請(qǐng)求URL: http://172.16.1.135:8888/api/ky/contracttPayList?Page=1
請(qǐng)求類型:GET
返回值:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| total | int | 數(shù)量 | |
| data | array | 數(shù)據(jù)列表 | |
| PaymentInfoID | int | 合同ID | |
| ContractNumber | string | 合同編號(hào) | |
| ContractIName | string | 合同名稱 | |
| ManufacturerName | string | 乙方單位 | |
| PaymentPeriods | string | 期數(shù) | |
| EstimatedPaymentDate | string | 預(yù)付款日期 | |
| PaymentStatus | string | 付款狀態(tài) | 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
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/editHtfk
請(qǐng)求參數(shù):
PaymentInfoID[0]:1
PaymentInfoID[1]:2
請(qǐng)求參數(shù)說明:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| PaymentInfoID | array | 付款I(lǐng)D數(shù)組 | 多個(gè)或單個(gè)時(shí)都應(yīng)是Array類型 |
請(qǐng)求類型:POST
返回值:
{
"errcode": 200,
"errmsg": "新增成功"
}
刪除合同設(shè)備 delContracttAssets
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/delContracttAssets
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| PurchaseContractID | int | 采購id |
返回值:
{
"errcode": 200,
"errmsg": "刪除成功"
}
刪除合同付款期數(shù) delPaymentInfo
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/delPaymentInfo
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| PaymentInfoID | int | 付款信息ID |
返回值:
{
"errcode": 200,
"errmsg": "刪除成功"
}
器械注冊(cè)證
建表
CREATE TABLE `hcqxzj` (
`hczj_id` INT (11) NOT NULL AUTO_INCREMENT COMMENT '耗材證件id',
`HospitalID` INT (11) NOT NULL COMMENT '醫(yī)院id',
`hc_id` INT (11) NOT NULL COMMENT '耗材id',
`hczj_zczh` VARCHAR (250) NOT NULL COMMENT '注冊(cè)證號(hào)',
`hczj_fjlj` VARCHAR (250) NOT NULL COMMENT '證件附件路徑',
`hczj_yxqs` DATE NOT NULL COMMENT '有效期開始時(shí)間',
`hczj_yxqe` DATE DEFAULT NULL COMMENT '證件有效期截止日期',
`hczj_status` TINYINT (1) DEFAULT NULL COMMENT '狀態(tài)(1啟用2停用)',
`hczj_xgr` INT (11) DEFAULT NULL COMMENT '修改人',
`hczj_xgsj` DATETIME DEFAULT NULL COMMENT '修改時(shí)間',
PRIMARY KEY (`hczj_id`),
UNIQUE KEY `hczj_id` (`hczj_id`) USING BTREE
) ENGINE = INNODB DEFAULT CHARSET = utf8 COMMENT = '耗材器械注冊(cè)證件表' ;
接口名稱: 廠商證件是否過期 isExpire
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/isExpire?ManufacturerID=1851
請(qǐng)求參數(shù):
請(qǐng)求類型:GET
返回值:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| zj_status | int | 廠商證件狀態(tài) | 0-在有效期 1-過期 2-缺失 |
{
"zj_status": 0
}
接口名稱: 耗材證件是否過期 isHcExpire
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/isHcExpire?SuppliesDictionaryID=1851
請(qǐng)求參數(shù):
請(qǐng)求類型:GET
返回值:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| zj_status | int | 耗材證件狀態(tài) | 0-在有效期 1-過期 2-缺失 |
{
"zj_status": 0
}
修改的接口:getXzHcList 增加耗材證件狀態(tài)
請(qǐng)求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": "南洋康健實(shí)業(yè)公司",
"rkdj": "0.00",
"dw": "片",
"zj_status": 2
}
]
}
接口名稱: 耗材證件上傳 uploadHczj
請(qǐng)求URL: http://172.16.1.135:8888/api/ky/uploadHczj
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| UserID | int | 用戶ID | |
| file | file對(duì)象 | 上傳的文件圖片 |
返回值:
{
"name": "5ae2c1f5a4581csgl000.jpg",
"path": "uploads/yh/1/2018-04-27/",
"oldname": "斯巴魯.jpg",
"size": "0.385M",
"type": "image/jpeg",
"ext": "jpg"
}
接口名稱: 查看耗材證件 getHczjImg
請(qǐng)求URL: http://172.16.1.135:8888/api/ky/getHczjImg
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| path | string | 圖片路徑 |
請(qǐng)求參數(shù)實(shí)例:path: uploads/yh/1/2018-04-27/5ae2c1f5a4581csgl000.jpg
返回值:
修改接口名稱: 新增耗材字典 AddSuppliesDictionary
請(qǐng)求URL: http://172.16.1.135:8888/api/ky/AddSuppliesDictionary
請(qǐng)求參數(shù)(只對(duì)接口新增的字段說明):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| Action | string | 請(qǐng)求行為 | 新增:Add 編輯:edit |
| hczj | array | 耗材證件數(shù)組 | |
| hczj_id | int | 耗材證件id | 編輯時(shí)需要有值 |
| fjlj | string | 上傳的圖片路徑 | |
| hczj_yxqs | string | DATE | |
| hczj_yxqe | string | DATE | |
| hczj_status | int | 證件狀態(tài) | 1啟用 2停用 |
參數(shù)示例:
SuppliesName: 醫(yī)用防護(hù)服
RegistrationDocumentNumber:
GenericName: 醫(yī)用防護(hù)服
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)8_@X.png
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
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/GetSuppliesDictionaryDetail?SuppliesDictionaryID=12472
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| path | string | 圖片路徑 |
返回值:
{
"data": {
"SuppliesDictionaryID": 12472,
"SuppliesName": "醫(yī)用防護(hù)服",
"RegistrationDocumentNumber": "",
"GenericName": "醫(yī)用防護(hù)服",
"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": "南洋康健實(shí)業(yè)公司",
"hcflmc": "普通耗材",
"Sfbm": "undefined"
},
"enclosure": [
{
"md5": "5ae2c37fa17b9sbzd000.png",
"ywjm": "KZ5TV}COJW[WSDE}31)8_@X.png",
"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"
}
]
}
接口名稱: 修改耗材證件狀態(tài) isStatus
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/isStatus?hczj_id=2&status=2
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| hczj_id | int | 證件ID | |
| status | int | 狀態(tài) | 1-啟用 2-停用 |
返回值:
{
"errcode": 200,
"errmsg": "編輯成功"
}
修改表
ALTER TABLE `test1-25`.`suppliesdictionaryt`
ADD COLUMN `zj_status` TINYINT(1) DEFAULT 1 NOT NULL COMMENT '耗材證件狀態(tài),1-正常,2-過期,3-缺失' AFTER `HcUid`;
ALTER TABLE `test1-25`.`suppliesdictionaryt`
CHANGE `zj_status` `zj_status` TINYINT(1) DEFAULT 1 NOT NULL COMMENT '耗材證件狀態(tài),1-缺失,2-過期,3-正常';
導(dǎo)入耗材 importHcList
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/importHcList
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| UserID | int | 用戶ID | |
| file | object | 上傳的文件對(duì)象 |
返回值:
{
"errcode": 200,
"errmsg": "導(dǎo)入成功"
}
新增耗材--發(fā)送消息 sendcode
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/sendcode?HospitalID=1&SuppliesDictionaryID=203000009
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| SuppliesDictionaryID | int | 耗材字典ID |
返回值:
{
"errcode": 200,
"errmsg": "發(fā)送失敗"
}
獲取耗材名稱 第三類 HcmcList
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/HcmcList?HospitalID=1&page=1&limit=10
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| Page | int | 醫(yī)院ID | |
| Limit | int | 醫(yī)院ID | |
| hcflid | int | HcflList接口中:選中的分類ID | |
| SuppliesClassificationID | int | 選中的分類ID |
返回值:
{
"total": 15,
"data": [
{
"SuppliesClassificationID": 111,
"SuppliesClassificationOddNumber": "01",
"ClassificationName": "測(cè)試分類4",
"PreSuppliesClassification": 109,
"levelStatus": 3
},
...
{
"SuppliesClassificationID": 143,
"SuppliesClassificationOddNumber": "600200020001",
"ClassificationName": "外科小手術(shù)-1",
"PreSuppliesClassification": 142,
"levelStatus": 3
}
]
}
獲取耗材分類 第二類 HcflList
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/HcflList?HospitalID=1&page=1&limit=10
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| Page | int | 醫(yī)院ID | |
| Limit | int | 醫(yī)院ID | |
| SuppliesClassificationID | int | 選中的分類ID |
返回值:
{
"total": 15,
"data": [
{
"SuppliesClassificationID": 111,
"SuppliesClassificationOddNumber": "01",
"ClassificationName": "測(cè)試分類4",
"PreSuppliesClassification": 109,
"levelStatus": 3
},
...
{
"SuppliesClassificationID": 143,
"SuppliesClassificationOddNumber": "600200020001",
"ClassificationName": "外科小手術(shù)-1",
"PreSuppliesClassification": 142,
"levelStatus": 3
}
]
}
批量修改醫(yī)保編號(hào)和價(jià)格 modifyData
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/modifyData
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| SuppliesClassificationID | int | 耗材分類第三類id | |
| ManufacturerID | int | 生產(chǎn)廠家 | |
| price | int | 要修改的價(jià)格 | |
| ybbh | int | 要修改的醫(yī)保編號(hào) |
返回值:
{
"errcode": 200,
"errmsg": "修改成功"
}
獲取科室出庫查詢 GetDepartmentOutputList
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/GetDepartmentOutputList?DepartmentID=303&Page=1&Limit=10
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| Page | int | 頁碼 | |
| Limit | int | 每頁顯示數(shù)量 | |
| LeadingBeginDate | date | 領(lǐng)用開始日期 | |
| LeadingEndDate | date | 領(lǐng)用結(jié)束日期 | |
| DepartmentID | string | 領(lǐng)用科室名稱 |
返回值說明:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| total | int | 數(shù)量 | |
| data | array | 數(shù)據(jù)列表 | |
| SuppliesDictionaryID | int | 耗材字典ID | |
| LeadNumber | string | 領(lǐng)用數(shù)量 | |
| Price | string | 單價(jià) | |
| SuppliesBatch | string | 耗材批次 | |
| SuppliesValidity | string | 耗材有效期 | |
| SuppliesDictionaryOddNumber | string | 耗材字典編號(hào) | |
| SuppliesName | string | 耗材名稱 | |
| SpecificationModel | string | 耗材型號(hào) | |
| Unit | string | 耗材單位 | |
| LeadDate | string | 領(lǐng)用時(shí)間 | |
| 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": "定時(shí)鐘",
"SpecificationModel": "1",
"ManufacturerName": null,
"Unit": "只",
"SuppliesStockID": 800,
"Amout": "260.0000"
}
]
}
獲取單機(jī)設(shè)備使用率查詢 GetAssetsUseRateList
請(qǐng)求類型:GET
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| Page | int | 頁碼 | |
| Limit | int | 每頁顯示數(shù)量 | |
| AssetsID | date | 設(shè)備ID | |
| AssetsName | date | 設(shè)備名稱 | |
| DepartmentID | string | 科室名稱ID | |
| DepartmentName | string | 科室名稱 | |
| BeginDate | string | 查詢時(shí)間 | |
| isdc | string | 是否導(dǎo)出 | 值為1則導(dǎo)出,否則為空 |
返回值說明:
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| total | int | 數(shù)量 | |
| data | array | 數(shù)據(jù)列表 | |
| DepartmentName | string | 科室名稱 | |
| AssetsID | int | 設(shè)備ID | |
| AssetsName | string | 設(shè)備名稱 | |
| AssetsNumber | string | 設(shè)備編號(hào) | |
| AssetsPrice | string | 設(shè)備原值 | |
| cb | string | 成本 | |
| sr | string | 收入 | |
| lr | string | 利潤(rùn) | |
| hbl | string | 回報(bào)率 | |
| yzj | string | 月折舊 |
返回值示例:
{
"total": 15,
"data": [
{
"AssetsID": 6067,
"DepartmentName": "MRI室",
"AssetsName": "磁共振成像系統(tǒng)",
"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": "內(nèi)窺鏡室",
"AssetsName": "內(nèi)窺鏡:胃鏡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"
}
]
}
計(jì)量臺(tái)賬導(dǎo)入 importMeasurementledgert
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/importMeasurementledgert
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| UserID | int | 用戶ID | |
| file | 對(duì)象 | 要導(dǎo)入的文件 |
返回值:
{
"errcode": 200,
"errmsg": "修改成功"
}
導(dǎo)入計(jì)量檢測(cè)結(jié)果 importMetrologyInspection
請(qǐng)求URL:http://172.16.1.135:8888/api/ky/importMetrologyInspection
請(qǐng)求類型:POST
請(qǐng)求參數(shù):
| 參數(shù) | 類型 | 描述 | 備注 |
|---|---|---|---|
| HospitalID | int | 醫(yī)院ID | |
| UserID | int | 用戶ID | |
| file | 對(duì)象 | 要導(dǎo)入的文件 |
返回值:
{
"errcode": 200,
"errmsg": "修改成功"
}
note
http://172.16.1.135:8888/api/ky/GetDepartmentOutputList?DepartmentID=303&Page=1&Limit=10
ALTER TABLE `ky0503`.`suppliesclassificationt`
ADD COLUMN `levelStatus` TINYINT DEFAULT 1 NOT NULL COMMENT '耗材等級(jí)狀態(tài)1-一級(jí),2-二級(jí),3-三級(jí)' 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--領(lǐng)用科室id' AFTER `EditTime`;
ALTER TABLE `ky0601`.`maintenanceimplementationt`
CHANGE `MaintenancePrice` `MaintenancePrice` DECIMAL(18,4) DEFAULT 0 NOT NULL COMMENT '保養(yǎng)費(fèi)用';
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 '附件相對(duì)路徑',
`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='用戶簽名附件表'