|
@@ -97,39 +97,31 @@
|
|
|
<div style="position: relative;display: inline-block;margin: 3px;">
|
|
<div style="position: relative;display: inline-block;margin: 3px;">
|
|
|
<span>商铺类型:</span>
|
|
<span>商铺类型:</span>
|
|
|
<el-select
|
|
<el-select
|
|
|
- v-model="spEarningTypeId"
|
|
|
|
|
- style="width:200px;"
|
|
|
|
|
- @change="phoneSelect"
|
|
|
|
|
- :clearable="true"
|
|
|
|
|
|
|
+ v-model="spEarningTypeId"
|
|
|
|
|
+ style="width:200px;"
|
|
|
|
|
+ @change="phoneSelect"
|
|
|
|
|
+ :clearable="true"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in spEarnings"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.shopTypeName"
|
|
|
|
|
+ :value="item.id"
|
|
|
>
|
|
>
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in spEarnings"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- :label="item.shopTypeName"
|
|
|
|
|
- :value="item.id"
|
|
|
|
|
- >
|
|
|
|
|
- </el-option> </el-select
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ </el-option> </el-select
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
<div style="position: relative;display: inline-block;margin: 3px;">
|
|
<div style="position: relative;display: inline-block;margin: 3px;">
|
|
|
<span>优惠券类型:</span>
|
|
<span>优惠券类型:</span>
|
|
|
<el-select
|
|
<el-select
|
|
|
- v-model="couponType"
|
|
|
|
|
- style="width:200px;"
|
|
|
|
|
- @change="phoneSelect"
|
|
|
|
|
- :clearable="true"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- label="平台"
|
|
|
|
|
- :value="0"
|
|
|
|
|
- >
|
|
|
|
|
- </el-option>
|
|
|
|
|
- <el-option
|
|
|
|
|
- label="商家"
|
|
|
|
|
- :value="1"
|
|
|
|
|
- >
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
|
|
+ v-model="couponType"
|
|
|
|
|
+ style="width:200px;"
|
|
|
|
|
+ @change="phoneSelect"
|
|
|
|
|
+ :clearable="true"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option label="平台" :value="0"> </el-option>
|
|
|
|
|
+ <el-option label="商家" :value="1"> </el-option> </el-select
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
<div style="position: relative;display: inline-block;margin: 3px;">
|
|
<div style="position: relative;display: inline-block;margin: 3px;">
|
|
|
<span>手机号:</span>
|
|
<span>手机号:</span>
|
|
@@ -235,6 +227,33 @@
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div v-if="status == 14" style="margin:5px;display: inline-block;">
|
|
|
|
|
+ <span>退款开始时间:</span>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ style="width: 200px;margin-left: 10px;"
|
|
|
|
|
+ v-model="refundStartTime"
|
|
|
|
|
+ align="right"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ placeholder="选择开始时间"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="status == 14" style="margin:5px;display: inline-block;">
|
|
|
|
|
+ <span>退款结束时间:</span>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ style="width: 200px;margin-left: 10px;"
|
|
|
|
|
+ v-model="refundEndTime"
|
|
|
|
|
+ align="right"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ placeholder="选择结束时间"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </div>
|
|
|
<el-button
|
|
<el-button
|
|
|
style="margin-left:15px;"
|
|
style="margin-left:15px;"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -373,10 +392,7 @@
|
|
|
label="骑手所在站点"
|
|
label="骑手所在站点"
|
|
|
width="200"
|
|
width="200"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- prop="orderSequence"
|
|
|
|
|
- label="序号"
|
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="orderSequence" label="序号"></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="transactionId"
|
|
prop="transactionId"
|
|
|
label="商户单号"
|
|
label="商户单号"
|
|
@@ -527,7 +543,9 @@
|
|
|
width="80"
|
|
width="80"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.isPrint === 0 || scope.row.isPrint === ''">未打印</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.isPrint === 0 || scope.row.isPrint === ''"
|
|
|
|
|
+ >未打印</span
|
|
|
|
|
+ >
|
|
|
<span v-if="scope.row.isPrint === 1">已打印</span>
|
|
<span v-if="scope.row.isPrint === 1">已打印</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -590,7 +608,8 @@
|
|
|
v-if="scope.row.status === 6"
|
|
v-if="scope.row.status === 6"
|
|
|
:disabled="!isAuth('mission:qucan')"
|
|
:disabled="!isAuth('mission:qucan')"
|
|
|
@click="wancheng(scope.row)"
|
|
@click="wancheng(scope.row)"
|
|
|
- >制作已完成</el-button>
|
|
|
|
|
|
|
+ >制作已完成</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -598,11 +617,12 @@
|
|
|
style="margin: 10px;"
|
|
style="margin: 10px;"
|
|
|
v-if="
|
|
v-if="
|
|
|
scope.row.status === 3 ||
|
|
scope.row.status === 3 ||
|
|
|
- scope.row.status === 6 ||
|
|
|
|
|
- scope.row.status === 7
|
|
|
|
|
|
|
+ scope.row.status === 6 ||
|
|
|
|
|
+ scope.row.status === 7
|
|
|
"
|
|
"
|
|
|
@click="tuikuan(scope.row)"
|
|
@click="tuikuan(scope.row)"
|
|
|
- >退款</el-button>
|
|
|
|
|
|
|
+ >退款</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -610,38 +630,41 @@
|
|
|
:disabled="!isAuth('mission:qucan')"
|
|
:disabled="!isAuth('mission:qucan')"
|
|
|
@click="wancheng(scope.row)"
|
|
@click="wancheng(scope.row)"
|
|
|
style="margin: 5px 0;"
|
|
style="margin: 5px 0;"
|
|
|
- >{{ scope.row.orderType == 1 ? "餐品已完成" : "餐品已完成" }}
|
|
|
|
|
|
|
+ >{{ scope.row.orderType == 1 ? "餐品已完成" : "餐品已完成" }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
v-if="
|
|
v-if="
|
|
|
scope.row.status == 3 ||
|
|
scope.row.status == 3 ||
|
|
|
- scope.row.status === 4 ||
|
|
|
|
|
- scope.row.status === 6
|
|
|
|
|
|
|
+ scope.row.status === 4 ||
|
|
|
|
|
+ scope.row.status === 6
|
|
|
"
|
|
"
|
|
|
:disabled="!isAuth('mission:qucan')"
|
|
:disabled="!isAuth('mission:qucan')"
|
|
|
@click="dayin(scope.row)"
|
|
@click="dayin(scope.row)"
|
|
|
style="margin: 3px;"
|
|
style="margin: 3px;"
|
|
|
- >打印小票</el-button>
|
|
|
|
|
|
|
+ >打印小票</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
v-if="
|
|
v-if="
|
|
|
scope.row.status == 3 ||
|
|
scope.row.status == 3 ||
|
|
|
- scope.row.status === 4 ||
|
|
|
|
|
- scope.row.status === 6
|
|
|
|
|
|
|
+ scope.row.status === 4 ||
|
|
|
|
|
+ scope.row.status === 6
|
|
|
"
|
|
"
|
|
|
:disabled="!isAuth('mission:mingxi')"
|
|
:disabled="!isAuth('mission:mingxi')"
|
|
|
@click="detailClick(scope.row)"
|
|
@click="detailClick(scope.row)"
|
|
|
style="margin: 3px;"
|
|
style="margin: 3px;"
|
|
|
- >打印小票明细</el-button>
|
|
|
|
|
|
|
+ >打印小票明细</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="complainDetails(scope.row)"
|
|
@click="complainDetails(scope.row)"
|
|
|
style="margin: 3px;"
|
|
style="margin: 3px;"
|
|
|
- >聊天内容</el-button>
|
|
|
|
|
|
|
+ >聊天内容</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -649,7 +672,8 @@
|
|
|
:disabled="!isAuth('orderCenterRun:zhuandan')"
|
|
:disabled="!isAuth('orderCenterRun:zhuandan')"
|
|
|
@click="zhuandan(scope.row)"
|
|
@click="zhuandan(scope.row)"
|
|
|
style="margin: 3px;"
|
|
style="margin: 3px;"
|
|
|
- >转单</el-button>
|
|
|
|
|
|
|
+ >转单</el-button
|
|
|
|
|
+ >
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -1055,9 +1079,9 @@ export default {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
stationData: [], // 骑手站点数据
|
|
stationData: [], // 骑手站点数据
|
|
|
stationName: "",
|
|
stationName: "",
|
|
|
- spEarnings:[],// 商铺类型数据
|
|
|
|
|
- couponType:'',// 优惠券类型
|
|
|
|
|
- spEarningTypeId:"",
|
|
|
|
|
|
|
+ spEarnings: [], // 商铺类型数据
|
|
|
|
|
+ couponType: "", // 优惠券类型
|
|
|
|
|
+ spEarningTypeId: "",
|
|
|
imageUrl: [],
|
|
imageUrl: [],
|
|
|
limit: 10,
|
|
limit: 10,
|
|
|
page: 1,
|
|
page: 1,
|
|
@@ -1065,7 +1089,7 @@ export default {
|
|
|
phone: "",
|
|
phone: "",
|
|
|
userName: "",
|
|
userName: "",
|
|
|
orderNumber: "",
|
|
orderNumber: "",
|
|
|
- transactionId:"",// 商户单号
|
|
|
|
|
|
|
+ transactionId: "", // 商户单号
|
|
|
status: "",
|
|
status: "",
|
|
|
describes: "",
|
|
describes: "",
|
|
|
token: "",
|
|
token: "",
|
|
@@ -1110,7 +1134,14 @@ export default {
|
|
|
label: "待支付",
|
|
label: "待支付",
|
|
|
value: 1
|
|
value: 1
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "已支付",
|
|
|
|
|
+ value: 15
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "已退款",
|
|
|
|
|
+ value: 14
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "商家待接单",
|
|
label: "商家待接单",
|
|
|
value: 7
|
|
value: 7
|
|
@@ -1247,7 +1278,7 @@ export default {
|
|
|
|
|
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
tableData2: {},
|
|
tableData2: {},
|
|
|
- shopMoney:'',// 店铺总交易
|
|
|
|
|
|
|
+ shopMoney: "", // 店铺总交易
|
|
|
form: {
|
|
form: {
|
|
|
id: "",
|
|
id: "",
|
|
|
classifyName: "",
|
|
classifyName: "",
|
|
@@ -1295,8 +1326,12 @@ export default {
|
|
|
// },
|
|
// },
|
|
|
startTime: "",
|
|
startTime: "",
|
|
|
endTime: "",
|
|
endTime: "",
|
|
|
- payStartTime: dayjs().subtract(6, 'day').format('YYYY-MM-DD'), //支付开始时间
|
|
|
|
|
- payEndTime: dayjs().format('YYYY-MM-DD'),
|
|
|
|
|
|
|
+ payStartTime: dayjs()
|
|
|
|
|
+ .subtract(6, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD"), //支付开始时间
|
|
|
|
|
+ payEndTime: dayjs().format("YYYY-MM-DD"),
|
|
|
|
|
+ refundStartTime: "",
|
|
|
|
|
+ refundEndTime: "",
|
|
|
|
|
|
|
|
// 导出限制
|
|
// 导出限制
|
|
|
exportTitle: "导出错误",
|
|
exportTitle: "导出错误",
|
|
@@ -1324,7 +1359,7 @@ export default {
|
|
|
this.stationData = data.data;
|
|
this.stationData = data.data;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- shopTypeList(){
|
|
|
|
|
|
|
+ shopTypeList() {
|
|
|
this.$http({
|
|
this.$http({
|
|
|
url: this.$http.adornUrl("admin/shoptype/selectShopTypeList"),
|
|
url: this.$http.adornUrl("admin/shoptype/selectShopTypeList"),
|
|
|
method: "get",
|
|
method: "get",
|
|
@@ -1333,7 +1368,7 @@ export default {
|
|
|
limit: 1000
|
|
limit: 1000
|
|
|
})
|
|
})
|
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
|
- console.log(data,'商铺类型');
|
|
|
|
|
|
|
+ console.log(data, "商铺类型");
|
|
|
|
|
|
|
|
let returnData = data.data.list;
|
|
let returnData = data.data.list;
|
|
|
this.spEarnings = returnData;
|
|
this.spEarnings = returnData;
|
|
@@ -1677,12 +1712,17 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 重置
|
|
// 重置
|
|
|
cleans2() {
|
|
cleans2() {
|
|
|
|
|
+ // const data=this.$route.query;
|
|
|
|
|
+ // if(data.refund){
|
|
|
|
|
+ // delete this.$router.push({query:{}}) // 删除页面参数
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
this.page = 1;
|
|
this.page = 1;
|
|
|
this.phone = "";
|
|
this.phone = "";
|
|
|
this.riderPhone = "";
|
|
this.riderPhone = "";
|
|
|
this.userName = "";
|
|
this.userName = "";
|
|
|
this.orderNumber = "";
|
|
this.orderNumber = "";
|
|
|
- this.transactionId=""
|
|
|
|
|
|
|
+ this.transactionId = "";
|
|
|
this.status = "";
|
|
this.status = "";
|
|
|
this.shopName = "";
|
|
this.shopName = "";
|
|
|
this.reservationFlag = "";
|
|
this.reservationFlag = "";
|
|
@@ -1690,11 +1730,15 @@ export default {
|
|
|
this.orderType = "";
|
|
this.orderType = "";
|
|
|
this.startTime = "";
|
|
this.startTime = "";
|
|
|
this.endTime = "";
|
|
this.endTime = "";
|
|
|
- this.payStartTime = dayjs().subtract(6, 'day').format('YYYY-MM-DD');
|
|
|
|
|
- this.payEndTime = dayjs().format('YYYY-MM-DD');
|
|
|
|
|
- this.stationName=""
|
|
|
|
|
- this.spEarningTypeId=""
|
|
|
|
|
- this.couponType=""
|
|
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.payStartTime = dayjs()
|
|
|
|
|
+ .subtract(6, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
|
|
+ this.payEndTime = dayjs().format("YYYY-MM-DD");
|
|
|
|
|
+ this.stationName = "";
|
|
|
|
|
+ this.spEarningTypeId = "";
|
|
|
|
|
+ this.couponType = "";
|
|
|
this.taskdataSelect();
|
|
this.taskdataSelect();
|
|
|
},
|
|
},
|
|
|
// 查询
|
|
// 查询
|
|
@@ -1715,6 +1759,7 @@ export default {
|
|
|
this.dataSelect();
|
|
this.dataSelect();
|
|
|
},
|
|
},
|
|
|
animeDat2(state) {
|
|
animeDat2(state) {
|
|
|
|
|
+ // this.$router.replace({ refund: '' })
|
|
|
this.page = 1;
|
|
this.page = 1;
|
|
|
this.taskdataSelect();
|
|
this.taskdataSelect();
|
|
|
},
|
|
},
|
|
@@ -1739,6 +1784,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
|
taskdataSelect() {
|
|
taskdataSelect() {
|
|
|
|
|
+ console.log(this.refundStartTime);
|
|
|
|
|
+
|
|
|
this.totalMoney = 0;
|
|
this.totalMoney = 0;
|
|
|
this.tableDataLoading = true;
|
|
this.tableDataLoading = true;
|
|
|
this.$http({
|
|
this.$http({
|
|
@@ -1750,7 +1797,7 @@ export default {
|
|
|
phone: this.phone,
|
|
phone: this.phone,
|
|
|
userName: this.userName,
|
|
userName: this.userName,
|
|
|
orderNumber: this.orderNumber,
|
|
orderNumber: this.orderNumber,
|
|
|
- transactionId:this.transactionId,
|
|
|
|
|
|
|
+ transactionId: this.transactionId,
|
|
|
status: this.status,
|
|
status: this.status,
|
|
|
shopName: this.shopName,
|
|
shopName: this.shopName,
|
|
|
orderType: this.orderType,
|
|
orderType: this.orderType,
|
|
@@ -1759,11 +1806,13 @@ export default {
|
|
|
riderPhone: this.riderPhone,
|
|
riderPhone: this.riderPhone,
|
|
|
startTime: this.startTime,
|
|
startTime: this.startTime,
|
|
|
endTime: this.endTime,
|
|
endTime: this.endTime,
|
|
|
|
|
+ refundStartTime: this.refundStartTime,
|
|
|
|
|
+ refundEndTime: this.refundEndTime,
|
|
|
payStartTime: this.payStartTime,
|
|
payStartTime: this.payStartTime,
|
|
|
payEndTime: this.payEndTime,
|
|
payEndTime: this.payEndTime,
|
|
|
riderStationId: this.stationName,
|
|
riderStationId: this.stationName,
|
|
|
- shopTypeId:this.spEarningTypeId,
|
|
|
|
|
- couponType:this.couponType
|
|
|
|
|
|
|
+ shopTypeId: this.spEarningTypeId,
|
|
|
|
|
+ couponType: this.couponType
|
|
|
})
|
|
})
|
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
|
console.log(data, "订单中心");
|
|
console.log(data, "订单中心");
|
|
@@ -1773,33 +1822,33 @@ export default {
|
|
|
this.tableData2 = returnData;
|
|
this.tableData2 = returnData;
|
|
|
console.log(this.tableData2, "hhhhh");
|
|
console.log(this.tableData2, "hhhhh");
|
|
|
for (var i in this.tableData2.list) {
|
|
for (var i in this.tableData2.list) {
|
|
|
- this.tableData2.list[i].goodsPriceZ = 0;
|
|
|
|
|
- this.totalMoney = this.totalMoney + this.tableData2.list[i].payMoney;
|
|
|
|
|
- if (this.tableData2.list[i].address) {
|
|
|
|
|
- this.tableData2.list[i].address = JSON.parse(
|
|
|
|
|
- this.tableData2.list[i].address
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.tableData2.list[i].goodsPriceZ = 0;
|
|
|
|
|
+ this.totalMoney =
|
|
|
|
|
+ Number(this.totalMoney) +
|
|
|
|
|
+ Number(this.tableData2.list[i].payMoney);
|
|
|
|
|
+ if (this.tableData2.list[i].address) {
|
|
|
|
|
+ this.tableData2.list[i].address = JSON.parse(
|
|
|
|
|
+ this.tableData2.list[i].address
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- for (var j in this.tableData2.list[i].orderGoodsList) {
|
|
|
|
|
- this.tableData2.list[i].orderGoodsList[j].goodsPriceZ =
|
|
|
|
|
- this.tableData2.list[i].orderGoodsList[j].goodsPrice *
|
|
|
|
|
- this.tableData2.list[i].orderGoodsList[j].goodsNum;
|
|
|
|
|
|
|
+ for (var j in this.tableData2.list[i].orderGoodsList) {
|
|
|
|
|
+ this.tableData2.list[i].orderGoodsList[j].goodsPriceZ =
|
|
|
|
|
+ this.tableData2.list[i].orderGoodsList[j].goodsPrice *
|
|
|
|
|
+ this.tableData2.list[i].orderGoodsList[j].goodsNum;
|
|
|
|
|
|
|
|
- this.tableData2.list[i].goodsPriceZ =
|
|
|
|
|
- this.tableData2.list[i].goodsPriceZ +
|
|
|
|
|
- this.tableData2.list[i].orderGoodsList[j].goodsPriceZ;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.tableData2.list[i].goodsPriceZ =
|
|
|
|
|
+ this.tableData2.list[i].goodsPriceZ +
|
|
|
|
|
+ this.tableData2.list[i].orderGoodsList[j].goodsPriceZ;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
this.totalMoney = this.totalMoney.toFixed(2);
|
|
this.totalMoney = this.totalMoney.toFixed(2);
|
|
|
- if(!data.data.totalCount){
|
|
|
|
|
|
|
+ if (!data.data.totalCount) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: "此时间段暂无数据",
|
|
message: "此时间段暂无数据",
|
|
|
type: "success",
|
|
type: "success",
|
|
|
duration: 1500,
|
|
duration: 1500,
|
|
|
- onClose: () => {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ onClose: () => {}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -1935,7 +1984,7 @@ export default {
|
|
|
method: "post",
|
|
method: "post",
|
|
|
params: this.$http.adornParams({
|
|
params: this.$http.adornParams({
|
|
|
orderId: row.orderId,
|
|
orderId: row.orderId,
|
|
|
- isAppend: 1,// 1 默认补打
|
|
|
|
|
|
|
+ isAppend: 1 // 1 默认补打
|
|
|
})
|
|
})
|
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
|
if (data.code == 0) {
|
|
if (data.code == 0) {
|
|
@@ -2209,7 +2258,7 @@ export default {
|
|
|
phone: this.phone,
|
|
phone: this.phone,
|
|
|
userName: this.userName,
|
|
userName: this.userName,
|
|
|
orderNumber: this.orderNumber,
|
|
orderNumber: this.orderNumber,
|
|
|
- transactionId:this.transactionId,
|
|
|
|
|
|
|
+ transactionId: this.transactionId,
|
|
|
status: this.status,
|
|
status: this.status,
|
|
|
shopName: this.shopName,
|
|
shopName: this.shopName,
|
|
|
orderSequence: this.orderSequence,
|
|
orderSequence: this.orderSequence,
|
|
@@ -2221,9 +2270,11 @@ export default {
|
|
|
endTime: this.endTime,
|
|
endTime: this.endTime,
|
|
|
payStartTime: this.payStartTime,
|
|
payStartTime: this.payStartTime,
|
|
|
payEndTime: this.payEndTime,
|
|
payEndTime: this.payEndTime,
|
|
|
|
|
+ refundStartTime: this.refundStartTime,
|
|
|
|
|
+ refundEndTime: this.refundEndTime,
|
|
|
riderStationId: this.stationName,
|
|
riderStationId: this.stationName,
|
|
|
- shopTypeId:this.spEarningTypeId,
|
|
|
|
|
- couponType:this.couponType
|
|
|
|
|
|
|
+ shopTypeId: this.spEarningTypeId,
|
|
|
|
|
+ couponType: this.couponType
|
|
|
})
|
|
})
|
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
|
console.log(data, "导出");
|
|
console.log(data, "导出");
|
|
@@ -2252,17 +2303,119 @@ export default {
|
|
|
},
|
|
},
|
|
|
exportAffirm() {
|
|
exportAffirm() {
|
|
|
this.exportVisible = false;
|
|
this.exportVisible = false;
|
|
|
|
|
+ },
|
|
|
|
|
+ getPath() {
|
|
|
|
|
+ console.log("监控路由获取参数", this.$route.params.refund);
|
|
|
|
|
+ if (this.$route.params.type == "platform") {
|
|
|
|
|
+ console.log(this.$route.params, "平台-钩子中获取参数");
|
|
|
|
|
+ if (this.$route.params.refund == 14) {
|
|
|
|
|
+ this.status = this.$route.params.refund;
|
|
|
|
|
+ this.payStartTime = "";
|
|
|
|
|
+ this.payEndTime = "";
|
|
|
|
|
+ this.refundStartTime = this.$route.params.dayId + " " + "00:00:00";
|
|
|
|
|
+ this.refundEndTime = this.$route.params.dayId + " " + "23:59:59";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ } else if (this.$route.params.refund == 15) {
|
|
|
|
|
+ this.status = this.$route.params.refund;
|
|
|
|
|
+ this.payStartTime = this.$route.params.dayId + " " + "00:00:00";
|
|
|
|
|
+ this.payEndTime = this.$route.params.dayId + " " + "23:59:59";
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.status = "";
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.payStartTime = "";
|
|
|
|
|
+ this.payEndTime = "";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (this.$route.params.type == "shop") {
|
|
|
|
|
+ if (this.$route.params.refund == 14) {
|
|
|
|
|
+ console.log(this.$route.params, "商家-钩子中获取参数");
|
|
|
|
|
+ this.status = this.$route.params.refund;
|
|
|
|
|
+ this.payStartTime = "";
|
|
|
|
|
+ this.payEndTime = "";
|
|
|
|
|
+ this.shopName = this.$route.params.shopName;
|
|
|
|
|
+ this.refundStartTime = this.$route.params.dayId + " " + "00:00:00";
|
|
|
|
|
+ this.refundEndTime = this.$route.params.dayId + " " + "23:59:59";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.status = "";
|
|
|
|
|
+ this.shopName = "";
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.payStartTime = dayjs()
|
|
|
|
|
+ .subtract(6, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
|
|
+ this.payEndTime = dayjs().format("YYYY-MM-DD");
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ $route: "getPath"
|
|
|
|
|
+ },
|
|
|
|
|
+ beforeMount() {},
|
|
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
// this.classifySelect()
|
|
// this.classifySelect()
|
|
|
- this.taskdataSelect();
|
|
|
|
|
|
|
+ // this.taskdataSelect();
|
|
|
this.stationList();
|
|
this.stationList();
|
|
|
- this.shopTypeList()
|
|
|
|
|
|
|
+ this.shopTypeList();
|
|
|
// let endTime=dayjs().format('YYYY-MM-DD')
|
|
// let endTime=dayjs().format('YYYY-MM-DD')
|
|
|
// let startTime=dayjs().subtract(6, 'day').format('YYYY-MM-DD')
|
|
// let startTime=dayjs().subtract(6, 'day').format('YYYY-MM-DD')
|
|
|
// console.log(startTime,endTime);
|
|
// console.log(startTime,endTime);
|
|
|
|
|
+
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ if (this.$route.params.type == "platform") {
|
|
|
|
|
+ console.log(this.$route.params, "平台-钩子中获取参数");
|
|
|
|
|
+ if (this.$route.params.refund == 14) {
|
|
|
|
|
+ this.status = this.$route.params.refund;
|
|
|
|
|
+ this.payStartTime = "";
|
|
|
|
|
+ this.payEndTime = "";
|
|
|
|
|
+ this.refundStartTime = this.$route.params.dayId + " " + "00:00:00";
|
|
|
|
|
+ this.refundEndTime = this.$route.params.dayId + " " + "23:59:59";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ } else if (this.$route.params.refund == 15) {
|
|
|
|
|
+ this.status = this.$route.params.refund;
|
|
|
|
|
+ this.payStartTime = this.$route.params.dayId + " " + "00:00:00";
|
|
|
|
|
+ this.payEndTime = this.$route.params.dayId + " " + "23:59:59";
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.status = "";
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.payStartTime = "";
|
|
|
|
|
+ this.payEndTime = "";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (this.$route.params.type == "shop") {
|
|
|
|
|
+ if (this.$route.params.refund == 14) {
|
|
|
|
|
+ console.log(this.$route.params, "商家-钩子中获取参数");
|
|
|
|
|
+ this.status = this.$route.params.refund;
|
|
|
|
|
+ this.payStartTime = "";
|
|
|
|
|
+ this.payEndTime = "";
|
|
|
|
|
+ this.shopName = this.$route.params.shopName;
|
|
|
|
|
+ this.refundStartTime = this.$route.params.dayId + " " + "00:00:00";
|
|
|
|
|
+ this.refundEndTime = this.$route.params.dayId + " " + "23:59:59";
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.status = "";
|
|
|
|
|
+ this.shopName = "";
|
|
|
|
|
+ this.refundStartTime = "";
|
|
|
|
|
+ this.refundEndTime = "";
|
|
|
|
|
+ this.payStartTime = dayjs()
|
|
|
|
|
+ .subtract(6, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
|
|
+ this.payEndTime = dayjs().format("YYYY-MM-DD");
|
|
|
|
|
+ this.taskdataSelect();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|