|
@@ -134,6 +134,7 @@ import * as API_task from '@/api/ncs_task'
|
|
|
import * as API_Remark from '@/api/ncs_remark'
|
|
|
import { unixToDate } from '@/utils/Foundation'
|
|
|
import * as API_CallingList from '@/api/ncs_interaction'
|
|
|
+const uiVersion = domain.uiVersion
|
|
|
|
|
|
export default {
|
|
|
name: 'Index',
|
|
@@ -191,19 +192,22 @@ export default {
|
|
|
param.fixedCondition = ' part_id = ' + this.$store.getters.partId
|
|
|
const _this = this
|
|
|
_this.todayList = []
|
|
|
+ let data = []
|
|
|
API_task.getList(param).then(response => {
|
|
|
const today = (new Date().setHours(0, 0, 0, 0)) / 1000
|
|
|
const todayend = (today * 1000 + 86400000) / 1000
|
|
|
response.data.forEach((item, index) => {
|
|
|
if (item.task_plan_time >= today && item.task_plan_time < todayend) {
|
|
|
- _this.todayList.push(item)
|
|
|
+ data.push(item)
|
|
|
}
|
|
|
})
|
|
|
+ _this.todayList = data
|
|
|
})
|
|
|
},
|
|
|
getNoteList() {
|
|
|
const param = this.MixinClone(this.params)
|
|
|
param.fixedCondition = ' type = 2 and part_id=' + this.$store.getters.partId
|
|
|
+ param.page_size = 20
|
|
|
const _this = this
|
|
|
API_Remark.getRemarks(param).then(response => {
|
|
|
_this.noteList = response.data
|
|
@@ -212,6 +216,7 @@ export default {
|
|
|
getRemarkList() {
|
|
|
const param = this.MixinClone(this.params)
|
|
|
param.fixedCondition = ' type = 1 and part_id=' + this.$store.getters.partId
|
|
|
+ param.page_size = 20
|
|
|
const _this = this
|
|
|
API_Remark.getRemarks(param).then(response => {
|
|
|
_this.remarkList = response.data
|
|
@@ -235,6 +240,9 @@ export default {
|
|
|
this.isShowArticle = true
|
|
|
},
|
|
|
goMove(path) {
|
|
|
+ if (path === 'customerList') {
|
|
|
+ uiVersion === 1 ? path = 'patientManagement' : uiVersion === 2 ? path = 'customerManager' : path = 'elderlyCareManager'
|
|
|
+ }
|
|
|
this.$router.push({ name: path })
|
|
|
},
|
|
|
formatterFromName(row, column, cellValue) {
|