提交 c88a4f0c 编写于 作者: xiaoping.di's avatar xiaoping.di

Merge branch 'release' into 'develop'

Release

See merge request com.pica.cloud.education.frontend/pica-admin-consultation!183
此差异已折叠。
...@@ -19,8 +19,10 @@ ...@@ -19,8 +19,10 @@
"tinypng": "pica-cli-service tinypng" "tinypng": "pica-cli-service tinypng"
}, },
"dependencies": { "dependencies": {
"@fullcalendar/core": "^5.10.0",
"@fullcalendar/daygrid": "^5.10.0", "@fullcalendar/daygrid": "^5.10.0",
"@fullcalendar/interaction": "^5.10.0", "@fullcalendar/interaction": "^5.10.0",
"@fullcalendar/resource-timegrid": "^5.10.0",
"@fullcalendar/timegrid": "^5.10.0", "@fullcalendar/timegrid": "^5.10.0",
"@fullcalendar/vue": "^5.10.0", "@fullcalendar/vue": "^5.10.0",
"axios": "^0.19.2", "axios": "^0.19.2",
......
...@@ -58,3 +58,10 @@ export const getDoctorInfo = async (data) => { ...@@ -58,3 +58,10 @@ export const getDoctorInfo = async (data) => {
method: 'post', method: 'post',
}); });
}; };
export const previewWork = async (data) => {
return request({
url: '/diagnose/doctor/work/previewWork',
method: 'post',
data: data,
});
};
src/assets/image/nothingData.png

77.8 KB | W: | H:

src/assets/image/nothingData.png

17.6 KB | W: | H:

