master
lion 3 years ago
parent 21649936f7
commit abb17e7506

@ -48,10 +48,14 @@ export default {
align:'left', align:'left',
}, },
{ {
label:"id", label:"链接",
// width: 220, // width: 220,
prop:'id', prop:'id',
align:'left', align:'left',
formatter:(cell,data,value)=>{
return value? `/pages/active/active?activeTypeId=${value}`:''
}
// /pages/active/active?activeTypeId=2
// fixed:'left', // fixed:'left',
} }
] ]

@ -5,6 +5,9 @@
<slot> <slot>
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;"> <div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
<Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="关键字搜索" /> <Input v-model="select.keyword" 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>
</Select>
<Button type="primary" @click="getActivities"></Button> <Button type="primary" @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>
@ -45,7 +48,7 @@
<script> <script>
import {index,destroy} from "@/api/activity" import {index,destroy} from "@/api/activity"
import {index as getTypes} from "@/api/activityType"
import addActivity from '@/views/activity/component/addActivity' import addActivity from '@/views/activity/component/addActivity'
import checkActivity from '@/views/activity/component/checkActivity' import checkActivity from '@/views/activity/component/checkActivity'
import showActiveOrder from '@/views/activity/component/showActiveOrder' import showActiveOrder from '@/views/activity/component/showActiveOrder'
@ -61,7 +64,8 @@ export default {
select:{ select:{
pageSize:10, pageSize:10,
pageIndex:1, pageIndex:1,
keyword:"" keyword:"",
active_type_id:''
}, },
total:0, total:0,
@ -69,6 +73,7 @@ export default {
isShowOrder:false, isShowOrder:false,
activeId:null, activeId:null,
activeName:"", activeName:"",
activeTypeList:[],
table:[ table:[
{ {
label:"活动名称", label:"活动名称",
@ -78,17 +83,10 @@ export default {
fixed:'left', fixed:'left',
}, },
{ {
label:"提交商家", label:"活动分类",
width: 220, width: 180,
prop:'merchant_username', prop:'type.name',
align:'center', align:'center',
formatter:(cell,data,value)=>{
if(cell.merchant){
return cell.merchant.username
}else{
return ""
}
}
}, },
{ {
label:"状态", label:"状态",
@ -118,6 +116,19 @@ export default {
) )
} }
}, },
{
label:"提交商家",
width: 220,
prop:'merchant_username',
align:'center',
formatter:(cell,data,value)=>{
if(cell.merchant){
return cell.merchant.username
}else{
return ""
}
}
},
{ {
label:"活动关联方", label:"活动关联方",
width: 220, width: 220,
@ -274,12 +285,19 @@ export default {
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
}) })
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total
}, },
async getTypeList(){
const res = await getTypes({
rows:99,
page:1
})
this.activeTypeList = res
},
pageChange(e){ pageChange(e){
this.select.pageIndex = e this.select.pageIndex = e
this.getActivities() this.getActivities()
@ -324,6 +342,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.getTypeList()
this.getActivities() this.getActivities()
} }

@ -79,6 +79,16 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="12">
<div class="select-content-item">
<div class="select-content-item-label">预产期</div>
<div>
<el-date-picker v-model="select.due_date" type="date" value-format="yyyy-MM-dd"
placeholder="预产期" align="right">
</el-date-picker>
</div>
</div>
</el-col>
</el-row> </el-row>
@ -192,7 +202,8 @@
start_updated: "", start_updated: "",
end_updated: "", end_updated: "",
order_paid: false, order_paid: false,
order_item_id:"" order_item_id:"",
due_date:''
}, },
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
@ -529,6 +540,7 @@
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=""
this.select.due_date = ''
this.getOrders(); this.getOrders();
}, },
changeUpdateDate(e) { changeUpdateDate(e) {
@ -638,6 +650,20 @@
this.select.order_paid = order_paid; this.select.order_paid = order_paid;
} }
}, },
watch:{
'$route.query.user_id'(newval){
if(newval){
this.memberId = this.$route.query.user_id
this.getOrders()
}
},
'$route.query.order_item_id'(newval){
if(newval){
this.select.order_item_id = this.$route.query.order_item_id?this.$route.query.order_item_id:""
this.getOrders()
}
},
},
mounted() { mounted() {
this.memberId = this.$route.query.user_id this.memberId = this.$route.query.user_id
this.select.order_item_id = this.$route.query.order_item_id?this.$route.query.order_item_id:"" this.select.order_item_id = this.$route.query.order_item_id?this.$route.query.order_item_id:""

@ -52,8 +52,19 @@ export default {
}, },
{ {
prop:'id', prop:'id',
label:'id' label:'id',
} },
// {
// prop:'id',
// label:'',
// customFn:(row)=>{
// return (
// <div>
// {row.pid===0?`/packages/packageBuy/pages/shopList/shopList?product_type_id=${row.id}`:row.id}
// </div>)
// }
// }
] ]
} }
}, },

