Commit fc373bd5 by 前端

Merge branch 'SAAS+V4.47.4-1216' into SAAS+V4.47.2-1218

2 parents 1f05d1c1 0f62ea74
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.smartcarlife.api."
// 交易明细列表
export function nbcbAccDetailPage(data) {
data.method = `${path}nbcb.acc.detail.page`
return request(data, RequestMethods.POST)
}
// 财资数据筛选项列表
export function nbcbAccDetailConfig(data) {
data.method = `${path}nbcb.acc.detail.config`
return request(data, RequestMethods.POST)
}
// 交易明细重取
export function nbcbAccDetailRefetch(data) {
data.method = `${path}nbcb.acc.detail.refetch`
return request(data, RequestMethods.POST)
}
// 批量同步交易明细
export function nbcbAccDetailBatchSync(data) {
data.method = `${path}nbcb.acc.detail.batch.sync`
return request(data, RequestMethods.POST)
}
// 交易明细详情
export function nbcbAccDetail(data) {
data.method = `${path}nbcb.acc.detail`
return request(data, RequestMethods.POST)
}
// 交易明细关联回单pdf
export function nbcbReceiptPdfUrl(data) {
data.method = `${path}nbcb.receipt.pdf.url`
return request(data, RequestMethods.POST)
}
......@@ -987,6 +987,31 @@ export const staffLevelList = [
// 所属业务
export const staffSceneLabelList = [
{ confId: '1', confValue: '轻改' },
{ confId: '0', confValue: '会员权益/升级' }
{ confId: "1", confValue: "轻改" },
{ confId: "0", confValue: "会员权益/升级" }
]
// 财资数据 收支标志
export const cdSignOpt = [
{ confId: 0, confValue: "收入" },
{ confId: 1, confValue: "支出" }
]
// 财资数据 同步状态
export const jdSyncOpt = [
{ confId: 0, confValue: "失败" },
{ confId: 1, confValue: "成功" }
]
// 财资数据 操作项
export const operationTypeOpt = [
{ confId: 1, confValue: "重推财资数据" },
{ confId: 2, confValue: "推送财资数据" },
{ confId: 3, confValue: "获取财资数据" }
]
// 财资数据 操作项
export const operationResultOpt = [
{ confId: "Y", confValue: "成功" },
{ confId: "N", confValue: "失败" }
]
......@@ -21,13 +21,13 @@ export const routerName = {
},
auth: [
{
authId: '9050103',
parentId: '90501',
label: '下载对账单',
icon: 'download',
category: 'Button',
type: 'primary',
handle: 'downloadAccount'
authId: "9050103",
parentId: "90501",
label: "下载对账单",
icon: "download",
category: "Button",
type: "primary",
handle: "downloadAccount"
},
{
authId: "9050101",
......@@ -292,5 +292,54 @@ export const routerName = {
}
],
component: _import("financeManage/balanceStatistics/index")
},
90509: {
path: "/theAssetData",
name: "theAssetData",
meta: {
title: "财资数据",
authId: "90509",
parentId: "905",
cache: false
},
auth: [
{
authId: "9050901",
parentId: "90509",
label: "重取明细",
category: "Button",
type: "primary",
handle: "handleRefetchDetail"
},
{
authId: "9050902",
parentId: "90509",
label: "批量重推",
category: "Button",
type: "primary",
handle: "handleBatchRepush"
},
{
authId: "9050903",
parentId: "90509",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9050904",
parentId: "90509",
label: "详情",
handle: "handleDetail"
},
{
authId: "9050905",
parentId: "90509",
label: "回单",
handle: "handleReceipt"
}
],
component: _import("financeManage/theAssetData/index")
}
}
......@@ -44,7 +44,6 @@ import { saveFollowRecord } from '@api/earlyWarningManager'
import { deepClone } from '@/common/util'
import { findMerchantStaffList } from '@api/index'
import { afterPickerOptions_timeChoose } from '@/common/format'
// import { baseConfig } from '@/main'
export default {
name: 'HandleDialog',
data() {
......@@ -65,10 +64,8 @@ export default {
},
handleFormRef: 'handleFormRef',
formRules: {
// followStatus: [{ required: true, message: '请选择处理结果', trigger: 'change' }],
followNotes: [{ required: true, message: '请输入跟进内容', trigger: 'blur' }],
nextFollowerId: [{ required: true, message: '请选择下次跟进人', trigger: 'change' }]
// nextFollowerTime: [{ required: true, message: '请选择下次跟进时间', trigger: 'change' }]
},
editFormData: [{
label: '处理结果',
......@@ -161,11 +158,6 @@ export default {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (this[formName][index].label == '业务场景') { // 业务场景默认选中第一项
console.log(this.baseData[item.optionsName])
this.infoForm.sceneType = this.baseData[item.optionsName][0].confId
}
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
......@@ -184,13 +176,6 @@ export default {
this[formName][idx].isHide = isHide
},
// showOrHideAttr_transferType(formName, addHtml, isHide) {
// const idx = this[formName].findIndex(item => item.addHtml == addHtml)
// console.log('idx', idx)
// console.log('this[formName][idx].isHide', this[formName][idx].isHide)
// this[formName][idx].isHide = isHide
// },
// 获取全部员工 过滤出服务商负责人可选数据
findMerchantStaffList() {
return new Promise((resolve, reject) => {
......@@ -198,13 +183,11 @@ export default {
// 服务商负责人(根据角色名过滤)
const arr = []
res?.map(val => {
// if (val.roleName == baseConfig.roleName) {
arr.push({
userId: val.uuid,
userName: val.staffName,
userPhone: val.staffPhone
})
// }
})
this.baseData.followUpPersonOpt = arr
this.getOptionsList('editFormData', false)
......
......@@ -496,28 +496,6 @@ export default {
handleExport() {
var params = this.searchForm
// if (params.statuses.length > 0) {
// const statuses = `statuses[0]`
// params[statuses] = params.statuses[0]
// delete params.statuses
// }
// 去除为null的值
// for (const key in params) {
// if (params[key] === null || params[key] === '') {
// delete params[key]
// }
// }
// params.method = 'dj.api.smartcarlife.warningmsg.warningMsgDetailListWithPageExport'
// const list = [
// ...this.dowloadList,
// {
// name: '员工预警明细',
// exportParam: JSON.stringify(params),
// status: 'waiting',
// timeid: new Date().getTime()
// }
// ]
// this.actionSetDownloadList({ list, type: 'dowloadList' })
warningMsgDetailListWithPageExport(params).then((res) => {
res && downLoadFile(res)
......@@ -529,13 +507,6 @@ export default {
this.detailVisible = true
},
// dialogClose(flag) {
// this.categoryVisible = !this.categoryVisible
// if (flag) {
// this.$refs.detailListTable.refreshTable()
// }
// },
handleDeal(row) {
this.recordInfo = row
this.handleVisible = true
......
......@@ -44,7 +44,6 @@ import { saveFollowRecord } from '@api/earlyWarningManager'
import { deepClone } from '@/common/util'
import { findMerchantStaffList } from '@api/index'
import { afterPickerOptions_timeChoose } from '@/common/format'
// import { baseConfig } from '@/main'
export default {
name: 'HandleDialog',
data() {
......@@ -65,10 +64,8 @@ export default {
},
handleFormRef: 'handleFormRef',
formRules: {
// followStatus: [{ required: true, message: '请选择处理结果', trigger: 'change' }],
followNotes: [{ required: true, message: '请输入跟进内容', trigger: 'blur' }],
nextFollowerId: [{ required: true, message: '请选择下次跟进人', trigger: 'change' }]
// nextFollowerTime: [{ required: true, message: '请选择下次跟进时间', trigger: 'change' }]
},
editFormData: [{
label: '处理结果',
......@@ -160,11 +157,6 @@ export default {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (this[formName][index].label == '业务场景') { // 业务场景默认选中第一项
console.log(this.baseData[item.optionsName])
this.infoForm.sceneType = this.baseData[item.optionsName][0].confId
}
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
......@@ -183,13 +175,6 @@ export default {
this[formName][idx].isHide = isHide
},
// showOrHideAttr_transferType(formName, addHtml, isHide) {
// const idx = this[formName].findIndex(item => item.addHtml == addHtml)
// console.log('idx', idx)
// console.log('this[formName][idx].isHide', this[formName][idx].isHide)
// this[formName][idx].isHide = isHide
// },
// 获取全部员工 过滤出服务商负责人可选数据
findMerchantStaffList() {
return new Promise((resolve, reject) => {
......@@ -197,13 +182,11 @@ export default {
// 服务商负责人(根据角色名过滤)
const arr = []
res?.map(val => {
// if (val.roleName == baseConfig.roleName) {
arr.push({
userId: val.uuid,
userName: val.staffName,
userPhone: val.staffPhone
})
// }
})
this.baseData.followUpPersonOpt = arr
this.getOptionsList('editFormData', false)
......
......@@ -80,7 +80,6 @@
</template>
<script>
// import { mapActions, mapState } from 'vuex'
import { Util, deepClone, downLoadFile } from '@/common/util'
import detailDialog from './components/detailDialog'
import handleDialog from './components/handleDialog'
......@@ -352,9 +351,6 @@ export default {
handleDialog
},
computed: {
// ...mapState({
// dowloadList: (state) => state.d2admin.user.dowloadList
// })
},
mounted() {
console.log('this.paramsObj', this.paramsObj)
......@@ -368,11 +364,6 @@ export default {
},
methods: {
// ...mapActions({
// get: 'd2admin/base/get',
// close: 'd2admin/page/close'
// }),
// ...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.findAllData(2)
......@@ -386,7 +377,6 @@ export default {
if (this.searchForm.warnCycle) {
this.searchForm.warningStartDate = Util.dateFormate(this.searchForm.warnCycle[0], 'YYYY-MM-DD')
this.searchForm.warningEndDate = Util.dateFormate(this.searchForm.warnCycle[1], 'YYYY-MM-DD')
// delete this.searchForm.warnCycle
} else {
delete this.searchForm.warningStartDate
delete this.searchForm.warningEndDate
......@@ -394,7 +384,6 @@ export default {
if (this.searchForm.createTime) {
this.searchForm.startDate = Util.dateFormate(this.searchForm.createTime[0], 'YYYY-MM-DD')
this.searchForm.endDate = Util.dateFormate(this.searchForm.createTime[1], 'YYYY-MM-DD')
// delete this.searchForm.createTime
} else {
delete this.searchForm.startDate
delete this.searchForm.endDate
......@@ -474,29 +463,6 @@ export default {
handleExport() {
var params = this.searchForm
// if (params.statuses.length > 0) {
// const statuses = `statuses[0]`
// params[statuses] = params.statuses[0]
// delete params.statuses
// }
// 去除为null的值
// for (const key in params) {
// if (params[key] === null || params[key] === '') {
// delete params[key]
// }
// }
// params.method = 'dj.api.smartcarlife.warningmsg.warningMsgDetailListWithPageExport'
// const list = [
// ...this.dowloadList,
// {
// name: '员工预警明细',
// exportParam: JSON.stringify(params),
// status: 'waiting',
// timeid: new Date().getTime()
// }
// ]
// this.actionSetDownloadList({ list, type: 'dowloadList' })
warningMsgDetailListWithPageExport(params).then((res) => {
res && downLoadFile(res)
})
......@@ -507,13 +473,6 @@ export default {
this.detailVisible = true
},
// dialogClose(flag) {
// this.categoryVisible = !this.categoryVisible
// if (flag) {
// this.$refs.detailListTable.refreshTable()
// }
// },
handleDeal(row) {
this.recordInfo = row
this.handleVisible = true
......
<template>
<div class="range">
<div :class="[
' el-date-editor',
'el-range-editor',
'el-input__inner',
'el-date-editor--daterange',
'el-range-editor--small',
pickerVisible ? 'is-active' : ''
]"
@click="handleRangeClick"
@mouseleave="showClose = false"
@mousemove="handleMove"
ref="reference">
<template v-if="infinity">
<el-input-number class="el-range-input hide-btn"
:placeholder="startPlaceholder"
v-model="userInput[0]"
@blur="handleBlur(0)"></el-input-number>
<span class="el-range-separator">至</span>
<el-input-number class="el-range-input hide-btn"
:placeholder="endPlaceholder"
v-model="userInput[1]"
@blur="handleBlur(1)"></el-input-number>
</template>
<template v-else>
<el-input v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"></el-input>
<span class="el-range-separator">至</span>
<el-input v-model="userInput[1]"
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur(1)"
class="el-range-input"></el-input>
</template>
<i v-show="showClose"
@click="handleClickIcon"
class="el-icon-circle-close"></i>
</div>
<!----><!---->
</div>
</template>
<script>
import { limitPrice } from '@/common/format'
export default {
data() {
return {
pickerVisible: false,
showClose: false,
userInput: this.displayValue,
oldVal: {
startInput: '',
endInput: ''
}
}
},
props: {
displayValue: Array,
placeholder: String,
startPlaceholder: String,
endPlaceholder: String,
infinity: Boolean
},
watch: {
displayValue(val) {
if (val) {
this.userInput = val
}
}
},
methods: {
handleStartInput(event) {
// const isNumber = /^\d+$/.test(event)
// if (!isNumber) {
// event = null
// }
// if (event > 100) event = 100
// this.userInput[0] = event
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2)
this.oldVal.startInput = this.userInput[0]
},
handleEndInput(event) {
// const isNumber = /^\d+$/.test(event)
// if (!isNumber) {
// event = null
// }
// if (event > 100) event = 100
// this.userInput[1] = event
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2)
this.oldVal.endInput = this.userInput[1]
},
handleClickIcon(event) {
this.userInput[0] = null
this.userInput[1] = null
},
valueIsEmpty() {
const val = this.userInput
if (Array.isArray(val)) {
for (let i = 0, len = val.length; i < len; i++) {
if (val[i]) {
return false
}
}
}
return true
},
handleRangeClick() {
this.pickerVisible = true
},
handleMove() {
if (this.valueIsEmpty()) {
this.showClose = false
} else {
this.showClose = true
}
},
handleFocus() {
if (!this.pickerVisible) {
this.pickerVisible = true
this.$emit("focus", this)
}
},
handleBlur(index) {
this.pickerVisible = false
this.contrastValue()
},
contrastValue() {
const val = this.userInput
if (Array.isArray(val)) {
if (+val[0] > +val[1]) {
val[1] = null
}
}
}
}
}
</script>
<style scoped lang="scss">
.range {
.el-range-input {
::v-deep {
input {
border: 0;
margin-top: -2px;
height: 28px;
}
}
}
.el-icon-circle-close {
color: #dcdfe6;
margin-left: 10px;
}
.hide-btn {
::v-deep {
span {
display: none;
}
input {
padding: 0;
}
}
}
}
</style>
<!-- 重取明细 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="dialogShow"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="tipFont">重新获取银行明细与回单,需等待15分钟,且接口限制单次获取上限1000条,请谨慎选择筛选条件!</div>
<div class="add-dialog">
<glsx-combi-form class="edit-form-container"
ref="editFormRef"
label-width="150px"
default-width="400px"
:form-ref="handleFormRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules">
</glsx-combi-form>
</div>
<!-- <span class="dialog-footer">
<el-button size="small"
@click="dialogShow = false">取 消</el-button>
<el-button size="small"
type="primary"
@click="handleSelect">确 定</el-button>
</span> -->
</baseDialog>
</template>
<script>
import { nbcbAccDetailConfig, nbcbAccDetailRefetch } from '@api/theAssetData'
import { Util, deepClone } from '@/common/util'
export default {
name: 'RefetchDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
infoForm: {
accNameList: [],
bankType: '',
bankAcc: '',
transactionTime: ''
},
dialogConfig: {
title: '重取明细',
width: '720px'
// isShowFooter: false
},
config: {
// isShowFooter: false
},
handleFormRef: 'handleFormRef',
formRules: {
transactionTime: [{ required: true, message: '请选择交易时间', trigger: 'change' }],
},
editFormData: [{
label: '单位名称',
name: 'accNameList',
type: 'select',
isClear: true,
multiple: true,
collapseTags: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'accNameList'
}, {
label: '银行类别',
name: 'bankType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'bankTypeList'
}, {
label: '本方账号',
name: 'bankAcc',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'bankAccList'
}, {
label: '交易时间',
name: 'transactionTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
}],
baseData: {
accNameList: [],
bankTypeList: [],
bankAccList: []
}
}
},
props: {
visible: {
type: Boolean,
default: false
}
// paramsObj: {
// type: Object,
// default: {}
// }
},
watch: {
},
computed: {
dialogShow: {
get() {
return this.visible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'visible' })
}
}
},
mounted() {
this.nbcbAccDetailConfig()
// this.getOptionsList()
},
methods: {
getOptionsList() {
this.editFormData.forEach((item, index) => {
if (item.type === 'select') {
// if (
// this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部' && item.label != '单位名称'
// ) {
// const temp = {}
// temp[this.showFormData[index].optionId] = ''
// temp[this.showFormData[index].optionLabel] = '全部'
// this.baseData[item.optionsName].unshift(temp)
// }
this.$set(
this.editFormData[index],
'optionList',
this.baseData[item.optionsName]
)
}
})
},
// 财资数据筛选项列表
nbcbAccDetailConfig() {
nbcbAccDetailConfig({}).then(res => {
for (var key in res) {
if (this.baseData[key]) {
this.baseData[key] = res[key]
this.baseData[key] = this.baseData[key].map(item => {
return {
confId: item,
confValue: item
}
})
}
}
this.getOptionsList()
})
},
handleAddConfirm() {
this.$refs.editFormRef.$refs[this.handleFormRef].validate(valid => {
if (valid) {
var params = deepClone(this.infoForm)
if (params.accNameList.length == 0 && params.bankType == '' && params.bankAcc == '') {
// this.notice.warningTips('请选择除日期外的任意一个或多个条件!')
this.$message({
message: "请选择除日期外的任意一个或多个条件!",
type: "warning",
showClose: true
})
return
}
if (params.transactionTime) {
params.transTimeStart = Util.dateFormate(params.transactionTime[0], 'YYYY-MM-DD')
params.transTimeEnd = Util.dateFormate(params.transactionTime[1], 'YYYY-MM-DD')
} else {
delete params.transTimeStart
delete params.transTimeEnd
}
this.$confirm('请确认是否要执行当前操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
nbcbAccDetailRefetch(params).then(res => {
this.notice.okTips()
this.dialogShow = true
})
}).catch(err => {
console.log(err)
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
.add-dialog {
margin: 20px 0;
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
.down-cla {
width: 56px;
height: 32px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #185efe;
text-align: right;
line-height: 32px;
padding-left: 8px;
// cursor: pointer;
}
.upload-file {
::v-deep .el-upload-dragger {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
width: 300px;
height: 160px;
background: #f7f7f7;
.el-icon-upload {
margin: 0;
}
.el-upload__text {
font-size: 14px;
color: #000000;
}
.item-tips {
font-size: 12px;
color: #999999;
height: 22px;
line-height: 22px;
}
.text-tips {
font-size: 14px;
}
}
}
.file-box {
width: 350px;
.file-item {
margin-top: 6px;
position: relative;
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
::v-deep .el-progress-bar {
width: 320px;
background: #ffffff;
border: 1px solid #f4f6fc;
border-radius: 4px;
.el-progress-bar__outer {
background: transparent;
border-radius: 4px;
.el-progress-bar__inner {
background: #f5f7fa;
border-radius: 4px;
}
}
}
::v-deep .el-image-viewer__wrapper {
width: 100vw;
height: 100vh;
}
.file-name {
position: absolute;
left: 12px;
top: 6px;
transform: translateY(-50%);
color: #333333;
font-size: 14px;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.image-file {
z-index: -1;
}
}
.file-item:first-child {
margin-top: 15px;
.file-name {
position: absolute;
left: 12px;
top: 15px;
transform: translateY(-50%);
color: #333333;
font-size: 14px;
}
}
}
}
.tipFont {
margin: 10px 0 0 60px;
width: 535px;
height: 22px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 12px;
color: #eb4e4e;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!