lion 3 years ago
parent abb17e7506
commit d4fde70a86

@ -39,3 +39,12 @@ export function fine(data){
data data
}) })
} }
export function changeremark(data){
return request({
method:'post',
url:'/api/admin/finance/modify-remark',
data
})
}

@ -8,7 +8,11 @@
<Select clearable v-model="select.active_type_id" style="width: 200px;margin-right: 10px;" placeholder="选择活动分类"> <Select clearable v-model="select.active_type_id" style="width: 200px;margin-right: 10px;" placeholder="选择活动分类">
<Option v-for="item in activeTypeList" :value="item.id">{{item.name}}</Option> <Option v-for="item in activeTypeList" :value="item.id">{{item.name}}</Option>
</Select> </Select>
<Button type="primary" @click="getActivities"></Button> <el-date-picker style='height:30px' @change="changeActiveDate" v-model="select.activeDate" type="daterange"
:picker-options="pickerOptions" value-format="yyyy-MM-dd" range-separator="至"
start-placeholder="活动开始日期" end-placeholder="活动结束日期" align="right">
</el-date-picker>
<Button type="primary" style="margin-left: 10px;" @click="getActivities"></Button>
<Button icon="ios-add" type="primary" style="margin-left: 10px;" @click="$refs['addActivity'].isShow = true,$refs['addActivity'].type = 'add'">添加</Button> <Button icon="ios-add" type="primary" style="margin-left: 10px;" @click="$refs['addActivity'].isShow = true,$refs['addActivity'].type = 'add'">添加</Button>
</div> </div>
</slot> </slot>
@ -65,9 +69,38 @@ export default {
pageSize:10, pageSize:10,
pageIndex:1, pageIndex:1,
keyword:"", keyword:"",
active_type_id:'' active_type_id:'',
activeDate:[],
start_date:'',
end_date:""
},
pickerOptions: {
shortcuts: [{
text: '最近一周',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近一个月',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近三个月',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]);
}
}]
}, },
total:0, total:0,
list:[], list:[],
isShowOrder:false, isShowOrder:false,
@ -281,12 +314,23 @@ export default {
} }
}, },
methods: { methods: {
changeActiveDate(e){
if(e){
this.select.start_date = e[0];
this.select.end_date = e[1];
}else{
this.select.start_date = "";
this.select.end_date = "";
}
},
async getActivities(){ async getActivities(){
const res = await index({ const res = await index({
page_size:this.select.pageSize, page_size:this.select.pageSize,
page:this.select.pageIndex, page:this.select.pageIndex,
keyword:this.select.keyword, keyword:this.select.keyword,
active_type_id:this.select.active_type_id active_type_id:this.select.active_type_id,
start_date:this.select.start_date,
end_date:this.select.end_date,
}) })
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total
@ -349,5 +393,11 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped>
/deep/ .el-date-editor .el-range__icon{
line-height: 25px!important;
}
/deep/ .el-date-editor .el-range-separator{
line-height: 25px!important;
}
</style> </style>

@ -68,7 +68,7 @@
rules: { rules: {
title: [{ title: [{
required: true, required: true,
message: '请输入课程名称' message: '请选择主题'
}] }]
}, },
activeList: [], activeList: [],
@ -86,10 +86,10 @@
}, },
}, },
{ {
label: "课程名称", label: "关联活动",
width: 240, width: 240,
customFn: (row) => { customFn: (row) => {
return ( <el-select placeholder = "请选择课程" return ( <el-select placeholder = "请选择关联活动"
style = "width: 240px" style = "width: 240px"
v-model = { v-model = {
row.name row.name
@ -111,14 +111,28 @@
}) })
} </el-select> } </el-select>
); );
}, },
}, },
{ {
label: "课程时间", label: "主题",
minWidth: 240,
customFn: (row, scope) => {
return ( <el-input placeholder = "请填写主题"
type = "text"
v-model = {
row.theme
} >
</el-input>
);
},
},
{
label: "时间",
minWidth: 180, minWidth: 180,
customFn: (row, scope) => { customFn: (row, scope) => {
return ( <el-input placeholder = "请填写课程时间" return ( <el-input placeholder = "请填写时间"
type = "text" type = "text"
v-model = { v-model = {
row.time row.time
@ -128,10 +142,10 @@
}, },
}, },
{ {
label: "地址", label: "课地址",
minWidth: 240, minWidth: 240,
customFn: (row, scope) => { customFn: (row, scope) => {
return ( <el-input placeholder = "请填写地址" return ( <el-input placeholder = "请填写课地址"
type = "text" type = "text"
v-model = { v-model = {
row.address row.address
@ -141,10 +155,10 @@
}, },
}, },
{ {
label: "主讲", label: "主讲",
minWidth: 180, minWidth: 180,
customFn: (row, scope) => { customFn: (row, scope) => {
return ( <el-input placeholder = "请填写主讲" return ( <el-input placeholder = "请填写主讲"
type = "text" type = "text"
v-model = { v-model = {
row.speaker row.speaker
@ -198,13 +212,13 @@
}, },
changeActive(e, row) { changeActive(e, row) {
row.name = e.active_name row.name = e.active_name
row.theme = e.active_name
row.time = e.start_date + ' ' + e.start_time row.time = e.start_date + ' ' + e.start_time
// //
row.address = e.address row.address = e.address
row.speaker = '' row.speaker = ''
row.link = '/pages/active/detail?id=' + e.id row.link = '/pages/active/detail?id=' + e.id
console.log("e", e)
}, },
returnDate(date, time) { returnDate(date, time) {
let str = '' let str = ''

@ -0,0 +1,66 @@
<!---->
<template>
<div>
<xy-dialog :form="form" :rules="rules" ref="dialog" type="form" :is-show.sync="isShow" title="修改备注" @submit="submit">
<template v-slot:comment>
<div class="xy-table-item">
<div class="xy-table-item-label">
备注
</div>
<div class="xy-table-item-content">
<el-input type="textarea" :autosize="{minRows:2}" placeholder="请输入备注" clearable v-model="form.comment" style="width: 300px;"></el-input>
</div>
</div>
</template>
</xy-dialog>
</div>
</template>
<script>
import {changeremark} from "@/api/finance"
import { Message } from 'element-ui'
export default {
data() {
return {
isShow:false,
id:'',
form:{
comment:''
},
rules:{
}
}
},
methods: {
submit(){
changeremark({
id:this.id,
comment:this.form.comment
}).then(res => {
Message({
type:'success',
message:'修改成功'
})
this.isShow = false
this.$emit('refresh')
})
return
}
},
watch:{
isShow(val){
if(val){
}else{
this.$refs['dialog'].reset()
this.id=''
}
}
}
}
</script>
<style scoped lang="scss">
</style>

@ -32,9 +32,10 @@
<div class="select-content-item"> <div class="select-content-item">
<!-- <div class="select-content-item-label">日期</div> --> <!-- <div class="select-content-item-label">日期</div> -->
<div> <div>
<el-date-picker style="width: 260px;margin-right: 10px;height:32px;line-height:32px" @change="changeCreatedDate" v-model="createdDate" type="daterange" <el-date-picker style="width: 260px;margin-right: 10px;height:32px;line-height:32px"
:picker-options="pickerOptions" value-format="yyyy-MM-dd" range-separator="至" @change="changeCreatedDate" v-model="createdDate" type="daterange" :picker-options="pickerOptions"
start-placeholder="开始日期" end-placeholder="结束日期" align="right"> value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
align="right">
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
@ -52,11 +53,17 @@
<xy-table :total="total" @pageSizeChange="e => select.pageSize = e" @pageIndexChange="pageChange" :list="list" <xy-table :total="total" @pageSizeChange="e => select.pageSize = e" @pageIndexChange="pageChange" :list="list"
:table-item="table"> :table-item="table">
<template v-slot:btns> <template v-slot:btns>
<div></div> <el-table-column fixed="right" label="操作" width="100" header-align="center">
<template slot-scope="scope">
<Button type="primary" size="small" ghost style="margin-left: 10px;"
@click="changeRemark(scope.row.id)">修改备注</Button>
</template>
</el-table-column>
</template> </template>
</xy-table> </xy-table>
<rechargeFine ref="rechargeFine" :merchants="merchants" @refresh="getFlow"></rechargeFine> <rechargeFine ref="rechargeFine" :merchants="merchants" @refresh="getFlow"></rechargeFine>
<editRemark ref="editRemark" @refresh="getFlow"></editRemark>
</div> </div>
</template> </template>
@ -73,10 +80,12 @@
} from '@/utils/downloadRequest' } from '@/utils/downloadRequest'
import rechargeFine from '@/views/finance/component/rechargeFine' import rechargeFine from '@/views/finance/component/rechargeFine'
import editRemark from '@/views/finance/component/editRemark'
export default { export default {
components: { components: {
rechargeFine rechargeFine,
editRemark
}, },
data() { data() {
return { return {
@ -191,7 +200,11 @@ pickerOptions: {
}, },
'财务流水.xlsx') '财务流水.xlsx')
}, },
changeRemark(id){
console.log(id)
this.$refs['editRemark'].isShow = true
this.$refs['editRemark'].id = id
},
pageChange(e) { pageChange(e) {
this.select.pageIndex = e this.select.pageIndex = e
this.getFlow() this.getFlow()
@ -229,9 +242,11 @@ pickerOptions: {
/deep/ .el-date-editor .el-range__icon { /deep/ .el-date-editor .el-range__icon {
line-height: 25px; line-height: 25px;
} }
/deep/ .el-date-editor .el-range-separator { /deep/ .el-date-editor .el-range-separator {
line-height: 25px; line-height: 25px;
} }
/deep/ .el-date-editor .el-range__close-icon { /deep/ .el-date-editor .el-range__close-icon {
line-height: 25px; line-height: 25px;
} }
@ -242,10 +257,10 @@ pickerOptions: {
margin-bottom: 6px; margin-bottom: 6px;
} }
} }
// .select-content-item{ // .select-content-item{
// v::deep .el-date-editor .el-range__icon{ // v::deep .el-date-editor .el-range__icon{
// line-height: 25px; // line-height: 25px;
// } // }
// } // }
</style> </style>

@ -223,6 +223,8 @@ export default {
create_over:this.select.createDate[1], create_over:this.select.createDate[1],
page:this.select.pageIndex, page:this.select.pageIndex,
valid_time:this.select.isEffect, valid_time:this.select.isEffect,
sort:'sort',
sort_type:'ASC'
}) })
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total

@ -81,6 +81,18 @@ export default {
},{ },{
id:"OrderItemMerchantReturn", id:"OrderItemMerchantReturn",
value:"商家退回订单" value:"商家退回订单"
},{
id:"HalfMonthNoticeb",
value:"预产期半个月通知"
},{
id:"NextFollowTime",
value:"下次通知时间通知"
},{
id:"OffShelfTime",
value:"产品一个月下架通知"
},{
id:"ThreeDayNotice",
value:"预产期3天通知"
}], }],
total:0, total:0,
list:[], list:[],

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<Modal :width="60" title="订单日志" :value.sync="isShow" @on-visible-change="$emit('update:isShow',$event)" <Modal draggable :width="60" title="订单日志" :value.sync="isShow" @on-visible-change="$emit('update:isShow',$event)"
> >
<xy-table :is-page="false" :list="list" :table-item="table" :height="300"> <xy-table :is-page="false" :list="list" :table-item="table" :height="300">
<template v-slot:btns> <template v-slot:btns>

@ -83,8 +83,9 @@
<div class="select-content-item"> <div class="select-content-item">
<div class="select-content-item-label">预产期</div> <div class="select-content-item-label">预产期</div>
<div> <div>
<el-date-picker v-model="select.due_date" type="date" value-format="yyyy-MM-dd" <el-date-picker @change="changeDueDate" v-model="select.dueDate" type="daterange"
placeholder="预产期" align="right"> :picker-options="pickerOptions" value-format="yyyy-MM-dd" range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期" align="right">
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
@ -128,7 +129,7 @@
<xy-table :list="list" :table-item="table" :total="total" @pageSizeChange="e => {select.pageSize = e;searchOrder()}" <xy-table :list="list" :table-item="table" :total="total" @pageSizeChange="e => {select.pageSize = e;searchOrder()}"
@pageIndexChange="pageChange"> @pageIndexChange="pageChange">
<template v-slot:btns> <template v-slot:btns>
<el-table-column fixed="right" label="操作" width="400" header-align="center"> <el-table-column fixed="right" label="操作" width="320" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<actions :row="scope.row" @log="showLog(scope.row)" @refresh="getOrders"></actions> <actions :row="scope.row" @log="showLog(scope.row)" @refresh="getOrders"></actions>
<!-- <Button icon="ios-chatbubbles-outline" type="primary" style="margin-left: 10px;margin-bottom: 6px;" size="small" ghost>跟进</Button>--> <!-- <Button icon="ios-chatbubbles-outline" type="primary" style="margin-left: 10px;margin-bottom: 6px;" size="small" ghost>跟进</Button>-->
@ -195,10 +196,13 @@
createdDate: [], createdDate: [],
payDate: [], payDate: [],
updateDate: [], updateDate: [],
dueDate:[],
start_created: "", start_created: "",
end_created: "", end_created: "",
start_paid: "", start_paid: "",
end_paid: "", end_paid: "",
due_date_state : '',
due_date_end : '',
start_updated: "", start_updated: "",
end_updated: "", end_updated: "",
order_paid: false, order_paid: false,
@ -537,6 +541,8 @@
this.select.end_created = ''; this.select.end_created = '';
this.select.start_paid = ''; this.select.start_paid = '';
this.select.end_paid = ''; this.select.end_paid = '';
this.select.due_date_state = ''
this.select.due_date_end = ''
this.select.start_updated = ''; this.select.start_updated = '';
this.select.end_updated = ''; this.select.end_updated = '';
this.select.order_item_id="" this.select.order_item_id=""
@ -562,6 +568,15 @@
} }
}, },
changeDueDate(e){
if(e){
this.select.due_date_state = e[0]+' 00:00:00';
this.select.due_date_end = e[1]+' 23:59:59';
}else{
this.select.due_date_state = "";
this.select.due_date_end = "";
}
},
changeCreatedDate(e) { changeCreatedDate(e) {
console.log("date",e) console.log("date",e)
if(e){ if(e){

@ -16,11 +16,11 @@
<el-button style="margin-left:10px" type="primary" @click="getTotal"></el-button> <el-button style="margin-left:10px" type="primary" @click="getTotal"></el-button>
</div> </div>
<div class="totals"> <div class="totals">
<p><span>下单人数</span><span>{{list.add_total_members}}</span></p> <p><span>下单人数</span><span style=' color:#bf617c;cursor:pointer;text-decoration: underline;' @click='toReturnUser(6)'>{{list.add_total_members}}</span></p>
<p><span>下单订单数</span><span>{{list.add_total_order}}</span></p> <p><span>下单订单数</span><span>{{list.add_total_order}}</span></p>
<p><span>下单取消数</span><span>{{list.add_total_order_canceled}}</span></p> <p><span>下单取消数</span><span>{{list.add_total_order_canceled}}</span></p>
<p><span>下单完成数</span><span>{{list.add_total_order_finished}}</span></p> <p><span>下单完成数</span><span>{{list.add_total_order_finished}}</span></p>
<p><span>多板块下单人数</span><span style=' color:#bf617c;cursor:pointer;text-decoration: underline;' @click='toReturnUser(4)'>{{list.total_order_more_type_person}}</span></p> <p><span>多板块下单人数(不包含取消)</span><span style=' color:#bf617c;cursor:pointer;text-decoration: underline;' @click='toReturnUser(4)'>{{list.total_order_more_type_person}}</span></p>
</div> </div>
</div> </div>

@ -26,7 +26,7 @@
<el-checkbox v-model="select.is_phone"></el-checkbox> <el-checkbox v-model="select.is_phone"></el-checkbox>
</div> </div>
<div class="selector-item"> <div class="selector-item">
<div class="selector-item__label">下单查询</div> <div class="selector-item__label">支付查询</div>
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
@change='dateChange' @change='dateChange'
@ -94,7 +94,7 @@
keywords: "", keywords: "",
area: "", area: "",
hospital: "", hospital: "",
is_phone: true, is_phone: false,
create_time:'', create_time:'',
over_time:'', over_time:'',
order_count:'', order_count:'',
@ -302,7 +302,17 @@
keyword: this.select.keywords, keyword: this.select.keywords,
hospital: this.select.hospital, hospital: this.select.hospital,
area: this.select.area, area: this.select.area,
is_phone: this.select.is_phone ? 1 : "" is_phone: this.select.is_phone ? 1 : "",
create_time:this.select.create_time,
over_time:this.select.over_time,
write_off:this.select.write_off,
order_count:this.select.order_count,
total_related_person:this.select.total_related_person,
start_date:this.select.start_date,
end_date:this.select.end_date,
product_pid:this.select.product_pid,
product_type_list:this.select.product_type_list
}, '用户列表.xlsx') }, '用户列表.xlsx')
}, },
reloadUser(){ reloadUser(){

Loading…
Cancel
Save