| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- // @ts-ignore
- import request from "@/utils/request";
- import requestV2 from "../../utils/request-v2";
- import {OpRecord} from "../../ts-type/op-record";
- let url = '/shouShuShenQing/'
- export function getOpRecord(patNo, times) {
- return requestV2({
- url: url + 'getOpRecord',
- method: 'get',
- params: {patNo, times}
- })
- }
- export function huoQuShouShu(data) {
- return request({
- url: url + 'huoQuShouShu',
- method: 'post',
- data
- })
- }
- export function huoQuShouShuMingCheng(patNo, times, name) {
- return request({
- url: url + 'huoQuShouShuMingCheng',
- method: 'get',
- params: {patNo, times, name}
- })
- }
- export function huoQuShouShuShenQingDaYing(patNo, times, recordId) {
- return request({
- url: url + 'huoQuShouShuShenQingDaYing',
- method: 'get',
- params: {patNo, times, recordId}
- })
- }
- export function fenLeiXiangQing(code, name, total, currentPage, pageSize) {
- return request({
- url: url + 'fenLeiXiangQing',
- method: 'get',
- params: {code, name, total, currentPage, pageSize}
- })
- }
- /**
- * 获取手术内容
- * @param name 名称
- * @param type 类型
- * @returns {*}
- */
- export function obtainSurgicalItems(name, type) {
- return request({
- url: url + 'obtainSurgicalItems',
- method: 'get',
- params: {name, type}
- })
- }
- export function getDoctorByOpCode(opCode: string) {
- return requestV2<{ code: string }[]>({
- url: url + 'getDoctorByOpCode',
- method: 'get',
- params: {opCode}
- })
- }
- export function huoQuShouShuBuWei(name) {
- return request({
- url: url + 'huoQuShouShuBuWei',
- method: 'get',
- params: {name}
- })
- }
- export function preoperativeDiscussion(patNo, times, count) {
- return request({
- url: url + 'preoperativeDiscussion',
- method: 'get',
- params: {patNo, times, count}
- })
- }
- export function shanChuShouShu(recordId) {
- return request({
- url: url + 'shanChuShouShu',
- method: 'get',
- params: {recordId}
- })
- }
- export function addASurgicalSite(name) {
- return request({
- url: url + 'addASurgicalSite',
- method: 'get',
- params: {name}
- })
- }
- export function removeSurgicalSite(code) {
- return request({
- url: url + 'removeSurgicalSite',
- method: 'get',
- params: {code}
- })
- }
- export function applicationOpRecord(data) {
- return requestV2({
- url: url + 'applicationOpRecord',
- method: 'post',
- data
- })
- }
- export async function getSurgeryDetail(patNo, times, recordId) {
- const res = await requestV2<{
- opRecord: OpRecord,
- list: {
- reqNo: number;
- code: string;
- name: string;
- type: number;
- sort: number
- }[]
- }>({
- url: url + "getSurgeryDetail",
- method: 'get',
- params: {patNo, times, recordId}
- })
- const diagList = []
- const opCodeList = []
- res.list.forEach(item => {
- if (item.type === 1) {
- opCodeList.push(item)
- } else {
- diagList.push(item)
- }
- })
- res.opRecord.diagList = diagList
- res.opRecord.opCodeList = opCodeList
- return res.opRecord
- }
|