-
+
-
+
-
+
-
-
+
-
+
-
+
-
+
-
-
+
@@ -73,12 +109,12 @@ export default {
payTypeList: [
{
name: "付款",
- value: 0
+ value: 0,
},
{
name: "退款",
- value: 1
- }
+ value: 1,
+ },
],
tk: "manjianTableKey",
ruleForm: {
@@ -87,7 +123,9 @@ export default {
cUserPhone: "",
merchantName: "",
time: [
- moment(new Date()).subtract(29, "days").format("YYYY-MM-DD"),
+ moment(new Date())
+ .subtract(29, "days")
+ .format("YYYY-MM-DD"),
moment(new Date()).format("YYYY-MM-DD"),
],
},
@@ -135,6 +173,10 @@ export default {
key: "merchantName",
val: "门店",
},
+ {
+ key: "wxShopName",
+ val: "微信订单店铺",
+ },
{
key: "cuserPhone",
val: "会员手机号",
@@ -199,15 +241,14 @@ export default {
"setNavData",
]),
getPayType(clo, item) {
- return this.payTypeList.filter(res =>
- res.value == item.isRefund
- )[0].name
+ return this.payTypeList.filter((res) => res.value == item.isRefund)[0]
+ .name;
},
changemoneyNum(col, item) {
if (item.isRefund == 0) {
- return item.payAmountStr
+ return item.payAmountStr;
} else {
- return item.refundAmountStr
+ return item.refundAmountStr;
}
},
godetial(item, row) {
@@ -220,15 +261,15 @@ export default {
});
},
getMoneyAll() {
- let str = this.dealData("statistics")
- this.getFetch(str).then(res => {
+ let str = this.dealData("statistics");
+ this.getFetch(str).then((res) => {
console.log(res.data);
- this.sumPayAmount = res.data.sumPayAmount
- this.sumRefundAmount = res.data.sumRefundAmount
- })
+ this.sumPayAmount = res.data.sumPayAmount;
+ this.sumRefundAmount = res.data.sumRefundAmount;
+ });
},
- search: function () {
- this.getMoneyAll()
+ search: function() {
+ this.getMoneyAll();
let tk = this.$refs[this.tk];
tk.search(tk.getParams().index);
},
@@ -237,7 +278,7 @@ export default {
let merchantName = this.ruleForm.merchantName;
let validStartDate = "";
let validEndDate = "";
- let cUserPhone = this.ruleForm.cUserPhone
+ let cUserPhone = this.ruleForm.cUserPhone;
validStartDate = this.ruleForm.time[0];
validEndDate = this.ruleForm.time[1];
validStartDate = validStartDate
@@ -247,9 +288,13 @@ export default {
? moment(validEndDate).format("YYYY-MM-DD") + " 23:59:59"
: "";
if (urlStr == "list") {
- return `/api/wxCircle/${urlStr}?transactionId=${this.ruleForm.transactionId}&startTime=${validStartDate}&endTime=${validEndDate}&isRefund=${isRefund}&merchantName=${merchantName}&cUserPhone=${cUserPhone}`;
+ return `/api/wxCircle/${urlStr}?transactionId=${
+ this.ruleForm.transactionId
+ }&startTime=${validStartDate}&endTime=${validEndDate}&isRefund=${isRefund}&merchantName=${merchantName}&cUserPhone=${cUserPhone}`;
} else {
- return `/api/wxCircle/${urlStr}?transactionId=${this.ruleForm.transactionId}&startTime=${validStartDate}&endTime=${validEndDate}&isRefund=${isRefund}&merchantName=${merchantName}&cUserPhone=${cUserPhone}`;
+ return `/api/wxCircle/${urlStr}?transactionId=${
+ this.ruleForm.transactionId
+ }&startTime=${validStartDate}&endTime=${validEndDate}&isRefund=${isRefund}&merchantName=${merchantName}&cUserPhone=${cUserPhone}`;
}
},
exportData() {
@@ -257,13 +302,8 @@ export default {
console.log(str);
location.href = str;
},
-
-
-
-
},
activated() {
-
this.search();
this.setNavData(["账单管理", "对账管理", "WX商圈交易"]);
},
@@ -462,4 +502,4 @@ export default {
font-size: 14px;
line-height: 40px;
}
-
\ No newline at end of file
+