公共退款界面

This commit is contained in:
wanyongkang
2020-12-03 16:58:00 +08:00
parent f578d412c1
commit 9c1f1b13b3

View File

@@ -39,55 +39,60 @@
</template>
<script>
export default {
name: "treeTable",
name: 'treeTable',
components: {
phoneHide: () => import("@/components/common/phonehide")
phoneHide: () => import('@/components/common/phonehide')
},
data() {
data () {
return {
loading: false,
retData: { TotalCount: 0, Data: [] },
dateRange:[],
products:[],
dateRange: [],
products: [],
searchModel: {
OrderTypes:[],
OrderTypes: [],
PageIndex: 1,
keyWord: "",
ProductIds:null,
keyWord: '',
ProductIds: null
}
}
},
created() {
this.$store.commit("setCurrentNav","订单管理>>退款订单")
this.get();
this.getProduct();
created () {
this.$store.commit('setCurrentNav', '订单管理>>退款订单')
this.get()
this.getProduct()
},
methods: {
search(){
this.searchModel.PageIndex=1;
this.get();
search () {
this.searchModel.PageIndex = 1
this.get()
},
get() {
get () {
if (this.dateRange && this.dateRange.length == 2) {
this.searchModel.Btime = this.dateRange[0];
this.searchModel.Etime = this.dateRange[1];
this.searchModel.Btime = this.dateRange[0]
this.searchModel.Etime = this.dateRange[1]
}
this.$api.get("course/v1/order/OpenRefundOrders", this.searchModel).then(res => {
this.retData = res;
});
// this.$api.get('course/v1/order/OpenRefundOrders', this.searchModel).then(res => {
// this.retData = res
// })
this.$api.get(this.$api.phpURL + 'order/OpenRefund/getList', this.searchModel).then(res => {
this.retData.Data = res.data.list
this.retData.TotalCount = res.data.count
})
},
getProduct() {
this.loading = true;
this.$api.get("course/v1/product/OpenPage", this.searchModel).then(res => {
this.products = res.Data;
this.loading = false;
});
getProduct () {
// this.$api.get('course/v1/product/OpenPage', this.searchModel).then(res => {
// this.products = res.Data
// })
this.$api.get(this.$api.phpURL + 'product/OpenProduct/getOpenList').then(res => {
this.products = res.Data = res.data
})
},
dataExport(){
this.$api.getDownloadFile("/course/v1/order/OpenExportRefundOrders", this.searchModel);
dataExport () {
this.$api.getDownloadFile('/course/v1/order/OpenExportRefundOrders', this.searchModel)
}
}
};
}
</script>
<style scoped>
.red{