src/assets/image/nothingData.png
src/assets/image/nothingData.png
src/assets/image/nothingData.png
src/assets/image/nothingData.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -74,6 +74,12 @@ const serviceSchedule = (r) => ...@@ -74,6 +74,12 @@ const serviceSchedule = (r) =>
() => r(require('@/views/IM/diagnosis-admin/addEditSchedule.vue')), () => r(require('@/views/IM/diagnosis-admin/addEditSchedule.vue')),
'addEditSchedule' 'addEditSchedule'
); );
const overviewScheduling = (r) =>
require.ensure(
[],
() => r(require('@/views/IM/diagnosis-admin/overviewScheduling.vue')),
'overviewScheduling'
);
const administrators = (r) => const administrators = (r) =>
require.ensure( require.ensure(
[], [],
...@@ -144,6 +150,10 @@ const routerConfig = [ ...@@ -144,6 +150,10 @@ const routerConfig = [
path: '/addEditSchedule', path: '/addEditSchedule',
component: addEditSchedule, component: addEditSchedule,
}, },
{
path: '/overviewScheduling',
component: overviewScheduling,
},
{ {
path: '/administrators', path: '/administrators',
component: administrators, component: administrators,
...@@ -161,4 +171,4 @@ if (process.env.VUE_APP_ENV == 'uat') { ...@@ -161,4 +171,4 @@ if (process.env.VUE_APP_ENV == 'uat') {
routerConfig: routerConfig, routerConfig: routerConfig,
}; };
handleAllRouter(routerInfo); handleAllRouter(routerInfo);
} }
\ No newline at end of file
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
type="primary" type="primary"
round round
style="width: 110px" style="width: 110px"
@click="saveDoctoreScheduling" @click="saveDoctoreScheduling(1)"
> >
保存 保存
</el-button> </el-button>
...@@ -191,14 +191,20 @@ ...@@ -191,14 +191,20 @@
workingTicketVisible: false, // 工作表票详情页面 workingTicketVisible: false, // 工作表票详情页面
scrollerHeight: 0, scrollerHeight: 0,
loading: false, loading: false,
isDoIt:false
}; };
}, },
watch: { watch: {
week(newV) { week(newV, oldV) {
console.log(newV, oldV, 'newV, oldV');
if (this.haveWeek.indexOf(newV) == -1) { if (this.haveWeek.indexOf(newV) == -1) {
this.haveWeek.push(newV); this.haveWeek.push(newV);
this.handleInitSearch(); this.handleInitSearch();
} }
if(newV !== oldV) {
this.handleInitSearch();
this.saveDoctoreScheduling(2, oldV);
}
}, },
}, },
created() { created() {
...@@ -220,6 +226,7 @@ ...@@ -220,6 +226,7 @@
}); });
}, },
mounted() { mounted() {
console.log(this.calendarOptions.events, 'this.calendarOptions.events');
this.scrollerHeight = this.$refs.agment.clientHeight + 'px'; this.scrollerHeight = this.$refs.agment.clientHeight + 'px';
// console.log(this.$refs.agment.clientHeight, 'this.$refs.agment.offsetHeight;'); // console.log(this.$refs.agment.clientHeight, 'this.$refs.agment.offsetHeight;');
this.init(); this.init();
...@@ -246,7 +253,8 @@ ...@@ -246,7 +253,8 @@
}, },
handleInitSearch(isReset) { handleInitSearch(isReset) {
if (isReset) { if (isReset) {
this.calendarOptions.events = []; this.calendarOptions.events = this.calendarOptions.events.filter((v) => (v.week !== this.week));
console.log(this.calendarOptions.events);
} }
const objParms = {}; const objParms = {};
objParms.doctorId = this.doctorId; objParms.doctorId = this.doctorId;
...@@ -255,6 +263,7 @@ ...@@ -255,6 +263,7 @@
// this.currentIndex = this.schedulingTypeValue.level; // this.currentIndex = this.schedulingTypeValue.level;
dutyRosterQuery(objParms).then((res) => { dutyRosterQuery(objParms).then((res) => {
if (res.code == '000000') { if (res.code == '000000') {
this.calendarOptions.events = [];
this.handleInitData(res.data); this.handleInitData(res.data);
} else { } else {
this.$toast(res.message); this.$toast(res.message);
...@@ -265,12 +274,14 @@ ...@@ -265,12 +274,14 @@
var newDate = null; var newDate = null;
if (this.schedulingType != 3) { if (this.schedulingType != 3) {
newDate = [].concat(data.noAcceptList); newDate = [].concat(data.noAcceptList);
console.log(newDate, 'newDate');
} else { } else {
var acceptList = []; var acceptList = [];
data.acceptList.forEach((item) => { data.acceptList.forEach((item) => {
item.type = 88; item.type = 88;
acceptList.push(item); acceptList.push(item);
}); });
console.log(data.acceptList, 'data.acceptList');
newDate = [].concat(acceptList, data.noAcceptList); newDate = [].concat(acceptList, data.noAcceptList);
} }
// const keyAll = ['end', 'endStr', 'id', 'start', 'startStr']; // const keyAll = ['end', 'endStr', 'id', 'start', 'startStr'];
...@@ -296,7 +307,7 @@ ...@@ -296,7 +307,7 @@
const oneHour = 1 * 60 * 60 * 1000 * 24; const oneHour = 1 * 60 * 60 * 1000 * 24;
const timeDifference = (cz / oneHour) | 0; const timeDifference = (cz / oneHour) | 0;
const headObj = this.calendarOptions.customButtons.myCustomButton; const headObj = this.calendarOptions.customButtons.myCustomButton;
if (timeDifference > 0 && timeDifference < 7) { if (timeDifference >= 0 && timeDifference < 7) {
// 过去 // 过去
this.week = 1; this.week = 1;
headObj.text = '本周'; headObj.text = '本周';
...@@ -337,7 +348,9 @@ ...@@ -337,7 +348,9 @@
.then((_) => { .then((_) => {
console.log(_); console.log(_);
const index = this.getIdDeleteData(event.event.id); const index = this.getIdDeleteData(event.event.id);
return this.calendarOptions.events.splice(index, 1); this.isDoIt = true;
this.calendarOptions.events.splice(index, 1);
console.log(this.calendarOptions.events);
}) })
.catch((_) => { .catch((_) => {
console.log(_); console.log(_);
...@@ -368,6 +381,7 @@ ...@@ -368,6 +381,7 @@
this.calendarOptions.events.push(dataObj); this.calendarOptions.events.push(dataObj);
}, },
selectAllow(info) { selectAllow(info) {
this.isDoIt = true;
const startDay = new Date(info.start).getDay(); const startDay = new Date(info.start).getDay();
const endDay = new Date(info.end).getDay(); const endDay = new Date(info.end).getDay();
if (startDay != endDay) { if (startDay != endDay) {
...@@ -408,42 +422,53 @@ ...@@ -408,42 +422,53 @@
return indexObj; return indexObj;
}, },
handlePriority(index) { handlePriority(index) {
this.isDoIt = true;
this.currentIndex = index; this.currentIndex = index;
}, },
resetDoctoreScheduling() { resetDoctoreScheduling() {
this.handleInitSearch(true); this.handleInitSearch(true);
}, },
saveDoctoreScheduling() { saveDoctoreScheduling(type, weekV = 0) {
this.loading = true; if(this.isDoIt) {
const objParms = {}; console.log(this.week, 'this.week', weekV);
objParms.week = this.week; this.loading = true;
objParms.workId = this.schedulingTypeValue.id; const objParms = {};
objParms.level = this.currentIndex; objParms.week = weekV ? weekV : this.week;
objParms.list = []; objParms.workId = this.schedulingTypeValue.id;
const data = this.calendarOptions.events; objParms.level = this.currentIndex;
data.forEach((item) => { objParms.list = [];
if (item.week == this.week) { const data = this.calendarOptions.events;
const obj = {}; console.log(data, 'data');
obj.startTime = this.dateFormat('YYYY-mm-dd HH:MM:SS', item.start); data.forEach((item) => {
obj.endTime = this.dateFormat('YYYY-mm-dd HH:MM:SS', item.end); console.log(item.week == (weekV ? weekV : this.week));
objParms.list.push(obj); if (item.week == (weekV ? weekV : this.week)) {
} console.log(item.week, this.week, weekV, 'this.week');
}); const obj = {};
saveDutyRoster(objParms).then((res) => { obj.startTime = this.dateFormat('YYYY-mm-dd HH:MM:SS', item.start);
if (res.code === '000000') { obj.endTime = this.dateFormat('YYYY-mm-dd HH:MM:SS', item.end);
// this.$toast(res.message); console.log(obj, 'obj');
// this.handleInitSearch(true); objParms.list.push(obj);
// this.$router.go(0); }
this.loading = false; });
this.$message({ saveDutyRoster(objParms).then((res) => {
message: '排班保存成功', if (res.code === '000000') {
type: 'success' // this.$toast(res.message);
}); // this.handleInitSearch(true);
} else { // this.$router.go(0);
// this.$toast(res.message); this.loading = false;
this.$message.error(res.message || '排班保存失败'); if(type == 1) {
} this.$message({
}); message: '排班保存成功',
type: 'success'
});
}
this.isDoIt = false;
} else {
// this.$toast(res.message);
this.$message.error(res.message || '排班保存失败');
}
});
}
}, },
dateFormat(fmt, date2) { dateFormat(fmt, date2) {
const date = new Date(date2); const date = new Date(date2);
......
此差异已折叠。
...@@ -71,7 +71,7 @@ module.exports = { ...@@ -71,7 +71,7 @@ module.exports = {
port: 8080, port: 8080,
proxy: { proxy: {
'/proxy': { '/proxy': {
target: 'https://test1-sc.yunqueyi.com/', target: 'https://dev-sc.yunqueyi.com/',
ws: false, ws: false,
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,
......
...@@ -1046,7 +1046,7 @@ ...@@ -1046,7 +1046,7 @@
dependencies: dependencies:
tslib "^2.1.0" tslib "^2.1.0"
"@fullcalendar/core@~5.10.0": "@fullcalendar/core@^5.10.0", "@fullcalendar/core@~5.10.0":
version "5.10.0" version "5.10.0"
resolved "http://192.168.110.93:4873/@fullcalendar%2fcore/-/core-5.10.0.tgz#5e8f46618bf45ddfb16827e68fe11dbd655d529f" resolved "http://192.168.110.93:4873/@fullcalendar%2fcore/-/core-5.10.0.tgz#5e8f46618bf45ddfb16827e68fe11dbd655d529f"
integrity sha1-Xo9GYYv0Xd+xaCfmj+EdvWVdUp8= integrity sha1-Xo9GYYv0Xd+xaCfmj+EdvWVdUp8=
...@@ -1071,7 +1071,47 @@ ...@@ -1071,7 +1071,47 @@
"@fullcalendar/common" "~5.10.0" "@fullcalendar/common" "~5.10.0"
tslib "^2.1.0" tslib "^2.1.0"
"@fullcalendar/timegrid@^5.10.0": "@fullcalendar/premium-common@~5.10.0":
version "5.10.0"
resolved "http://192.168.110.93:4873/@fullcalendar%2fpremium-common/-/premium-common-5.10.0.tgz#1abd26483243482eda26ffcf3d65e63d9e1cc64f"
integrity sha1-Gr0mSDJDSC7aJv/PPWXmPZ4cxk8=
dependencies:
"@fullcalendar/common" "~5.10.0"
tslib "^2.1.0"
"@fullcalendar/resource-common@~5.10.0":
version "5.10.0"
resolved "http://192.168.110.93:4873/@fullcalendar%2fresource-common/-/resource-common-5.10.0.tgz#fd40974d1b8540673617c6ac4a0df56eea17a6b6"
integrity sha1-/UCXTRuFQGc2F8asSg31buoXprY=
dependencies:
"@fullcalendar/common" "~5.10.0"
"@fullcalendar/premium-common" "~5.10.0"
tslib "^2.1.0"
"@fullcalendar/resource-daygrid@~5.10.0":
version "5.10.0"
resolved "http://192.168.110.93:4873/@fullcalendar%2fresource-daygrid/-/resource-daygrid-5.10.0.tgz#0ee59679e735f924164c1d208e5459bbaf3af920"
integrity sha1-DuWWeec1+SQWTB0gjlRZu686+SA=
dependencies:
"@fullcalendar/common" "~5.10.0"
"@fullcalendar/daygrid" "~5.10.0"
"@fullcalendar/premium-common" "~5.10.0"
"@fullcalendar/resource-common" "~5.10.0"
tslib "^2.1.0"
"@fullcalendar/resource-timegrid@^5.10.0":
version "5.10.0"
resolved "http://192.168.110.93:4873/@fullcalendar%2fresource-timegrid/-/resource-timegrid-5.10.0.tgz#bdf276bf163670097fbfd0664821822a8d4986f4"
integrity sha1-vfJ2vxY2cAl/v9BmSCGCKo1JhvQ=
dependencies:
"@fullcalendar/common" "~5.10.0"
"@fullcalendar/premium-common" "~5.10.0"
"@fullcalendar/resource-common" "~5.10.0"
"@fullcalendar/resource-daygrid" "~5.10.0"
"@fullcalendar/timegrid" "~5.10.0"
tslib "^2.1.0"
"@fullcalendar/timegrid@^5.10.0", "@fullcalendar/timegrid@~5.10.0":
version "5.10.0" version "5.10.0"
resolved "http://192.168.110.93:4873/@fullcalendar%2ftimegrid/-/timegrid-5.10.0.tgz#7177914bdc5a6c58ec4af851520b12eb8c480141" resolved "http://192.168.110.93:4873/@fullcalendar%2ftimegrid/-/timegrid-5.10.0.tgz#7177914bdc5a6c58ec4af851520b12eb8c480141"
integrity sha1-cXeRS9xabFjsSvhRUgsS64xIAUE= integrity sha1-cXeRS9xabFjsSvhRUgsS64xIAUE=
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册