Commit 5fffa238 by 李伟康

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into SAAS+V5.3.0-1117
2 parents 0c5553e1 29738c7c
...@@ -207,12 +207,12 @@ export function saveDictData(data) { ...@@ -207,12 +207,12 @@ export function saveDictData(data) {
data.method = `merchants.api.menu.saveDictData` data.method = `merchants.api.menu.saveDictData`
return request(data, "post") return request(data, "post")
} }
/**客户标签列表 */ /** 客户标签列表 */
export function getCustomerLabelPage(data) { export function getCustomerLabelPage(data) {
data.method = `dj.api.material.customer.label.page` data.method = `dj.api.material.customer.label.page`
return request(data, "post") return request(data, "post")
} }
/**新增客户标签 */ /** 新增客户标签 */
export function addCustomerLabel(data) { export function addCustomerLabel(data) {
data.method = `dj.api.material.customer.label.add` data.method = `dj.api.material.customer.label.add`
return request(data, "post") return request(data, "post")
...@@ -223,13 +223,14 @@ export function updateCustomerLabel(data) { ...@@ -223,13 +223,14 @@ export function updateCustomerLabel(data) {
data.method = `dj.api.material.customer.label.update` data.method = `dj.api.material.customer.label.update`
return request(data, "post") return request(data, "post")
} }
/**分页查询客户档案信息(管理后台) */ /** 分页查询客户档案信息(管理后台) */
export function getCustomerFilePage(data) { export function getCustomerFilePage(data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListPage` data.method = `dj.api.mindworkplate.customervisit.customerInfoListPage`
console.log(request(data, "post"))
return request(data, "post") return request(data, "post")
} }
/**客户档案信息(管理后台)导出 */ /** 客户档案信息(管理后台)导出 */
export function exportCustomerFile(data) { export function exportCustomerFile(data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListExport` data.method = `dj.api.mindworkplate.customervisit.customerInfoListExport`
return request(data, "post") return request(data, "post")
...@@ -246,7 +247,7 @@ export function getCustomerVisitScriptsListPage(data) { ...@@ -246,7 +247,7 @@ export function getCustomerVisitScriptsListPage(data) {
return request(data, "post") return request(data, "post")
} }
/**客户档案标签 */ /** 客户档案标签 */
export function getCustomerInfoDetail(data) { export function getCustomerInfoDetail(data) {
data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail` data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail`
return request(data, "post") return request(data, "post")
...@@ -430,14 +431,55 @@ export function mapDistricts(data) { ...@@ -430,14 +431,55 @@ export function mapDistricts(data) {
// data.method = `merchants.api.merchantCommon.getCarbrandTree` // data.method = `merchants.api.merchantCommon.getCarbrandTree`
// return request(data, "post") // return request(data, "post")
// } // }
/**轻改套餐推荐配置详情 */ /** 轻改套餐推荐配置详情 */
export function packageRecommendDetail(data) { export function packageRecommendDetail(data) {
data.method = `${path2}receptionMaterialRecommendPackageConfig.getByMerchantId` data.method = `${path2}receptionMaterialRecommendPackageConfig.getByMerchantId`
return request(data, "post") return request(data, "post")
} }
/**保存轻改套餐推荐配置数据 */ /** 保存轻改套餐推荐配置数据 */
export function updatePackageRecommend(data) { export function updatePackageRecommend(data) {
data.method = `${path2}receptionMaterialRecommendPackageConfig.updateBatch` data.method = `${path2}receptionMaterialRecommendPackageConfig.updateBatch`
return request(data, "post") return request(data, "post")
} }
/** 活动列表 */
export function getActivityPage(data) {
data.method = `dj.api.script.activity.page`
return request(data, "post")
}
/** 创建活动 */
export function addActivity(data) {
data.method = `dj.api.script.activity.add`
return request(data, "post")
}
/** 编辑活动 */
export function editActivity(data) {
data.method = `dj.api.script.activity.edit`
return request(data, "post")
}
/** 删除活动 */
export function delActivity(data) {
data.method = `dj.api.script.activity.delete`
return request(data, "post")
}
/** 活动周期创建 */
export function addActivityCycle(data) {
data.method = `dj.api.script.activity.evaluation.cycle.add`
return request(data, "post")
}
/** 活动周期查询 */
export function getActivityCyclePage(data) {
data.method = `dj.api.script.activity.evaluation.cycle.list`
return request(data, "post")
}
/** 模板/异步导出 */
export function templatEexport(data) {
data.method = `dj.api.script.activity.award.winner.import.template.export.async`
return request(data, "post")
}
/** 获奖名单导入 */
export function importWinner(data) {
data.method = `dj.api.script.activity.award.winner.import.sync`
return request(data, "post")
}
...@@ -229,6 +229,14 @@ $prefix: d2; ...@@ -229,6 +229,14 @@ $prefix: d2;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.two-line-ellipsis-ok {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-break: break-all;
}
.blue { .blue {
color: #0947c6; color: #0947c6;
......
...@@ -451,6 +451,26 @@ export const afterTodayOptions = { ...@@ -451,6 +451,26 @@ export const afterTodayOptions = {
} }
} }
/**
* 时间控件-限制93天
*/
export const rangePickertwoMonthOptions = {
disabledDate(date) {
console.log(date, "232323")
// 获取当前日期
const now = new Date()
// 设置时间为00:00:00,确保日期比较的准确性
now.setHours(0, 0, 0, 0)
// 计算93天前的日期
const ninetyThreeDaysAgo = new Date(now)
ninetyThreeDaysAgo.setDate(ninetyThreeDaysAgo.getDate() - 93)
// 禁用未来日期和93天前的日期
return date > now || date < ninetyThreeDaysAgo
}
}
// 园区店模式/经营模式 // 园区店模式/经营模式
export const manageTypeList = [ export const manageTypeList = [
{ confId: 0, confLabel: "园区店" }, { confId: 0, confLabel: "园区店" },
...@@ -1542,33 +1562,33 @@ export const timeTabOpt = [ ...@@ -1542,33 +1562,33 @@ export const timeTabOpt = [
{ confId: 3, confValue: "本月" }, { confId: 3, confValue: "本月" },
{ confId: 4, confValue: "上月" } { confId: 4, confValue: "上月" }
] ]
//使用性质 // 使用性质
export const usageTypeOpt = [ export const usageTypeOpt = [
{ confId: "2", confValue: "营运" }, { confId: "2", confValue: "营运" },
{ confId: "1", confValue: "非营运" }, { confId: "1", confValue: "非营运" },
{ confId: "3", confValue: "营转非" } { confId: "3", confValue: "营转非" }
] ]
//所有人性质 // 所有人性质
export const ownerTypeOpt = [ export const ownerTypeOpt = [
{ confId: "1", confValue: "个人" }, { confId: "1", confValue: "个人" },
{ confId: "2", confValue: "单位" } { confId: "2", confValue: "单位" }
] ]
//车辆类别 // 车辆类别
export const vehicleCategoryOpt = [ export const vehicleCategoryOpt = [
{ confId: 1, confValue: "置换车" }, { confId: 1, confValue: "置换车" },
{ confId: 2, confValue: "报废车" } { confId: 2, confValue: "报废车" }
] ]
//是否新车下定 // 是否新车下定
export const buyNewCarOpt = [ export const buyNewCarOpt = [
{ confId: "1", confValue: "是" }, { confId: "1", confValue: "是" },
{ confId: "0", confValue: "否" } { confId: "0", confValue: "否" }
] ]
//是否事故 // 是否事故
export const hasAccidentOpt = [ export const hasAccidentOpt = [
{ confId: "1", confValue: "是" }, { confId: "1", confValue: "是" },
{ confId: "0", confValue: "否" } { confId: "0", confValue: "否" }
] ]
//评估单状态 // 评估单状态
export const evaluationStatusOpt = [ export const evaluationStatusOpt = [
{ confId: "10", confValue: "评估中" }, { confId: "10", confValue: "评估中" },
{ confId: "20", confValue: "已报价" }, { confId: "20", confValue: "已报价" },
...@@ -1594,12 +1614,12 @@ export const electronicContractTypeOpt = [ ...@@ -1594,12 +1614,12 @@ export const electronicContractTypeOpt = [
{ confId: "2", confValue: "车辆代保管协议" }, { confId: "2", confValue: "车辆代保管协议" },
{ confId: "4", confValue: "车辆交接确认单" } { confId: "4", confValue: "车辆交接确认单" }
] ]
//合同流转状态 // 合同流转状态
export const electronicContractStatusOpt = [ export const electronicContractStatusOpt = [
{ confId: "1", confValue: "合同签署中" }, { confId: "1", confValue: "合同签署中" },
{ confId: "2", confValue: "合同签署完成" } { confId: "2", confValue: "合同签署完成" }
] ]
//付款状态 // 付款状态
export const payStatusOpt = [ export const payStatusOpt = [
{ confId: "1", confValue: "定金" }, { confId: "1", confValue: "定金" },
{ confId: "2", confValue: "尾款" }, { confId: "2", confValue: "尾款" },
...@@ -1610,14 +1630,14 @@ export const splitPayOpt = [ ...@@ -1610,14 +1630,14 @@ export const splitPayOpt = [
{ confId: "1", confValue: "是" }, { confId: "1", confValue: "是" },
{ confId: "0", confValue: "否" } { confId: "0", confValue: "否" }
] ]
//企微审批状态 // 企微审批状态
export const oaFlowStatusOpt = [ export const oaFlowStatusOpt = [
{ confId: "1", confValue: "审批中", color: "#FDB757" }, { confId: "1", confValue: "审批中", color: "#FDB757" },
{ confId: "2", confValue: "已通过", color: "#2CCA74" }, { confId: "2", confValue: "已通过", color: "#2CCA74" },
{ confId: "3", confValue: "已驳回", color: "#EB4E4E" }, { confId: "3", confValue: "已驳回", color: "#EB4E4E" },
{ confId: "4", confValue: "已撤销", color: "#8C8C8C" } { confId: "4", confValue: "已撤销", color: "#8C8C8C" }
] ]
//支付状态 // 支付状态
export const oaFlowPaymentStatusOpt = [ export const oaFlowPaymentStatusOpt = [
{ confId: "2", confValue: "支付成功", color: "#2CCA74" }, { confId: "2", confValue: "支付成功", color: "#2CCA74" },
{ confId: "3", confValue: "支付失败", color: "#EB4E4E" }, { confId: "3", confValue: "支付失败", color: "#EB4E4E" },
......
...@@ -151,6 +151,29 @@ export const afterTodayOptions = { ...@@ -151,6 +151,29 @@ export const afterTodayOptions = {
} }
/** /**
* 时间控件-限制时间跨度不超过93天,且结束时间不能小于开始时间
*/
export var selectDate1 = ""
export const rangePickertwoMonthOptions = {
onPick({ maxDate, minDate }) {
selectDate1 = minDate ? minDate.getTime() : ""
if (maxDate) {
selectDate1 = ""
}
},
disabledDate(time) {
if (selectDate1 !== "") {
const ninetyThreeDays = 93 * 24 * 3600 * 1000
const minTime = selectDate1 // 开始时间即为最小时间
const maxTime = selectDate1 + ninetyThreeDays // 开始时间+93天为最大时间
return time.getTime() < minTime || time.getTime() > maxTime
} else {
return false
}
}
}
/**
* 时间控件-限制选择30天时间范围,且不大于当前时间 * 时间控件-限制选择30天时间范围,且不大于当前时间
*/ */
export var pickerMinDate = "" // 获取开始选择时间 export var pickerMinDate = "" // 获取开始选择时间
......
...@@ -171,7 +171,8 @@ import { ...@@ -171,7 +171,8 @@ import {
rangePickerOptions, rangePickerOptions,
yesterdayPicker, yesterdayPicker,
rangePickerOptions_30day2, rangePickerOptions_30day2,
todayEndPickerOptions todayEndPickerOptions,
rangePickertwoMonthOptions
} from "@/common/format" } from "@/common/format"
export default { export default {
name: "D2Search", name: "D2Search",
...@@ -181,7 +182,8 @@ export default { ...@@ -181,7 +182,8 @@ export default {
rangePickerOptions: rangePickerOptions, rangePickerOptions: rangePickerOptions,
yesterdayPicker: yesterdayPicker, yesterdayPicker: yesterdayPicker,
rangePickerOptions_30day2: rangePickerOptions_30day2, rangePickerOptions_30day2: rangePickerOptions_30day2,
todayEndPickerOptions: todayEndPickerOptions todayEndPickerOptions: todayEndPickerOptions,
rangePickertwoMonthOptions: rangePickertwoMonthOptions
} }
} }
}, },
......
...@@ -468,5 +468,73 @@ export const routerName = { ...@@ -468,5 +468,73 @@ export const routerName = {
} }
], ],
component: _import("contentManager/listOfPenalties/index") component: _import("contentManager/listOfPenalties/index")
},
91321: {
path: "/activityManagement",
name: "activityManagement",
meta: {
title: "活动管理",
authId: "91321",
parentId: "913",
cache: false
},
auth: [
{
authId: "9132101",
parentId: "91321",
label: "创建活动",
handle: "handleAdd",
addRoutePath: [
{
authId: "91323",
name: "创建活动",
parentId: "91321"
}
]
},
{
authId: "9132102",
parentId: "91321",
label: "查看",
handle: "handleDetail",
category: "Button",
type: "primary",
addRoutePath: [
{
authId: "91322",
name: "查看",
parentId: "91321"
}
]
}
],
component: _import("contentManager/activityManagement/index")
},
91322: {
path: "/activityDetails",
name: "activityDetails",
meta: {
title: "活动详情",
authId: "91322",
parentId: "91321",
cache: false,
activePath: "/activityManagement"
},
component: _import("contentManager/activityManagement/activityDetails")
// component: _import("contentManager/SopContentAdd")
},
91323: {
path: "/activityAdd",
name: "createActivity",
meta: {
title: "创建活动",
authId: "91323",
parentId: "91321",
cache: false,
activePath: "/activityManagement"
},
auth: [],
component: _import("contentManager/activityManagement/activityAdd")
} }
} }
...@@ -75,5 +75,38 @@ export const routerName = { ...@@ -75,5 +75,38 @@ export const routerName = {
} }
], ],
component: _import("earlyWarningManager/shopGuard/indexControl") component: _import("earlyWarningManager/shopGuard/indexControl")
},
91504: {
path: "/failureToReportReception",
name: "failureToReportReception",
meta: {
title: "接待缺失报备审核",
authId: "91504",
parentId: "915",
cache: false
},
auth: [
{
authId: "9150201",
parentId: "91503",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9150202",
parentId: "91503",
label: "查看",
handle: "handleDetail"
},
{
authId: "9150203",
parentId: "91503",
label: "处理",
handle: "handleDeal"
}
],
component: _import("earlyWarningManager/failureToReportReception/index")
} }
} }
...@@ -177,3 +177,41 @@ export const PUNISH_OPTIONS = [ ...@@ -177,3 +177,41 @@ export const PUNISH_OPTIONS = [
// 学习进度 (1未学习 2未完成 3待考核 4未通过 5已完成) // 学习进度 (1未学习 2未完成 3待考核 4未通过 5已完成)
// 完成标准(0无 1学习+考核) // 完成标准(0无 1学习+考核)
// 活动状态
export const ACTIVITY_STATUS_OPTIONS = [
{
label: "进行中",
id: "0",
backgroundColor: "#FDB757"
},
{
label: "已结束",
id: "1",
backgroundColor: "#8C8C8C"
},
{
label: "即将开始",
id: "2",
backgroundColor: "#EB4E4E"
}
]
// 活动状态
export const SCENETYPE_OPTIONS = [
{
label: "轻改",
id: 0,
backgroundColor: "#FDB757"
},
{
label: "权益",
id: 1,
backgroundColor: "#8C8C8C"
},
{
label: "延保",
id: 2,
backgroundColor: "#EB4E4E"
}
]
<!-- 运营审核 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog">
<div class="dialog-title-box">
<div>2323232</div>
<div class="dialog-title">
<div>
<span class="title-text">手机号:</span>
<span class="title-text">12222</span>
</div>
<div>
<span class="title-text">所属门店:</span>
<span class="title-text">12222</span>
</div>
</div>
<div class="dialog-title">
<div>
<span class="title-text">客户姓名:</span>
<span class="title-text">32323</span>
</div>
<div>
<span class="title-text">缺失原因:</span>
<span class="title-text">323232</span>
</div>
</div>
</div>
<glsx-combi-form
class="edit-form-container"
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="examineRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<!-- <span :style="{ 'margin-left': '150px' }"
>审核通过后,转账业务单据自动流转至财务确认。</span
> -->
</div>
</baseDialog>
</template>
<script>
import {
transferAccountsRecordUpdateStatus,
batchOperatorAudit
} from "@api/transferAccountsManage"
import { deepClone } from "@/common/util"
export default {
name: "ExamineDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
// txtObj: {
// procurementReview: '说明:订单审核后会自动流转至商务进行复审',
// procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
// },
infoForm: {
remark: ""
},
dialogConfig: {
title: "批量通过审核",
width: "600px"
},
examineRef: "examineRef",
formRules: {
// sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }]
},
editFormData: [
{
label: "审核意见",
name: "remark",
type: "input",
maxlength: 50,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {
// shippingEntityList: []
}
}
},
props: {
// fromPage: {
// type: String,
// default: 'procurementReview'
// },
examineVisible: {
type: Boolean,
default: false
},
// paramsObj: {
// type: Object,
// default: {}
// }
infoList: {
type: Array,
default: () => {}
}
},
computed: {
visible: {
get() {
return this.examineVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "examineVisible" })
}
}
},
mounted() {},
methods: {
handleAddConfirm() {
var params = {}
params.remark = this.infoForm.remark
params.status = 2
if (this.infoList.length > 1) {
params.orderCodeList = this.infoList.map((item) => {
return item.orderCode
})
} else {
params.orderCode = this.infoList[0].orderCode
}
console.log(params)
const _api =
this.infoList.length > 1
? batchOperatorAudit
: transferAccountsRecordUpdateStatus
_api(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
.dialog-title {
width: 100%;
height: 44px;
background: #fafafa;
text-align: center;
line-height: 44px;
color: #333333;
font-size: 16px;
font-weight: 400;
}
.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;
}
}
</style>
<!-- 运营审核 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog">
<div class="dialog-title">已选中 15 条记录</div>
<glsx-combi-form
class="edit-form-container"
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="examineRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<!-- <span :style="{ 'margin-left': '150px' }"
>审核通过后,转账业务单据自动流转至财务确认。</span
> -->
</div>
</baseDialog>
</template>
<script>
import {
transferAccountsRecordUpdateStatus,
batchOperatorAudit
} from "@api/transferAccountsManage"
import { deepClone } from "@/common/util"
export default {
name: "ExamineDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
// txtObj: {
// procurementReview: '说明:订单审核后会自动流转至商务进行复审',
// procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
// },
infoForm: {
remark: ""
},
dialogConfig: {
title: "批量通过审核",
width: "600px"
},
examineRef: "examineRef",
formRules: {
// sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }]
},
editFormData: [
{
label: "审核意见",
name: "remark",
type: "input",
maxlength: 50,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {
// shippingEntityList: []
}
}
},
props: {
// fromPage: {
// type: String,
// default: 'procurementReview'
// },
examineVisible: {
type: Boolean,
default: false
},
// paramsObj: {
// type: Object,
// default: {}
// }
infoList: {
type: Array,
default: () => {}
}
},
computed: {
visible: {
get() {
return this.examineVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "examineVisible" })
}
}
},
mounted() {},
methods: {
handleAddConfirm() {
var params = {}
params.remark = this.infoForm.remark
params.status = 2
if (this.infoList.length > 1) {
params.orderCodeList = this.infoList.map((item) => {
return item.orderCode
})
} else {
params.orderCode = this.infoList[0].orderCode
}
console.log(params)
const _api =
this.infoList.length > 1
? batchOperatorAudit
: transferAccountsRecordUpdateStatus
_api(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
.dialog-title {
width: 100%;
height: 44px;
background: #fafafa;
text-align: center;
line-height: 44px;
color: #333333;
font-size: 16px;
font-weight: 400;
}
.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;
}
}
</style>
<!-- 驳回 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog">
<div class="dialog-title">已选中 15 条记录</div>
<glsx-combi-form
class="edit-form-container"
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
</div>
</baseDialog>
</template>
<script>
import { transferAccountsRecordUpdateStatus } from "@api/transferAccountsManage"
import { deepClone } from "@/common/util"
export default {
name: "RejectDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
infoForm: {
remark: ""
},
dialogConfig: {
title: "批量驳回审核",
width: "600px"
},
rejectRef: "rejectRef",
formRules: {
remark: [{ required: true, message: "请输入审核意见", trigger: "blur" }]
},
editFormData: [
{
label: "审核意见",
name: "remark",
type: "input",
maxlength: 50,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {}
}
},
props: {
rejectVisible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
visible: {
get() {
return this.rejectVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "rejectVisible" })
}
}
},
mounted() {
console.log("paramsObj", this.paramsObj)
},
methods: {
handleAddConfirm() {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
params.remark = this.infoForm.remark
params.orderCode = this.paramsObj.orderCode
params.status = 9
transferAccountsRecordUpdateStatus(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
.dialog-title {
width: 100%;
height: 44px;
background: #fafafa;
text-align: center;
line-height: 44px;
color: #333333;
font-size: 16px;
font-weight: 400;
}
.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;
}
}
</style>
<template>
<div>
<d2-container class="customer-list">
<div class="header" slot="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData"
label-width="100px"
/>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header title="审核列表">
<el-button size="small" type="primary" @click="handleBatchExamine">
批量通过
</el-button>
<el-button size="small" type="primary" @click="handleReject">
批量驳回
</el-button>
<el-button size="small" type="primary" @click="jumpAdd">
导出
</el-button>
</d2-table-header>
<d2-table
ref="detailListTable"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
>
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleAudits(scope.scope)">
审核
</el-button>
<el-button type="text" @click="jumpEdit(scope.scope)">
重新审核
</el-button>
</template>
</d2-table>
</div>
</d2-container>
<!-- 批量审核 -->
<examine-dialog
:examine-visible="examineVisible"
:info-list="infos"
v-if="examineVisible"
@dialogClose="examineDialogClose"
/>
<!-- 审核 -->
<audits-dialog
:audits-visible="auditsVisible"
:info-list="infos"
v-if="auditsVisible"
@dialogClose="auditsDialogClose"
/>
<!-- 驳回 -->
<reject-dialog
:reject-visible="rejectVisible"
:params-obj="recordInfo"
v-if="rejectVisible"
@dialogClose="rejectDialogClose"
/>
</div>
</template>
<script>
import examineDialog from "./components/examineDialog"
import rejectDialog from "./components/rejectDialog"
import auditsDialog from "./components/auditsDialog"
import { getReportList } from "@/api/earlyWarningManager"
import dayjs from "dayjs"
// import { ACTIVITY_STATUS_OPTIONS } from "../constant"
import { Util } from "@/common/util"
export default {
name: "FailureToReportReception",
components: {
examineDialog,
rejectDialog,
auditsDialog
},
data() {
return {
examineVisible: false,
auditsVisible: false,
infos: [],
rejectVisible: false,
showFormData: [
{
label: "员工姓名",
name: "staffName",
type: "input",
keyFn: this.keyDowmGetList,
placeholder: "请输入",
isClear: true
},
{
label: "员工手机号",
name: "staffPhone",
type: "input",
keyFn: this.keyDowmGetList,
placeholder: "请输入",
isClear: true
},
{
label: "审核状态",
name: "auditStatus",
type: "select",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "parkServiceList",
changeAttr: (value, targetItem) => {
value
? this.getServiceStore(value)
: (this.baseData.storeIdList = [])
this.searchForm.merchantId = ""
this.getOptionsList()
}
},
{
label: "所属门店",
name: "merchantId",
type: "select",
noDataText: "请先选择所属仓库",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "merchantIdList"
},
{
label: "缺失原因",
name: "customerStatus",
type: "select",
optionList: [],
optionId: "confId",
optionLabel: "confLabel",
optionsName: "customerStatusList"
},
{
label: "报备时间",
name: "successTime",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
},
{
label: "创建时间",
name: "createTime",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
}
],
searchForm: {
customerStatus: "",
sellerMerchantId: "",
merchantId: "",
source: ""
},
getListApi: getReportList,
tableParams: {
listName: "list",
mutiSelectUniqueKey: "id",
mutiSelectName: "transferAccounts",
tableOption: {
width: "100"
},
tableColumns: [
{
label: "员工姓名",
prop: "staffName",
minWidth: 175,
type: "slot",
addHtml: "name"
},
{
label: "员工手机号",
minWidth: 144,
prop: "staffPhone"
},
{
label: "门店",
prop: "merchantName"
},
{
label: "客户姓名",
prop: "customerName"
},
{
label: "缺失原因",
prop: "reason"
},
{
label: "报备时间",
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "创建时间",
formatter: (cellValue) => {
return cellValue.reportDate
? Util.dateFormate(cellValue.reportDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "审核人",
prop: "auditUser"
},
{
label: "审核时间",
formatter: (cellValue) => {
return cellValue.auditTime
? Util.dateFormate(cellValue.auditTime, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "审核状态",
minWidth: 100,
prop: "auditStatus",
type: "slot",
addHtml: "punishStatus"
},
{
label: "审核意见",
prop: "auditOpinion"
}
]
}
}
},
methods: {
handleAudits() {
this.auditsVisible = true
},
handleBatchExamine() {
this.examineVisible = true
},
handleReject() {
this.rejectVisible = true
},
handleExport() {
var params = this.searchFormSearch
if (params.statuses.length > 0) {
const statuses = `statuses[0]`
params[statuses] = params.statuses[0]
delete params.statuses
}
if (params.sceneTypes.length > 0) {
const sceneTypes = `sceneTypes[0]`
params[sceneTypes] = params.sceneTypes[0]
delete params.sceneTypes
}
// 去除为null的值
for (const key in params) {
if (
params[key] === null ||
params[key] === "" ||
params[key].length == 0
) {
delete params[key]
}
}
params.method = "dj.api.smartcarlife.transferAccountsRecord.exportAsync"
const list = [
...this.dowloadList,
{
name: "转账记录",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
}
}
}
</script>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!