王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

315 lines
12 KiB

webpackJsonp([7], {
"/tAt": function(e, t) {},
CWb1: function(e, t, a) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = a("mvHQ")
, i = a.n(r)
, n = a("PJh5")
, l = a.n(n)
, o = {
data: function() {
return {
loading: !1,
pickerOptions: {
disabledDate: function(e) {
return e.getTime() > 1e3 * (l()(l()(Date.now()).format("YYYY-MM-DD")).unix() + 86400 - 1)
}
},
searchForm: {
page: 1,
limit: 10,
start_time: "",
end_time: "",
order_code: ""
},
tableData: [],
total: 0
}
},
created: function() {
this.getTableDataList()
},
methods: {
resetForm: function(e) {
this.$refs[e].resetFields(),
this.getTableDataList(1)
},
handleSizeChange: function(e) {
this.searchForm.limit = e,
this.handleCurrentChange(1)
},
handleCurrentChange: function(e) {
this.searchForm.page = e,
this.getTableDataList()
},confirmDel: function(e) {
var t = this;
this.$confirm(this.$t("tips.confirmDelete"), this.$t("tips.reminder"), {
confirmButtonText: this.$t("action.comfirm"),
cancelButtonText: this.$t("action.cancel"),
type: "warning"
}).then(function() {
t.updateItem(e, -1)
})
},
updateItem: function(e, t) {
var a = this;
return u()(m.a.mark(function r() {
return m.a.wrap(function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
a.$api.shop.orderDelete({
id: e,
}).then(function(e) {
if (200 === e.code) {
if (a.$message.success(a.$t(-1 === t ? "tips.successDel" : "tips.successOper")),
-1 !== t)
return;
a.getTableDataList(1, "list")
} else {
if (-1 === t)
return;
a.getTableDataList(1, "list")
}
});
case 1:
case "end":
return r.stop()
}
}, r, a)
}))()
},
getTableDataList: function(e) {
var t = this;
e && (this.searchForm.page = 1),
this.loading = !0;
var a = JSON.parse(i()(this.searchForm))
, r = a.start_time;
r && r.length > 0 ? (a.start_time = r[0] / 1e3,
a.end_time = r[1] / 1e3) : (a.start_time = "",
a.end_time = ""),
this.$api.finance.orderList(a).then(function(e) {
if (t.loading = !1,
200 === e.code) {
var a = e.data
, r = a.data
, i = a.total;
t.tableData = r,
t.total = i
}
})
}
},
filters: {
handleTime: function(e, t) {
return 1 === t ? l()(1e3 * e).format("YYYY-MM-DD") : 2 === t ? l()(1e3 * e).format("HH:mm:ss") : l()(1e3 * e).format("YYYY-MM-DD HH:mm:ss")
}
}
}
, s = {
render: function() {
var e = this
, t = e.$createElement
, a = e._self._c || t;
return a("div", {
staticClass: "lb-finance-stored-order"
}, [a("top-nav"), e._v(" "), a("div", {
staticClass: "page-main"
}, [a("el-row", {
staticClass: "page-search-form"
}, [a("el-form", {
ref: "searchForm",
attrs: {
inline: !0,
model: e.searchForm
},
nativeOn: {
submit: function(e) {
e.preventDefault()
}
}
}, [a("el-form-item", {
attrs: {
label: "系统订单号",
prop: "order_code"
}
}, [a("el-input", {
attrs: {
placeholder: "请输入系统订单号"
},
model: {
value: e.searchForm.order_code,
callback: function(t) {
e.$set(e.searchForm, "order_code", t)
},
expression: "searchForm.order_code"
}
})], 1), e._v(" "), a("el-form-item", {
attrs: {
label: "日期",
prop: "start_time"
}
}, [a("el-date-picker", {
attrs: {
type: "daterange",
"range-separator": "至",
"start-placeholder": "开始日期",
"end-placeholder": "结束日期",
"value-format": "timestamp",
"picker-options": e.pickerOptions,
"default-time": ["00:00:00", "23:59:59"]
},
on: {
change: function(t) {
return e.getTableDataList(1)
}
},
model: {
value: e.searchForm.start_time,
callback: function(t) {
e.$set(e.searchForm, "start_time", t)
},
expression: "searchForm.start_time"
}
})], 1), e._v(" "), a("el-form-item", [a("lb-button", {
staticStyle: {
"margin-right": "5px"
},
attrs: {
size: "medium",
type: "primary",
icon: "el-icon-search"
},
on: {
click: function(t) {
return e.getTableDataList(1)
}
}
}, [e._v(e._s(e.$t("action.search")))]), e._v(" "), a("lb-button", {
staticStyle: {
"margin-right": "5px"
},
attrs: {
size: "medium",
icon: "el-icon-refresh-left"
},
on: {
click: function(t) {
return e.resetForm("searchForm")
}
}
}, [e._v(e._s(e.$t("action.reset")))])], 1)], 1)], 1), e._v(" "), a("el-table", {
directives: [{
name: "loading",
rawName: "v-loading",
value: e.loading,
expression: "loading"
}],
staticStyle: {
width: "100%"
},
attrs: {
data: e.tableData,
"header-cell-style": {
background: "#f5f7fa",
color: "#606266"
}
}
}, [a("el-table-column", {
attrs: {
prop: "id",
label: "ID",
fixed: ""
}
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "user_id",
label: "客户ID"
}
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "nick_name",
label: "客户昵称",
"min-width": "120"
}
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "title",
label: "套餐名称",
"min-width": "200"
}
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "pay_price",
label: "实际支付",
"min-width": "120"
},
scopedSlots: e._u([{
key: "default",
fn: function(t) {
return [e._v(" ¥" + e._s(t.row.pay_price) + " ")]
}
}])
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "true_price",
label: "充值金额",
"min-width": "120"
},
scopedSlots: e._u([{
key: "default",
fn: function(t) {
return [e._v(" ¥" + e._s(t.row.true_price) + " ")]
}
}])
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "order_code",
"min-width": "150",
label: "系统订单号"
}
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "transaction_id",
"min-width": "150",
label: "付款订单号"
}
}), e._v(" "), a("el-table-column", {
attrs: {
prop: "create_time",
"min-width": "120",
label: "下单时间"
},
scopedSlots: e._u([{
key: "default",
fn: function(t) {
return [a("div", [e._v(e._s(e._f("handleTime")(t.row.create_time, 1)))]), e._v(" "), a("div", [e._v(e._s(e._f("handleTime")(t.row.create_time, 2)))])]
}
}])
})], 1), e._v(" "), a("lb-page", {
attrs: {
batch: !1,
page: e.searchForm.page,
pageSize: e.searchForm.limit,
total: e.total
},
on: {
handleSizeChange: e.handleSizeChange,
handleCurrentChange: e.handleCurrentChange
}
})], 1)], 1)
},
staticRenderFns: []
};
var c = a("VU/8")(o, s, !1, function(e) {
a("wYml"),
a("/tAt")
}, "data-v-ba0fa2ea", null);
t.default = c.exports
},
wYml: function(e, t) {}
});