Commit 2c2dcfc4 by wangzhihui

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.5.0
2 parents 0fdc40c1 45a01a0a
...@@ -815,6 +815,16 @@ export const routerName = { ...@@ -815,6 +815,16 @@ export const routerName = {
parentId: "90516", parentId: "90516",
cache: false cache: false
}, },
auth: [
{
authId: "9051612",
parentId: "905160501",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
}
],
component: _import("financeManage/prepaymentManage/detail") component: _import("financeManage/prepaymentManage/detail")
} }
} }
...@@ -9,12 +9,19 @@ ...@@ -9,12 +9,19 @@
门店名称: 门店名称:
<div class="price">{{ routerInfo.merchantName }}</div> <div class="price">{{ routerInfo.merchantName }}</div>
</div> </div>
<span data-event-code="prepaymentManage_detail_export">
<auth-button category="Button" :show-btn-ids="['9051604']" />
</span>
</template> </template>
<div class="btns flex"> <div class="btns flex">
<span data-event-code="prepaymentManage_detail_export"> <!-- <span data-event-code="prepaymentManage_Export">
<auth-button category="Button" :show-btn-ids="['9051604']" /> <auth-button category="Button" :show-btn-ids="['9051604']" />
</span> -->
<!-- <auth-button :show-btn-ids="['9040206', '9040201', '9040202', '9040203', '9040205']"
category="Button" /> -->
<span data-event-code="prepaymentManage_detail_export">
<auth-button category="Button" :show-btn-ids="['9051612']" />
</span> </span>
</div> </div>
</d2-table-header> </d2-table-header>
...@@ -104,6 +111,11 @@ export default { ...@@ -104,6 +111,11 @@ export default {
minWidth: 90, minWidth: 90,
}, },
{ {
label: "日均流量费",
prop: "dayAvgTrafficFee",
minWidth: 90,
},
{
label: "备注", label: "备注",
prop: "remark", prop: "remark",
minWidth: 120, minWidth: 120,
...@@ -162,7 +174,7 @@ export default { ...@@ -162,7 +174,7 @@ export default {
// delete params.amtList // delete params.amtList
// delete params.operationTime // delete params.operationTime
// console.log(JSON.parse(JSON.stringify(params))) // console.log(JSON.parse(JSON.stringify(params)))
// return params return this.searchFormSearch
}, },
handleAddUsedQuota() { handleAddUsedQuota() {
this.authPhoneDialogVisible = true this.authPhoneDialogVisible = true
...@@ -173,7 +185,8 @@ export default { ...@@ -173,7 +185,8 @@ export default {
}, },
handleExport() { handleExport() {
let params = { let params = {
method: "dj.smartcarlife.api.fund.usage.limit.export.async", // 导出门店预付款明细列表(异步)
method: "dj.api.smartcarlife.advancePayment.shopDetailPage.export.async",
...this.getParams() ...this.getParams()
} }
...@@ -185,7 +198,7 @@ export default { ...@@ -185,7 +198,7 @@ export default {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
name: "预付款管理记录列表详情", name: "门店预付款明细列表",
exportParam: JSON.stringify(params), exportParam: JSON.stringify(params),
status: "waiting", status: "waiting",
timeid: new Date().getTime() timeid: new Date().getTime()
......
...@@ -118,12 +118,13 @@ export default { ...@@ -118,12 +118,13 @@ export default {
maxlength: 50 maxlength: 50
}, },
{ {
label: "门店商户号", label: "门店商户号",
name: "merchantId", name: "merchantId",
inputType: "number", inputType: "number",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 20 maxlength: "9"
}, },
], ],
getListApi: advancePaymentPage, getListApi: advancePaymentPage,
......
...@@ -413,11 +413,11 @@ export default { ...@@ -413,11 +413,11 @@ export default {
}, },
{ {
label: "今日店端实际发券数", label: "今日店端实际发券数",
prop: "equityToShopCount", prop: "issueCouponCount",
formatter: (cellValue) => { formatter: (cellValue) => {
return (cellValue.equityToShopCount ?? "") === "" return (cellValue.issueCouponCount ?? "") === ""
? "-" ? "-"
: cellValue.equityToShopCount : cellValue.issueCouponCount
} }
}, },
{ {
...@@ -449,13 +449,13 @@ export default { ...@@ -449,13 +449,13 @@ export default {
}, },
{ {
label: "当日调休", label: "当日调休",
prop: "equityToShopCount", prop: "onBreak"
formatter: (cellValue) => { // formatter: (cellValue) => {
// Y-是 N-否 // // Y-是 N-否
return (cellValue.onBreak ?? "") === "" // return (cellValue.onBreak ?? "") === ""
? "-" // ? "-"
: cellValue.onBreak === "Y" ? "是" : "否" // : cellValue.onBreak === "Y" ? "是" : "否"
} // }
}, },
{ {
label: "今日成交金额", label: "今日成交金额",
...@@ -465,7 +465,7 @@ export default { ...@@ -465,7 +465,7 @@ export default {
? "-" ? "-"
: cellValue.totalOrderMoney : cellValue.totalOrderMoney
} }
}, }
// { // {
// label: "成交量(轻改)", // label: "成交量(轻改)",
......
...@@ -304,8 +304,8 @@ export default { ...@@ -304,8 +304,8 @@ export default {
if (this.tableSearchForm.placeOrderTimeStr) { if (this.tableSearchForm.placeOrderTimeStr) {
this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.placeOrderTimeStr
} }
delete this.tableSearchForm.placeOrderTimeStr
if (this.tableSearchForm.statuses) { if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 6) { if (this.tableSearchForm.statuses == 6) {
this.tableSearchForm.statuses = [6, 7] this.tableSearchForm.statuses = [6, 7]
......
...@@ -310,8 +310,8 @@ export default { ...@@ -310,8 +310,8 @@ export default {
if (this.tableSearchForm.placeOrderTimeStr) { if (this.tableSearchForm.placeOrderTimeStr) {
this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.placeOrderTimeStr
} }
delete this.tableSearchForm.placeOrderTimeStr
if (this.tableSearchForm.statuses) { if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 2) { if (this.tableSearchForm.statuses == 2) {
this.tableSearchForm.statuses = [2, 5] this.tableSearchForm.statuses = [2, 5]
......
...@@ -746,7 +746,6 @@ export default { ...@@ -746,7 +746,6 @@ export default {
new Date(this.tableSearchForm.placeOrderTimeStr[1]) new Date(this.tableSearchForm.placeOrderTimeStr[1])
.toLocaleDateString() .toLocaleDateString()
.replace(/\//g, "-") + " 23:59:59" .replace(/\//g, "-") + " 23:59:59"
delete this.tableSearchForm.placeOrderTimeStr
} }
if (this.tableSearchForm.reviewedTimeStr) { if (this.tableSearchForm.reviewedTimeStr) {
this.tableSearchForm.reviewedStartDateStr = this.tableSearchForm.reviewedStartDateStr =
...@@ -757,19 +756,14 @@ export default { ...@@ -757,19 +756,14 @@ export default {
new Date(this.tableSearchForm.reviewedTimeStr[1]) new Date(this.tableSearchForm.reviewedTimeStr[1])
.toLocaleDateString() .toLocaleDateString()
.replace(/\//g, "-") + " 23:59:59" .replace(/\//g, "-") + " 23:59:59"
delete this.tableSearchForm.reviewedTimeStr
} }
if (this.tableSearchForm.deliveryDateStr) { if (this.tableSearchForm.deliveryDateStr) {
this.tableSearchForm.deliveryStartDateStr = this.tableSearchForm.deliveryStartDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[0], 'YYYY-MM-DD 00:00:00')
new Date(this.tableSearchForm.deliveryDateStr[0]) this.tableSearchForm.deliveryEndDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[1], 'YYYY-MM-DD 23:59:59')
.toLocaleDateString()
.replace(/\//g, "-") + " 00:00:00"
this.tableSearchForm.deliveryEndDateStr =
new Date(this.tableSearchForm.deliveryDateStr[1])
.toLocaleDateString()
.replace(/\//g, "-") + " 23:59:59"
delete this.tableSearchForm.deliveryDateStr
} }
delete this.tableSearchForm.placeOrderTimeStr
delete this.tableSearchForm.reviewedTimeStr
delete this.tableSearchForm.deliveryDateStr
}, },
handleReset() { handleReset() {
for (const key in this.searchForm) { for (const key in this.searchForm) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!