提交 a6fdd0bb 编写于 作者: zhongyao.qiao's avatar zhongyao.qiao

Merge branch 'feature/qiao' into 'release'

Feature/qiao

See merge request !281
...@@ -17,4 +17,4 @@ VUE_APP_IS_LOCAL=true ...@@ -17,4 +17,4 @@ VUE_APP_IS_LOCAL=true
VUE_APP_APPID=wxf4e66242d31c81c2 VUE_APP_APPID=wxf4e66242d31c81c2
#本地token #本地token
VUE_APP_TOKEN=D321743AA7464709A42053132F5D2F8D VUE_APP_TOKEN=B638EE700AD348B8B432E7DF53A48E87
...@@ -2,7 +2,7 @@ module.exports = { ...@@ -2,7 +2,7 @@ module.exports = {
root: true, root: true,
parserOptions: { parserOptions: {
parser: 'babel-eslint', parser: 'babel-eslint',
sourceType: 'module' sourceType: 'module',
}, },
env: { env: {
browser: true, browser: true,
...@@ -12,42 +12,60 @@ module.exports = { ...@@ -12,42 +12,60 @@ module.exports = {
extends: ['plugin:vue/recommended', 'eslint:recommended'], extends: ['plugin:vue/recommended', 'eslint:recommended'],
// 全局变量 // 全局变量
globals: { globals: {
'gdp': true, gdp: true,
}, },
// add your custom rules here // add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue //it is base on https://github.com/vuejs/eslint-config-vue
rules: { rules: {
'no-console': 0, 'no-console': 0,
'no-debugger': 0, 'no-debugger': 0,
'comma-spacing': [2, { // 控制逗号前面没有空格,后面必须有空格 'comma-spacing': [
'before': false, 2,
'after': true {
}], // 控制逗号前面没有空格,后面必须有空格
'arrow-spacing': [2, { // 要求箭头函数前后有空格 before: false,
'before': true, after: true,
'after': true },
}], ],
'no-multi-spaces': 2,// 禁止使用多个空格, 'arrow-spacing': [
'no-spaced-func': 2,// 禁止 function 标识符和括号之间出现空格,this.getList () 报错 2,
'semi-spacing': [2, {// 强制分号之前不允许有空格 {
'before': false, // 要求箭头函数前后有空格
'after': true before: true,
}], after: true,
'space-infix-ops': 2,// 要求操作符前后必须有空格: 2 + 3 2 === 2 3 > 2 },
],
'no-multi-spaces': 2, // 禁止使用多个空格,
'no-spaced-func': 2, // 禁止 function 标识符和括号之间出现空格,this.getList () 报错
'semi-spacing': [
2,
{
// 强制分号之前不允许有空格
before: false,
after: true,
},
],
'space-infix-ops': 2, // 要求操作符前后必须有空格: 2 + 3 2 === 2 3 > 2
'spaced-comment': [2, 'always'], // 强制在注释中 // 或 /* 使用一致的空格 'spaced-comment': [2, 'always'], // 强制在注释中 // 或 /* 使用一致的空格
'array-bracket-spacing': [2, 'never'],// 指定数组的元素之间要以空格隔开(, 后面), never参数:[ 之后和 ] 之前不能带空格,always参数:[ 之后和 ] 之前必须带空格 'array-bracket-spacing': [2, 'never'], // 指定数组的元素之间要以空格隔开(, 后面), never参数:[ 之后和 ] 之前不能带空格,always参数:[ 之后和 ] 之前必须带空格
"space-before-blocks": 2, // if/function等的大括号之前需要有空格 'space-before-blocks': 2, // if/function等的大括号之前需要有空格
"vue/script-indent": 'off', 'vue/script-indent': 'off',
'no-undef-init': 2,// 禁止将变量初始化为 undefined,保存时会将let a = undefined变成let a 'no-undef-init': 2, // 禁止将变量初始化为 undefined,保存时会将let a = undefined变成let a
'semi': [2, 'always'],//强制结尾必须有分号; semi: [2, 'always'], //强制结尾必须有分号;
'prefer-const': 2,// 要求使用 const 声明那些声明后不再被修改的变量 'prefer-const': 2, // 要求使用 const 声明那些声明后不再被修改的变量
'quotes': [2, 'single'],//js中强制使用单引号 quotes: [2, 'single'], //js中强制使用单引号
'no-multiple-empty-lines': [2, {// 不允许多个空行,最多一行 'no-multiple-empty-lines': [
'max': 1 2,
}], {
'vue/order-in-components': ['error', { // 不允许多个空行,最多一行
'order': [ max: 1,
},
],
'vue/order-in-components': [
'error',
{
order: [
'el', 'el',
'name', 'name',
'parent', 'parent',
...@@ -65,11 +83,14 @@ module.exports = { ...@@ -65,11 +83,14 @@ module.exports = {
'LIFECYCLE_HOOKS', 'LIFECYCLE_HOOKS',
'methods', 'methods',
['template', 'render'], ['template', 'render'],
'renderError' 'renderError',
] ],
}], },
'vue/attributes-order': ['error', { ],
'order': [ 'vue/attributes-order': [
'error',
{
order: [
'DEFINITION', 'DEFINITION',
'LIST_RENDERING', 'LIST_RENDERING',
'CONDITIONALS', 'CONDITIONALS',
...@@ -80,8 +101,9 @@ module.exports = { ...@@ -80,8 +101,9 @@ module.exports = {
'OTHER_DIRECTIVES', 'OTHER_DIRECTIVES',
'OTHER_ATTR', 'OTHER_ATTR',
'EVENTS', 'EVENTS',
'CONTENT' 'CONTENT',
] ],
}], },
} ],
} },
};
...@@ -401,6 +401,15 @@ ...@@ -401,6 +401,15 @@
<el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> --> </el-select> -->
</el-form-item> </el-form-item>
<el-form-item label="助诊医生地区">
<el-input
:value="`${formData.userProvince || ''}${formData.userCity || ''}${
formData.userCounty || ''
}${formData.userTown || ''}`"
class="set-width"
disabled
/>
</el-form-item>
<el-form-item label="助诊医生所在机构"> <el-form-item label="助诊医生所在机构">
<el-input <el-input
v-model="formData.userHospital" v-model="formData.userHospital"
...@@ -484,6 +493,15 @@ ...@@ -484,6 +493,15 @@
<el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> --> </el-select> -->
</el-form-item> </el-form-item>
<el-form-item label="接诊医生地区">
<el-input
:value="`${formData.doctorProvince || ''}${
formData.doctorCity || ''
}${formData.doctorCounty || ''}${formData.doctorTown || ''}`"
class="set-width"
disabled
/>
</el-form-item>
<el-form-item label="接诊医生所在机构"> <el-form-item label="接诊医生所在机构">
<el-input <el-input
v-model="formData.doctorHospital" v-model="formData.doctorHospital"
...@@ -963,32 +981,32 @@ ...@@ -963,32 +981,32 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
diagnoseUpdate, diagnoseUpdate,
getAdminDiagnose, getAdminDiagnose,
getDiagnoseLog, getDiagnoseLog,
getDoctorList, getDoctorList,
} from '@/api/diagnosis'; } from '@/api/diagnosis';
import uploadImg from '@/components/editor/upload-img'; import uploadImg from '@/components/editor/upload-img';
import uploadMusic from '@/components/editor/upload-music'; import uploadMusic from '@/components/editor/upload-music';
import { import {
CAR_LIST, CAR_LIST,
D_S_LIST, D_S_LIST,
FOLLW_LIST, FOLLW_LIST,
PAY_LIST, PAY_LIST,
RELATION_LIST, RELATION_LIST,
SEX_LIST, SEX_LIST,
SOURCE_LIST, SOURCE_LIST,
STATUS_LIST, STATUS_LIST,
TYPE_LIST, TYPE_LIST,
} from '@/utils/constants'; } from '@/utils/constants';
import { getBirth } from '@/utils/index'; import { getBirth } from '@/utils/index';
const PAY_TYPE = { const PAY_TYPE = {
1: '自动付款', 1: '自动付款',
2: '手动付款', 2: '手动付款',
}; };
export default { export default {
components: { components: {
uploadImg, uploadImg,
uploadMusic, uploadMusic,
...@@ -1444,7 +1462,7 @@ import { getBirth } from '@/utils/index'; ...@@ -1444,7 +1462,7 @@ import { getBirth } from '@/utils/index';
window.open(item.url); window.open(item.url);
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.diagnosis-list-content { .diagnosis-list-content {
......
...@@ -146,20 +146,20 @@ ...@@ -146,20 +146,20 @@
</div> </div>
</template> </template>
<script> <script>
import dayjs from 'dayjs'; import FullCalendar from '@fullcalendar/vue';
import FullCalendar from '@fullcalendar/vue'; import dayGridPlugin from '@fullcalendar/daygrid';
import dayGridPlugin from '@fullcalendar/daygrid'; import interactionPlugin from '@fullcalendar/interaction';
import timeGridPlugin from '@fullcalendar/timegrid'; import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction'; import {
import {
dutyRosterQuery, dutyRosterQuery,
saveDutyRoster,
getLevel,
getDoctorInfo, getDoctorInfo,
saveLevelAndDayCount, getLevel,
getLevelAndDayCount, getLevelAndDayCount,
} from '@/api/serviceSchedule'; saveDutyRoster,
export default { saveLevelAndDayCount,
} from '@/api/serviceSchedule';
import dayjs from 'dayjs';
export default {
name: 'Scheduing', name: 'Scheduing',
components: { components: {
FullCalendar, FullCalendar,
...@@ -227,8 +227,8 @@ ...@@ -227,8 +227,8 @@
expandRows: true, expandRows: true,
slotMinWidth: 50, slotMinWidth: 50,
slotDuration: '01:00:00', slotDuration: '01:00:00',
slotMinTime: '09:00', slotMinTime: '01:00',
slotMaxTime: '21:00', slotMaxTime: '23:00',
slotLabelInterval: '', slotLabelInterval: '',
scrollTime: false, scrollTime: false,
slotLabelFormat: { slotLabelFormat: {
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
const day = dayjs(date).day(); const day = dayjs(date).day();
const dayDate = dayjs(date).date(); const dayDate = dayjs(date).date();
const dayFormat = dayjs(date).format('YYYY-MM-DD'); const dayFormat = dayjs(date).format('YYYY-MM-DD');
let selectDate = dayFormat + ' ' + '09:00:00'; let selectDate = dayFormat + ' ' + '01:00:00';
selectDate = dayjs(selectDate).unix(); selectDate = dayjs(selectDate).unix();
const nowDate = dayjs(new Date()).unix(); const nowDate = dayjs(new Date()).unix();
let isAddAllDay = true; let isAddAllDay = true;
...@@ -357,10 +357,7 @@ ...@@ -357,10 +357,7 @@
} }
if (isAddAllDay) { if (isAddAllDay) {
// 添加日期 // 添加日期
const selectAllDay = [ const selectAllDay = [{ startTime: '01:00:00', endTime: '23:00:00' }];
{ startTime: '09:00:00', endTime: '12:00:00' },
{ startTime: '13:00:00', endTime: '21:00:00' },
];
selectAllDay.forEach((item) => { selectAllDay.forEach((item) => {
const allDayData = {}; const allDayData = {};
allDayData.id = allDayData.id =
...@@ -458,7 +455,7 @@ ...@@ -458,7 +455,7 @@
} }
this.calendarOptions.events.push(selectDate); this.calendarOptions.events.push(selectDate);
}); });
this.limmitDateFun(); // this.limmitDateFun();
}, },
limmitDateFun() { limmitDateFun() {
for (let i = 0; i < 7; i++) { for (let i = 0; i < 7; i++) {
...@@ -466,6 +463,7 @@ ...@@ -466,6 +463,7 @@
const day = dayjs(this.getEveryDay) const day = dayjs(this.getEveryDay)
.add(i, 'day') .add(i, 'day')
.format('YYYY-MM-DD HH:mm:ss'); .format('YYYY-MM-DD HH:mm:ss');
limitTime.start = dayjs(day) limitTime.start = dayjs(day)
.add(12, 'hour') .add(12, 'hour')
.format('YYYY-MM-DD HH:mm:ss'); .format('YYYY-MM-DD HH:mm:ss');
...@@ -478,7 +476,6 @@ ...@@ -478,7 +476,6 @@
limitTime.editable = false; limitTime.editable = false;
this.calendarOptions.events.push(limitTime); this.calendarOptions.events.push(limitTime);
} }
console.log('obj', this.getEveryDay);
}, },
handleDatesSet(dataInfo) { handleDatesSet(dataInfo) {
this.getEveryDay = dayjs(dataInfo.start).format('YYYY-MM-DD HH:mm:ss'); this.getEveryDay = dayjs(dataInfo.start).format('YYYY-MM-DD HH:mm:ss');
...@@ -597,9 +594,8 @@ ...@@ -597,9 +594,8 @@
this.isDoIt = true; 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();
const startHour = dayjs(info.start).hour();
console.log(dayjs(info.start).format('YYYY-MM-DD HH:mm:ss')); console.log(dayjs(info.start).format('YYYY-MM-DD HH:mm:ss'));
if (startDay != endDay || startHour == 12) { if (startDay != endDay) {
return false; return false;
} }
const currentDate = new Date(); const currentDate = new Date();
...@@ -665,9 +661,10 @@ ...@@ -665,9 +661,10 @@
} }
}); });
console.log('saveParms=======', saveParms); console.log('saveParms=======', saveParms);
saveParms.list = lastData.filter((item) => { // saveParms.list = lastData.filter((item) => {
return item.startTime.split(' ')[1] !== '12:00:00'; // return item.startTime.split(' ')[1] !== '12:00:00';
}); // });
saveParms.list = lastData.slice(0);
saveDutyRoster(saveParms).then((res) => { saveDutyRoster(saveParms).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.loading = false; this.loading = false;
...@@ -690,7 +687,7 @@ ...@@ -690,7 +687,7 @@
} }
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -106,18 +106,18 @@ ...@@ -106,18 +106,18 @@
</div> </div>
</template> </template>
<script> <script>
import { departmentAll } from '@/api/diagnosis'; import { departmentAll } from '@/api/diagnosis';
import FullCalendar from '@fullcalendar/vue'; import {
import dayGridPlugin from '@fullcalendar/daygrid'; getPlatformUpper,
import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction';
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
import {
previewWork, previewWork,
setPlatformUpper, setPlatformUpper,
getPlatformUpper, } from '@/api/serviceSchedule';
} from '@/api/serviceSchedule'; import dayGridPlugin from '@fullcalendar/daygrid';
export default { import interactionPlugin from '@fullcalendar/interaction';
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import FullCalendar from '@fullcalendar/vue';
export default {
name: 'Index', name: 'Index',
components: { components: {
FullCalendar, FullCalendar,
...@@ -164,8 +164,8 @@ ...@@ -164,8 +164,8 @@
resourceAreaWidth: '5%', resourceAreaWidth: '5%',
allDaySlot: false, // 周,日视图时,all-day 不显示 allDaySlot: false, // 周,日视图时,all-day 不显示
slotDuration: '01:00:00', slotDuration: '01:00:00',
slotMinTime: '09:00', slotMinTime: '01:00',
slotMaxTime: '21:00', slotMaxTime: '23:00',
slotLabelInterval: '', slotLabelInterval: '',
scrollTime: false, scrollTime: false,
initialDate: '2021-10-31', initialDate: '2021-10-31',
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
}); });
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册