master
xy 3 years ago
parent 696469407a
commit 0f133a3e71

@ -106,12 +106,12 @@ export default {
{ {
prop:'idcard', prop:'idcard',
label:'身份证号', label:'身份证号',
width: 170 width: 180
}, },
{ {
prop:'phone', prop:'phone',
label:'手机号', label:'手机号',
width: 140 width: 150
}, },
{ {
prop:'server_total', prop:'server_total',
@ -143,7 +143,6 @@ export default {
},`服务统计表${this.select.month}.xls`) },`服务统计表${this.select.month}.xls`)
}, },
datePick(){ datePick(){
if(this.datePickMode){ if(this.datePickMode){
this.select.year = '' this.select.year = ''

@ -58,9 +58,16 @@
@pageSizeChange="e => select.page_size = e" @pageSizeChange="e => select.page_size = e"
@pageIndexChange="e => {select.page = e;getCustomerList()}"> @pageIndexChange="e => {select.page = e;getCustomerList()}">
<template v-slot:btns> <template v-slot:btns>
<el-table-column :width="70" align="center" label="操作" fixed="right" header-align="center"> <el-table-column :width="130" align="center" label="操作" fixed="right" header-align="center">
<template v-slot:default="scope"> <template v-slot:default="scope">
<Button size="small" type="primary" ghost @click="schedule(scope.row)"></Button> <Button size="small" type="primary" ghost @click="schedule(scope.row)" style="margin-right: 6px;">排班</Button>
<Poptip
transfer
confirm
title="确认要删除订单?"
@on-ok="deleteOrder(scope.row)">
<Button size="small" type="primary" ghost>删除</Button>
</Poptip>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -82,6 +89,7 @@ import {getList as productIndex} from '@/api/product'
import {getList as nurseIndex} from '@/api/worker' import {getList as nurseIndex} from '@/api/worker'
import {getparameter} from '@/api/system/dictionary' import {getparameter} from '@/api/system/dictionary'
import {getList as typeIndex} from '@/api/productType' import {getList as typeIndex} from '@/api/productType'
import {destroy} from '@/api/order'
import addSchedule from "@/views/schedule/component/addSchedule"; import addSchedule from "@/views/schedule/component/addSchedule";
@ -189,6 +197,14 @@ export default {
this.levels = res.detail this.levels = res.detail
}, },
deleteOrder(row){
console.log(row)
destroy(row.id).then(res => {
this.$successMessage('destroy', '订单')
this.getCustomerList()
})
},
async getCustomerList() { async getCustomerList() {
const res = await customerList(this.select) const res = await customerList(this.select)
this.total = res.list.total this.total = res.list.total

@ -0,0 +1,109 @@
<template>
<div>
<div ref="lxHeader">
<lx-header icon="md-apps" style="margin-bottom: 10px; border: 0px; margin-top: 15px" text="护工排班视图">
<div slot="content"></div>
<slot>
<div style="display: flex">
<Input v-model="select.keyword" placeholder="关键字搜索" style="width: 200px; margin-right: 10px"/>
<Button style="margin-right: 10px" type="primary" @click="select.page = 1,getCustomerList()">查询</Button>
<xy-selectors @search="select.page = 1,getList()" @reset="reset">
<template>
<div class="select-item">
<div class="select-item__label">业务板块</div>
<el-select size="small" v-model="select.product_type_id" placeholder="选择业务板块" clearable style="width: 200px">
<el-option v-for="item in types" :value="item.id" :label="item.name" :key="item.id"></el-option>
</el-select>
</div>
<div class="select-item">
<div class="select-item__label">所属区域</div>
<el-select size="small" v-model="select.area_id" placeholder="选择区域" clearable style="width: 200px">
<el-option v-for="item in areas" :value="item.id" :label="item.value" :key="item.id"></el-option>
</el-select>
</div>
<div class="select-item">
<div class="select-item__label">所属月份</div>
<el-date-picker
size="small"
v-model="select.month"
type="month"
value-format="yyyy-MM"
placeholder="选择月"
style="width: 200px">
</el-date-picker>
</div>
<div class="select-item">
<div class="select-item__label">状态</div>
<el-radio v-model="select.schedule_status" :label="1"></el-radio>
<el-radio v-model="select.schedule_status" :label="2"></el-radio>
<el-radio v-model="select.schedule_status" label=""></el-radio>
</div>
</template>
</xy-selectors>
</div>
</slot>
</lx-header>
</div>
<xy-table
:default-expand-all="false"
:list="list"
:table-item="table"
:total="total">
</xy-table>
</div>
</template>
<script>
export default {
data() {
return {
select: {
page: 1,
page_size: 10,
keyword:'',
product_type_id:'',
area_id:'',
month:'',
schedule_status:'',
},
customers:[],
products:[],
levels:[],
orders:[],
accounts:[],
types:[],
areas:[],
list:[],
total:0,
table:[]
}
},
methods: {
async getList(){
},
reset(){
}
},
computed: {},
}
</script>
<style scoped lang="scss">
.select-item{
display: flex;
align-items: center;
&__label{
width: 100px;
padding: 10px 10px;
}
}
</style>
Loading…
Cancel
Save