@ -107,9 +107,6 @@
}else{ }else{
product_type_list = this.select.product_type_list.join(",") product_type_list = this.select.product_type_list.join(",")
} }
console.log("this.select.product_type_list",this.select.product_type_list)
console.log("product_type_list",product_type_list)
// return
let url =`/admin/#/reports/userOrder?product_type_list=`+product_type_list+`&total_related_person=`+id+`&start_date=`+this.select.start_date+`&end_date=`+this.select.end_date let url =`/admin/#/reports/userOrder?product_type_list=`+product_type_list+`&total_related_person=`+id+`&start_date=`+this.select.start_date+`&end_date=`+this.select.end_date
let seeBuy = window.open(url, 'seeBuy','location=0') let seeBuy = window.open(url, 'seeBuy','location=0')
} }

@ -17,7 +17,10 @@
</div> </div>
<div class="selector-item"> <div class="selector-item">
<div class="selector-item__label">建卡医院</div> <div class="selector-item__label">建卡医院</div>
<Input clearable v-model="select.hospital" style="width: 100px;" placeholder="建卡医院搜索" /> <Select clearable v-model="select.hospital" style="width: 100px;" placeholder="选择建卡医院搜索">
<Option v-for="item in arrHospital" :value="item">{{item}}</Option>
</Select>
<!-- <Input clearable v-model="select.hospital" style="width: 100px;" placeholder="建卡医院搜索" /> -->
</div> </div>
<div class="selector-item"> <div class="selector-item">
<el-checkbox v-model="select.is_phone"></el-checkbox> <el-checkbox v-model="select.is_phone"></el-checkbox>
@ -102,6 +105,9 @@
product_pid:'', product_pid:'',
product_type_list:[] product_type_list:[]
}, },
arrHospital: ["市立医院", "苏大附一院", "苏大附二院","附二浒关院区", "中医院", "第五人民医院", "苏州市第七人民医院", "明基医院", "九龙医院", "娄葑医院",
"吴中人民医院", "甪直人民医院", "相城人民医院", "相城区第二人民医院", "吴江第一人民医院", "吴江第二人民医院", "盛泽医院", "其他"
],
dateRange:[], dateRange:[],
areas: ["吴中区", "吴江区", "姑苏区", "工业园区", "高新区", "相城区", "昆山", "常熟", "张家港", "太仓"], areas: ["吴中区", "吴江区", "姑苏区", "工业园区", "高新区", "相城区", "昆山", "常熟", "张家港", "太仓"],
@ -138,9 +144,11 @@
if(row.order_count<1){ if(row.order_count<1){
return return
} }
this.$router.push({ let url =`/admin/#/order/orderList?user_id=${row.id}`
path: `/order/orderList?user_id=${row.id}`, let seeBuy = window.open(url, 'seeBuy','location=0')
}) // this.$router.push({
// path: `/order/orderList?user_id=${row.id}`,
// })
} }
} }
} }
@ -178,9 +186,11 @@
on = { on = {
{ {
['click']: (e) => { ['click']: (e) => {
this.$router.push({ let url =`/admin/#/order/orderList?order_item_id=${k.items.id}`
path: `/order/orderList?order_item_id=${k.items.id}`, let seeBuy = window.open(url, 'seeBuy','location=0')
}) // this.$router.push({
// path: `/order/orderList?order_item_id=${k.items.id}`,
// })
} }
} }
}> }>

@ -17,7 +17,10 @@
</div> </div>
<div class="selector-item"> <div class="selector-item">
<div class="selector-item__label">建卡医院</div> <div class="selector-item__label">建卡医院</div>
<Input clearable v-model="select.hospital" style="width: 200px;" placeholder="建卡医院搜索" /> <Select clearable v-model="select.hospital" style="width: 100px;" placeholder="选择建卡医院搜索">
<Option v-for="item in arrHospital" :value="item">{{item}}</Option>
</Select>
<!-- <Input clearable v-model="select.hospital" style="width: 200px;" placeholder="建卡医院搜索" /> -->
</div> </div>
<div class="selector-item"> <div class="selector-item">
<el-checkbox v-model="select.is_phone"></el-checkbox> <el-checkbox v-model="select.is_phone"></el-checkbox>
@ -79,7 +82,9 @@
is_phone: true is_phone: true
}, },
areas: ["吴中区", "吴江区", "姑苏区", "工业园区", "高新区", "相城区", "昆山", "常熟", "张家港", "太仓"], areas: ["吴中区", "吴江区", "姑苏区", "工业园区", "高新区", "相城区", "昆山", "常熟", "张家港", "太仓"],
arrHospital: ["市立医院", "苏大附一院", "苏大附二院","附二浒关院区", "中医院", "第五人民医院", "苏州市第七人民医院", "明基医院", "九龙医院", "娄葑医院",
"吴中人民医院", "甪直人民医院", "相城人民医院", "相城区第二人民医院", "吴江第一人民医院", "吴江第二人民医院", "盛泽医院", "其他"
],
total: 0, total: 0,
list: [], list: [],
table: [{ table: [{

Loading…
Cancel
Save