+
-
-
本月订单总数
+
diff --git a/src/views/order/orderList.vue b/src/views/order/orderList.vue
index 80f17a1..fdda7e9 100644
--- a/src/views/order/orderList.vue
+++ b/src/views/order/orderList.vue
@@ -60,7 +60,7 @@
- {{ scope.row.acctId }}
+ {{ scope.row.customerPhone }}
@@ -283,7 +283,7 @@ export default {
const searchParam = { ...this.page }
searchParam.pageSize = endIndex
searchParam.currentPage = this.output.startPage
- orderInfoApi.getByPage(searchParam).then(res => {
+ orderInfoApi.exportExcel(searchParam).then(res => {
const link = document.createElement('a')
// 创建Blob对象,设置文件类型
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
diff --git a/src/views/order/orderListDetail.vue b/src/views/order/orderListDetail.vue
index 96ec758..fc2abd4 100644
--- a/src/views/order/orderListDetail.vue
+++ b/src/views/order/orderListDetail.vue
@@ -6,7 +6,7 @@
{{ detailData.orderCode }}
- {{ detailData.acctId }}
+ {{ detailData.customerPhone }}
{{ detailData.integral }}
{{ detailData.createTime }}
{{ detailData.takeSiteName }}
@@ -112,7 +112,7 @@ export default {
case '0':
return '待支付'
case '1':
- return '已经发'
+ return '已支付'
case '2':
return '退款申请'
case '3':
diff --git a/src/views/product/productList/index.vue b/src/views/product/productList/index.vue
index fd7beed..eb4374e 100644
--- a/src/views/product/productList/index.vue
+++ b/src/views/product/productList/index.vue
@@ -41,8 +41,8 @@
-
-
+
+
-
-
-
+
+
+
批量上架
批量下架
@@ -128,7 +128,7 @@
- {{ scope.row.siteName }}
+ {{ scope.row.siteName || '暂无' }}
@@ -591,18 +591,20 @@ export default {
// 批量上下架
batchShelves(productStatus) {
let selected = this.$refs.table.selection
- if (selected&&selected.length>0){
- let selectedIds = selected.map(item=>item.id)
- productApi.batchShelves({
- list:selectedIds,
- productStatus:productStatus
- }).then(res=>{
- if (res.code===20000){
- this.$message.success(res.msg)
- this.getDataList()
- }
- })
- }else {
+ if (selected && selected.length > 0) {
+ let selectedIds = selected.map(item => item.id)
+ productApi
+ .batchShelves({
+ list: selectedIds,
+ productStatus: productStatus
+ })
+ .then(res => {
+ if (res.code === 20000) {
+ this.$message.success(res.msg)
+ this.getDataList()
+ }
+ })
+ } else {
this.$message.error('请选择需要操作的数据')
}
},
diff --git a/src/views/statistics/productStatisticsList.vue b/src/views/statistics/productStatisticsList.vue
index 2dca2ca..6007fa8 100644
--- a/src/views/statistics/productStatisticsList.vue
+++ b/src/views/statistics/productStatisticsList.vue
@@ -45,7 +45,7 @@
- {{ scope.row.sellScale }}
+ {{ scope.row.sellScale }}%
@@ -56,7 +56,7 @@
- {{ scope.row.sellMoneyScale }}
+ {{ scope.row.sellMoneyScale }}%
@@ -391,12 +391,22 @@ export default {
})
console.log('tableList', this.tableList)
},
+
// 表格搜索
productSearchs() {
- console.log(this.Time)
+ console.log('time', this.Time)
if (this.Time !== null && this.Time.length !== 0) {
- this.createTime = this.Time[0] + '/' + this.Time[1]
+ if (this.isDate(this.Time[0])) {
+ this.createTime = this.Time[0] + '/' + this.Time[1]
+ console.log('-----')
+ } else {
+ var time1 = this.getSimpleDate(this.Time[0])
+ var time2 = this.getSimpleDate(this.Time[1])
+ this.createTime = time1 + '/' + time2
+ }
+ console.log('createTime------', this.createTime)
+
this.getChartList()
} else {
this.$message.error('请选择要查询的时间段!')
@@ -404,15 +414,43 @@ export default {
},
// 表格搜索
userSearchs() {
+ console.log('createTime2', this.createTime2)
this.page.currentPage = 1
+
if (this.createTime2 !== null && this.createTime2.length !== 0) {
- this.page.params.startTime = this.createTime2[0]
- this.page.params.endTime = this.createTime2[1]
+ if (this.isDate(this.createTime2[0])) {
+ this.page.params.startTime = this.createTime2[0]
+ this.page.params.endTime = this.createTime2[1]
+ } else {
+ var time1 = this.getSimpleDate(this.createTime2[0])
+ var time2 = this.getSimpleDate(this.createTime2[1])
+ this.page.params.startTime = time1
+ this.page.params.endTime = time2
+ }
+
this.getList()
} else {
this.$message.error('请选择要查询的时间段!')
}
},
+
+ isDate(dateStr) {
+ var pattern = /^\d{4}-\d{2}-\d{2}$/
+ return pattern.test(dateStr)
+ },
+ getSimpleDate(date) {
+ var y = date.getFullYear()
+ var m = date.getMonth() + 1
+ m = m < 10 ? '0' + m : m
+ var d = date.getDate()
+ d = d < 10 ? '0' + d : d
+ // var h = date.getHours()
+ // var minute = date.getMinutes()
+ // minute = minute < 10 ? '0' + minute : minute
+ // var s = date.getSeconds()
+ // s = s < 10 ? '0' + s : s
+ return y + '-' + m + '-' + d
+ },
// 数据导出;
exportData: function() {},