123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- import request from '@/utils/request'
-
- export function getWeekPanels(t, patitionId) {
- return request({
- url: '/api/schedule/weekpanel?data=' + t + '&patitionid=' + patitionId,
- method: 'get'
- })
- }
-
- export function getWeekPanelsOne(t, patitionId) {
- return request({
- url: '/api/schedule/weekpanelone?data=' + t + '&patitionid=' + patitionId,
- method: 'get'
- })
- }
-
- export function getSchedules(params) {
- return request({
- url: '/api/schedule/schedules',
- method: 'get',
- params: params
- })
- }
-
- export function getSchedulesOne(params) {
- return request({
- url: '/api/schedule/schedulesone',
- method: 'get',
- params: params
- })
- }
-
- export function getSchedulesTwo(params) {
- return request({
- url: '/api/schedule/scheduletwo',
- method: 'get',
- params: params
- })
- }
-
- export function getSchedulesThree(params){
-
- return request({
- url:"/api/schedule/getschedulethreeone",
- method:"Get",
- params:params,
- })
- }
-
- export function getSchedulePatients(params) {
- return request({
- url: '/api/schedule/patients',
- method: 'get',
- params: params
- })
- }
-
- export function CreateSchedule(id, schedule) {
- return request({
- url: '/api/schedule/create?patient_id=' + id,
- method: 'Post',
- data: schedule
- })
- }
-
- export function CancelSchedule(id) {
- return request({
- url: '/api/schedule/delete?id=' + id,
- method: 'Delete'
- })
- }
-
- export function ChangeSchedule(id, schedule) {
- console.log('schedule', schedule)
- return request({
- url: '/api/schedule/change?id=' + id,
- method: 'Put',
- data: schedule
- })
- }
-
- export function GetPatientSchedules(id) {
- return request({
- url: '/api/patients/schedules?id=' + id,
- method: 'Get'
- })
- }
-
- export function GetWeekSchedulePrintInitData(date, type) {
- return request({
- url: '/api/schedule/print/initdata',
- method: 'get',
- params: {
- date: date
- }
- })
- }
-
- export function getUrgentScheduleInitData(params) {
- return request({
- url: '/api/schedule/urgentinit',
- method: 'Get',
- params: params
- })
- }
-
- export function getSearchResult(params) {
- return request({
- url: '/api/schedule/search',
- method: 'Get',
- params: params
- })
- }
-
- export function getScheduleWeekDay(params) {
- return request({
- url: '/api/schedule/week',
- method: 'Get',
- params: params
- })
- }
-
- export function exportSchedule(params, date) {
- return request({
- url: '/api/schedule/export?date=' + date,
- method: 'Post',
- data: params
- })
- }
-
- export function initDate() {
- return request({
- url: '/api/excel_date/init',
- method: 'Get'
- })
- }
-
- export function exportScheduleTemplate(params) {
- return request({
- url: '/api/schedule_template/export',
- method: 'Post',
- data: params
- })
- }
-
- export function getNextScheduleWeekDay(params) {
- return request({
- url: '/api/schedule/getnextscheduleweekday',
- method: 'get',
- params: params
- })
- }
-
- export function getNextScheduleWeekDayOne(params) {
- return request({
- url: '/api/schedule/getnextscheduleweekdayone',
- method: 'get',
- params: params
- })
- }
-
- export function getThreeWeekList(params) {
- return request({
- url: '/api/schedule/getthreeweeklist',
- method: 'get',
- params: params
- })
- }
-
- export function getAllZones(params) {
- return request({
- url: '/api/schedule/getallzones',
- method: 'get',
- params: params
- })
- }
-
- export function copyPatientSchedule(params) {
- return request({
- url: '/api/schedule/copypatientschedules',
- method: 'Get',
- params: params
- })
- }
-
- export function saveRemindPrint(params) {
- return request({
- url: '/api/schedule/saveremindprint',
- method: 'get',
- params: params
- })
- }
-
- export function getRemindPrintList(params) {
- return request({
- url: '/api/schedule/getremindprintlist',
- method: 'get',
- params: params
- })
- }
-
- export function getScheduleList(params) {
- return request({
- url: '/api/schedule/getbloodschedulelist',
- method: 'get',
- params: params
- })
- }
-
- export function getPrintList(params) {
- return request({
- url: '/api/schedule/getprintlist',
- method: 'Get',
- params: params
- })
- }
-
- export function getAllZoneList(params) {
- return request({
- url: '/api/schedule/getallzonelist',
- method: 'get',
- params: params
- })
- }
-
- export function getPatientSheduleCount(params) {
- return request({
- url: '/api/schedule/getpatientschedulecount',
- method: 'get',
- params: params
- })
- }
-
- export function postScheduleTemplate(params) {
- return request({
- url: '/api/schedule/postscheduletemplate',
- method: 'get',
- params: params
- })
- }
-
- export function getScheduleTemplate(params) {
- return request({
- url: '/api/schedule/getscheduletemplate',
- method: 'get',
- params: params
- })
- }
-
- export function getNextWeekPanels(params) {
- return request({
- url: '/api/schedule/getnextweekpanels',
- method: 'get',
- params: params
- })
- }
-
- export function synchroSchedule(params) {
- return request({
- url: '/api/schedule/synchroschedule',
- method: 'get',
- params: params
- })
- }
-
- export function getPatientScheduleTemplate(params) {
- return request({
- url: '/api/schedule/getpatientscheduletemplate',
- method: 'get',
- params: params
- })
- }
-
- export function getSolutionSchedule(params) {
- return request({
- url: '/api/schedule/getsolutionschedule',
- method: 'Get',
- params: params
- })
- }
-
-
-
- export function CancelScheduleTwo(id) {
- return request({
- url: '/api/schedule/delete_two?id=' + id,
- method: 'Delete'
- })
- }
-
- export function getScheduleConfig() {
- return request({
- url: '/api/schedule/config/get',
- method: 'Get'
- })
- }
-
- export function postScheduleConfig(params) {
- return request({
- url: '/api/schedule/config/commit',
- method: 'Post',
- params: params
-
- })
- }
-
-
- export function CreateScheduleTwo(id, schedule,id_two) {
- console.log("schedule",schedule)
- return request({
- url: '/api/schedule/create_two?patient_id=' + id+"&id_two="+id_two,
- method: 'Post',
- data: schedule
- })
- }
-
-
- export function ChangeScheduleTen(id,schedule){
-
- return request({
- url: '/api/schedule/changeschedule?id=' + id+"&bed_id="+schedule.bed_id+"&mode_id="+schedule.mode_id+"&schedule_type="+schedule.schedule_type,
- method: 'Put',
- data: schedule
- })
- }
-
- export function getNumberList(id,params){
-
- return request({
- url:"/api/schedule/getordernumber?id="+id,
- method:"Get",
- params:params
- })
- }
|