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

修改日历

上级 02d0be13
.agment-box {
height: 100%;
background: #fff;
overflow: hidden;
padding: 20px;
border-radius: 6px;
flex: 3.8;
}
.agment-box-left {
flex: 1;
height: 100%;
padding: 20px;
margin-left: 12px;
background: #fff;
border-radius: 6px;
}
.agment-left-con {
margin-top: 70px;
background: #f0f2f5;
height: auto;
padding: 20px;
overflow: hidden;
border-radius: 8px;
}
.agment-head {
border-radius: 5px;
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
.agment-head-name {
font-size: 20px;
color: #02120f;
font-weight: 600;
}
.agment-head-phone {
font-size: 18px;
margin-left: 16px;
}
.agment-hospital {
color: #89888b;
font-size: 16px;
margin-top: 14px;
line-height: 24px;
}
.agment-hospital-ks {
margin-top: 8px;
}
.agment-head-title {
font-size: 14px;
color: #02120f;
margin-top: 19px;
}
.agment-head-priority {
padding-top: 20px;
display: flex;
justify-content: space-between;
align-items: center;
.item {
width: 42px;
height: 32px;
border: 1px solid #d9d9d9;
border-radius: 8px;
text-align: center;
line-height: 32px;
cursor: pointer;
}
.active {
color: #fff;
background: #0d9078;
border: none;
}
}
.agment-left-button {
margin-top: 34px;
display: flex;
justify-content: space-around;
}
/deep/.fc-timegrid-event {
border-radius: 1px !important;
}
/deep/thead .fc-scroller-harness {
background: #fcfbff;
}
/deep/.fc-col-header-cell-cushion {
color: #333;
height: 45px;
line-height: 45px;
}
/deep/.fc .fc-highlight {
background: transparent;
}
/deep/.fc-header-toolbar {
position: absolute;
right: 0;
top: 25px;
width: 20%;
display: flex;
}
/deep/.fc-toolbar-title {
font-size: 6px;
}
/deep/.fc-button-primary {
background: #fff;
color: #02120f;
border-color: #d9d9d9;
border-radius: 8px;
padding: 1.3px 5px;
}
/deep/.fc-button-primary:hover {
background: #fff;
color: #02120f;
}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
clearable clearable
> >
<el-option <el-option
v-for="(item,index) of createList" v-for="(item, index) of createList"
:key="index" :key="index"
:label="item" :label="item"
:value="item" :value="item"
...@@ -142,7 +142,14 @@ ...@@ -142,7 +142,14 @@
</template> </template>
<script> <script>
import { getFirstLevelLable, childLabelList, workQuery, switchOpen, workInStep, getLevel} from '@/api/serviceSchedule'; import {
getFirstLevelLable,
childLabelList,
workQuery,
switchOpen,
workInStep,
getLevel,
} from '@/api/serviceSchedule';
import { SERVICESCHEDUle_TABLE } from '@/utils/GeneralData/serviceSchedule-table'; import { SERVICESCHEDUle_TABLE } from '@/utils/GeneralData/serviceSchedule-table';
import TableServiceSchedule from '@/components/list/table-serviceSchedule'; import TableServiceSchedule from '@/components/list/table-serviceSchedule';
import NewScheduling from '../diagnosis-admin/modal/newScheduling.vue'; import NewScheduling from '../diagnosis-admin/modal/newScheduling.vue';
...@@ -164,36 +171,36 @@ ...@@ -164,36 +171,36 @@
departmentId: '', departmentId: '',
createType: '', createType: '',
idNamePhone: '', idNamePhone: '',
ScheduleStatus:'', ScheduleStatus: '',
startRangeTime:'', startRangeTime: '',
endRangeTime:'', endRangeTime: '',
serviceOpen:'', serviceOpen: '',
pageSize: 15, pageSize: 15,
pageNo: 1, pageNo: 1,
sort:'', sort: '',
createRangeTime:[] createRangeTime: [],
}, },
ScheduleStatusList:[ ScheduleStatusList: [
{ {
value:'已排班', value: '已排班',
id:1 id: 1,
}, },
{ {
value:'未排班', value: '未排班',
id:2 id: 2,
}, },
], ],
serviceOpenList:[ serviceOpenList: [
{ {
value:'开通', value: '开通',
id:1 id: 1,
}, },
{ {
value:'未开通', value: '未开通',
id:2 id: 2,
}, },
], ],
createList:[], createList: [],
interfaceOptions: [], interfaceOptions: [],
createRangeTime: [], createRangeTime: [],
pickerOptions: { pickerOptions: {
...@@ -202,18 +209,18 @@ ...@@ -202,18 +209,18 @@
}, },
}, },
ScheduleListShow: true, ScheduleListShow: true,
showTableData:SERVICESCHEDUle_TABLE, showTableData: SERVICESCHEDUle_TABLE,
tableData:[], tableData: [],
loading: false, loading: false,
newCreateList:[], newCreateList: [],
// newCreateObj:{} // newCreateObj:{}
}; };
}, },
watch: {}, watch: {},
created() { created() {
this.getFirstLevelLable(); this.getFirstLevelLable();
this.getLevel(); this.getLevel();
this.search(); this.search();
}, },
methods: { methods: {
// 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据 // 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据
...@@ -261,16 +268,22 @@ ...@@ -261,16 +268,22 @@
const params = { const params = {
departmentId: this.searchParam.departmentId || null, departmentId: this.searchParam.departmentId || null,
workStatus: String(this.searchParam.ScheduleStatus) || null, workStatus: String(this.searchParam.ScheduleStatus) || null,
startTime: this.searchParam.createRangeTime.length > 0 ? this.searchParam.createRangeTime[0] : null, startTime:
endTime: this.searchParam.createRangeTime.length > 0 ? this.searchParam.createRangeTime[1] : null, this.searchParam.createRangeTime.length > 0
? this.searchParam.createRangeTime[0]
: null,
endTime:
this.searchParam.createRangeTime.length > 0
? this.searchParam.createRangeTime[1]
: null,
condition: this.searchParam.idNamePhone || null, condition: this.searchParam.idNamePhone || null,
level: this.searchParam.createType || null, level: this.searchParam.createType || null,
sort:this.searchParam.sort || null, sort: this.searchParam.sort || null,
serviceOpen: String(this.searchParam.serviceOpen) || null, serviceOpen: String(this.searchParam.serviceOpen) || null,
pageNo: this.searchParam.pageNo, pageNo: this.searchParam.pageNo,
pageSize: this.searchParam.pageSize, pageSize: this.searchParam.pageSize,
}; };
workQuery(params).then(res => { workQuery(params).then((res) => {
this.loading = false; this.loading = false;
if (res.code === '000000') { if (res.code === '000000') {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
...@@ -291,18 +304,17 @@ ...@@ -291,18 +304,17 @@
changeSwitch(value, val) { changeSwitch(value, val) {
console.log(value, val, '12321'); console.log(value, val, '12321');
switchOpen({ switchOpen({
id:val.id, id: val.id,
switchOpen:val.delivery ? '1' : '2' switchOpen: val.delivery ? '1' : '2',
}).then(res => { }).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
console.log(res); console.log(res);
this.search(); this.search();
} }
}); });
}, },
searchInStep() { searchInStep() {
workInStep().then(res => { workInStep().then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.search(); this.search();
} }
...@@ -317,14 +329,14 @@ ...@@ -317,14 +329,14 @@
this.search(); this.search();
}, },
getLevel() { getLevel() {
getLevel().then(res => { getLevel().then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
console.log(res, 'getLevel'); console.log(res, 'getLevel');
this.createList = res.data || []; this.createList = res.data || [];
this.createList.forEach(item => { this.createList.forEach((item) => {
const newCreateObj = { const newCreateObj = {
value:'', value: '',
text:'' text: '',
}; };
newCreateObj.value = item; newCreateObj.value = item;
newCreateObj.text = item; newCreateObj.text = item;
...@@ -338,7 +350,7 @@ ...@@ -338,7 +350,7 @@
console.log(data, 'data'); console.log(data, 'data');
if (data.prop === '"modifiedTime"' && data.order === 'descending') { if (data.prop === '"modifiedTime"' && data.order === 'descending') {
this.searchParam.sort = '1'; this.searchParam.sort = '1';
} else{ } else {
this.searchParam.sort = '2'; this.searchParam.sort = '2';
} }
this.search(); this.search();
...@@ -346,7 +358,7 @@ ...@@ -346,7 +358,7 @@
addSchedule(value, val) { addSchedule(value, val) {
console.log(value, val, 'value,val'); console.log(value, val, 'value,val');
this.ScheduleListShow = false; this.ScheduleListShow = false;
} },
}, },
}; };
</script> </script>
...@@ -365,7 +377,6 @@ ...@@ -365,7 +377,6 @@
.serviceSchedule-containerInfo { .serviceSchedule-containerInfo {
position: relative; position: relative;
min-width: 1200px; min-width: 1200px;
background: #ffffff;
height: 73px; height: 73px;
border-radius: 8px; border-radius: 8px;
display: flex; display: flex;
...@@ -400,35 +411,34 @@ ...@@ -400,35 +411,34 @@
display: flex; display: flex;
align-items: center; align-items: center;
} }
.synchro-btn-icon{ .synchro-btn-icon {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: absolute; position: absolute;
right: 20px; right: 20px;
.synchro-btn{ .synchro-btn {
width: 110px; width: 110px;
height: 32px; height: 32px;
border-radius: 18px; border-radius: 18px;
border: 1px solid #0D9078; border: 1px solid #0d9078;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #FFFFFF; background: #ffffff;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #0D9078; color: #0d9078;
} }
.el-icon-s-question{ .el-icon-s-question {
margin-left:10px; margin-left: 10px;
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
} }
} }
.serviceSchedule-table{ .serviceSchedule-table {
min-width: 1200px; min-width: 1200px;
padding-top: 15px; padding-top: 15px;
} }
...@@ -445,12 +455,11 @@ ...@@ -445,12 +455,11 @@
width: 100%; width: 100%;
padding: 0 14px; padding: 0 14px;
.serviceSchedule-containerInfo { .serviceSchedule-containerInfo {
background: #ffffff;
border-radius: 8px; border-radius: 8px;
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 21px 18px 20px 18px; //padding: 21px 18px 20px 18px;
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册