Commit 987faaa3 by 前端

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

上线合并

See merge request !355
2 parents 82fa94b7 12c641d2
Showing 48 changed files with 1731 additions and 249 deletions
...@@ -3928,7 +3928,11 @@ ...@@ -3928,7 +3928,11 @@
"dependencies": { "dependencies": {
"hash-sum": { "hash-sum": {
"version": "1.0.2", "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", "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==", "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true "dev": true
} }
...@@ -17101,7 +17105,7 @@ ...@@ -17101,7 +17105,7 @@
}, },
"vue-hot-reload-api": { "vue-hot-reload-api": {
"version": "2.3.4", "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==", "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true "dev": true
}, },
......
...@@ -14,3 +14,21 @@ export function dfBalanceMonthStatListStatYear(data) { ...@@ -14,3 +14,21 @@ export function dfBalanceMonthStatListStatYear(data) {
data.method = `${path}dfBalanceMonthStat.listStatYear` data.method = `${path}dfBalanceMonthStat.listStatYear`
return request(data, RequestMethods.POST) 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 \ No newline at end of file
...@@ -44,3 +44,14 @@ export function downloadPdf(data) { ...@@ -44,3 +44,14 @@ export function downloadPdf(data) {
data.method = `${path}refundApplyRecord.downloadPdf` data.method = `${path}refundApplyRecord.downloadPdf`
return request(data, RequestMethods.POST) 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) { ...@@ -109,3 +109,8 @@ export function orderFieldSettingUpdate(data) {
data.method = `${path}order.field.setting.update` data.method = `${path}order.field.setting.update`
return request(data, "post") 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 = [ ...@@ -850,6 +850,7 @@ export const auditTypeList = [
// 人员管理-员工审核-审核状态 // 人员管理-员工审核-审核状态
export const refundExamine_status = [ export const refundExamine_status = [
{ confId: 0, confValue: "运营审核" },
{ confId: 1, confValue: "商务审核" }, { confId: 1, confValue: "商务审核" },
{ confId: 2, confValue: "财务复核" }, { confId: 2, confValue: "财务复核" },
{ confId: 3, confValue: "财务结算" }, { confId: 3, confValue: "财务结算" },
......
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" <el-dialog :title="title"
:close-on-click-modal="false" :width="width"> :visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width"
:append-to-body="appendToBody">
<span slot="title"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -12,11 +17,14 @@ ...@@ -12,11 +17,14 @@
<slot /> <slot />
<div slot="footer"> <div slot="footer">
<slot name="btn-start" /> <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"> :loading="$store.state.d2admin.loading.value">
{{ btnOkLabel }} {{ btnOkLabel }}
</el-button> </el-button>
<el-button v-if="!noCancel" @click="handleClose"> 取消 </el-button> <el-button v-if="!noCancel"
@click="handleClose"> 取消 </el-button>
<slot name="btn-middle" /> <slot name="btn-middle" />
</div> </div>
</el-dialog> </el-dialog>
...@@ -57,6 +65,11 @@ export default { ...@@ -57,6 +65,11 @@ export default {
isShowFooter: { isShowFooter: {
type: Boolean, type: Boolean,
default: true 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> <template>
<el-row class="table-header"> <el-row class="table-header">
<el-col :span="leftSpan"> <el-col :span="leftSpan" :class="titleClassName">
<span v-text="title" /> <span v-text="title" class="table-header-title" />
<slot name="left" /> <slot name="left" />
</el-col> </el-col>
<el-col :span="24 - leftSpan"> <el-col :span="24 - leftSpan">
...@@ -19,6 +27,10 @@ export default { ...@@ -19,6 +27,10 @@ export default {
required: false, required: false,
default: '' default: ''
}, },
titleClassName:{
type: String,
default: ''
},
leftSpan: { leftSpan: {
type: Number, type: Number,
required: false, required: false,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-form-item v-if="!item.isHide" <el-form-item v-if="!item.isHide"
:key="index" :key="index"
:id="item.name" :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' }]" :class="[{ 'no-label': !item.label, isBlock: isBlock }, { 'textBox': item.type == 'textBox' }]"
:style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }"
:label="item.label" :label="item.label"
...@@ -523,6 +523,9 @@ export default { ...@@ -523,6 +523,9 @@ export default {
if (item.inputType && (value.length > item.maxlength)) { if (item.inputType && (value.length > item.maxlength)) {
this.formObj[item.name] = value.slice(0, item.maxlength) this.formObj[item.name] = value.slice(0, item.maxlength)
} }
if(item.hasOwnProperty('inputFn')) {
item.inputFn(value)
}
} }
} }
} }
......
...@@ -626,6 +626,14 @@ export const routerName = { ...@@ -626,6 +626,14 @@ export const routerName = {
}, },
auth: [ auth: [
{ {
authId: "9040809",
parentId: "90408",
label: "批量运营审核",
category: "Button",
type: "primary",
handle: "batchOperatorAudit"
},
{
authId: "9040801", authId: "9040801",
parentId: "90408", parentId: "90408",
label: "批量商务审核", label: "批量商务审核",
......
...@@ -780,7 +780,13 @@ export const routerName = { ...@@ -780,7 +780,13 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExportLabel" handle: "handleExportLabel"
} },
{
authId: "9061912",
parentId: "90619",
label: "员工注册码",
handle: "employeeRegistrationCode"
},
], ],
component: _import("systemConfig/ShopConfig/index") component: _import("systemConfig/ShopConfig/index")
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-01 15:03:31 * @Date: 2024-04-01 15:03:31
* @LastEditors: huyue * @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) const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = { export const routerName = {
...@@ -528,5 +528,40 @@ export const routerName = { ...@@ -528,5 +528,40 @@ export const routerName = {
} }
], ],
component: _import("residentManage/loginLogList") 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")
},
}
...@@ -42,9 +42,26 @@ ...@@ -42,9 +42,26 @@
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
:has-page="false" :has-page="false"
:has-num="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> </d2-table>
</div> </div>
</div> </div>
<!-- 管理其他变更明细 -->
<manage-other-dialog :manage-visible="manageVisible"
v-if="manageVisible"
:info="rowData"
:stat-year="searchForm.statYear"
@dialogClose="manageDialogClose" />
</d2-dialog> </d2-dialog>
</template> </template>
...@@ -53,10 +70,11 @@ import { Util, deepClone } from '@/common/util' ...@@ -53,10 +70,11 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { dfBalanceMonthStatListStatYear } from '@api/balanceStatistics' import { dfBalanceMonthStatListStatYear } from '@api/balanceStatistics'
import { rangePickerOptions_year_2023 } from '@/common/format' import { rangePickerOptions_year_2023 } from '@/common/format'
import manageOtherDialog from './manageOtherDialog'
export default { export default {
name: 'DetailDialog', name: 'DetailDialog',
components: { components: {
manageOtherDialog
}, },
data() { data() {
return { return {
...@@ -97,6 +115,10 @@ export default { ...@@ -97,6 +115,10 @@ export default {
return (cellValue.usedDfQuota || cellValue.usedDfQuota == 0) ? cellValue.usedDfQuota.toFixed(2) : '-' return (cellValue.usedDfQuota || cellValue.usedDfQuota == 0) ? cellValue.usedDfQuota.toFixed(2) : '-'
} }
}, { }, {
label: "其他",
prop: "other",
addHtml: "other"
}, {
label: '余额', label: '余额',
prop: 'remnantQuota', prop: 'remnantQuota',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -107,7 +129,9 @@ export default { ...@@ -107,7 +129,9 @@ export default {
}, },
baseData: { baseData: {
} },
manageVisible: false,
rowData: {}
} }
}, },
...@@ -160,6 +184,17 @@ export default { ...@@ -160,6 +184,17 @@ export default {
handleClose() { handleClose() {
this.$emit('dialogClose') 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 { ...@@ -110,6 +110,13 @@ export default {
return (cellValue.totalUsedDfQuota || cellValue.totalUsedDfQuota == 0) ? parseFloat(cellValue.totalUsedDfQuota).toFixed(2) : '-' 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: '累计余额', label: '累计余额',
prop: 'totalRemnantQuota', prop: 'totalRemnantQuota',
width: '150px', width: '150px',
...@@ -131,6 +138,13 @@ export default { ...@@ -131,6 +138,13 @@ export default {
return (cellValue.lastMonthUsedDfQuota || cellValue.lastMonthUsedDfQuota == 0) ? parseFloat(cellValue.lastMonthUsedDfQuota).toFixed(2) : '-' 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: '上月余额', label: '上月余额',
prop: 'lastMonthRemnantQuota', prop: 'lastMonthRemnantQuota',
width: '150px', width: '150px',
...@@ -208,6 +222,7 @@ export default { ...@@ -208,6 +222,7 @@ export default {
editDialogClose(obj) { editDialogClose(obj) {
this.detailVisible = !this.detailVisible this.detailVisible = !this.detailVisible
this.$refs.recordTable.refreshTable(false, true)
}, },
handleExport() { handleExport() {
......
<!-- 新增提现弹窗 --> <!-- 新增提现弹窗 -->
<template> <template>
<baseDialog :dialog-config="dialogConfig" <baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible" :is-show.sync="visible"
class="accountDailog" class="accountDailog"
@handleClick="handleCashConfirm"> @handleClick="handleCashConfirm"
<el-form ref="formRef" >
<el-form
ref="formRef"
:model="infoForm" :model="infoForm"
:rules="cashRules" :rules="cashRules"
label-width="120px"> label-width="120px"
<el-form-item label="提现方:" >
prop="merchantId"> <el-form-item label="提现方:" prop="merchantId">
<el-select v-model="infoForm.merchantId" <el-select
v-model="infoForm.merchantId"
filterable filterable
style="width:310px" style="width: 310px"
placeholder="请选择提现商户" placeholder="请选择提现商户"
@change="getBankBalance"> @change="getBankBalance"
<el-option v-for="(item,index) in baseData.merchantList" >
<el-option
v-for="(item, index) in baseData.merchantList"
:key="index" :key="index"
:label="item.merchantName" :label="item.merchantName"
:value="item.merchantId" /> :value="item.merchantId"
/>
</el-select> </el-select>
<p> <p>银盛账户余额:{{ balance || balance === 0 ? balance : "-" }}</p>
银盛账户余额:{{ (balance || balance === 0)?balance:'-' }}
</p>
</el-form-item> </el-form-item>
<el-form-item label="提现金额:" <el-form-item label="提现金额:" prop="totalAmount">
prop="totalAmount"> <el-input
<el-input v-model="infoForm.totalAmount" v-model="infoForm.totalAmount"
placeholder="请输入提现金额" placeholder="请输入提现金额"
style="width: 310px" style="width: 310px"
:disabled="totalAmountDisabled" :disabled="totalAmountDisabled"
@input="handleUpgradeNum" /> @input="handleUpgradeNum"
/>
</el-form-item> </el-form-item>
<el-form-item label="财务管理员:" <el-form-item label="财务管理员:" prop="administrators">
prop="administrators"> <el-select
<el-select v-model="infoForm.administrators" v-model="infoForm.administrators"
filterable filterable
style="width:310px"> style="width: 310px"
<el-option v-for="(item,index) in baseData.administratorsList" >
<el-option
v-for="(item, index) in baseData.administratorsList"
:key="index" :key="index"
:label="item.name + ' ' + item.phone" :label="item.name + ' ' + item.phone"
:value="item.phone" /> :value="item.phone"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="验证码:" <el-form-item label="验证码:" prop="smsCode">
prop="smsCode"> <el-input
<el-input v-model="infoForm.smsCode" v-model="infoForm.smsCode"
placeholder="请输入验证码" placeholder="请输入验证码"
maxlength="6" maxlength="6"
style="width: 200px" /> style="width: 200px"
<el-button type="primary" />
<el-button
type="primary"
size="small" size="small"
@click="handleSend" @click="handleSend"
:disabled="isSend" :disabled="isSend"
class="cash-btn"> class="cash-btn"
{{ isSend ? sendMsg + '秒后,重试' : '获取验证码' }} >
{{ isSend ? sendMsg + "秒后,重试" : "获取验证码" }}
</el-button> </el-button>
<p v-show="showtips"> <p v-show="showtips">
已向尾号为{{ infoForm.administrators ? infoForm.administrators.slice(-4) : '' }}的手机号发送验证码,验证码30分钟内有效 已向尾号为{{
infoForm.administrators ? infoForm.administrators.slice(-4) : ""
}}的手机号发送验证码,验证码30分钟内有效
</p> </p>
</el-form-item> </el-form-item>
<el-form-item label="备注:" <el-form-item label="备注:" prop="remark">
prop="remark"> <el-input
<el-input v-model="infoForm.remark" v-model="infoForm.remark"
type="textarea" type="textarea"
maxlength="50" maxlength="50"
placeholder="请输入备注" placeholder="请输入备注"
show-word-limit show-word-limit
:rows="4" :rows="4"
style="width: 310px" /> style="width: 310px"
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- </d2-dialog> --> <!-- </d2-dialog> -->
...@@ -76,48 +91,63 @@ ...@@ -76,48 +91,63 @@
</template> </template>
<script> <script>
import { createWithdraw } from '@api/account' import { createWithdraw } from "@api/account"
import { sendToSmsCodeApi } from '@/api/sys.base' import { sendToSmsCodeApi } from "@/api/sys.base"
import { getWithdrawTreasurerList } from '@api/transferAccountsManage' import { getWithdrawTreasurerList } from "@api/transferAccountsManage"
import { getListApi } from '@api/publicAccount' import { getListApi } from "@api/publicAccount"
import { transferAccountsRecordCreate, getBankBalance } from '@api/withdrawalManage' import {
import { limitPrice } from '@/common/format' transferAccountsRecordCreate,
import { getDjzhySubMerchant } from '@api/merchant' getBankBalance
} from "@api/withdrawalManage"
import { limitPrice } from "@/common/format"
import { getDjzhySubMerchant } from "@api/merchant"
export default { export default {
// name: 'AddDialog', // name: 'AddDialog',
data() { data() {
return { return {
dialogConfig: { dialogConfig: {
title: '新增提现', title: "新增提现",
width: '600px' width: "600px"
}, },
infoForm: { infoForm: {
administrators: '', administrators: "",
smsCode: '', smsCode: "",
remark: '', remark: "",
merchantId: '', merchantId: "",
totalAmount: '' totalAmount: ""
}, },
oldVal: { oldVal: {
totalAmount: '' totalAmount: ""
}, },
cashRules: { cashRules: {
merchantId: [{ required: true, message: '请选择提现方', trigger: 'change' }], merchantId: [
totalAmount: [{ required: true, message: '请输入金额,支持输入0~999999的数字,支持小数点后2位', trigger: 'change' }], { required: true, message: "请选择提现方", trigger: "change" }
administrators: [{ required: true, message: '请选择财务管理员', trigger: 'change' }], ],
smsCode: [{ required: true, message: '请输入验证码', trigger: 'change' }] totalAmount: [
{
required: true,
message: "请输入金额,支持输入0~999999的数字,支持小数点后2位",
trigger: "change"
}
],
administrators: [
{ required: true, message: "请选择财务管理员", trigger: "change" }
],
smsCode: [
{ required: true, message: "请输入验证码", trigger: "change" }
]
}, },
// 验证码 // 验证码
showtips: false, showtips: false,
isSend: false, isSend: false,
sendMsg: '获取验证码', sendMsg: "获取验证码",
time: '', time: "",
// 基本数据 // 基本数据
baseData: { baseData: {
administratorsList: [], administratorsList: [],
merchantList: [] merchantList: []
}, },
balance: '', balance: "",
totalAmountDisabled: true totalAmountDisabled: true
} }
}, },
...@@ -140,7 +170,7 @@ export default { ...@@ -140,7 +170,7 @@ export default {
return this.addVisible return this.addVisible
}, },
set(newVal) { set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'addVisible' }) this.$emit("dialogClose", { flag: newVal, attrName: "addVisible" })
} }
} }
}, },
...@@ -157,25 +187,26 @@ export default { ...@@ -157,25 +187,26 @@ export default {
params.pageSize = 10000 params.pageSize = 10000
params.accountStatus = 3 // 生效 params.accountStatus = 3 // 生效
params.merchantTypeList = [2, 7, -1] params.merchantTypeList = [2, 7, -1]
getListApi(params).then(res => { getListApi(params).then((res) => {
this.baseData.merchantList = res.list this.baseData.merchantList = res.list
// 获取获取嘀加智慧云子商户信息 // 获取获取嘀加智慧云子商户信息
getDjzhySubMerchant({}).then(res => { // getDjzhySubMerchant({}).then((res) => {
// 转入方选项中去除嘀加智慧云子商户 // // 转入方选项中去除嘀加智慧云子商户
this.baseData.merchantList = this.baseData.merchantList.filter((item) => item.merchantId != res.merchantId) // // this.baseData.merchantList = this.baseData.merchantList.filter((item) => item.merchantId != res.merchantId)
}) // this.baseData.merchantList = this.baseData.merchantList
// })
}) })
}, },
getAdminList() { getAdminList() {
getWithdrawTreasurerList({}).then(res => { getWithdrawTreasurerList({}).then((res) => {
this.baseData.administratorsList = res this.baseData.administratorsList = res
this.infoForm.administrators = res[0].phone this.infoForm.administrators = res[0].phone
}) })
}, },
getBankBalance(val) { getBankBalance(val) {
this.infoForm.totalAmount = '' this.infoForm.totalAmount = ""
this.balance = '' this.balance = ""
getBankBalance({ merchantId: val }).then(res => { getBankBalance({ merchantId: val }).then((res) => {
if (res || res == 0) { if (res || res == 0) {
this.balance = res this.balance = res
if (this.balance) { if (this.balance) {
...@@ -194,12 +225,19 @@ export default { ...@@ -194,12 +225,19 @@ export default {
// else { // else {
// newVal = '' // newVal = ''
// } // }
this.infoForm.totalAmount = limitPrice(newVal, this.oldVal.totalAmount, 6, 2, 0, maxVal) this.infoForm.totalAmount = limitPrice(
newVal,
this.oldVal.totalAmount,
6,
2,
0,
maxVal
)
this.oldVal.totalAmount = this.infoForm.totalAmount this.oldVal.totalAmount = this.infoForm.totalAmount
}, },
handleCashConfirm() { handleCashConfirm() {
this.$refs.formRef.validate(valid => { this.$refs.formRef.validate((valid) => {
if (valid) { if (valid) {
var params = {} var params = {}
params.remark = this.infoForm.remark params.remark = this.infoForm.remark
...@@ -218,8 +256,8 @@ export default { ...@@ -218,8 +256,8 @@ export default {
} }
console.log(params) console.log(params)
transferAccountsRecordCreate(params).then(res => { transferAccountsRecordCreate(params).then((res) => {
this.notice.okTips('操作成功') this.notice.okTips("操作成功")
this.visible = true this.visible = true
}) })
} }
...@@ -227,11 +265,11 @@ export default { ...@@ -227,11 +265,11 @@ export default {
}, },
handleSend() { handleSend() {
if (!this.infoForm.administrators) { if (!this.infoForm.administrators) {
this.notice.warningTips('请选择管理员') this.notice.warningTips("请选择管理员")
return return
} }
sendToSmsCodeApi({ phone: this.infoForm.administrators }).then((res) => { sendToSmsCodeApi({ phone: this.infoForm.administrators }).then((res) => {
this.notice.okTips('已发送,30分钟内有效') this.notice.okTips("已发送,30分钟内有效")
this.isSend = true this.isSend = true
this.showtips = true this.showtips = true
this.sendMsg = 60 this.sendMsg = 60
...@@ -251,7 +289,6 @@ export default { ...@@ -251,7 +289,6 @@ export default {
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
p { p {
......
...@@ -130,7 +130,8 @@ ...@@ -130,7 +130,8 @@
<!-- 权益服务 --> <!-- 权益服务 -->
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)"> <td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span> <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>
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)"> <td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span> <span class="color-red">*</span>
...@@ -706,7 +707,10 @@ export default { ...@@ -706,7 +707,10 @@ export default {
`.el-select__tags > span>span:nth-child(1)` `.el-select__tags > span>span:nth-child(1)`
) )
setTimeout(() => { setTimeout(() => {
if (tagSpan) tagSpan.innerHTML = `+${item?.serviceItemArr?.length}` if (tagSpan) {
tagSpan.innerHTML = `+${item?.serviceItemArr?.length}`
tagSpan.style.display = "inline-block"
}
}, 60)// 延迟执行(否则获取不到dom) }, 60)// 延迟执行(否则获取不到dom)
} }
} }
...@@ -718,6 +722,17 @@ export default { ...@@ -718,6 +722,17 @@ export default {
this.serviceItemsVisible = true this.serviceItemsVisible = true
}, },
handleRelateServiceConfirm(data) { 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 const index = this.serviceSelectIndex
let upgradePrice = 0 let upgradePrice = 0
data.forEach(v => { // 参考售价通过已选服务项目的销售成本自动累计 data.forEach(v => { // 参考售价通过已选服务项目的销售成本自动累计
...@@ -1064,7 +1079,7 @@ export default { ...@@ -1064,7 +1079,7 @@ export default {
// 批量服务时间 // 批量服务时间
handleBatchServiceTimeInput(newValue) { handleBatchServiceTimeInput(newValue) {
newValue = newValue.replace(/[^\d.]/g, '') 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, 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.batchObj, 'oldserviceYears', this.batchObj['serviceYears']) this.$set(this.batchObj, 'oldserviceYears', this.batchObj['serviceYears'])
}, },
...@@ -1150,7 +1165,7 @@ export default { ...@@ -1150,7 +1165,7 @@ export default {
// 服务时间 // 服务时间
handleServiceTimeInput(newValue, index) { handleServiceTimeInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '') 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], 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldserviceYears', this.goodsInfoData.goodsSpecificationList[index]['serviceYears']) this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldserviceYears', this.goodsInfoData.goodsSpecificationList[index]['serviceYears'])
}, },
...@@ -1164,14 +1179,16 @@ export default { ...@@ -1164,14 +1179,16 @@ export default {
let oldValue = `${this.goodsInfoData.goodsSpecificationList[index]['oldminSuitCarPrice']}` 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], 'minSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldminSuitCarPrice', this.goodsInfoData.goodsSpecificationList[index]['minSuitCarPrice']) this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldminSuitCarPrice', this.goodsInfoData.goodsSpecificationList[index]['minSuitCarPrice'])
this.handlePriceConflict() // 取消适用车价区间校验
// this.handlePriceConflict()
}, },
maxSuitCarPriceInput(newValue, index) { maxSuitCarPriceInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '') newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.goodsInfoData.goodsSpecificationList[index]['oldmaxSuitCarPrice']}` 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], 'maxSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldmaxSuitCarPrice', this.goodsInfoData.goodsSpecificationList[index]['maxSuitCarPrice']) this.$set(this.goodsInfoData.goodsSpecificationList[index], 'oldmaxSuitCarPrice', this.goodsInfoData.goodsSpecificationList[index]['maxSuitCarPrice'])
this.handlePriceConflict() // 取消适用车价区间校验
// this.handlePriceConflict()
}, },
// 是否必填 // 是否必填
priceRangeIsRequired(minValue, maxValue) { priceRangeIsRequired(minValue, maxValue) {
...@@ -1179,7 +1196,7 @@ export default { ...@@ -1179,7 +1196,7 @@ export default {
}, },
// 单个商品车价区间是否正确 // 单个商品车价区间是否正确
priceIsError(minValue, maxValue) { 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() { handlePriceConflict() {
const priceRanges = [] const priceRanges = []
...@@ -1243,10 +1260,15 @@ export default { ...@@ -1243,10 +1260,15 @@ export default {
td{ td{
display: inline-block; display: inline-block;
text-align: center; text-align: center;
vertical-align: middle;
width: 220px; width: 220px;
height: 100%; height: 100%;
line-height: 40px; line-height: 40px;
border-right: 1px solid #E8E8EA; border-right: 1px solid #E8E8EA;
span{
display: inline-block;
vertical-align: middle;
}
} }
td:last-child{ td:last-child{
border-right: none; border-right: none;
......
...@@ -49,11 +49,13 @@ ...@@ -49,11 +49,13 @@
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)"> <td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span> <span class="color-red">*</span>
<span>服务项目</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>
<!-- 仅权益升级类目展示 --> <!-- 仅权益升级类目展示 -->
<td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)"> <td v-if="equitySceneType.includes(goodsInfoData.goodsType) && !baseConfig.supplierCode.includes(`${goodsInfoData.supplierCode}`)">
<span class="color-red">*</span> <span class="color-red">*</span>
<span>服务时间/年</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>
<!-- 仅权益升级类目展示 --> <!-- 仅权益升级类目展示 -->
<td v-if="equitySceneType.includes(goodsInfoData.goodsType)"> <td v-if="equitySceneType.includes(goodsInfoData.goodsType)">
...@@ -83,7 +85,7 @@ ...@@ -83,7 +85,7 @@
<el-input v-else placeholder="商品名称" <el-input v-else placeholder="商品名称"
size="small" size="small"
:class="{ 'w-150-per': true, 'border-red': (filterEmpty(subItem.specificationData) && subItem.specificationDataEmpty) || subItem.specificationDataError }" :class="{ 'w-150-per': true, 'border-red': (filterEmpty(subItem.specificationData) && subItem.specificationDataEmpty) || subItem.specificationDataError }"
maxlength="20" maxlength="50"
:ref="'specificationDataInput' + subIndex" :ref="'specificationDataInput' + subIndex"
v-model.trim="subItem.specificationData" v-model.trim="subItem.specificationData"
@blur="handleGoodsNameBlur($event, subIndex)"> @blur="handleGoodsNameBlur($event, subIndex)">
...@@ -361,6 +363,28 @@ ...@@ -361,6 +363,28 @@
</el-form> </el-form>
</el-row> </el-row>
</service-items-dialog> </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> </div>
</template> </template>
<script> <script>
...@@ -399,7 +423,17 @@ export default { ...@@ -399,7 +423,17 @@ export default {
serviceSelected: [], serviceSelected: [],
serviceSelectIndex: null, serviceSelectIndex: null,
positionTypeList: [], // 太阳膜类商品部位 positionTypeList: [], // 太阳膜类商品部位
extendedPosiTypeList: [] // 延保类商品部位 extendedPosiTypeList: [], // 延保类商品部位
serviceYearsVisible: false, // 批量服务时间弹窗
batchForm: {
serviceYears: '',
oldServiceYears: ''
},
batchRules: {
serviceYears: [
{ required: true, message: '请输入服务时间', trigger: 'blur' }
]
}
} }
}, },
props: { props: {
...@@ -531,6 +565,17 @@ export default { ...@@ -531,6 +565,17 @@ export default {
this.serviceItemsVisible = true this.serviceItemsVisible = true
}, },
handleRelateServiceConfirm(data) { 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 const index = this.serviceSelectIndex
let upgradePrice = 0 let upgradePrice = 0
data.forEach(v => { // 参考售价通过已选服务项目的销售成本自动累计 data.forEach(v => { // 参考售价通过已选服务项目的销售成本自动累计
...@@ -543,6 +588,28 @@ export default { ...@@ -543,6 +588,28 @@ export default {
this.serviceSelected = [] this.serviceSelected = []
this.serviceItemsVisible = false 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() { handleRelateServiceClose() {
this.serviceItemsVisible = false this.serviceItemsVisible = false
}, },
...@@ -711,10 +778,17 @@ export default { ...@@ -711,10 +778,17 @@ export default {
// 服务时间 // 服务时间
handleServiceTimeInput(newValue, index) { handleServiceTimeInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '') 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], 'serviceYears', limitPrice(newValue, oldValue, 2, 0, 1))
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldserviceYears', this.goodsInfoData.goodsSpecificationSingleList[index]['serviceYears']) 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) { handleServiceTimeBlur(e, index) {
const newValue = e.target.value const newValue = e.target.value
if (!newValue) this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'serviceYearsEmpty', true) if (!newValue) this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'serviceYearsEmpty', true)
...@@ -725,14 +799,16 @@ export default { ...@@ -725,14 +799,16 @@ export default {
let oldValue = `${this.goodsInfoData.goodsSpecificationSingleList[index]['oldminSuitCarPrice']}` 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], 'minSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldminSuitCarPrice', this.goodsInfoData.goodsSpecificationSingleList[index]['minSuitCarPrice']) this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldminSuitCarPrice', this.goodsInfoData.goodsSpecificationSingleList[index]['minSuitCarPrice'])
this.handlePriceConflict() // 取消适用车价区间校验
// this.handlePriceConflict()
}, },
maxSuitCarPriceInput(newValue, index) { maxSuitCarPriceInput(newValue, index) {
newValue = newValue.replace(/[^\d.]/g, '') newValue = newValue.replace(/[^\d.]/g, '')
let oldValue = `${this.goodsInfoData.goodsSpecificationSingleList[index]['oldmaxSuitCarPrice']}` 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], 'maxSuitCarPrice', limitPrice(newValue, oldValue, 3, 2, 0))
this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldmaxSuitCarPrice', this.goodsInfoData.goodsSpecificationSingleList[index]['maxSuitCarPrice']) this.$set(this.goodsInfoData.goodsSpecificationSingleList[index], 'oldmaxSuitCarPrice', this.goodsInfoData.goodsSpecificationSingleList[index]['maxSuitCarPrice'])
this.handlePriceConflict() // 取消适用车价区间校验
// this.handlePriceConflict()
}, },
// 是否必填 // 是否必填
priceRangeIsRequired(minValue, maxValue) { priceRangeIsRequired(minValue, maxValue) {
...@@ -740,7 +816,7 @@ export default { ...@@ -740,7 +816,7 @@ export default {
}, },
// 单个商品车价区间是否正确 // 单个商品车价区间是否正确
priceIsError(minValue, maxValue) { 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() { handlePriceConflict() {
const priceRanges = [] const priceRanges = []
...@@ -801,10 +877,15 @@ export default { ...@@ -801,10 +877,15 @@ export default {
td{ td{
display: inline-block; display: inline-block;
text-align: center; text-align: center;
vertical-align: middle;
width: 220px; width: 220px;
height: 100%; height: 100%;
line-height: 40px; line-height: 40px;
border-right: 1px solid #E8E8EA; border-right: 1px solid #E8E8EA;
span{
display: inline-block;
vertical-align: middle;
}
} }
td:last-child{ td:last-child{
border-right: none; border-right: none;
......
...@@ -438,7 +438,8 @@ export default { ...@@ -438,7 +438,8 @@ export default {
const singleMaxpriceRangeNode = this.$refs['specifications-form']?.$refs.singleSpecificationFormRef?.$refs[`max-car-price-range-input${i}`] 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 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}`] 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 (singleMinpriceRangeNode && singleMinpriceRangeNode[0]?.$el?.className?.includes('border-red')) throw true
if (singleMaxpriceRangeNode && singleMaxpriceRangeNode[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 { ...@@ -27,6 +27,7 @@ export default {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
txtObj: { txtObj: {
运营审核: '审核通过后,退款单据自动流转至商务审核。',
商务审核: '审核通过后,退款单据自动流转至财务复核。', 商务审核: '审核通过后,退款单据自动流转至财务复核。',
财务复核: '审核通过后,退款单据自动流转至财务结算。' 财务复核: '审核通过后,退款单据自动流转至财务结算。'
}, },
...@@ -88,13 +89,16 @@ export default { ...@@ -88,13 +89,16 @@ export default {
methods: { methods: {
handleAddConfirm() { handleAddConfirm() {
var params = {} var params = {
status: 1
}
params.remark = this.infoForm.remark params.remark = this.infoForm.remark
if (this.examineType == '商务审核') { const obj = {
params.status = 2 '运营审核': 1,
} else { '商务审核': 2,
params.status = 3 '财务复核': 3,
} }
params.status = obj[this.examineType]
if (this.infoList.length > 1) { if (this.infoList.length > 1) {
params.idList = this.infoList.map((item) => { params.idList = this.infoList.map((item) => {
return item.id return item.id
......
...@@ -1284,7 +1284,8 @@ export default { ...@@ -1284,7 +1284,8 @@ export default {
name: "orderDetail", name: "orderDetail",
query: { query: {
detail: JSON.stringify(data.row), detail: JSON.stringify(data.row),
signRefundFlag: this.signRefundFlag signRefundFlag: this.signRefundFlag,
scene: 'jpsj'
} }
}) })
}, },
......
...@@ -301,6 +301,7 @@ ...@@ -301,6 +301,7 @@
<new-sign-refund-dialog :sign-refund-visible="signRefundVisible" <new-sign-refund-dialog :sign-refund-visible="signRefundVisible"
:detail="detail" :detail="detail"
:order-type="1" :order-type="1"
:scene="scene"
v-if="signRefundVisible" v-if="signRefundVisible"
@dialogClose="dialogClose" /> @dialogClose="dialogClose" />
<!-- 超管修改备注 --> <!-- 超管修改备注 -->
...@@ -377,6 +378,7 @@ export default { ...@@ -377,6 +378,7 @@ export default {
}], }],
progressList: [], progressList: [],
scene: '',
signRefundVisible: false, signRefundVisible: false,
signRefundFlag: false, signRefundFlag: false,
remarkVisible: false, remarkVisible: false,
...@@ -398,6 +400,7 @@ export default { ...@@ -398,6 +400,7 @@ export default {
}, },
mounted() { mounted() {
this.signRefundFlag = this.$route.query.signRefundFlag this.signRefundFlag = this.$route.query.signRefundFlag
this.scene = this.$route.query.scene
this.getBaseData() this.getBaseData()
this.getGoodsOrderDetail() this.getGoodsOrderDetail()
const $store = this.$store.getters['d2admin/auth/curBtns'] const $store = this.$store.getters['d2admin/auth/curBtns']
......
...@@ -581,7 +581,7 @@ export default { ...@@ -581,7 +581,7 @@ export default {
selectableFn(row, index) { selectableFn(row, index) {
var isSelect = true var isSelect = true
if (row.inputStatus == '1' || row.inputStatus == '6' || row.inputStatus == '7' || row.inputStatus == '8') { // 已补录流水/已分帐/退款中/已退款不可勾选 if (row.inputStatus == '1' || row.inputStatus == '7' || row.inputStatus == '8') { // 已补录流水/退款中/已退款不可勾选
isSelect = false isSelect = false
} }
return isSelect return isSelect
...@@ -601,6 +601,17 @@ export default { ...@@ -601,6 +601,17 @@ export default {
}) })
return false return false
} }
const flag = selectedData.some((item) => {
return item.inputStatus == '6' // “已分账”不可进行该操作
})
if (flag) {
this.$message({
message: "已分账状态流水不支持操作",
type: "warning",
showClose: true
})
return false
}
this.ids = selectedData.map((item) => { this.ids = selectedData.map((item) => {
return item.id return item.id
}) })
...@@ -628,6 +639,17 @@ export default { ...@@ -628,6 +639,17 @@ export default {
}) })
return false return false
} }
const flag = selectedData.some((item) => {
return item.inputStatus == '6' // “已分账”不可进行该操作
})
if (flag) {
this.$message({
message: "已分账状态流水不支持操作",
type: "warning",
showClose: true
})
return false
}
var idList = selectedData.map((item) => { var idList = selectedData.map((item) => {
return item.id return item.id
}) })
...@@ -782,7 +804,7 @@ export default { ...@@ -782,7 +804,7 @@ export default {
return false return false
} }
const flag = selectedData.some((item) => { const flag = selectedData.some((item) => {
return item.inputStatus != '0' && item.inputStatus != '2' && item.inputStatus != '3' // 仅流水状态=“未关联”“未补录”“无需补录”可进行该操作 return item.inputStatus != '0' && item.inputStatus != '2' && item.inputStatus != '3' && item.inputStatus != '6' // 仅流水状态=“未关联”“未补录”“无需补录”“已分账”可进行该操作
}) })
if (flag) { if (flag) {
this.$message({ this.$message({
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</span> </span>
<!-- 审核 --> <!-- 审核 -->
<span style="margin-right: 10px;" <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" <auth-button :data="scope.scope"
:show-btn-ids="['9040805']" /> :show-btn-ids="['9040805']" />
</span> </span>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
<span style="margin-right: 10px;" <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" <auth-button :data="scope.scope"
:show-btn-ids="['9040807']" /> :show-btn-ids="['9040807']" />
</span> </span>
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9040808']" /> :show-btn-ids="['9040808']" />
<span v-if="scope.scope.downCount != 0" style="color: #2A58AD;">({{scope.scope.downCount}})</span>
</span> </span>
</div> </div>
</d2-table> </d2-table>
...@@ -158,6 +159,18 @@ export default { ...@@ -158,6 +159,18 @@ export default {
type: 'input', type: 'input',
maxlength: '50', maxlength: '50',
isClear: true isClear: true
}, {
label: '服务对接',
name: 'yqMerchantName',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '流量方',
name: 'shopMerchantName',
type: 'input',
maxlength: '20',
isClear: true
}], }],
getListApi: refundApplyRecordPage, getListApi: refundApplyRecordPage,
tableParams: { tableParams: {
...@@ -195,7 +208,10 @@ export default { ...@@ -195,7 +208,10 @@ export default {
}, { }, {
label: '银行账号', label: '银行账号',
prop: 'bankAccountNo', prop: 'bankAccountNo',
width: '160px' width: '160px',
formatter: (cellValue) => {
return cellValue.bankAccountNo ? cellValue.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") : '--'
}
}, { }, {
label: '关联业务单号', label: '关联业务单号',
prop: 'bizOrderCode', prop: 'bizOrderCode',
...@@ -217,6 +233,14 @@ export default { ...@@ -217,6 +233,14 @@ export default {
} }
} }
}, { }, {
label: '所属服务对接',
prop: 'yqMerchantName',
width: '200px'
}, {
label: '所属流量方',
prop: 'shopMerchantName',
width: '200px'
}, {
label: '申请人', label: '申请人',
prop: 'createdBy' prop: 'createdBy'
}, { }, {
...@@ -235,6 +259,7 @@ export default { ...@@ -235,6 +259,7 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
0: 'blueSpot',
1: 'blueSpot', 1: 'blueSpot',
2: 'blueSpot', 2: 'blueSpot',
3: 'blueSpot', 3: 'blueSpot',
...@@ -326,6 +351,16 @@ export default { ...@@ -326,6 +351,16 @@ export default {
this.$refs.recordTable.refreshTable(false, true) 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() { batchBusinessExamine() {
var selectedData = [] var selectedData = []
...@@ -355,7 +390,22 @@ export default { ...@@ -355,7 +390,22 @@ export default {
return false return false
} }
let _flag = true 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 => { selectedData.forEach(item => {
if (item.status != 1) { // 非“商务审核”状态不允许批量商务审核 if (item.status != 1) { // 非“商务审核”状态不允许批量商务审核
_flag = false _flag = false
...@@ -393,14 +443,13 @@ export default { ...@@ -393,14 +443,13 @@ export default {
handleExamine(row) { handleExamine(row) {
console.log(row) console.log(row)
const selectedData = [] const selectedData = []
let examineType = ''
selectedData.push(row) selectedData.push(row)
if (row.status == 1) { const obj = {
examineType = '商务审核' 0: '运营审核',
} else if (row.status == 2) { 1: '商务审核',
examineType = '财务复核' 2: '财务复核',
} }
this.handleBatchExamine_commit(selectedData, examineType) this.handleBatchExamine_commit(selectedData, obj[row.status])
}, },
// 关闭审核弹窗 // 关闭审核弹窗
...@@ -415,11 +464,13 @@ export default { ...@@ -415,11 +464,13 @@ export default {
handleReject(row) { handleReject(row) {
console.log(row) console.log(row)
this.infos = [] this.infos = []
if (row.status == 1) { const obj = {
this.rejectType = '商务驳回' 0: '运营驳回',
} else if (row.status == 2 || row.status == 3) { 1: '商务驳回',
this.rejectType = '财务驳回' 2: '财务驳回',
3: '财务驳回'
} }
this.rejectType = obj[row.status]
console.log('rejectType', this.rejectType) console.log('rejectType', this.rejectType)
this.infos.push(row) this.infos.push(row)
this.rejectVisible = !this.rejectVisible this.rejectVisible = !this.rejectVisible
......
...@@ -91,6 +91,14 @@ export default { ...@@ -91,6 +91,14 @@ export default {
min-width: 700px; 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 { .accountDailog .el-select-dropdown__item {
width: 395px !important; 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 \ 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 \ 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 \ 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 \ No newline at end of file
...@@ -107,6 +107,12 @@ ...@@ -107,6 +107,12 @@
v-if="qRcodeVisible" v-if="qRcodeVisible"
@dialogClose="dialogClose" @dialogClose="dialogClose"
/> />
<employee-dialog
:employee-visible="employeeVisible"
:info="recordInfo"
v-if="employeeVisible"
@dialogClose="employeeDialogClose"
/>
<!-- 门店标签 --> <!-- 门店标签 -->
<flag-dialog <flag-dialog
:flag-visible="flagVisible" :flag-visible="flagVisible"
...@@ -128,12 +134,14 @@ import { ...@@ -128,12 +134,14 @@ import {
} from "@api/index" } from "@api/index"
import { businessNature, storeType } from "@/common/constants.js" import { businessNature, storeType } from "@/common/constants.js"
import qrcodeDialog from "./components/qRcodeDialog" import qrcodeDialog from "./components/qRcodeDialog"
import employeeDialog from "./components/employeeDialog"
import flagDialog from "./components/flagDialog" import flagDialog from "./components/flagDialog"
export default { export default {
name: "ShopConfigIndex", name: "ShopConfigIndex",
components: { components: {
qrcodeDialog, qrcodeDialog,
flagDialog flagDialog,
employeeDialog
}, },
data() { data() {
return { return {
...@@ -262,7 +270,13 @@ export default { ...@@ -262,7 +270,13 @@ export default {
prop: "areaSupervisionList", prop: "areaSupervisionList",
width: "200px", width: "200px",
formatter: (cellValue) => { 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 return areaSuper
} }
}, },
...@@ -330,6 +344,7 @@ export default { ...@@ -330,6 +344,7 @@ export default {
fileName: [{ required: true, message: "请上传文件", trigger: "change" }] fileName: [{ required: true, message: "请上传文件", trigger: "change" }]
}, },
qRcodeVisible: false, qRcodeVisible: false,
employeeVisible: false,
flagVisible: false flagVisible: false
} }
}, },
...@@ -364,7 +379,11 @@ export default { ...@@ -364,7 +379,11 @@ export default {
async getBaseData() { async getBaseData() {
this.getOptionsList() this.getOptionsList()
}, },
//员工注册码
employeeRegistrationCode(row) {
this.recordInfo = row
this.employeeVisible = !this.employeeVisible
},
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
...@@ -589,6 +608,9 @@ export default { ...@@ -589,6 +608,9 @@ export default {
dialogClose() { dialogClose() {
this.qRcodeVisible = !this.qRcodeVisible this.qRcodeVisible = !this.qRcodeVisible
}, },
employeeDialogClose() {
this.employeeVisible = !this.employeeVisible
},
// 工单配置 // 工单配置
handleSet(row) { handleSet(row) {
......
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
</div> </div>
<div class="account-detail" ref="accountDetail"> <div class="account-detail" ref="accountDetail">
<div v-if="formArray && formArray.length"> <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 }"> <p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }">
<span class="label"> <span class="label">
<span>{{ formItem.formatEffectStartDate }}</span> <span>{{ formItem.formatEffectStartDate }}</span>
...@@ -23,12 +27,15 @@ ...@@ -23,12 +27,15 @@
操作人: {{ formItem.createdBy }} 操作时间: 操作人: {{ formItem.createdBy }} 操作时间:
{{ formItem.formatCreatedDate }} {{ formItem.formatCreatedDate }}
</span> </span>
<span class="updatedInfo"> <!-- <span class="updatedInfo">
审核人: {{ formItem.auditorName }} 审核时间: 审核人: {{ formItem.auditorName }} 审核时间:
{{ formItem.formatAuditDate }} {{ formItem.formatAuditDate }}
</span> </span> -->
<span class="collapse" @click="collapseItem(index)"> <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 ? "收起" : "展开" }} {{ formItem.show ? "收起" : "展开" }}
</span> </span>
</p> </p>
...@@ -62,7 +69,6 @@ ...@@ -62,7 +69,6 @@
<p class="title">暂无历史记录</p> <p class="title">暂无历史记录</p>
<p class="tips">快去设置看看~</p> <p class="tips">快去设置看看~</p>
</div> </div>
</div> </div>
<div class="btns"> <div class="btns">
<el-button @click="handleCancel" size="small" type="primary"> <el-button @click="handleCancel" size="small" type="primary">
...@@ -75,8 +81,8 @@ ...@@ -75,8 +81,8 @@
<script> <script>
import dayjs from "dayjs" import dayjs from "dayjs"
import { trmHistory } from '@api/deviceManage' import { trmHistory } from "@api/deviceManage"
import { mapActions } from 'vuex' import { mapActions } from "vuex"
export default { export default {
name: "DeviceHistory", name: "DeviceHistory",
data() { data() {
...@@ -85,21 +91,18 @@ export default { ...@@ -85,21 +91,18 @@ export default {
recordInfo: null recordInfo: null
} }
}, },
components: { components: {},
computed: {},
},
computed: {
},
created() { created() {
this.recordInfo = this.$route.params.info this.recordInfo = JSON.parse(this.$route.query.info)
}, },
mounted() { mounted() {
this.getHistoryRecord() this.getHistoryRecord()
}, },
methods: { methods: {
...mapActions({ ...mapActions({
get: 'd2admin/base/get', get: "d2admin/base/get",
close: 'd2admin/page/close' close: "d2admin/page/close"
}), }),
collapseItem(SelectIndex) { collapseItem(SelectIndex) {
...@@ -117,11 +120,11 @@ export default { ...@@ -117,11 +120,11 @@ export default {
const id = this.recordInfo.id const id = this.recordInfo.id
const params = { id } const params = { id }
trmHistory(params).then(res => { trmHistory(params).then((res) => {
if (res.length != 0) { if (res.length != 0) {
const format = "YYYY/MM/DD HH:mm" const format = "YYYY/MM/DD HH:mm"
this.formArray = res this.formArray = res
this.formArray = this.formArray.map(item => { this.formArray = this.formArray.map((item) => {
item.formatEffectEndDate = item.effectEndDate item.formatEffectEndDate = item.effectEndDate
? dayjs(item.effectEndDate).format(format) ? dayjs(item.effectEndDate).format(format)
: "" : ""
...@@ -129,7 +132,7 @@ export default { ...@@ -129,7 +132,7 @@ export default {
? dayjs(item.effectStartDate).format(format) ? dayjs(item.effectStartDate).format(format)
: "" : ""
item.formatCreatedDate = dayjs(item.createdDate).format(format) item.formatCreatedDate = dayjs(item.createdDate).format(format)
item.formatAuditDate = dayjs(item.auditDate).format(format) // item.formatAuditDate = dayjs().format(format)
item.show = false item.show = false
return item return item
}) })
...@@ -141,9 +144,9 @@ export default { ...@@ -141,9 +144,9 @@ export default {
handleCancel() { handleCancel() {
this.$router.push({ this.$router.push({
name: 'deviceManage' name: "deviceManage"
}) })
this.close({ tagName: '/deviceHistory' }) this.close({ tagName: "/deviceHistory" })
} }
} }
} }
...@@ -412,10 +415,11 @@ $color: #2a58ad; ...@@ -412,10 +415,11 @@ $color: #2a58ad;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
.manner {} .manner {
}
.online { .online {
&+.online { & + .online {
margin-left: 44px; margin-left: 44px;
} }
...@@ -468,7 +472,7 @@ $color: #2a58ad; ...@@ -468,7 +472,7 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{ .type-val {
display: inline-block !important; display: inline-block !important;
width: calc(100% - 90px); width: calc(100% - 90px);
white-space: nowrap; white-space: nowrap;
...@@ -491,7 +495,7 @@ $color: #2a58ad; ...@@ -491,7 +495,7 @@ $color: #2a58ad;
background: #f2f4f7; background: #f2f4f7;
.cost { .cost {
&+.cost { & + .cost {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
...@@ -510,7 +514,7 @@ $color: #2a58ad; ...@@ -510,7 +514,7 @@ $color: #2a58ad;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
&+.detail-i { & + .detail-i {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
...@@ -526,4 +530,5 @@ $color: #2a58ad; ...@@ -526,4 +530,5 @@ $color: #2a58ad;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
}</style> }
</style>
<!-- 设备管理 --> <!-- 设备管理 -->
<template> <template>
<d2-container class="service-manage"> <d2-container class="service-manage">
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search
<d2-search ref="showSearch" ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" /> :form-data="showFormData"
/>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset"> 重置 </el-button>
@click="handleReset">
重置
</el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span slot="left"> <span slot="left"> <auth-button category="Button" /></span>
<auth-button category="Button" /></span>
</d2-table-header> </d2-table-header>
<d2-table ref="deviceTable" <d2-table
ref="deviceTable"
:search-form="searchForm" :search-form="searchForm"
:table-params="tableParams" :table-params="tableParams"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn"
<auth-button slot="auth-button" >
<auth-button
slot="auth-button"
slot-scope="scope" slot-scope="scope"
:data="scope.scope" /> :data="scope.scope"
/>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from "@/common/util"
import { trmList, trmDelete } from '@api/deviceManage' import { trmList, trmDelete } from "@api/deviceManage"
import { mapActions } from 'vuex' import { mapActions } from "vuex"
import { BaseData } from '@/common/constants.js' import { BaseData } from "@/common/constants.js"
export default { export default {
name: 'DviceList', name: "DviceList",
data() { data() {
return { return {
searchForm: { searchForm: {
posTrmNo: '', posTrmNo: "",
searchMerchantName: '', searchMerchantName: "",
searchMerchantId: '' searchMerchantId: ""
}, },
showFormData: [{ showFormData: [
label: '终端编码', {
name: 'posTrmNo', label: "终端编码",
type: 'input', name: "posTrmNo",
placeholder: '请输入POS机的终端编码', type: "input",
maxlength: '20', placeholder: "请输入POS机的终端编码",
maxlength: "20",
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, { },
label: '商户名称', {
name: 'searchMerchantName', label: "商户名称",
type: 'input', name: "searchMerchantName",
placeholder: '请输入流量方/园区店名称', type: "input",
maxlength: '20', placeholder: "请输入流量方/园区店名称",
maxlength: "20",
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, { },
label: '商户号', {
name: 'searchMerchantId', label: "商户号",
type: 'input', name: "searchMerchantId",
inputType: 'number', type: "input",
maxlength: '20', inputType: "number",
placeholder: '请输入流量方/园区店商户号', maxlength: "20",
placeholder: "请输入流量方/园区店商户号",
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}], }
],
maxLength: 10, maxLength: 10,
getListApi: trmList, getListApi: trmList,
// 表格参数 // 表格参数
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: "list",
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [
label: '终端编码', {
prop: 'posTrmNo' label: "终端编码",
}, { prop: "posTrmNo"
label: '关联园区店', },
prop: 'yqMerchantName' {
}, { label: "关联园区店",
label: '园区店商户号', prop: "yqMerchantName"
prop: 'yqMerchantId', },
width: '120' {
}, { label: "园区店商户号",
label: '关联流量方', prop: "yqMerchantId",
prop: 'merchantName' width: "120"
}, { },
label: '流量方商户号', {
prop: 'merchantId', label: "关联流量方",
width: '120' prop: "merchantName"
}, { },
label: '最近更新时间', {
prop: 'updatedDate', label: "流量方商户号",
width: '160', prop: "merchantId",
width: "120"
},
{
label: "最近更新时间",
prop: "updatedDate",
width: "160",
formatter: (cellValue) => { formatter: (cellValue) => {
return Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') return Util.dateFormate(
cellValue.updatedDate,
"YYYY-MM-DD HH:mm:ss"
)
} }
}]
},
baseData: {
} }
]
},
baseData: {}
} }
}, },
components: { components: {},
},
mounted() { mounted() {
this.getBaseData() this.getBaseData()
...@@ -127,13 +137,13 @@ export default { ...@@ -127,13 +137,13 @@ export default {
}, },
methods: { methods: {
...mapActions({ close: 'd2admin/page/close' }), ...mapActions({ close: "d2admin/page/close" }),
async getBaseData() { async getBaseData() {
this.getOptionsList() this.getOptionsList()
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise((resolve) => {
resolve() resolve()
}) })
}, },
...@@ -142,26 +152,29 @@ export default { ...@@ -142,26 +152,29 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
posTrmNo: '', posTrmNo: "",
searchMerchantName: '', searchMerchantName: "",
searchMerchantId: '' searchMerchantId: ""
} }
this.$refs.deviceTable.refreshTable() this.$refs.deviceTable.refreshTable()
}, },
getOptionsList() { getOptionsList() {
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === 'select') { if (item.type === "select") {
if ( 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 = {} const temp = {}
temp[this.showFormData[index].optionId] = '' temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = '全部' temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp) this.baseData[item.optionsName].unshift(temp)
} }
this.$set( this.$set(
this.showFormData[index], this.showFormData[index],
'optionList', "optionList",
this.baseData[item.optionsName] this.baseData[item.optionsName]
) )
} }
...@@ -169,21 +182,21 @@ export default { ...@@ -169,21 +182,21 @@ export default {
}, },
handleAdd() { handleAdd() {
this.close({ tagName: '/editDevice' }) this.close({ tagName: "/editDevice" })
this.$router.push({ this.$router.push({
name: 'editDevice', name: "editDevice",
params: { params: {
addOrEdit: 'add' addOrEdit: "add"
} }
}) })
}, },
handleEdit(row) { handleEdit(row) {
this.close({ tagName: '/editDevice' }) this.close({ tagName: "/editDevice" })
this.$router.push({ this.$router.push({
name: 'editDevice', name: "editDevice",
params: { params: {
addOrEdit: 'edit', addOrEdit: "edit",
info: row info: row
} }
}) })
...@@ -208,17 +221,16 @@ export default { ...@@ -208,17 +221,16 @@ export default {
}, },
handleHistory(row) { handleHistory(row) {
this.close({ tagName: '/deviceHistory' }) this.close({ tagName: "/deviceHistory" })
this.$router.push({ this.$router.push({
name: 'deviceHistory', name: "deviceHistory",
params: { query: {
info: row info: JSON.stringify(row)
} }
}) })
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
</style> </style>
...@@ -947,6 +947,7 @@ export default { ...@@ -947,6 +947,7 @@ export default {
// 收入所属公司下拉框选中对象 // 收入所属公司下拉框选中对象
let incomeOwnerMerchantInfo = this.baseData?.contractAttributionList?.find(item => item['merchantId'] == _formData?.incomeOwnerMerchantId) let incomeOwnerMerchantInfo = this.baseData?.contractAttributionList?.find(item => item['merchantId'] == _formData?.incomeOwnerMerchantId)
let params = { let params = {
flag: this.addOrEdit == 'edit' ? 0 : this.addOrEdit == 'add' ? 1 : '', // 新增修改标识(0:修改,1:新增)
scene: _formData?.scene, // 业务类型 scene: _formData?.scene, // 业务类型
shopInfo: shopInfo, shopInfo: shopInfo,
shopContractInfo: { shopContractInfo: {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
plain plain
@click="handleExport" @click="handleExport"
size="small">导出</el-button> --> 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-header>
<d2-table <d2-table
ref="damageTable" ref="damageTable"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!