master
xy 1 year ago
parent e4d75bcbac
commit d8e1d04b42

@ -244,7 +244,9 @@ export default {
span-method={this.spanMethod} span-method={this.spanMethod}
tree-props={treeProps} tree-props={treeProps}
fit={true} fit={true}
highlight-current-roll={true}
on={{ on={{
['row-click']: (row, column, event) => this.$emit('row-click', {row, column, event}),
['select']: selectClick, ['select']: selectClick,
['cell-click']: cellClick, ['cell-click']: cellClick,
['select-all']: selectAllClick, ['select-all']: selectAllClick,

@ -21,7 +21,7 @@ export async function download(url,method='get',info,filename){
url, url,
method, method,
responseType: 'blob', responseType: 'blob',
timeout:10000, timeout: 60000,
headers: { headers: {
Accept: 'application/json','Content-Type':'application/json; charset=utf-8', Accept: 'application/json','Content-Type':'application/json; charset=utf-8',
withCredentials: true, withCredentials: true,

@ -264,7 +264,7 @@
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<template v-slot:extraFormBottom> <template v-slot:extraFormBottom v-if="$store.state.user.myRoles.findIndex(i => i.name === '系统管理员') !== -1">
<div style="font-weight: 600;padding: 10px;">日志</div> <div style="font-weight: 600;padding: 10px;">日志</div>
<xy-table :is-page="false" :height="240" style="width: 100%" :list="log" :table-item="logTable"> <xy-table :is-page="false" :height="240" style="width: 100%" :list="log" :table-item="logTable">
<template v-slot:btns><div></div></template> <template v-slot:btns><div></div></template>

@ -34,7 +34,7 @@
:height="300" :height="300"
:is-page="false" :is-page="false"
:list="list" :list="list"
:table-item="table" :table-item="table.filter(i => i.prop === 'updated_at' ? $store.state.user.myRoles.findIndex(i => i.name === '系统管理员') !== -1 : true)"
> >
<template v-slot:btns> <template v-slot:btns>
<el-table-column <el-table-column

@ -168,6 +168,7 @@
:row-style="tableRowStyle" :row-style="tableRowStyle"
:default-expand-all="false" :default-expand-all="false"
:list="list" :list="list"
@row-click="rowClick"
:table-item="table" :table-item="table"
:total="total" :total="total"
@pageIndexChange=" @pageIndexChange="
@ -244,6 +245,7 @@ export default {
}, },
data() { data() {
return { return {
pickedRowId: '',
ways: [ ways: [
{ {
id: 1, id: 1,
@ -580,6 +582,9 @@ export default {
}; };
}, },
methods: { methods: {
rowClick({row, column, event}) {
this.pickedRowId = row.id
},
tableRowStyle({row, rowIndex}){ tableRowStyle({row, rowIndex}){
let selectTime = row.sku.reduce((pre,cur) => { let selectTime = row.sku.reduce((pre,cur) => {
return pre + Number(cur.time ?? 0) return pre + Number(cur.time ?? 0)
@ -599,6 +604,11 @@ export default {
'background':'rgb(253,165,122)' 'background':'rgb(253,165,122)'
} }
} }
if(row.id === this.pickedRowId) {
return {
'background':'rgba(220,239,250,0.93)'
}
}
}, },
pickYear(e) { pickYear(e) {
if (e) { if (e) {
@ -676,14 +686,9 @@ export default {
exports(){ exports(){
download('/api/admin/chart/schedule-list-log','get',{ download('/api/admin/chart/schedule-list-log','get',{
...this.select,
page: 1, page: 1,
page_size: 9999, page_size: 9999,
status:this.select.status,
nurse_name:this.select.nurse_name,
customer_name:this.select.customer_name,
address_name:this.select.address_name,
start_start_time: this.select.start_start_time,
end_start_time: this.select.end_start_time,
is_export:1 is_export:1
},`服务明细.xlsx`) },`服务明细.xlsx`)
}, },

@ -204,12 +204,13 @@ export default {
"/api/admin/customer/schedule_list_skus", "/api/admin/customer/schedule_list_skus",
"get", "get",
{ {
start_date: this.$moment(this.select.month) ...this.select,
.startOf("month") // start_date: this.$moment(this.select.month)
.format("YYYY-MM-DD"), // .startOf("month")
end_date: this.$moment(this.select.month) // .format("YYYY-MM-DD"),
.endOf("month") // end_date: this.$moment(this.select.month)
.format("YYYY-MM-DD"), // .endOf("month")
// .format("YYYY-MM-DD"),
page: 1, page: 1,
page_size: 9999, page_size: 9999,
is_export: 1, is_export: 1,

Loading…
Cancel
Save