Commit 987faaa3 by 前端

Merge branch 'SAAS+V4.44-0902' into 'develop'

上线合并

See merge request !355
2 parents 82fa94b7 12c641d2
Showing 48 changed files with 1600 additions and 185 deletions
......@@ -3928,7 +3928,11 @@
"dependencies": {
"hash-sum": {
"version": "1.0.2",
<<<<<<< HEAD
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
=======
"resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
>>>>>>> SAAS+V4.43.1-0819
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
......@@ -17101,7 +17105,7 @@
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
},
......
......@@ -14,3 +14,21 @@ export function dfBalanceMonthStatListStatYear(data) {
data.method = `${path}dfBalanceMonthStat.listStatYear`
return request(data, RequestMethods.POST)
}
// 余额-其他(明细列表)
export function dfBalanceMonthOtherDetailPage(data) {
data.method = `${path}dfBalanceMonthOtherDetail.page`
return request(data, RequestMethods.POST)
}
// 余额-其他(删除)
export function dfBalanceMonthOtherDetailDelete(data) {
data.method = `${path}dfBalanceMonthOtherDetail.delete`
return request(data, RequestMethods.POST)
}
// 余额-其他(新增/更新)
export function dfBalanceMonthOtherDetailInsertOrUpdate(data) {
data.method = `${path}dfBalanceMonthOtherDetail.insertOrUpdate`
return request(data, RequestMethods.POST)
}
import request from "./request"
// const path = 'dj.api.'
const path2 = "dj.api.smartcarlife."
/** 积分管理-积分审批列表*/
export function getList(data) {
data.method = `${path2}staff.motivation.page`
return request(data)
}
/** 积分管理-积分审批*/
export function pointCheck(data) {
data.method = `${path2}staff.motivation.audit`
return request(data)
}
/**积分管理-积分审批列表导出*/
export function exportFile(data) {
data.method = `${path2}staff.motivation.list.export`
return request(data)
}
/**积分管理-积分审批详情*/
export function getPointDetail(data) {
data.method = `${path2}staff.motivation.detail`
return request(data)
}
/**积分管理-积分明细列表*/
export function getScorePage(data) {
data.method = `${path2}staff.score.page`
return request(data)
}
/**积分管理-积分明细列表导出*/
export function exportScore(data) {
data.method = `${path2}staff.score.export`
return request(data)
}
// 积分管理-积分明细收益列表
export function getDetailList(data) {
data.method = `${path2}staff.score.detail.list`
return request(data)
}
// 积分管理-积分明细收益列表导出
export function exportDetailScore(data) {
data.method = `${path2}staff.score.detail.list.export`
return request(data)
}
// 积分管理-积分明细收益记录详情
export function getScoreDetail(data) {
data.method = `${path2}staff.score.detail`
return request(data)
}
export function getShopMerchantList(data) {
data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data, 'post')
}
\ No newline at end of file
......@@ -44,3 +44,14 @@ export function downloadPdf(data) {
data.method = `${path}refundApplyRecord.downloadPdf`
return request(data, RequestMethods.POST)
}
export function getOrderDefaultInfo(data) {
data.method = `${path}refundApplyRecord.getOrderDefaultInfo`
return request(data, RequestMethods.POST)
}
// 修改退款申请
export function update(data) {
data.method = `${path}refundApplyRecord.update`
return request(data, RequestMethods.POST)
}
......@@ -109,3 +109,8 @@ export function orderFieldSettingUpdate(data) {
data.method = `${path}order.field.setting.update`
return request(data, "post")
}
//员工注册码
export function employeeRegister(data) {
data.method = `${path}staff.register`
return request(data, RequestMethods.POST)
}
import request from "./request"
const path = "dj.api.smartcarlife.inspection.badge.management."
// 获取练习列表
export function getList(data) {
data.method = `${path}page`
return request(data)
}
// 获取车辆品牌
export function getBrandList(data = {}) {
data.method = 'merchants.api.merchantCommon.getCarbrandTree'
return request(data)
}
// 新增
export function addOrUpdate(data) {
data.method = `${path}addOrUpdate`
return request(data)
}
// 导出
export function exportTable(data) {
data.method = `${path}page.export`
return request(data)
}
......@@ -850,6 +850,7 @@ export const auditTypeList = [
// 人员管理-员工审核-审核状态
export const refundExamine_status = [
{ confId: 0, confValue: "运营审核" },
{ confId: 1, confValue: "商务审核" },
{ confId: 2, confValue: "财务复核" },
{ confId: 3, confValue: "财务结算" },
......
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose"
:close-on-click-modal="false" :width="width">
<el-dialog :title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width"
:append-to-body="appendToBody">
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
......@@ -12,11 +17,14 @@
<slot />
<div slot="footer">
<slot name="btn-start" />
<el-button type="primary" v-if="isShowFooter" @click="handleConfirm"
<el-button type="primary"
v-if="isShowFooter"
@click="handleConfirm"
:loading="$store.state.d2admin.loading.value">
{{ btnOkLabel }}
</el-button>
<el-button v-if="!noCancel" @click="handleClose"> 取消 </el-button>
<el-button v-if="!noCancel"
@click="handleClose"> 取消 </el-button>
<slot name="btn-middle" />
</div>
</el-dialog>
......@@ -57,6 +65,11 @@ export default {
isShowFooter: {
type: Boolean,
default: true
},
appendToBody: {
// 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
type: Boolean,
default: false
}
},
......
<!--
* @Author: 王志慧 wangzh@didihu.com.cn
* @Date: 2024-06-12 15:21:09
* @LastEditors: 王志慧 wangzh@didihu.com.cn
* @LastEditTime: 2024-08-19 15:10:19
* @FilePath: \dj-car-life-system\src\components\d2-table-header\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-row class="table-header">
<el-col :span="leftSpan">
<span v-text="title" />
<el-col :span="leftSpan" :class="titleClassName">
<span v-text="title" class="table-header-title" />
<slot name="left" />
</el-col>
<el-col :span="24 - leftSpan">
......@@ -19,6 +27,10 @@ export default {
required: false,
default: ''
},
titleClassName:{
type: String,
default: ''
},
leftSpan: {
type: Number,
required: false,
......
......@@ -11,7 +11,7 @@
<el-form-item v-if="!item.isHide"
:key="index"
:id="item.name"
:label-width="isEdit ? '154px' : labelWidth"
:label-width="isEdit ? (labelWidth || '154px') : labelWidth"
:class="[{ 'no-label': !item.label, isBlock: isBlock }, { 'textBox': item.type == 'textBox' }]"
:style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }"
:label="item.label"
......@@ -523,6 +523,9 @@ export default {
if (item.inputType && (value.length > item.maxlength)) {
this.formObj[item.name] = value.slice(0, item.maxlength)
}
if(item.hasOwnProperty('inputFn')) {
item.inputFn(value)
}
}
}
}
......
......@@ -780,7 +780,13 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleExportLabel"
}
},
{
authId: "9061912",
parentId: "90619",
label: "员工注册码",
handle: "employeeRegistrationCode"
},
],
component: _import("systemConfig/ShopConfig/index")
},
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-01 15:03:31
* @LastEditors: huyue
* @LastEditTime: 2024-04-17 17:51:25
* @LastEditTime: 2024-08-13 14:42:56
*/
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
......@@ -528,5 +528,40 @@ export const routerName = {
}
],
component: _import("residentManage/loginLogList")
},
91211: {
path: "/tabletManagement",
name: "tabletManagement",
meta: {
title: '平板管理',
authId: "91211",
parentId: "912",
cache: false
},
auth: [
{
authId: "9121101",
parentId: "91211",
label: "新增信息",
category: "Button",
type: "primary",
handle: "handleToAdd"
},
{
authId: "9121102",
parentId: "91211",
label: "数据导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9121103",
parentId: "91211",
label: "编辑",
handle: "handleToAdd"
}
],
component: _import("residentManage/tabletManagement")
}
}
/*
* @Author: 王志慧 wangzh@didihu.com.cn
* @Date: 2024-08-13 14:35:06
* @LastEditors: 王志慧 wangzh@didihu.com.cn
* @LastEditTime: 2024-08-19 15:21:02
* @FilePath: \dj-car-life-system\src\router\modules\914_pointManagement.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
914: {
path: "/pointManagement",
name: "pointManagement",
meta: {
title: "积分管理",
authId: "914",
parentId: "1",
cache: false
}
},
91401: {
path: "/pointExamine",
name: "pointExamine",
meta: {
title: "积分审批",
authId: "91401",
parentId: "914",
cache: false
},
auth: [
{
authId: "9140101",
parentId: "91401",
label: "审核",
handle: "handleCheck"
},
{
authId: "9140102",
parentId: "91401",
label: "查看",
handle: "handleDetail"
},
{
authId: "9140103",
parentId: "91401",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
}
],
component: _import("pointManagement/pointExamine")
},
91402: {
path: "/pointParticulars",
name: "pointParticulars",
meta: {
title: "积分明细",
authId: "91402",
parentId: "914",
cache: false
},
auth: [
{
authId: "9140201",
parentId: "91402",
label: "明细",
handle: "handleDetail",
addRoutePath: [
{
authId: "91403",
name: "详情",
parentId: "91402"
}
]
},
{
authId: "9140202",
parentId: "91402",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
}
],
component: _import("pointManagement/pointParticulars")
},
91403: {
path: "/pointDetail",
name: "pointDetail",
meta: {
title: "详情",
authId: "91403",
parentId: "91402",
cache: false,
activePath: "/pointDetail"
},
component: _import("pointManagement/pointDetail")
},
}
......@@ -10,7 +10,7 @@
@confirmDialog="handleClose">
<div class="merchantInfo">
<span class="merchantName">{{ recordInfo.merchantName }}</span><span
class="merchantId">{{ recordInfo.merchantId }}</span>
class="merchantId">{{ recordInfo.merchantId }}</span>
</div>
<div>
<div class="header"
......@@ -42,9 +42,26 @@
:before-search-fn="beforeSearchFn"
:has-page="false"
:has-num="false">
<div slot="other"
slot-scope="scope">
<template>
<span
style="marginRight:10px">{{ (scope.scope.otherAmount || scope.scope.otherAmount == 0) ? scope.scope.otherAmount.toFixed(2) : '-' }}</span>
<span v-if="scope.scope.otherAmount || scope.scope.otherAmount == 0"><el-button
type="text"
@click="gotoManage(scope.scope)">管理</el-button>
</span>
</template>
</div>
</d2-table>
</div>
</div>
<!-- 管理其他变更明细 -->
<manage-other-dialog :manage-visible="manageVisible"
v-if="manageVisible"
:info="rowData"
:stat-year="searchForm.statYear"
@dialogClose="manageDialogClose" />
</d2-dialog>
</template>
......@@ -53,10 +70,11 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { dfBalanceMonthStatListStatYear } from '@api/balanceStatistics'
import { rangePickerOptions_year_2023 } from '@/common/format'
import manageOtherDialog from './manageOtherDialog'
export default {
name: 'DetailDialog',
components: {
manageOtherDialog
},
data() {
return {
......@@ -97,6 +115,10 @@ export default {
return (cellValue.usedDfQuota || cellValue.usedDfQuota == 0) ? cellValue.usedDfQuota.toFixed(2) : '-'
}
}, {
label: "其他",
prop: "other",
addHtml: "other"
}, {
label: '余额',
prop: 'remnantQuota',
formatter: (cellValue) => {
......@@ -107,7 +129,9 @@ export default {
},
baseData: {
}
},
manageVisible: false,
rowData: {}
}
},
......@@ -160,6 +184,17 @@ export default {
handleClose() {
this.$emit('dialogClose')
},
// 管理其他变更明细
gotoManage(scope) {
this.rowData = scope
this.manageVisible = !this.manageVisible
},
manageDialogClose() {
this.manageVisible = !this.manageVisible
this.getList()
}
}
......
......@@ -110,6 +110,13 @@ export default {
return (cellValue.totalUsedDfQuota || cellValue.totalUsedDfQuota == 0) ? parseFloat(cellValue.totalUsedDfQuota).toFixed(2) : '-'
}
}, {
label: '累计其他金额',
prop: 'totalOtherAmount',
width: '150px',
formatter: (cellValue) => {
return (cellValue.totalOtherAmount || cellValue.totalOtherAmount == 0) ? parseFloat(cellValue.totalOtherAmount).toFixed(2) : '-'
}
}, {
label: '累计余额',
prop: 'totalRemnantQuota',
width: '150px',
......@@ -131,6 +138,13 @@ export default {
return (cellValue.lastMonthUsedDfQuota || cellValue.lastMonthUsedDfQuota == 0) ? parseFloat(cellValue.lastMonthUsedDfQuota).toFixed(2) : '-'
}
}, {
label: '上月其他金额',
prop: 'lastMonthOtherAmount',
width: '150px',
formatter: (cellValue) => {
return (cellValue.lastMonthOtherAmount || cellValue.lastMonthOtherAmount == 0) ? parseFloat(cellValue.lastMonthOtherAmount).toFixed(2) : '-'
}
}, {
label: '上月余额',
prop: 'lastMonthRemnantQuota',
width: '150px',
......@@ -208,6 +222,7 @@ export default {
editDialogClose(obj) {
this.detailVisible = !this.detailVisible
this.$refs.recordTable.refreshTable(false, true)
},
handleExport() {
......
......@@ -130,7 +130,8 @@
<!-- 权益服务 -->
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span>
<span>可选择的服务项目(多选)</span>
<span>服务项目(多选)</span>
<img src="@/assets/icon-edit.png" style="cursor: pointer;margin-left: 5px;width: 16px;height: 16px;vertical-align: middle;" @click="serviceSelectFocus()" />
</td>
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span>
......@@ -706,7 +707,10 @@ export default {
`.el-select__tags > span>span:nth-child(1)`
)
setTimeout(() => {
if (tagSpan) tagSpan.innerHTML = `+${item?.serviceItemArr?.length}`
if (tagSpan) {
tagSpan.innerHTML = `+${item?.serviceItemArr?.length}`
tagSpan.style.display = "inline-block"
}
}, 60)// 延迟执行(否则获取不到dom)
}
}
......@@ -718,6 +722,17 @@ export default {
this.serviceItemsVisible = true
},
handleRelateServiceConfirm(data) {
// 批量操作服务项目
if (this.filterEmpty(this.serviceSelectIndex)) {
this.goodsInfoData?.goodsSpecificationList.map(v => {
v.serviceItemArr = data
v.upgradePrice = data.reduce((v, i) => {
return v + i.standardSalesCost
}, 0)
return v
})
return this.serviceItemsVisible = false
}
const index = this.serviceSelectIndex
let upgradePrice = 0
data.forEach(v => { // 参考售价通过已选服务项目的销售成本自动累计
......@@ -1064,7 +1079,7 @@ export default {
// 批量服务时间
handleBatchServiceTimeInput(newValue) {
newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.batchObj['oldserviceYears']}`
let oldValue = this.batchObj['oldserviceYears'] ? `${this.batchObj['oldserviceYears']}` : ''
this.$set(this.batchObj, 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.batchObj, 'oldserviceYears', this.batchObj['serviceYears'])
},
......@@ -1150,7 +1165,7 @@ export default {
// 服务时间
handleServiceTimeInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.goodsInfoData.goodsSpecificationList[index]['oldserviceYears']}`
let oldValue = this.goodsInfoData.goodsSpecificationList[index]['oldserviceYears'] ? `${this.goodsInfoData.goodsSpecificationList[index]['oldserviceYears']}` : ''
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldserviceYears', this.goodsInfoData.goodsSpecificationList[index]['serviceYears'])
},
......@@ -1164,14 +1179,16 @@ export default {
let oldValue = `${this.goodsInfoData.goodsSpecificationList[index]['oldminSuitCarPrice']}`
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'minSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldminSuitCarPrice', this.goodsInfoData.goodsSpecificationList[index]['minSuitCarPrice'])
this.handlePriceConflict()
// 取消适用车价区间校验
// this.handlePriceConflict()
},
maxSuitCarPriceInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.goodsInfoData.goodsSpecificationList[index]['oldmaxSuitCarPrice']}`
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'maxSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldmaxSuitCarPrice', this.goodsInfoData.goodsSpecificationList[index]['maxSuitCarPrice'])
this.handlePriceConflict()
// 取消适用车价区间校验
// this.handlePriceConflict()
},
// 是否必填
priceRangeIsRequired(minValue, maxValue) {
......@@ -1179,7 +1196,7 @@ export default {
},
// 单个商品车价区间是否正确
priceIsError(minValue, maxValue) {
return !this.filterEmpty(minValue) && !this.filterEmpty(maxValue) && Number(minValue) >= Number(maxValue)
return !this.filterEmpty(minValue) && !this.filterEmpty(maxValue) && Number(minValue) > Number(maxValue)
},
handlePriceConflict() {
const priceRanges = []
......@@ -1243,10 +1260,15 @@ export default {
td{
display: inline-block;
text-align: center;
vertical-align: middle;
width: 220px;
height: 100%;
line-height: 40px;
border-right: 1px solid #E8E8EA;
span{
display: inline-block;
vertical-align: middle;
}
}
td:last-child{
border-right: none;
......
......@@ -49,11 +49,13 @@
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span>
<span>服务项目</span>
<img v-if="$$(goodsInfoData.goodsSpecificationSingleList,'length')" src="@/assets/icon-edit.png" style="cursor: pointer;margin-left: 5px;width: 16px;height: 16px;vertical-align: middle;" @click="serviceSelectFocus()" />
</td>
<!-- 仅权益升级类目展示 -->
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span>
<span>服务时间/年</span>
<img v-if="$$(goodsInfoData.goodsSpecificationSingleList,'length')" src="@/assets/icon-edit.png" style="cursor: pointer;margin-left: 5px;width: 16px;height: 16px;vertical-align: middle;" @click="batchServiceYears()" />
</td>
<!-- 仅权益升级类目展示 -->
<td v-if="equitySceneType.includes(goodsInfoData.goodsType)">
......@@ -83,7 +85,7 @@
<el-input v-else placeholder="商品名称"
size="small"
:class="{ 'w-150-per': true, 'border-red': (filterEmpty(subItem.specificationData) && subItem.specificationDataEmpty) || subItem.specificationDataError }"
maxlength="20"
maxlength="50"
:ref="'specificationDataInput' + subIndex"
v-model.trim="subItem.specificationData"
@blur="handleGoodsNameBlur($event, subIndex)">
......@@ -361,6 +363,28 @@
</el-form>
</el-row>
</service-items-dialog>
<d2-dialog title="服务时间"
:is-visible.sync="serviceYearsVisible"
width="25%"
btn-ok-label="确定"
@confirmDialog="handleServiceYearsConfirm"
@closeDialog="handleServiceYearsClose">
<el-form ref="serviceYears-dialog-form"
:model="batchForm"
inline
:rules="batchRules"
label-width="120px">
<el-form-item label="服务时间:"
prop="serviceYears">
<el-input class="w-320"
size="small"
maxlength="20"
@input="handleBatchServiceTimeInput($event)"
v-model="batchForm.serviceYears"
placeholder="请输入服务时间/年"></el-input>
</el-form-item>
</el-form>
</d2-dialog>
</div>
</template>
<script>
......@@ -399,7 +423,17 @@ export default {
serviceSelected: [],
serviceSelectIndex: null,
positionTypeList: [], // 太阳膜类商品部位
extendedPosiTypeList: [] // 延保类商品部位
extendedPosiTypeList: [], // 延保类商品部位
serviceYearsVisible: false, // 批量服务时间弹窗
batchForm: {
serviceYears: '',
oldServiceYears: ''
},
batchRules: {
serviceYears: [
{ required: true, message: '请输入服务时间', trigger: 'blur' }
]
}
}
},
props: {
......@@ -531,6 +565,17 @@ export default {
this.serviceItemsVisible = true
},
handleRelateServiceConfirm(data) {
// 批量操作服务项目
if (this.filterEmpty(this.serviceSelectIndex)) {
this.goodsInfoData?.goodsSpecificationSingleList.map(v => {
v.serviceItemArr = data
v.upgradePrice = data.reduce((v, i) => {
return v + i.standardSalesCost
}, 0)
return v
})
return this.serviceItemsVisible = false
}
const index = this.serviceSelectIndex
let upgradePrice = 0
data.forEach(v => { // 参考售价通过已选服务项目的销售成本自动累计
......@@ -543,6 +588,28 @@ export default {
this.serviceSelected = []
this.serviceItemsVisible = false
},
batchServiceYears() {
this.batchForm.serviceYears = ''
this.serviceYearsVisible = true
this.$nextTick(() => {
this.$refs['serviceYears-dialog-form'].clearValidate()
})
},
handleServiceYearsClose() {
this.serviceYearsVisible = false
},
handleServiceYearsConfirm() {
this.$refs['serviceYears-dialog-form'].validate((valid, opt) => {
if (valid) {
const serviceYears = this.batchForm.serviceYears
this.goodsInfoData.goodsSpecificationSingleList.map(v => {
v.serviceYears = serviceYears
return v
})
this.serviceYearsVisible = false
}
})
},
handleRelateServiceClose() {
this.serviceItemsVisible = false
},
......@@ -711,10 +778,17 @@ export default {
// 服务时间
handleServiceTimeInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.goodsInfoData.goodsSpecificationSingleList[index]['oldserviceYears']}`
let oldValue = this.goodsInfoData.goodsSpecificationSingleList[index]['oldserviceYears'] ? `${this.goodsInfoData.goodsSpecificationSingleList[index]['oldserviceYears']}` : ''
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldserviceYears', this.goodsInfoData.goodsSpecificationSingleList[index]['serviceYears'])
},
// 批量服务时间
handleBatchServiceTimeInput(newValue) {
newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = this.batchForm.oldServiceYears ? this.batchForm.oldServiceYears : ''
this.$set(this.batchForm, 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.batchForm, 'oldServiceYears', this.batchForm['serviceYears'])
},
handleServiceTimeBlur(e, index) {
const newValue = e.target.value
if (!newValue) this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'serviceYearsEmpty', true)
......@@ -725,14 +799,16 @@ export default {
let oldValue = `${this.goodsInfoData.goodsSpecificationSingleList[index]['oldminSuitCarPrice']}`
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'minSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldminSuitCarPrice', this.goodsInfoData.goodsSpecificationSingleList[index]['minSuitCarPrice'])
this.handlePriceConflict()
// 取消适用车价区间校验
// this.handlePriceConflict()
},
maxSuitCarPriceInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.goodsInfoData.goodsSpecificationSingleList[index]['oldmaxSuitCarPrice']}`
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'maxSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldmaxSuitCarPrice', this.goodsInfoData.goodsSpecificationSingleList[index]['maxSuitCarPrice'])
this.handlePriceConflict()
// 取消适用车价区间校验
// this.handlePriceConflict()
},
// 是否必填
priceRangeIsRequired(minValue, maxValue) {
......@@ -740,7 +816,7 @@ export default {
},
// 单个商品车价区间是否正确
priceIsError(minValue, maxValue) {
return !this.filterEmpty(minValue) && !this.filterEmpty(maxValue) && Number(minValue) >= Number(maxValue)
return !this.filterEmpty(minValue) && !this.filterEmpty(maxValue) && Number(minValue) > Number(maxValue)
},
handlePriceConflict() {
const priceRanges = []
......@@ -801,10 +877,15 @@ export default {
td{
display: inline-block;
text-align: center;
vertical-align: middle;
width: 220px;
height: 100%;
line-height: 40px;
border-right: 1px solid #E8E8EA;
span{
display: inline-block;
vertical-align: middle;
}
}
td:last-child{
border-right: none;
......
......@@ -438,7 +438,8 @@ export default {
const singleMaxpriceRangeNode = this.$refs['specifications-form']?.$refs.singleSpecificationFormRef?.$refs[`max-car-price-range-input${i}`]
const multipleMinPriceRangeNode = this.$refs['specifications-form']?.$refs.multipleSpecificationFormRef?.$refs[`min-car-price-range-input${i}`]
const multipleMaxPriceRangeNode = this.$refs['specifications-form']?.$refs.multipleSpecificationFormRef?.$refs[`max-car-price-range-input${i}`]
if (this.handlePriceConflict()?.length) throw true
// 去掉适用车价校验
// if (this.handlePriceConflict()?.length) throw true
// 获取适用车价元素
if (singleMinpriceRangeNode && singleMinpriceRangeNode[0]?.$el?.className?.includes('border-red')) throw true
if (singleMaxpriceRangeNode && singleMaxpriceRangeNode[0]?.$el?.className?.includes('border-red')) throw true
......
......@@ -27,6 +27,7 @@ export default {
return {
userInfo: this.$store.state.d2admin.user.info,
txtObj: {
运营审核: '审核通过后,退款单据自动流转至商务审核。',
商务审核: '审核通过后,退款单据自动流转至财务复核。',
财务复核: '审核通过后,退款单据自动流转至财务结算。'
},
......@@ -88,13 +89,16 @@ export default {
methods: {
handleAddConfirm() {
var params = {}
var params = {
status: 1
}
params.remark = this.infoForm.remark
if (this.examineType == '商务审核') {
params.status = 2
} else {
params.status = 3
const obj = {
'运营审核': 1,
'商务审核': 2,
'财务复核': 3,
}
params.status = obj[this.examineType]
if (this.infoList.length > 1) {
params.idList = this.infoList.map((item) => {
return item.id
......
......@@ -1284,7 +1284,8 @@ export default {
name: "orderDetail",
query: {
detail: JSON.stringify(data.row),
signRefundFlag: this.signRefundFlag
signRefundFlag: this.signRefundFlag,
scene: 'jpsj'
}
})
},
......
......@@ -301,6 +301,7 @@
<new-sign-refund-dialog :sign-refund-visible="signRefundVisible"
:detail="detail"
:order-type="1"
:scene="scene"
v-if="signRefundVisible"
@dialogClose="dialogClose" />
<!-- 超管修改备注 -->
......@@ -377,6 +378,7 @@ export default {
}],
progressList: [],
scene: '',
signRefundVisible: false,
signRefundFlag: false,
remarkVisible: false,
......@@ -398,6 +400,7 @@ export default {
},
mounted() {
this.signRefundFlag = this.$route.query.signRefundFlag
this.scene = this.$route.query.scene
this.getBaseData()
this.getGoodsOrderDetail()
const $store = this.$store.getters['d2admin/auth/curBtns']
......
......@@ -44,7 +44,7 @@
</span>
<!-- 审核 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 1 || scope.scope.status == 2">
v-if="scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9040805']" />
</span>
......@@ -56,7 +56,7 @@
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3">
v-if="scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3">
<auth-button :data="scope.scope"
:show-btn-ids="['9040807']" />
</span>
......@@ -64,6 +64,7 @@
<span style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9040808']" />
<span v-if="scope.scope.downCount != 0" style="color: #2A58AD;">({{scope.scope.downCount}})</span>
</span>
</div>
</d2-table>
......@@ -158,6 +159,18 @@ export default {
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '服务对接',
name: 'yqMerchantName',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '流量方',
name: 'shopMerchantName',
type: 'input',
maxlength: '20',
isClear: true
}],
getListApi: refundApplyRecordPage,
tableParams: {
......@@ -195,7 +208,10 @@ export default {
}, {
label: '银行账号',
prop: 'bankAccountNo',
width: '160px'
width: '160px',
formatter: (cellValue) => {
return cellValue.bankAccountNo ? cellValue.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") : '--'
}
}, {
label: '关联业务单号',
prop: 'bizOrderCode',
......@@ -216,6 +232,14 @@ export default {
return ""
}
}
}, {
label: '所属服务对接',
prop: 'yqMerchantName',
width: '200px'
}, {
label: '所属流量方',
prop: 'shopMerchantName',
width: '200px'
}, {
label: '申请人',
prop: 'createdBy'
......@@ -235,6 +259,7 @@ export default {
},
className: (cellValue) => {
return {
0: 'blueSpot',
1: 'blueSpot',
2: 'blueSpot',
3: 'blueSpot',
......@@ -326,6 +351,16 @@ export default {
this.$refs.recordTable.refreshTable(false, true)
},
// 批量运营审核
batchOperatorAudit() {
var selectedData = []
console.log(this.$refs.recordTable.mutiSelectArr.refundList)
if (this.$refs.recordTable.mutiSelectArr.refundList) {
selectedData = this.$refs.recordTable.mutiSelectArr.refundList
}
this.handleBatchExamine_commit(selectedData, "运营审核")
},
// 批量商务审核
batchBusinessExamine() {
var selectedData = []
......@@ -355,7 +390,22 @@ export default {
return false
}
let _flag = true
if (examineType == '商务审核') {
if (examineType == '运营审核') {
selectedData.forEach(item => {
if (item.status != 0) { // 非“运营审核”状态不允许批量运营审核
_flag = false
}
})
if (!_flag) {
this.$message({
message: "请选择待运营审核的退款记录;本次操作无效",
type: "warning",
showClose: true
})
return
}
} else if (examineType == '商务审核') {
selectedData.forEach(item => {
if (item.status != 1) { // 非“商务审核”状态不允许批量商务审核
_flag = false
......@@ -393,14 +443,13 @@ export default {
handleExamine(row) {
console.log(row)
const selectedData = []
let examineType = ''
selectedData.push(row)
if (row.status == 1) {
examineType = '商务审核'
} else if (row.status == 2) {
examineType = '财务复核'
const obj = {
0: '运营审核',
1: '商务审核',
2: '财务复核',
}
this.handleBatchExamine_commit(selectedData, examineType)
this.handleBatchExamine_commit(selectedData, obj[row.status])
},
// 关闭审核弹窗
......@@ -415,11 +464,13 @@ export default {
handleReject(row) {
console.log(row)
this.infos = []
if (row.status == 1) {
this.rejectType = '商务驳回'
} else if (row.status == 2 || row.status == 3) {
this.rejectType = '财务驳回'
const obj = {
0: '运营驳回',
1: '商务驳回',
2: '财务驳回',
3: '财务驳回'
}
this.rejectType = obj[row.status]
console.log('rejectType', this.rejectType)
this.infos.push(row)
this.rejectVisible = !this.rejectVisible
......
......@@ -91,6 +91,14 @@ export default {
min-width: 700px;
}
::v-deep .el-textarea .el-input__count {
right: 10px;
bottom: -7px;
font-size: 12px;
color: #999999;
background-color: transparent;
}
.accountDailog .el-select-dropdown__item {
width: 395px !important;
}
......
<template>
<baseDialog
:is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose"
>
<div class="detail-content">
<div class="form_div">
<el-form class="edit-sub-block" label-width="110px" :inline="true">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="积分类型:">
{{ detailInfo.infoName ? detailInfo.infoName : "-" }}
</el-form-item></el-col
>
<el-col :span="12">
<el-form-item label="积分明细:" class="halfItem">
{{
detailInfo.rewardScore
? (detailInfo.type == 0 ? "+" : "-") +
detailInfo.rewardScore
: "--"
}}
</el-form-item></el-col
>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="客户名称:">
{{ detailInfo.customerName ? detailInfo.customerName : "-" }}
</el-form-item></el-col
>
<el-col :span="12">
<el-form-item label="客户手机号:" class="halfItem">
{{ detailInfo.customerPhone ? detailInfo.customerPhone : "-" }}
</el-form-item></el-col
>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="订单编号:">
{{ detailInfo.orderCode ? detailInfo.orderCode : "-" }}
</el-form-item></el-col
>
<el-col :span="12">
<el-form-item label="商品名称:" class="halfItem">
{{ detailInfo.goodsName ? detailInfo.goodsName : "-" }}
</el-form-item></el-col
>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="积分变化时间:">
{{ detailInfo.updatedTime ? detailInfo.updatedTime : "-" }}
</el-form-item></el-col
>
<el-col :span="12">
<el-form-item label="员工名称:" class="halfItem">
{{ detailInfo.staffName ? detailInfo.staffName : "-" }}
</el-form-item></el-col
>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="员工手机号:" class="halfItem">
{{ detailInfo.staffPhone ? detailInfo.staffPhone : "-" }}
</el-form-item></el-col
>
<el-col :span="12">
<el-form-item label="门店名称:" class="halfItem">
{{ detailInfo.merchantName ? detailInfo.merchantName : "-" }}
</el-form-item></el-col
>
</el-row>
<el-row>
<el-col :span="12">
<template
v-if="
detailInfo.infoName == '积分兑换' ||
detailInfo.infoName == '积分返还'
"
>
<el-form-item label="兑换时间:" class="halfItem">
{{
detailInfo.withdrawalTime ? detailInfo.withdrawalTime : "-"
}}
</el-form-item>
</template>
<template v-if="detailInfo.infoName == '退款抵扣'">
<el-form-item label="退款时间:" class="halfItem">
{{ detailInfo.failTime ? detailInfo.failTime : "-" }}
</el-form-item></template
>
<template v-if="detailInfo.infoName == '错单抵扣'">
<el-form-item label="错单时间:" class="halfItem">
{{ detailInfo.failTime ? detailInfo.failTime : "-" }}
</el-form-item>
</template>
<template v-if="detailInfo.infoName == '撤单抵扣'">
<el-form-item label="撤单时间:" class="halfItem">
{{ detailInfo.failTime ? detailInfo.failTime : "-" }}
</el-form-item>
</template>
</el-col>
</el-row>
</el-form>
</div>
</div>
</baseDialog>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { getScoreDetail } from "@api/point"
export default {
name: "DetailDialog",
props: {
visible: {
type: Boolean,
default: false
},
id: {
type: Number,
default: ""
}
},
computed: {
dialogShow: {
get() {
return this.visible
},
set(val) {
this.$emit("update:visible", val)
}
}
},
watch: {
id(val) {
if (val) this.getDetail()
}
},
mounted() {
this.getDetail()
},
data() {
return {
dialogConfig: {
setting: {
showClose: true,
appendToBody: false,
btnList: []
},
config: {
title: "查看详情",
width: "1080px"
}
},
detailInfo: {}
}
},
methods: {
handleDetailClose() {
this.dialogShow = false
},
getDetail() {
getScoreDetail({ id: this.id }).then((res) => {
if (res) {
res.updatedTime = res.updatedTime
? Util.dateFormate(res.updatedTime, "YYYY-MM-DD HH:mm:ss")
: "--"
res.withdrawalTime = res.withdrawalTime
? Util.dateFormate(res.withdrawalTime, "YYYY-MM-DD HH:mm:ss")
: "--"
res.refundTime = res.refundTime
? Util.dateFormate(res.refundTime, "YYYY-MM-DD HH:mm:ss")
: "--"
res.failTime = res.failTime
? Util.dateFormate(res.failTime, "YYYY-MM-DD HH:mm:ss")
: "--"
res.revokeTime = res.revokeTime
? Util.dateFormate(res.revokeTime, "YYYY-MM-DD HH:mm:ss")
: "--"
this.detailInfo = res
}
})
}
}
}
</script>
<style lang="scss" scoped>
.form_div {
color: #333333;
padding: 20px 30px;
// border-bottom: 1px solid #eee;
// .edit-sub-title {
// font-weight: bold;
// margin-bottom: 10px;
// }
.edit-sub-block {
// padding: 0 10px;
.el-form-item {
width: 100%;
margin-bottom: 0px;
}
.itemDiv {
display: flex;
.halfItem {
width: 50%;
}
}
.detail-txt {
display: inline-block;
width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 110px);
word-break: break-all;
}
}
.edit-sub-block-two {
.el-form-item {
// width: 300px;
margin-bottom: 0px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="detail-wrap">
<d2-container class="point-list">
<div class="detail-tabs">
<div
class="detail-tabs-item"
v-for="(item, index) in list"
:key="index"
>
<div class="title">{{ item.title }}</div>
<div class="score">
{{ detailObj[item.key] ||detailObj[item.key]==0? detailObj[item.key] : "--" }}
</div>
</div>
</div>
<div class="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'150px'"
:form-data="showFormData"
/>
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header
:title="'积分明细列表'"
:title-class-name="'tableHeaderTitle'"
>
<el-button size="small" type="primary" @click="handleExport"> 导出 </el-button>
</d2-table-header>
<d2-table
ref="pointTable"
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<el-button type="text" @click="handleDetail(scope.scope)"
>详情</el-button
>
</div>
</d2-table>
<!-- 详细信息 -->
<point-detail-dialog
:visible.sync="detailVisible"
v-if="detailVisible"
:id="recordInfo.id"
/>
</div>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { getDetailList, exportDetailScore } from "@api/point"
import pointDetailDialog from "./components/pointDetailDialog"
export default {
components: {
pointDetailDialog
},
data() {
return {
detailVisible: false,
recordInfo: {},
searchForm: {
infoName: "",
rewardTime: []
},
searchFormSearch: {},
list: [
{
title: "当前积分",
key: "currentScore"
},
{
title: "累计收益积分",
key: "totalRewardScore"
},
{
title: "累计兑换积分",
key: "totalWithdrawalScore"
}
],
showFormData: [
{
label: "积分类型",
name: "infoName",
type: "select",
optionId: "confId",
optionLabel: "confLabel",
optionsName: "infoNameList"
},
{
label: "积分变化时间",
name: "rewardTime",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
}
],
getListApi: getDetailList,
baseData: {
infoNameList: [
{
confId: "积分收益",
confLabel: "积分收益"
},
{
confId: "积分兑换",
confLabel: "积分兑换"
},
{
confId: "退款抵扣",
confLabel: "退款抵扣"
},
{
confId: "撤单抵扣",
confLabel: "撤单抵扣"
},
{
confId: "错单抵扣",
confLabel: "错单抵扣"
}
]
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
tableOption: true,
tableColumns: [
{
label: "积分类型",
prop: "infoName"
},
{
label: "积分明细",
prop: "rewardScore",
formatter: (cell) => {
return cell.rewardScore
? (cell.type == 0 ? "+" : "-") + cell.rewardScore
: "--"
}
},
{
label: "当前积分",
prop: "finalTotalScore",
formatter: (cell) => {
return cell.finalTotalScore||cell.finalTotalScore==0
? cell.finalTotalScore
: "--"
}
},
{
label: "变化前积分",
prop: "currentTotalScore",
formatter: (cell) => {
return cell.currentTotalScore||cell.currentTotalScore==0
? cell.currentTotalScore
: "--"
}
},
{
label: "积分变化时间",
prop: "updatedTime",
formatter: (cell) => {
return Util.dateFormate(cell.updatedTime, "YYYY-MM-DD HH:mm:ss")
}
}
]
}
}
},
created() {
this.detailObj = this.$route.query
console.log(this.detailObj)
this.getOptionsList()
},
methods: {
// 导出
handleExport() {
let params = {
...this.searchFormSearch,
currentPage: 1,
pageSize: 9999
}
exportDetailScore(params).then((res) => {
console.log(res)
this.$open(res)
})
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.staffId=this.detailObj.staffId
if (this.searchFormSearch.rewardTime&&this.searchFormSearch.rewardTime.length) {
this.searchFormSearch.rewardBeginTime =
Util.dateFormate(
this.searchFormSearch.rewardTime[0],
"YYYY-MM-DD"
) + " 00:00:00"
this.searchFormSearch.rewardEndTime =
Util.dateFormate(
this.searchFormSearch.rewardTime[1],
"YYYY-MM-DD"
) + " 23:59:59"
}
delete this.searchFormSearch.rewardTime
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp)
}
this.$set(
this.showFormData[index],
"optionList",
this.baseData[item.optionsName]
)
}
})
},
// 查看详情
handleDetail(data) {
this.recordInfo = data
this.detailVisible = true
},
handleSearch() {
this.$refs.pointTable.refreshTable()
},
handleReset() {
this.searchForm = {
infoName: "",
rewardTime: []
}
this.searchFormSearch = {}
this.$refs.pointTable.refreshTable(true, true)
}
}
}
</script>
<style lang="scss" scoped>
.d2-container-content {
::v-deep {
.tableHeaderTitle {
font-weight: 500;
font-size: 16px;
color: #333333;
}
}
}
.header{
background: #ffffff;
}
.detail-wrap {
margin: 16px 24px;
.detail-tabs {
width: 100%;
background: #ffffff;
display: flex;
align-items: center;
justify-content: space-around;
padding: 20px 16px;
box-sizing: border-box;
margin-bottom: 16px;
.detail-tabs-item {
flex: 1;
height: 104px;
background: #f8faff;
border-radius: 5px;
padding: 20px;
box-sizing: border-box;
margin-right: 16px;
.title {
font-size: 16px;
color: #333333;
}
.score {
font-weight: 700;
font-size: 28px;
color: #185efe;
line-height: 42px;
}
}
}
}
</style>
\ No newline at end of file
<template>
<d2-container class="point-list">
<div class="header" slot="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'150px'"
:form-data="showFormData"
/>
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header
:title="'积分明细列表'"
:title-class-name="'tableHeaderTitle'"
>
<auth-button category="Button" :show-btn-ids="['9140202']" />
</d2-table-header>
<d2-table
ref="pointTable"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
>
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9140201']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { getScorePage, getShopMerchantList,exportScore } from "@api/point"
export default {
data() {
return {
searchForm: {
staffName: "",
staffPhone: "",
merchantId: ""
},
getListApi: getScorePage,
showFormData: [
{
label: "员工名称",
name: "staffName",
type: "input",
isClear: true
},
{
label: "员工手机号",
name: "staffPhone",
type: "input",
isClear: true
},
{
label: "门店名称",
name: "merchantId",
type: "select",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "merchantServiceList"
}
],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
tableOption: true,
tableColumns: [
{
label: "门店名称",
prop: "merchantName"
},
{
label: "员工名称",
prop: "staffName"
},
{
label: "员工手机号",
prop: "staffPhone"
},
{
label: "当前积分",
prop: "currentScore"
},
{
label: "累计收益积分",
prop: "totalRewardScore"
},
{
label: "累计兑换积分",
prop: "totalWithdrawalScore"
}
]
},
baseData: {
merchantServiceList: []
}
}
},
mounted() {
getShopMerchantList({}).then((res) => {
this.baseData.merchantServiceList = res
this.getOptionsList()
})
},
methods: {
// 导出
handleExport() {
let params = {
...this.searchForm,
currentPage: 1,
pageSize: 9999
}
exportScore(params).then((res) => {
this.$open(res)
})
},
handleDetail(data) {
this.$router.push({
name: "pointDetail",
query: data
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp)
}
this.$set(
this.showFormData[index],
"optionList",
this.baseData[item.optionsName]
)
}
})
},
handleSearch() {
this.$refs.pointTable.refreshTable()
},
handleReset() {
this.searchForm = {
staffName: "",
staffPhone: "",
merchantId: ""
}
this.$refs.pointTable.refreshTable(true, true)
}
}
}
</script>
<style scoped lang="scss">
.d2-container-content {
::v-deep {
.tableHeaderTitle {
font-weight: 500;
font-size: 16px;
color: #333333;
}
}
}
</style>
\ No newline at end of file
<template>
<d2-dialog
title="员工注册码"
:is-visible="employeeVisible"
class="qRcodeDailog"
width="750px"
btn-ok-label="下载"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm"
>
<div class="employee-wrap" v-if="qrCodeURL">
<div class="title">员工注册码</div>
<div class="code">
<img :src="qrCodeURL" alt="" />
</div>
</div>
</d2-dialog>
</template>
<script>
// alipayQrcode
import { employeeRegister } from "@api/shopConfig"
export default {
name: "employeeDialog",
data() {
return {
// 基本数据
baseData: {
merchantList: []
},
loading: true,
qrCodeURL: ""
}
},
props: {
employeeVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: null
}
},
watch: {},
created() {},
components: {},
mounted() {
this.getEmployeeRegister()
},
methods: {
getEmployeeRegister() {
employeeRegister({
merchantId: this.info.merchantId
}).then((res) => {
if (res) {
this.qrCodeURL = res.qrCode
this.loading = false
}
})
},
downloadIamge(imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名
var image = new Image()
// 解决跨域 Canvas 污染问题
image.setAttribute("crossOrigin", "anonymous")
image.onload = function () {
var canvas = document.createElement("canvas")
canvas.width = image.width
canvas.height = image.height
var context = canvas.getContext("2d")
context.drawImage(image, 0, 0, image.width, image.height)
var url = canvas.toDataURL("image/png") //得到图片的base64编码数据
var a = document.createElement("a") // 生成一个a元素
var event = new MouseEvent("click") // 创建一个单击事件
a.download = name || "photo" // 设置图片名称
a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件
}
image.src = imgsrc
},
handleAddConfirm() {
// this.downImg(this.qrCodeURL, "员工注册码.png")
this.downloadIamge(this.qrCodeURL, "员工注册码.png")
},
handleClose() {
this.$emit("dialogClose", true)
}
}
}
</script>
<style scoped lang="scss">
.employee-wrap {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
.title {
font-weight: 500;
font-size: 14px;
color: #333333;
margin-bottom: 8px;
}
.code {
width: 120px;
height: 120px;
img {
width: 100%;
}
}
}
</style>
\ No newline at end of file
......@@ -107,6 +107,12 @@
v-if="qRcodeVisible"
@dialogClose="dialogClose"
/>
<employee-dialog
:employee-visible="employeeVisible"
:info="recordInfo"
v-if="employeeVisible"
@dialogClose="employeeDialogClose"
/>
<!-- 门店标签 -->
<flag-dialog
:flag-visible="flagVisible"
......@@ -128,12 +134,14 @@ import {
} from "@api/index"
import { businessNature, storeType } from "@/common/constants.js"
import qrcodeDialog from "./components/qRcodeDialog"
import employeeDialog from "./components/employeeDialog"
import flagDialog from "./components/flagDialog"
export default {
name: "ShopConfigIndex",
components: {
qrcodeDialog,
flagDialog
flagDialog,
employeeDialog
},
data() {
return {
......@@ -262,7 +270,13 @@ export default {
prop: "areaSupervisionList",
width: "200px",
formatter: (cellValue) => {
let areaSuper = (cellValue.areaSupervisionList && cellValue.areaSupervisionList.length) ? cellValue.areaSupervisionList.map(item => item.userName).join('/') : '-'
let areaSuper =
cellValue.areaSupervisionList &&
cellValue.areaSupervisionList.length
? cellValue.areaSupervisionList
.map((item) => item.userName)
.join("/")
: "-"
return areaSuper
}
},
......@@ -330,6 +344,7 @@ export default {
fileName: [{ required: true, message: "请上传文件", trigger: "change" }]
},
qRcodeVisible: false,
employeeVisible: false,
flagVisible: false
}
},
......@@ -364,7 +379,11 @@ export default {
async getBaseData() {
this.getOptionsList()
},
//员工注册码
employeeRegistrationCode(row) {
this.recordInfo = row
this.employeeVisible = !this.employeeVisible
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
......@@ -589,6 +608,9 @@ export default {
dialogClose() {
this.qRcodeVisible = !this.qRcodeVisible
},
employeeDialogClose() {
this.employeeVisible = !this.employeeVisible
},
// 工单配置
handleSet(row) {
......
......@@ -6,7 +6,11 @@
</div>
<div class="account-detail" ref="accountDetail">
<div v-if="formArray && formArray.length">
<div v-for="(formItem, index) in formArray" :ref="'resize' + index" :key="index">
<div
v-for="(formItem, index) in formArray"
:ref="'resize' + index"
:key="index"
>
<p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }">
<span class="label">
<span>{{ formItem.formatEffectStartDate }}</span>
......@@ -23,12 +27,15 @@
操作人: {{ formItem.createdBy }} 操作时间:
{{ formItem.formatCreatedDate }}
</span>
<span class="updatedInfo">
<!-- <span class="updatedInfo">
审核人: {{ formItem.auditorName }} 审核时间:
{{ formItem.formatAuditDate }}
</span>
</span> -->
<span class="collapse" @click="collapseItem(index)">
<i :class="{ move: !formItem.show }" class="arrow el-icon-arrow-down" />
<i
:class="{ move: !formItem.show }"
class="arrow el-icon-arrow-down"
/>
{{ formItem.show ? "收起" : "展开" }}
</span>
</p>
......@@ -62,7 +69,6 @@
<p class="title">暂无历史记录</p>
<p class="tips">快去设置看看~</p>
</div>
</div>
<div class="btns">
<el-button @click="handleCancel" size="small" type="primary">
......@@ -75,8 +81,8 @@
<script>
import dayjs from "dayjs"
import { trmHistory } from '@api/deviceManage'
import { mapActions } from 'vuex'
import { trmHistory } from "@api/deviceManage"
import { mapActions } from "vuex"
export default {
name: "DeviceHistory",
data() {
......@@ -85,21 +91,18 @@ export default {
recordInfo: null
}
},
components: {
},
computed: {
},
components: {},
computed: {},
created() {
this.recordInfo = this.$route.params.info
this.recordInfo = JSON.parse(this.$route.query.info)
},
mounted() {
this.getHistoryRecord()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
collapseItem(SelectIndex) {
......@@ -117,11 +120,11 @@ export default {
const id = this.recordInfo.id
const params = { id }
trmHistory(params).then(res => {
trmHistory(params).then((res) => {
if (res.length != 0) {
const format = "YYYY/MM/DD HH:mm"
this.formArray = res
this.formArray = this.formArray.map(item => {
this.formArray = this.formArray.map((item) => {
item.formatEffectEndDate = item.effectEndDate
? dayjs(item.effectEndDate).format(format)
: ""
......@@ -129,7 +132,7 @@ export default {
? dayjs(item.effectStartDate).format(format)
: ""
item.formatCreatedDate = dayjs(item.createdDate).format(format)
item.formatAuditDate = dayjs(item.auditDate).format(format)
// item.formatAuditDate = dayjs().format(format)
item.show = false
return item
})
......@@ -141,9 +144,9 @@ export default {
handleCancel() {
this.$router.push({
name: 'deviceManage'
name: "deviceManage"
})
this.close({ tagName: '/deviceHistory' })
this.close({ tagName: "/deviceHistory" })
}
}
}
......@@ -412,10 +415,11 @@ $color: #2a58ad;
font-size: 14px;
color: #666666;
.manner {}
.manner {
}
.online {
&+.online {
& + .online {
margin-left: 44px;
}
......@@ -468,7 +472,7 @@ $color: #2a58ad;
.type2 {
width: 66.66%;
.type-val{
.type-val {
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
......@@ -491,7 +495,7 @@ $color: #2a58ad;
background: #f2f4f7;
.cost {
&+.cost {
& + .cost {
border-left: 1px solid #e8e8ea;
}
......@@ -510,7 +514,7 @@ $color: #2a58ad;
justify-content: center;
align-items: center;
&+.detail-i {
& + .detail-i {
border-left: 1px solid #e8e8ea;
}
......@@ -526,4 +530,5 @@ $color: #2a58ad;
justify-content: center;
align-items: center;
}
}</style>
}
</style>
<!-- 设备管理 -->
<template>
<d2-container class="service-manage">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData"
/>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<span slot="left">
<auth-button category="Button" /></span>
<span slot="left"> <auth-button category="Button" /></span>
</d2-table-header>
<d2-table ref="deviceTable"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table
ref="deviceTable"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<auth-button
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
/>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { trmList, trmDelete } from '@api/deviceManage'
import { mapActions } from 'vuex'
import { BaseData } from '@/common/constants.js'
import { Util, deepClone } from "@/common/util"
import { trmList, trmDelete } from "@api/deviceManage"
import { mapActions } from "vuex"
import { BaseData } from "@/common/constants.js"
export default {
name: 'DviceList',
name: "DviceList",
data() {
return {
searchForm: {
posTrmNo: '',
searchMerchantName: '',
searchMerchantId: ''
posTrmNo: "",
searchMerchantName: "",
searchMerchantId: ""
},
showFormData: [{
label: '终端编码',
name: 'posTrmNo',
type: 'input',
placeholder: '请输入POS机的终端编码',
maxlength: '20',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '商户名称',
name: 'searchMerchantName',
type: 'input',
placeholder: '请输入流量方/园区店名称',
maxlength: '20',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '商户号',
name: 'searchMerchantId',
type: 'input',
inputType: 'number',
maxlength: '20',
placeholder: '请输入流量方/园区店商户号',
isClear: true,
keyFn: this.keyDowmGetList
}],
showFormData: [
{
label: "终端编码",
name: "posTrmNo",
type: "input",
placeholder: "请输入POS机的终端编码",
maxlength: "20",
isClear: true,
keyFn: this.keyDowmGetList
},
{
label: "商户名称",
name: "searchMerchantName",
type: "input",
placeholder: "请输入流量方/园区店名称",
maxlength: "20",
isClear: true,
keyFn: this.keyDowmGetList
},
{
label: "商户号",
name: "searchMerchantId",
type: "input",
inputType: "number",
maxlength: "20",
placeholder: "请输入流量方/园区店商户号",
isClear: true,
keyFn: this.keyDowmGetList
}
],
maxLength: 10,
getListApi: trmList,
// 表格参数
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
listName: "list",
tableOption: true,
tableColumns: [{
label: '终端编码',
prop: 'posTrmNo'
}, {
label: '关联园区店',
prop: 'yqMerchantName'
}, {
label: '园区店商户号',
prop: 'yqMerchantId',
width: '120'
}, {
label: '关联流量方',
prop: 'merchantName'
}, {
label: '流量方商户号',
prop: 'merchantId',
width: '120'
}, {
label: '最近更新时间',
prop: 'updatedDate',
width: '160',
formatter: (cellValue) => {
return Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss')
tableColumns: [
{
label: "终端编码",
prop: "posTrmNo"
},
{
label: "关联园区店",
prop: "yqMerchantName"
},
{
label: "园区店商户号",
prop: "yqMerchantId",
width: "120"
},
{
label: "关联流量方",
prop: "merchantName"
},
{
label: "流量方商户号",
prop: "merchantId",
width: "120"
},
{
label: "最近更新时间",
prop: "updatedDate",
width: "160",
formatter: (cellValue) => {
return Util.dateFormate(
cellValue.updatedDate,
"YYYY-MM-DD HH:mm:ss"
)
}
}
}]
]
},
baseData: {
}
baseData: {}
}
},
components: {
},
components: {},
mounted() {
this.getBaseData()
......@@ -127,13 +137,13 @@ export default {
},
methods: {
...mapActions({ close: 'd2admin/page/close' }),
...mapActions({ close: "d2admin/page/close" }),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
return new Promise((resolve) => {
resolve()
})
},
......@@ -142,26 +152,29 @@ export default {
},
handleReset() {
this.searchForm = {
posTrmNo: '',
searchMerchantName: '',
searchMerchantId: ''
posTrmNo: "",
searchMerchantName: "",
searchMerchantId: ""
}
this.$refs.deviceTable.refreshTable()
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (item.type === "select") {
if (
this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部'
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp)
}
this.$set(
this.showFormData[index],
'optionList',
"optionList",
this.baseData[item.optionsName]
)
}
......@@ -169,21 +182,21 @@ export default {
},
handleAdd() {
this.close({ tagName: '/editDevice' })
this.close({ tagName: "/editDevice" })
this.$router.push({
name: 'editDevice',
name: "editDevice",
params: {
addOrEdit: 'add'
addOrEdit: "add"
}
})
},
handleEdit(row) {
this.close({ tagName: '/editDevice' })
this.close({ tagName: "/editDevice" })
this.$router.push({
name: 'editDevice',
name: "editDevice",
params: {
addOrEdit: 'edit',
addOrEdit: "edit",
info: row
}
})
......@@ -208,17 +221,16 @@ export default {
},
handleHistory(row) {
this.close({ tagName: '/deviceHistory' })
this.close({ tagName: "/deviceHistory" })
this.$router.push({
name: 'deviceHistory',
params: {
info: row
name: "deviceHistory",
query: {
info: JSON.stringify(row)
}
})
}
}
}
</script>
<style scoped>
</style>
......@@ -947,6 +947,7 @@ export default {
// 收入所属公司下拉框选中对象
let incomeOwnerMerchantInfo = this.baseData?.contractAttributionList?.find(item => item['merchantId'] == _formData?.incomeOwnerMerchantId)
let params = {
flag: this.addOrEdit == 'edit' ? 0 : this.addOrEdit == 'add' ? 1 : '', // 新增修改标识(0:修改,1:新增)
scene: _formData?.scene, // 业务类型
shopInfo: shopInfo,
shopContractInfo: {
......
......@@ -22,7 +22,7 @@
plain
@click="handleExport"
size="small">导出</el-button> -->
<auth-button :show-btn-ids="['9040606']" category="Button" />
<!-- <auth-button :show-btn-ids="['9040606']" category="Button" /> -->
</d2-table-header>
<d2-table
ref="damageTable"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!