Commit 0fc2f7df by 前端

Merge branch 'SAAS+V5.3.0-1117' into 'develop'

上线合并

See merge request !511
2 parents c3edd993 5dc40dc6
Showing 78 changed files with 4110 additions and 142 deletions
...@@ -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")
}
\ No newline at end of file \ No newline at end of file
}
/** 活动列表 */
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", ["file"])
}
// 招聘管理
import request from "./request"
// 招聘需求分页查询
export function getRecruitmentList(data) {
data.method = `dj.staff.api.recruitment.demand.page`
return request(data)
}
// 新增招聘需求
export function addRecruitment(data) {
data.method = `dj.staff.api.recruitment.demand.add`
return request(data)
}
// 招聘需求详情
export function getRecruitmentDetail(data) {
data.method = `dj.staff.api.recruitment.demand.detail`
return request(data)
}
// 处理招聘需求
export function handleRecruitment(data) {
data.method = `dj.staff.api.recruitment.demand.process`
return request(data)
}
// 招聘需求状态更新(确认、驳回、完成)
export function updateRecruitmentStatus(data) {
data.method = `dj.staff.api.recruitment.demand.status.update`
return request(data)
}
// 招聘需求汇总
export function getRecruitmentSummary(data = {}) {
data.method = `dj.staff.api.recruitment.demand.summary`
return request(data)
}
// 门店(d+系统中的全部门店+园区店商户)列表查询
export function getDemandMerchant(data) {
data.method = `dj.staff.api.recruitment.demand.merchant.page`
return request(data)
}
// 新增字典项
export function addDict(data) {
data.method = `dj.staff.api.dict.add`
return request(data)
}
// 删除字典项
export function deleteDict(data) {
data.method = `dj.staff.api.dict.delete`
return request(data)
}
// 分页查询字典项列表
export function getDictList(data) {
data.pageSize = 99999
data.currentPage = 1
data.method = `dj.staff.api.dict.page`
return request(data)
}
// 修改字典项
export function updateDict(data) {
data.method = `dj.staff.api.dict.update`
return request(data)
}
...@@ -16,7 +16,7 @@ const request = ( ...@@ -16,7 +16,7 @@ const request = (
params = {}, params = {},
method = RequestMethods.GET, method = RequestMethods.GET,
noSignAttr = [], noSignAttr = [],
options options = {}
) => { ) => {
// 兼容线上dj和scrm appkey和secret不一样的情况 // 兼容线上dj和scrm appkey和secret不一样的情况
let apiName = "" let apiName = ""
...@@ -25,6 +25,8 @@ const request = ( ...@@ -25,6 +25,8 @@ const request = (
apiName = "dj" apiName = "dj"
} else if (params.method.includes("dj.api.script")) { } else if (params.method.includes("dj.api.script")) {
apiName = "script" apiName = "script"
} else if (params.method.includes("dj.staff.api")) {
apiName = "staff"
} else if (params.method.includes("dj.smartcarlife.stock")) { } else if (params.method.includes("dj.smartcarlife.stock")) {
apiName = "dj.smartcarlife" apiName = "dj.smartcarlife"
} else { } else {
...@@ -47,7 +49,8 @@ const request = ( ...@@ -47,7 +49,8 @@ const request = (
"glsx.accounts.biz.common.pictureUpload": "common", "glsx.accounts.biz.common.pictureUpload": "common",
clue: "axios5", clue: "axios5",
"dj.businessSchool": "axios6", "dj.businessSchool": "axios6",
script: "axios7" script: "axios7",
staff: "axios9"
} }
const baseApiName = mappingName[apiName] const baseApiName = mappingName[apiName]
// console.log(baseApiName, "baseApiName") // console.log(baseApiName, "baseApiName")
...@@ -81,7 +84,8 @@ const request = ( ...@@ -81,7 +84,8 @@ const request = (
glsx: "md5", glsx: "md5",
"glsx.accounts.biz.common.pictureUpload": "md5", "glsx.accounts.biz.common.pictureUpload": "md5",
clue: "sha1", clue: "sha1",
script: "sha1" script: "sha1",
staff: "sha1"
} }
// console.log(signWay[apiName], "baseApiName") // console.log(signWay[apiName], "baseApiName")
const secret = baseConfig[baseApiName].secret const secret = baseConfig[baseApiName].secret
...@@ -89,18 +93,19 @@ const request = ( ...@@ -89,18 +93,19 @@ const request = (
var reqData = var reqData =
method === RequestMethods.POST method === RequestMethods.POST
? { ? {
baseURL: "/", baseURL: "/",
data: sign(params, noSignAttr, secret, signWay[apiName]) data: sign(params, noSignAttr, secret, signWay[apiName])
} }
: { params: sign(params, noSignAttr, secret, signWay[apiName]) } : { params: sign(params, noSignAttr, secret, signWay[apiName]) }
reqData = reqData = Object.assign(reqData, options, {})
reqData = Object.assign(reqData, options, {})
// 请求进度 // 请求进度
if (params?.onProcess) { if (params?.onProcess) {
reqData.onUploadProgress = params.onProcess reqData.onUploadProgress = params.onProcess
} }
// 取消请求 // 取消请求
if (params?.cancelFun) { if (params?.cancelFun) {
reqData.cancelToken = new CancelToken(function excutor(c) { reqData.cancelToken = new CancelToken(function excutor (c) {
params.cancelFun.cancel = c params.cancelFun.cancel = c
}) })
} }
...@@ -108,11 +113,13 @@ const request = ( ...@@ -108,11 +113,13 @@ const request = (
// console.log(url) // console.log(url)
// console.log(options) // console.log(options)
// console.log(reqData) // console.log(reqData)
return axios({ let axiosParams = {
url, url,
method, method,
...reqData ...reqData
}) }
if (options.returnAll) axiosParams.headers = { 'return-all': true }
return axios(axiosParams)
/** /**
* mock,请使用以下代码。 * mock,请使用以下代码。
......
import request from "./request"
// 分页查询潜客数据
export function potentialCustomersPage(data) {
data.method = 'dj.api.smartcarlife.sale.potentialCustomers.page'
return request(data, "post")
}
// 潜客详情数据
export function potentialCustomersDetail(data) {
data.method = 'dj.api.smartcarlife.sale.potentialCustomers.detail'
return request(data, "post")
}
// 首次绑定/重新绑定4S店
export function bind4SStore(data) {
data.method = 'dj.api.smartcarlife.sale.potentialCustomers.bind'
return request(data, "post")
}
// 分页查询大区
export function regionPage(data) {
data.method = 'dj.api.smartcarlife.sale.region.page'
return request(data, "post")
}
// 获取大区人员
export function regionUserList(data) {
data.method = 'dj.api.smartcarlife.sale.region.userList'
return request(data, "post")
}
// 更新大区人员
export function updateRegionUser(data) {
data.method = 'dj.api.smartcarlife.sale.region.updateRegionUser'
return request(data, "post")
}
/**二手车 */ /**二手车 */
import { gscPost } from "./gscRequest" import { gscPost } from "./gscRequest"
import request from "./request"
import RequestMethods from "./request.methods"
// 数据看板指标统计 // 数据看板指标统计
export function getdataBoard(data) { export function getdataBoard (data) {
return gscPost("/dataBoard/index", data) return gscPost("/dataBoard/index", data)
} }
// 数据看板评估量趋势 // 数据看板评估量趋势
export function getEvaluationData(data) { export function getEvaluationData (data) {
return gscPost("/dataBoard/evaluation", data) return gscPost("/dataBoard/evaluation", data)
} }
// 数据看板成交量趋势 // 数据看板成交量趋势
export function getDealData(data) { export function getDealData (data) {
return gscPost("/dataBoard/deal", data) return gscPost("/dataBoard/deal", data)
} }
// 合同管理列表 // 合同管理列表
export function getContractList(data) { export function getContractList (data) {
return gscPost("/evalElectronicContract/page", data) return gscPost("/evalElectronicContract/page", data)
} }
// 合同管理详情 // 合同管理详情
export function getContractDetail(data) { export function getContractDetail (data) {
return gscPost("/evalElectronicContract/detail", data) return gscPost("/evalElectronicContract/detail", data)
} }
//合同下载 //合同下载
export function getContractDownload(data) { export function getContractDownload (data) {
return gscPost("/evalElectronicContract/getContractFileUrl", data) return gscPost("/evalElectronicContract/getContractFileUrl", data)
} }
//编辑合同详情 //编辑合同详情
export function getContractEdit(data) { export function getContractEdit (data) {
return gscPost("/evalElectronicContract/editDescription", data) return gscPost("/evalElectronicContract/editDescription", data)
} }
// 评估单列表 // 评估单列表
export function getEvalOrderList(data) { export function getEvalOrderList (data) {
return gscPost("/evalOrderManage/getEvalOrderList", data) return gscPost("/evalOrderManage/getEvalOrderList", data)
} }
//评估单详情 //评估单详情
export function getEvalOrderDetail(data) { export function getEvalOrderDetail (data) {
console.log(data) console.log(data)
return gscPost("/evalOrderManage/getEvalOrderDetail", data) return gscPost("/evalOrderManage/getEvalOrderDetail", data)
} }
//评估单动态 //评估单动态
export function getEvalOrderPriceHistory(data) { export function getEvalOrderPriceHistory (data) {
return gscPost("/evalOrderManage/getEvalOrderPriceHistory", data) return gscPost("/evalOrderManage/getEvalOrderPriceHistory", data)
} }
//评估车辆 //评估车辆
export function evaluateCar(data) { export function evaluateCar (data) {
return gscPost("/evalOrderManage/evaluate", data, { returnAll: true }) return gscPost("/evalOrderManage/evaluate", data, { returnAll: true })
} }
//车辆评估导出 //车辆评估导出
export function exportEvaluate(data) { export function exportEvaluate (data) {
return gscPost("/evalOrderManage/exportEvalOrderAsync", data) return gscPost("/evalOrderManage/exportEvalOrderAsync", data)
} }
//阳光激励配置分页 //阳光激励配置分页
export function getSunlightPage(data) { export function getSunlightPage (data) {
console.log(gscPost) console.log(gscPost)
return gscPost("/sunlightInspiresConfig/page", data) return gscPost("/sunlightInspiresConfig/page", data)
} }
...@@ -115,3 +117,83 @@ export const editCarStatus = (data) => { ...@@ -115,3 +117,83 @@ export const editCarStatus = (data) => {
export const getCarManagementLog = (data) => { export const getCarManagementLog = (data) => {
return gscPost("/carManagement/carManagementLog", data) return gscPost("/carManagement/carManagementLog", data)
} }
/**
* 二手车付款列表
*/
export const getUsedCarPaymentList = (data) => {
data.method = 'dj.smartcarlife.api.nbcb.batch.transfer.page'
return request(data, RequestMethods.POST)
}
/**
*二手车- 批量重推付款单
*/
export const batchRepush = (data) => {
data.method = 'dj.smartcarlife.api.nbcb.batch.transfer.batch.repush'
return request(data, RequestMethods.POST)
}
/**
* 二手车-待付清单详情
*/
export const batchTransferDetail = (data) => {
data.method = 'dj.smartcarlife.api.nbcb.batch.transfer.detail'
return request(data, RequestMethods.POST)
}
/**
* 查询资金使用额度列表
*/
export const getFundUsageLimitList = (data) => {
data.method = 'dj.smartcarlife.api.fund.usage.limit.page'
return request(data, RequestMethods.POST)
}
/**
* 查询资金使用额度关联审批列表
*/
export const getFundUsageLimitOaList = (data) => {
data.method = 'dj.smartcarlife.api.fund.usage.limit.oa.page'
return request(data, RequestMethods.POST)
}
/**
* 查询资金使用额度详情
*/
export const getFundUsageLimitDetail = (data) => {
data.method = 'dj.smartcarlife.api.fund.usage.limit.detail'
return request(data, RequestMethods.POST)
}
/**
*新增资金使用额度
*/
export const addFundUsageLimit = (data) => {
data.method = 'dj.smartcarlife.api.fund.usage.limit.add'
return request(data, RequestMethods.POST)
}
/**
* 账户余额
*/
export const getAccountBalance = (data = {}) => {
data.method = 'dj.smartcarlife.api.nbcb.acc.bal'
return request(data, RequestMethods.POST)
}
/**
* 发送验证码
*/
export const sendSmsCode = (data = {}) => {
data.method = 'dj.api.smartcarlife.sms.common.sendSmsCode'
return request(data, RequestMethods.POST)
}
/**
* 校验验证码
*/
export const verifySmsCode = (data = {}) => {
data.method = 'dj.api.smartcarlife.sms.common.verifySmsCode'
return request(data, RequestMethods.POST, [], {
returnAll: true
})
}
\ No newline at end of file \ No newline at end of file
...@@ -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: "园区店" },
...@@ -873,6 +893,10 @@ export const downloadReportManage_reportType = [ ...@@ -873,6 +893,10 @@ export const downloadReportManage_reportType = [
{ {
confId: "learningCourseReviewReport", confId: "learningCourseReviewReport",
confValue: "课程学习复盘报表" confValue: "课程学习复盘报表"
},
{
confId: "salesDailyMonthlySummaryTable",
confValue: "销售日报月汇总表"
} }
] ]
...@@ -1542,33 +1566,33 @@ export const timeTabOpt = [ ...@@ -1542,33 +1566,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 +1618,12 @@ export const electronicContractTypeOpt = [ ...@@ -1594,12 +1618,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,17 +1634,39 @@ export const splitPayOpt = [ ...@@ -1610,17 +1634,39 @@ 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" },
{ confId: "1", confValue: "支付中", color: "#FDB757" }, { confId: "1", confValue: "支付中", color: "#FDB757" },
{ confId: "4", confValue: "支付取消", color: "#8C8C8C" } { confId: "4", confValue: "支付取消", color: "#8C8C8C" }
] ]
export const inviteStatusOpt = [
{ confId: 0, confValue: "待人事确认" },
{ confId: 1, confValue: "招聘中" },
{ confId: 2, confValue: "已完成" },
{ confId: 3, confValue: "已驳回" }
]
export const inviteStatusOptMap = {
0: "#FDB757",
1: "#FDB757",
2: "#2CCA74",
3: "#EB4E4E"
}
export const interviewResultOpt = [
{ confId: "1", confValue: "通过" },
{ confId: "0", confValue: "不通过" }
]
export const processResultOpt = [
{ confId: "1", confValue: "人员不匹配" },
{ confId: "2", confValue: "已完成面试" }
]
...@@ -151,6 +151,59 @@ export const afterTodayOptions = { ...@@ -151,6 +151,59 @@ 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
}
}
}
/**
* 时间控件-限制时间跨度不超过93天,且结束时间不能小于开始时间,且结束时间不能大于当前时间
*/
export var selectDate2 = ""
export const rangePickertwoMonthOptionsWithCurrentLimit = {
onPick({ maxDate, minDate }) {
selectDate2 = minDate ? minDate.getTime() : ""
if (maxDate) {
selectDate2 = ""
}
},
disabledDate(time) {
const currentTime = Date.now() // 当前时间
// 限制所有大于当前时间的日期不可选
if (time.getTime() > currentTime) {
return true
}
if (selectDate2 !== "") {
const ninetyThreeDays = 93 * 24 * 3600 * 1000
const minTime = selectDate2 // 开始时间即为最小时间
const maxTime = Math.min(selectDate2 + ninetyThreeDays, currentTime) // 开始时间+93天与当前时间取较小值作为最大时间
return time.getTime() < minTime || time.getTime() > maxTime
} else {
return false
}
}
}
/**
* 时间控件-限制选择30天时间范围,且不大于当前时间 * 时间控件-限制选择30天时间范围,且不大于当前时间
*/ */
export var pickerMinDate = "" // 获取开始选择时间 export var pickerMinDate = "" // 获取开始选择时间
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<el-button <el-button
type="primary" type="primary"
@click="confirmBtn" @click="confirmBtn"
v-if="!config.hideConfirmBtn"
:loading="$store.state.d2admin.loading.value || btnLoding" :loading="$store.state.d2admin.loading.value || btnLoding"
> >
{{ config.confirm_name }} {{ config.confirm_name }}
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
* size 按钮样式,默认mini * size 按钮样式,默认mini
* showBtnIds 按需显示按钮 * showBtnIds 按需显示按钮
*/ */
const { category, data, mapping, label, size, showBtnIds } = ctx.props const { category, data, mapping, label, size, showBtnIds ,loading } = ctx.props
let curBtns = [] let curBtns = []
/** /**
* 判断一个按钮(btn)是否存在与当前行(data) 的映射关系(mapping)中 * 判断一个按钮(btn)是否存在与当前行(data) 的映射关系(mapping)中
...@@ -103,6 +103,7 @@ export default { ...@@ -103,6 +103,7 @@ export default {
'el-button', 'el-button',
{ {
props: { props: {
loading: loading,
type: btn.type || (btn.category === 'Button' ? '' : 'text'), type: btn.type || (btn.category === 'Button' ? '' : 'text'),
icon: btn.icon ? `el-icon-${btn.icon}` : '', icon: btn.icon ? `el-icon-${btn.icon}` : '',
size: size, size: size,
......
...@@ -18,15 +18,16 @@ ...@@ -18,15 +18,16 @@
<slot /> <slot />
<div slot="footer"> <div slot="footer">
<slot name="btn-start" /> <slot name="btn-start" />
<el-button v-if="!noCancel"
@click="handleClose"> 取消 </el-button>
<slot name="btn-middle" />
<el-button type="primary" <el-button type="primary"
v-if="isShowFooter" v-if="isShowFooter"
@click="handleConfirm" @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" <slot name="btn-end" />
@click="handleClose"> 取消 </el-button>
<slot name="btn-middle" />
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -171,7 +171,9 @@ import { ...@@ -171,7 +171,9 @@ import {
rangePickerOptions, rangePickerOptions,
yesterdayPicker, yesterdayPicker,
rangePickerOptions_30day2, rangePickerOptions_30day2,
todayEndPickerOptions todayEndPickerOptions,
rangePickertwoMonthOptions,
rangePickertwoMonthOptionsWithCurrentLimit
} from "@/common/format" } from "@/common/format"
export default { export default {
name: "D2Search", name: "D2Search",
...@@ -181,7 +183,10 @@ export default { ...@@ -181,7 +183,10 @@ export default {
rangePickerOptions: rangePickerOptions, rangePickerOptions: rangePickerOptions,
yesterdayPicker: yesterdayPicker, yesterdayPicker: yesterdayPicker,
rangePickerOptions_30day2: rangePickerOptions_30day2, rangePickerOptions_30day2: rangePickerOptions_30day2,
todayEndPickerOptions: todayEndPickerOptions todayEndPickerOptions: todayEndPickerOptions,
rangePickertwoMonthOptions: rangePickertwoMonthOptions,
rangePickertwoMonthOptionsWithCurrentLimit:
rangePickertwoMonthOptionsWithCurrentLimit
} }
} }
}, },
...@@ -257,7 +262,7 @@ export default { ...@@ -257,7 +262,7 @@ export default {
} }
.d2-search .el-form-item { .d2-search .el-form-item {
width: 80%; width: 94%;
} }
.d2-search .no-label.el-form-item--small .el-form-item__content, .d2-search .no-label.el-form-item--small .el-form-item__content,
......
<!-- <!--
* @Author: 王志慧 wangzh@didihu.com.cn * @Author: 王志慧 wangzh@didihu.com.cn
* @Date: 2024-06-12 15:21:09 * @Date: 2024-06-12 15:21:09
* @LastEditors: 王志慧 wangzh@didihu.com.cn * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2024-08-19 15:10:19 * @LastEditTime: 2025-10-22 22:21:08
* @FilePath: \dj-car-life-system\src\components\d2-table-header\index.vue * @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 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
......
...@@ -228,6 +228,11 @@ export default { ...@@ -228,6 +228,11 @@ export default {
type: Function, type: Function,
default: null default: null
}, },
// 是否需要表格loading,默认需要
noLoading: {
type: Boolean,
default: false
},
// 搜索前操作 // 搜索前操作
beforeSearchFn: { beforeSearchFn: {
type: Function, type: Function,
...@@ -386,7 +391,9 @@ export default { ...@@ -386,7 +391,9 @@ export default {
// console.log(res) // console.log(res)
// 清空多选 // 清空多选
clearMuti && this.clearMutiSelect() clearMuti && this.clearMutiSelect()
this.loading = true if (!this.noLoading) {
this.loading = true
}
resetCurrentPage && (this.page.currentPage = 1) resetCurrentPage && (this.page.currentPage = 1)
var params = { var params = {
...this.page, ...this.page,
...@@ -514,6 +521,8 @@ export default { ...@@ -514,6 +521,8 @@ export default {
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
}).finally(() => {
this.$emit("apiFinish", this.data)
}) })
}) })
}, },
......
<!-- 通用表单弹窗组件 --> <!-- 通用表单弹窗组件 -->
<template> <template>
<div class="glsk-form-dialog"> <div class="glsk-form-dialog">
<d2-dialog :title="dialogConfig.title" :is-visible="selectVisible" :width="dialogWidth" :btn-ok-label="dialogConfig.okText" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <d2-dialog
<glsx-combi-form class="edit-form-container" ref="editFormRef" :label-width="labelWidth" :default-width="defaultWidth" :is-block="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules"> :title="dialogConfig.title"
:is-visible="selectVisible"
:width="dialogWidth"
:btn-ok-label="dialogConfig.okText"
@closeDialog="handleClose"
@confirmDialog="handleConfirm"
>
<glsx-combi-form
class="edit-form-container"
ref="editFormRef"
:label-width="labelWidth"
:default-width="defaultWidth"
:is-block="isBlock"
:form-ref="editChildRef"
:form-obj="editData"
:form-data="editFormData"
:form-rules="formRules"
@handleAddSelectTypeConfirm="handleAddSelectTypeConfirm"
@handleEditSelectTypeConfirm="handleEditSelectTypeConfirm"
>
<template v-for="name in slotArr" #[name]>
<slot :name="name"></slot>
</template>
</glsx-combi-form> </glsx-combi-form>
</d2-dialog> </d2-dialog>
</div> </div>
</template> </template>
<script> <script>
import { deepClone } from '@/common/util' import { deepClone } from "@/common/util"
export default { export default {
name: 'GlskFormDialog', name: "GlskFormDialog",
data() { data() {
return { return {
isBlock: true, isBlock: true,
editChildRef: 'editChildRef' editChildRef: "editChildRef"
} }
}, },
props: { props: {
slotArr: {
type: Array,
default: () => ["resumeUrlHtml"]
},
dialogWidth: { dialogWidth: {
type: String, type: String,
default: '700px' default: "700px"
}, },
labelWidth: { labelWidth: {
type: String, type: String,
default: '100px' default: "100px"
}, },
defaultWidth: { defaultWidth: {
type: String, type: String,
default: '314px' default: "314px"
}, },
dialogConfig: { dialogConfig: {
type: Object, type: Object,
default: () => { default: () => {
return { return {
title: '提示', title: "提示",
okText: '确定' okText: "确定"
} }
} }
}, },
...@@ -64,29 +90,52 @@ export default { ...@@ -64,29 +90,52 @@ export default {
}, },
mounted() { mounted() {
this.getOptionsList('editFormData', false) this.getOptionsList("editFormData", false)
}, },
methods: { methods: {
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find((k) => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle) var index = this[formName].findIndex((k) => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) this.$set(
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} else { } else {
this[formName].forEach((item, index) => { this[formName].forEach((item, index) => {
if (['select', 'radio'].includes(item.type) && this.baseData[item.optionsName].length) { if (
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) ["select", "radio"].includes(item.type) &&
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this.baseData[item.optionsName].length
) {
this.$set(
this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} }
...@@ -94,14 +143,21 @@ export default { ...@@ -94,14 +143,21 @@ export default {
} }
}, },
handleConfirm() { handleConfirm() {
console.log(this.editFormData, this.editData)
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
this.$emit('handleConfirm', this.editData) this.$emit("handleConfirm", this.editData)
} }
}) })
}, },
handleAddSelectTypeConfirm(data) {
this.$emit("handleAddSelectTypeConfirm", data)
},
handleEditSelectTypeConfirm(data) {
this.$emit("handleEditSelectTypeConfirm", data)
},
handleClose() { handleClose() {
this.$emit('handleClose') this.$emit("handleClose")
} }
} }
} }
......
...@@ -51,7 +51,7 @@ process.env.NODE_ENV === "production" && ...@@ -51,7 +51,7 @@ process.env.NODE_ENV === "production" &&
tracesSampleRate: 1.0, tracesSampleRate: 1.0,
logErrors: true, logErrors: true,
// 解决火狐浏览器 无法捕获错误的问题 // 解决火狐浏览器 无法捕获错误的问题
beforeSend (event, hint) { beforeSend(event, hint) {
const isNonErrorException = const isNonErrorException =
event.exception.values[0].value.startsWith( event.exception.values[0].value.startsWith(
"Non-Error exception captured" "Non-Error exception captured"
...@@ -135,7 +135,6 @@ fetch( ...@@ -135,7 +135,6 @@ fetch(
baseConfig = data baseConfig = data
// console.log("baseConfig", baseConfig) // console.log("baseConfig", baseConfig)
// window.$fetchConfig = data // window.$fetchConfig = data
} else { } else {
baseConfig = response baseConfig = response
window.$fetchConfig = response window.$fetchConfig = response
...@@ -146,7 +145,7 @@ fetch( ...@@ -146,7 +145,7 @@ fetch(
// baseURL: 'http://192.168.1.103:5006', // baseURL: 'http://192.168.1.103:5006',
session: { session: {
requiresSession: true, requiresSession: true,
sessionId: _ => util.cookies.get("token") sessionId: (_) => util.cookies.get("token")
}, },
events: { events: {
error: (error, config) => { error: (error, config) => {
...@@ -156,17 +155,17 @@ fetch( ...@@ -156,17 +155,17 @@ fetch(
store.dispatch("d2admin/user/clear") store.dispatch("d2admin/user/clear")
util.cookies.remove("token") util.cookies.remove("token")
router.replace("/login") router.replace("/login")
Vue.prototype.$message.error('登录超时,请重新登录') Vue.prototype.$message.error("登录超时,请重新登录")
} }
} }
}) })
console.log(window.$gscApi, '========') console.log(window.$gscApi, "========")
} }
}) })
.finally(() => { .finally(() => {
init() init()
}) })
function init () { function init() {
new Vue({ new Vue({
router, router,
store, store,
...@@ -179,7 +178,7 @@ function init () { ...@@ -179,7 +178,7 @@ function init () {
Vue.prototype.baseConfig = baseConfig Vue.prototype.baseConfig = baseConfig
return h(App) return h(App)
}, },
created () { created() {
// 系统配置 // 系统配置
Vue.config.devtools = true Vue.config.devtools = true
// 展示系统信息 // 展示系统信息
...@@ -191,7 +190,7 @@ function init () { ...@@ -191,7 +190,7 @@ function init () {
// 初始化全屏监听 // 初始化全屏监听
this.$store.dispatch("d2admin/fullscreen/listen") this.$store.dispatch("d2admin/fullscreen/listen")
}, },
mounted () { } mounted() {}
}).$mount("#app") }).$mount("#app")
} }
export { baseConfig } export { baseConfig }
...@@ -118,10 +118,12 @@ export default { ...@@ -118,10 +118,12 @@ export default {
this.setBrowseTrackData() this.setBrowseTrackData()
}, 10e3) }, 10e3)
} }
let trackParams = {}
if(this.track_businessParam_key) trackParams = this[this.track_businessParam_key] || {}
this.setReportTrackData( this.setReportTrackData(
2, 2,
this.track_event_code, this.track_event_code,
this[this.track_businessParam_key], trackParams,
this.track_batchId this.track_batchId
) )
} catch (error) { } catch (error) {
......
...@@ -35,6 +35,6 @@ export default { ...@@ -35,6 +35,6 @@ export default {
}, 10) }, 10)
}, },
getRandomString: getRandomString, getRandomString: getRandomString,
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -119,6 +119,7 @@ service.interceptors.response.use( ...@@ -119,6 +119,7 @@ service.interceptors.response.use(
// } // }
const dataAxios = response.data const dataAxios = response.data
const ruleResult = baseConfig.axios.result const ruleResult = baseConfig.axios.result
const returnAll = response.config.returnAll
// 这个状态码是和后端约定的 // 这个状态码是和后端约定的
// 有 code 代表这是一个后端接口 可以进行进一步的判断 // 有 code 代表这是一个后端接口 可以进行进一步的判断
var goBackArr = ["20", "21"] var goBackArr = ["20", "21"]
...@@ -132,6 +133,7 @@ service.interceptors.response.use( ...@@ -132,6 +133,7 @@ service.interceptors.response.use(
// return Promise.reject(new Error("登录超时,请重新登录")) // return Promise.reject(new Error("登录超时,请重新登录"))
// return Promise.reject(new Error(response.message || 'Error')) // return Promise.reject(new Error(response.message || 'Error'))
} }
if(returnAll) return dataAxios
const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode
switch (+codeValue) { switch (+codeValue) {
case ruleResult.code_success_value: case ruleResult.code_success_value:
......
...@@ -8,13 +8,13 @@ import Qs from "qs" ...@@ -8,13 +8,13 @@ import Qs from "qs"
axios.defaults.withCredentials = true axios.defaults.withCredentials = true
// const expiresMinute = 60 // 过期时间(分钟) // const expiresMinute = 60 // 过期时间(分钟)
// 创建一个错误 // 创建一个错误
export function errorCreate(msg) { export function errorCreate (msg) {
const error = new Error(msg) const error = new Error(msg)
errorLog(error) errorLog(error)
throw error throw error
} }
// 记录和显示错误 // 记录和显示错误
function errorLog(error) { function errorLog (error) {
// 添加到日志 // 添加到日志
store.dispatch("d2admin/log/push", { store.dispatch("d2admin/log/push", {
message: "数据请求异常", message: "数据请求异常",
...@@ -47,7 +47,6 @@ const service = axios.create({ ...@@ -47,7 +47,6 @@ const service = axios.create({
} }
] ]
}) })
// 请求拦截器 // 请求拦截器
service.interceptors.request.use( service.interceptors.request.use(
(config) => { (config) => {
...@@ -121,6 +120,8 @@ service.interceptors.response.use( ...@@ -121,6 +120,8 @@ service.interceptors.response.use(
const ruleResult = baseConfig.axios.result const ruleResult = baseConfig.axios.result
const errCodeMsg = baseConfig.errCode const errCodeMsg = baseConfig.errCode
const errCodes = Object.keys(errCodeMsg) const errCodes = Object.keys(errCodeMsg)
const returnAll = response.config.headers['return-all']
// console.log("baseConfig", baseConfig) // console.log("baseConfig", baseConfig)
// console.log("response", response) // console.log("response", response)
// console.log("errCodes", errCodes) // console.log("errCodes", errCodes)
...@@ -137,6 +138,7 @@ service.interceptors.response.use( ...@@ -137,6 +138,7 @@ service.interceptors.response.use(
return errorCreate("登录超时,请重新登录") return errorCreate("登录超时,请重新登录")
// return Promise.reject(new Error(response.message || 'Error')) // return Promise.reject(new Error(response.message || 'Error'))
} }
if (returnAll) return dataAxios
const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode
switch (+codeValue) { switch (+codeValue) {
case ruleResult.code_success_value: case ruleResult.code_success_value:
......
...@@ -622,5 +622,81 @@ export const routerName = { ...@@ -622,5 +622,81 @@ export const routerName = {
} }
], ],
component: _import("financeManage/receivePayManage/index") component: _import("financeManage/receivePayManage/index")
},
90514: {
path: "/usedCarPaymentManage",
name: "usedCarPaymentManage",
meta: {
title: "二手车付款管理",
authId: "90514",
parentId: "905",
cache: false
},
auth: [
{
authId: "9051401",
parentId: "90514",
label: "批量重推付款单",
category: "Button",
type: "primary",
handle: "handlePushPayBill"
},
{
authId: "9051402",
parentId: "90514",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051403",
parentId: "90514",
label: "详情",
handle: "handleDetail"
},
{
authId: "9051404",
parentId: "90514",
label: "回单",
handle: "handleReceipt"
},
],
component: _import("financeManage/usedCarPaymentManage/index")
},
90515: {
path: "/usedCarFundWarning",
name: "usedCarFundWarning",
meta: {
title: "二手车资金预警",
authId: "90515",
parentId: "905",
cache: false
},
auth: [
{
authId: "9051501",
parentId: "90515",
label: "新增使用额度",
category: "Button",
type: "primary",
handle: "handleAddUsedQuota"
},
{
authId: "9051502",
parentId: "90515",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051503",
parentId: "90515",
label: "详情",
handle: "handleDetail"
},
],
component: _import("financeManage/usedCarFundWarning/index")
} }
} }
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-06-19 16:57:57
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-07-01 16:36:04
* @FilePath: \dj-car-life-system\src\router\modules\912_residentManage.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/*
* @Description:
* @Author: huyue
* @Date: 2024-04-01 15:03:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-07-01 16:34:27
*/
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 = {
912: { 912: {
...@@ -1099,5 +1084,120 @@ export const routerName = { ...@@ -1099,5 +1084,120 @@ export const routerName = {
cache: false cache: false
}, },
component: _import("residentManage/recordLabelManagement/index") component: _import("residentManage/recordLabelManagement/index")
},
91223: {
path: "/recruitmentManagement",
name: "recruitmentManagement",
meta: {
title: "招聘管理",
authId: "91223",
parentId: "912",
cache: false
},
component: _import("residentManage/recruitmentManagement/index"),
auth: [
{
authId: "9122301",
parentId: "91223",
label: "新增招聘需求",
handle: "handleAdd",
category: "Button",
type: "primary",
addRoutePath: [
{
authId: "912230101",
name: "新增招聘需求",
parentId: "91223"
}
]
},
{
authId: "9122302",
parentId: "91223",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9122303",
parentId: "91223",
label: "查看",
handle: "handleDetail",
addRoutePath: [
{
authId: "912230301",
name: "查看招聘需求",
parentId: "91223"
}
]
},
{
authId: "9122304",
parentId: "91223",
label: "确认",
handle: "handleConfirm"
},
{
authId: "9122305",
parentId: "91223",
label: "驳回",
handle: "handleReject"
},
{
authId: "9122307",
parentId: "91223",
label: "完成",
handle: "handleComplete"
},
{
authId: "9122306",
parentId: "91223",
label: "处理",
handle: "handleDispose",
addRoutePath: [
{
authId: "912230601",
name: "处理",
parentId: "91223"
}
]
}
]
},
912230101: {
path: "/addRecruitment",
name: "addRecruitment",
meta: {
title: "新增招聘需求",
authId: "9122301",
parentId: "91223",
activePath: "/recruitmentManagement"
},
component: _import("residentManage/recruitmentManagement/addRecruitment")
},
912230601: {
path: "/disposeRecruitment",
name: "disposeRecruitment",
meta: {
title: "处理招聘需求",
authId: "9122306",
parentId: "91223",
activePath: "/recruitmentManagement"
},
component: _import(
"residentManage/recruitmentManagement/disposeRecruitment"
)
},
912230301: {
path: "/lookRecruitment",
name: "lookRecruitment",
meta: {
title: "查看招聘需求",
authId: "9122306",
parentId: "91223",
activePath: "/recruitmentManagement"
},
component: _import("residentManage/recruitmentManagement/lookRecruitment")
} }
} }
...@@ -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")
} }
} }
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
921: {
path: "/salesManagement",
name: "salesManagement",
meta: {
title: "销售管理",
authId: "921",
parentId: "1",
cache: false
}
},
92101: {
path: "/customer",
name: "customer",
meta: {
title: "客户管理",
authId: "92101",
parentId: "921",
cache: false
},
auth: [
{
authId: "9210101",
parentId: "92101",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9210102",
parentId: "92101",
label: "首次绑定",
handle: "handleEdit",
ruleObj: {
attr: "potentialCustomersStatus",
rule: {
3: "首次绑定",
4: "重新绑定"
}
}
},
{
authId: "9210103",
parentId: "92101",
label: "详情",
handle: "handleDetail"
}
],
component: _import("salesManagement/customer/index")
},
92102: {
path: "/organize",
name: "organize",
meta: {
title: "组织架构管理",
authId: "92102",
parentId: "921",
cache: false
},
auth: [
{
authId: "9210201",
parentId: "92102",
label: "编辑",
handle: "handleEdit",
addRoutePath: [
{
authId: "92103",
name: "编辑",
parentId: "92102"
}
]
}
],
component: _import("salesManagement/organize/index")
},
92103: {
path: "/editOrganize",
name: "editOrganize",
meta: {
title: "编辑",
authId: "92103",
parentId: "92102",
sideHidden: true,
activePath: "/editOrganize"
},
component: _import("salesManagement/organize/editOrganize")
}
}
...@@ -2,6 +2,8 @@ import util from "@/libs/util.js" ...@@ -2,6 +2,8 @@ import util from "@/libs/util.js"
import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account" import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account"
// import { SUPPER_ADMIN } from '@/common/constants' // import { SUPPER_ADMIN } from '@/common/constants'
import { localRoutes } from "@/router/routes" import { localRoutes } from "@/router/routes"
import { Message } from "element-ui"
import router from "@/router"
import md5 from "js-md5" import md5 from "js-md5"
export default { export default {
namespaced: true, namespaced: true,
...@@ -114,10 +116,21 @@ export default { ...@@ -114,10 +116,21 @@ export default {
// ? routeAll.map((i) => i.authId) // ? routeAll.map((i) => i.authId)
// : res.map((i) => i.authId) // : res.map((i) => i.authId)
// if (targetRoutes.length === 0) { if (targetRoutes.length === 0) {
// this.$message.warning("无权限,请联系管理员") // 显示提示
// return reject("无权限") // Message({
// } // message: "暂无权限,请联系管理员",
// type: "error",
// duration: 5 * 1000
// })
// setTimeout(() => {
// window.location.reload()
// }, 5000)
// window.location.reload()
// router.replace("/login")
// this.$message.error("无权限,请联系管理员")
return reject("暂无权限,请联系管理员")
}
// console.log(res, "res") // console.log(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper") // console.log(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes") // console.log(targetRoutes, "targetRoutes")
......
...@@ -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>
<el-dialog
id="baseDialog"
top="15vh"
:close-on-click-modal="false"
:close-on-press-escape="true"
:title="dialogConfig.title"
:width="dialogConfig.width"
:visible.sync="visible"
:show-close="true"
class="noborder"
>
<div class="reject-dialog">
<div class="dialog-title-box">
<div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1">
<div class="flex">
<span class="title-text">手机号:</span>
<span class="title-text1 flex-1">{{ info.staffPhone }}</span>
</div>
<div class="flex">
<span class="title-text">所属门店:</span>
<span class="title-text1">{{ info.merchantName }}</span>
</div>
</div>
<div class="dialog-title1">
<div class="flex">
<span class="title-text">客户姓名:</span>
<span class="title-text1">{{ info.customerName }}</span>
</div>
<div class="flex-1 flex">
<span class="title-text">缺失原因:</span>
<span class="title-text1 flex-1">{{ info.reason }}</span>
</div>
</div>
</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>
<!-- <span :style="{ 'margin-left': '150px' }"
>审核通过后,转账业务单据自动流转至财务确认。</span
> -->
</div>
<div slot="footer">
<el-button
v-preventReClick
@click="visible = false"
type="info"
size="small"
>
取消
</el-button>
<el-button v-preventReClick @click="confirmBtn(2)" size="small">
驳回
</el-button>
<el-button
size="small"
type="primary"
@click="confirmBtn(1)"
:loading="$store.state.d2admin.loading.value || btnLoding"
>
通过
</el-button>
</div>
</el-dialog>
</template>
<script>
import { reportApproval } from "@/api/earlyWarningManager"
export default {
name: "ExamineDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
// txtObj: {
// procurementReview: '说明:订单审核后会自动流转至商务进行复审',
// procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
// },
infoForm: {
remark: ""
},
rejectRef: "rejectRef",
dialogConfig: {
title: "审核",
width: "600px"
},
examineRef: "examineRef",
formRules: {},
editFormData: [
{
label: "审核意见",
name: "remark",
type: "input",
maxlength: 50,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {
// shippingEntityList: []
}
}
},
props: {
// fromPage: {
// type: String,
// default: 'procurementReview'
// },
auditsVisible: {
type: Boolean,
default: false
},
// paramsObj: {
// type: Object,
// default: {}
// }
info: {
type: Object,
default: () => {}
}
},
computed: {
visible: {
get() {
return this.auditsVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "auditsVisible" })
}
}
},
mounted() {},
methods: {
confirmBtn(type) {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
if (type === 2 && !this.infoForm.remark) {
this.$message.warning("请填写审核意见")
return
}
params.auditOpinion = this.infoForm.remark
params.id = this.info.id
params.auditStatus = type
console.log(params)
reportApproval(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
.dialog-title-box {
width: 100%;
background: #fafafa;
padding: 10px 20px;
color: #333333;
font-size: 16px;
font-weight: 400;
box-sizing: border-box;
margin-bottom: 20px;
.dialog-name {
font-weight: 600;
margin-bottom: 12px;
}
.dialog-title1 {
display: flex;
color: #333333;
font-size: 14px;
font-weight: 400;
margin-bottom: 8px;
}
}
.title-text {
width: 80px;
}
.title-text1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100px;
display: block;
}
.flex {
display: flex;
}
.flex-1 {
flex: 1;
}
.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;
}
}
::v-deep .el-dialog__footer {
border-top: 1px solid #e5e5e5;
.el-button {
width: 80px;
}
}
::v-deep .el-dialog__header {
border-bottom: 1px solid #e5e5e5;
}
</style>
<!-- 运营审核 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog">
<div class="dialog-title">已选中 {{ infoList.length }} 条记录</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>
<!-- <span :style="{ 'margin-left': '150px' }"
>审核通过后,转账业务单据自动流转至财务确认。</span
> -->
</div>
</baseDialog>
</template>
<script>
import { reportBatchApproval } from "@/api/earlyWarningManager"
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' }]
},
rejectRef: "rejectRef",
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: () => {}
},
auditStatus: {
type: Number,
default: 1
}
},
computed: {
visible: {
get() {
return this.examineVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "examineVisible" })
}
}
},
mounted() {
this.dialogConfig.title =
this.auditStatus === 1 ? "批量通过审核" : "批量驳回审核"
this.formRules =
this.auditStatus === 2
? {
remark: [
{ required: true, message: "请填写审核意见", trigger: "blur" }
]
}
: {}
},
methods: {
handleAddConfirm() {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
params.auditOpinion = this.infoForm.remark
params.auditStatus = this.auditStatus
if (this.infoList.length > 1) {
params.ids = this.infoList.map((item) => {
return item.id
})
} else {
params.id = this.infoList[0].id
}
console.log(params)
reportBatchApproval(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>
<el-dialog
id="baseDialog"
top="15vh"
:close-on-click-modal="false"
:close-on-press-escape="true"
:title="dialogConfig.title"
:width="dialogConfig.width"
:visible.sync="visible"
:show-close="true"
@close="dialogClose"
class="noborder"
>
<div class="reject-dialog" v-loading="loading">
<div class="list-name">审核信息</div>
<div class="dialog-title-box">
<div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1">
<div class="flex">
<span class="title-text">手机号:</span>
<span class="title-text1">{{ info.staffPhone }}</span>
</div>
<div class="flex">
<span class="title-text">所属门店:</span>
<span class="title-text1">{{ info.merchantName }}</span>
</div>
</div>
<div class="dialog-title1">
<div class="flex">
<span class="title-text">客户姓名:</span>
<span class="title-text1">{{ info.customerName }}</span>
</div>
<div class="flex-1 flex">
<span class="title-text">缺失原因:</span>
<span class="title-text1">{{ info.reason }}</span>
</div>
</div>
</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 class="list-name">历史审核记录</div>
<div class="timeline-box">
<el-timeline>
<el-timeline-item
v-for="(activity, index) in activities"
:key="index"
:color="index == 0 ? '#2a58ad' : ''"
>
<div class="status-box">
<span class="status-box-text w100">{{
activity.auditStatus == "1" ? "【已通过】" : "【已驳回】"
}}</span>
<span class="status-box-text flex-1">{{
activity.auditOpinion || "-"
}}</span>
</div>
<div class="time-box">
<span class="time-box-text w100">{{ activity.auditUser }}</span>
<span class="time-box-text">{{
Util.dateFormate(activity.auditTime, "YYYY-MM-DD HH:mm:ss")
}}</span>
</div>
</el-timeline-item>
</el-timeline>
</div>
</div>
<div slot="footer">
<el-button v-preventReClick @click="dialogClose" type="info">
取消
</el-button>
<el-button v-preventReClick @click="confirmBtn(2)" type="danger">
驳回
</el-button>
<el-button
type="primary"
@click="confirmBtn(1)"
:loading="$store.state.d2admin.loading.value || btnLoding"
>
通过
</el-button>
</div>
</el-dialog>
</template>
<script>
import { reportApproval, reportDetail } from "@/api/earlyWarningManager"
import { color } from "echarts"
import { Util, deepClone } from "@/common/util"
export default {
name: "ExamineDialog",
data() {
return {
Util,
loading: true,
userInfo: this.$store.state.d2admin.user.info,
// txtObj: {
// procurementReview: '说明:订单审核后会自动流转至商务进行复审',
// procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
// },
infoForm: {
remark: ""
},
activities: [],
rejectRef: "rejectRef",
dialogConfig: {
title: "重新审核",
width: "600px"
},
examineRef: "examineRef",
formRules: {},
editFormData: [
{
label: "审核意见",
name: "remark",
type: "input",
maxlength: 50,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {
// shippingEntityList: []
},
btnLoading: false
}
},
props: {
// fromPage: {
// type: String,
// default: 'procurementReview'
// },
rejectVisible: {
type: Boolean,
default: false
},
// paramsObj: {
// type: Object,
// default: {}
// }
info: {
type: Object,
default: () => {}
}
},
computed: {
visible: {
get() {
return this.rejectVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "rejectVisible" })
}
}
},
mounted() {
this.getReportDetail()
},
methods: {
confirmBtn(type) {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
if (type === 2 && !this.infoForm.remark) {
this.$message.warning("请填写审核意见")
return
}
params.auditOpinion = this.infoForm.remark
params.id = this.info.id
params.auditStatus = type
console.log(params)
reportApproval(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = false
})
}
})
},
getReportDetail() {
reportDetail({ id: this.info.id })
.then((res) => {
this.loading = false
this.activities = res
})
.catch(() => {
this.loading = false
})
},
dialogClose() {
this.visible = false
}
}
}
</script>
<style lang="scss" scoped>
::v-deep .el-dialog__body {
padding: 0px 20px 30px;
}
::v-deep .el-timeline {
width: calc(100% - 40px);
box-sizing: border-box;
.el-timeline-item {
}
}
::v-deep .el-timeline-item__node--normal {
width: 8px;
height: 8px;
}
::v-deep .el-timeline-item__tail {
left: 2px;
}
.reject-dialog {
max-height: 70vh;
overflow-y: scroll;
.list-name {
font-size: 16px;
font-weight: 400;
color: #333333;
margin-bottom: 20px;
border-bottom: 1px solid #e5e5e5;
padding: 13px 0;
}
.dialog-title-box {
width: 100%;
background: #fafafa;
padding: 10px 20px;
color: #333333;
font-size: 16px;
font-weight: 400;
box-sizing: border-box;
margin-bottom: 20px;
.dialog-name {
margin-bottom: 12px;
}
.dialog-title1 {
display: flex;
color: #333333;
font-size: 14px;
font-weight: 400;
margin-bottom: 8px;
}
}
.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;
}
.status-box {
display: flex;
align-items: center;
.status-box-text {
margin-right: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.flex-1 {
flex: 1;
}
.w100 {
width: 100px;
}
.time-box {
display: flex;
align-items: center;
margin-top: 5px;
color: #999999;
font-size: 12px;
font-weight: 400;
.time-box-text {
margin-right: 8px;
}
}
.timeline-box {
width: 100%;
}
&::-webkit-scrollbar {
display: none;
}
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
::v-deep .el-dialog__footer {
.el-button {
width: 80px;
}
}
::v-deep .el-dialog__header {
border-bottom: 1px solid #e5e5e5;
}
.title-text {
width: 80px;
}
.title-text1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100px;
display: block;
}
.flex {
display: flex;
}
.flex-1 {
flex: 1;
}
</style>
<!-- 下载对账单 --> <!-- 下载对账单 -->
<template> <template>
<d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm"> <d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm">
<el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill" :loading="$store.state.d2admin.loading.value">系统对账</el-button> <el-button v-if="isTmpl" slot="btn-end" type="primary" @click="handleSystemBill" :loading="$store.state.d2admin.loading.value">系统对账</el-button>
<el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px" v-loading="loading"> <el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px" v-loading="loading">
<el-form-item label="商户类型:" prop="merchantType"> <el-form-item label="商户类型:" prop="merchantType">
<el-radio-group v-model="infoForm.merchantType" @change="changeType"> <el-radio-group v-model="infoForm.merchantType" @change="changeType">
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
'el-input__inner', 'el-input__inner',
'el-date-editor--daterange', 'el-date-editor--daterange',
'el-range-editor--small', 'el-range-editor--small',
pickerVisible ? 'is-active' : '' pickerVisible ? 'is-active' : '',
{ 'is-error':tipsShow}
]" ]"
@click="handleRangeClick" @click="handleRangeClick"
@mouseleave="showClose = false" @mouseleave="showClose = false"
...@@ -29,6 +30,7 @@ ...@@ -29,6 +30,7 @@
:placeholder="startPlaceholder" :placeholder="startPlaceholder"
@blur="handleBlur(0)" @blur="handleBlur(0)"
@input="handleStartInput" @input="handleStartInput"
:maxlength="inputMaxLength"
class="el-range-input"></el-input> class="el-range-input"></el-input>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input v-model="userInput[1]" <el-input v-model="userInput[1]"
...@@ -36,6 +38,7 @@ ...@@ -36,6 +38,7 @@
@input="handleEndInput" @input="handleEndInput"
@focus="handleFocus" @focus="handleFocus"
@blur="handleBlur(1)" @blur="handleBlur(1)"
:maxlength="inputMaxLength"
class="el-range-input"></el-input> class="el-range-input"></el-input>
</template> </template>
<i v-show="showClose" <i v-show="showClose"
...@@ -67,7 +70,15 @@ export default { ...@@ -67,7 +70,15 @@ export default {
placeholder: String, placeholder: String,
startPlaceholder: String, startPlaceholder: String,
endPlaceholder: String, endPlaceholder: String,
infinity: Boolean infinity: Boolean,
maxLength:{
type: [Number,String],
default: 20
},
inputMaxLength:{
type: [Number,String],
default: -1
},
}, },
watch: { watch: {
displayValue(val) { displayValue(val) {
...@@ -88,7 +99,7 @@ export default { ...@@ -88,7 +99,7 @@ export default {
// if (event > 100) event = 100 // if (event > 100) event = 100
// this.userInput[0] = event // this.userInput[0] = event
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2) this.userInput[0] = limitPrice(event, this.oldVal.startInput, this.maxLength, 2)
this.oldVal.startInput = this.userInput[0] this.oldVal.startInput = this.userInput[0]
}, },
...@@ -100,7 +111,7 @@ export default { ...@@ -100,7 +111,7 @@ export default {
// if (event > 100) event = 100 // if (event > 100) event = 100
// this.userInput[1] = event // this.userInput[1] = event
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2) this.userInput[1] = limitPrice(event, this.oldVal.endInput, this.maxLength, 2)
this.oldVal.endInput = this.userInput[1] this.oldVal.endInput = this.userInput[1]
}, },
handleClickIcon(event) { handleClickIcon(event) {
...@@ -178,10 +189,14 @@ export default { ...@@ -178,10 +189,14 @@ export default {
} }
} }
} }
.is-error{
border-color:#f56c6c;
}
.errorTips { .errorTips {
color: red; color: red;
// text-align: center; // text-align: center;
font-size: 12px; font-size: 10px;
line-height: 14px;
} }
} }
</style> </style>
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content-warn"
@handleClick="submit"
>
<el-form
class="form"
label-width="150px"
size="small"
>
<el-form-item
label="手机号:"
required
:error="phoneError"
>
<el-input
v-model="phone"
class="input-width"
disabled
></el-input>
</el-form-item>
<el-form-item
label="验证码:"
required
:error="smsError"
>
<div class="sms-code flex">
<el-input
v-model="smsCode"
class="input-width"
:maxlength="6"
placeholder="请输入验证码"
@input="handleInput"
>
clearable
>
</el-input>
<el-button
ref="smsCodeBtn"
type="primary"
:plain="countDownStatus"
:disabled="countDownStatus"
class="get-sms-code"
@click="getSmsCode"
>{{smsBtnText}}</el-button>
</div>
</el-form-item>
</el-form>
</basedialog>
</template>
<script>
import { sendSmsCode, verifySmsCode } from "@api/usedCarManagement"
export default {
name: "AuthPhoneDialog",
inject: ['userInfo'],
props: {
visible: {
type: Boolean,
default: false
},
},
computed: {
dialogShow: {
get () {
return this.visible
},
set (val) {
this.$emit('dialogClose')
}
},
phone () {
return this.userInfo.loginAccount.phone || ''
}
},
watch: {
visible: {
handler (val) {
if (val) {
this.phoneError = ''
this.smsError = ''
this.smsCode = ''
}
},
immediate: true,
deep: true
}
},
mounted () {
},
data () {
return {
phoneError: '',
smsError: '',
smsBtnText: '获取验证码',
count: 60,
smsCode: '',
countDownStatus: false,
dialogConfig: {
config: {
title: "短信验证",
width: "640px"
}
},
}
},
methods: {
handleInput (value) {
this.smsCode = value.replace(/\D/g, '')
},
async getSmsCode (e) {
try {
let { phone } = this
if (!phone) return this.phoneError = '手机号不能为空'
if (!/^1[3456789]\d{9}$/.test(phone)) return this.phoneError = '手机号格式错误'
this.countDownStatus = true
let data = await sendSmsCode({
phone
})
if (data) {
this.countDown()
let target = e.target
if (target.nodeName == 'SPAN') target = e.target.parentNode
target.blur()
this.notice.okTips('发送短信成功')
} else {
this.countDownStatus = false
this.notice.errorTips('发送短信失败')
}
} catch (error) {
this.countDownStatus = false
}
},
countDown () {
this.count--
let count = this.count
this.smsBtnText = `获取验证码(${count})`
if (count <= 0 || !this.countDownStatus) {
this.count = 60
this.countDownStatus = false
this.smsBtnText = '获取验证码'
return
}
setTimeout(() => {
this.countDown()
}, 1e3)
},
async submit () {
this.smsError = ''
this.phoneError = ''
let { phone, smsCode } = this
if (!phone) return this.phoneError = '手机号不能为空'
if (!/^1[3456789]\d{9}$/.test(phone)) return this.phoneError = '手机号格式错误'
if (!smsCode) return this.smsError = '验证码不能为空'
if (smsCode.length < 6) return this.smsError = '验证码错误,请重试!'
let { code } = await verifySmsCode({
phone,
smsCode
})
if (code == 0) {
this.$emit('loginSuccess')
this.count = 60
this.countDownStatus = false
this.smsBtnText = '获取验证码'
this.smsCode = ''
} else this.smsError = '验证码错误,请重试!'
}
}
}
</script>
<style lang="scss" scoped>
.flex {
display: flex;
align-items: center;
}
.detail-content-warn {
::v-deep .el-dialog {
height: 360px;
.el-dialog__body {
border-bottom: 1px solid #e6e6e6;
}
}
.form {
height: 195px;
padding: 17px 22px 0 0;
box-sizing: border-box;
}
.sms-code {
gap: 8px;
.get-sms-code {
width: 160px;
}
}
}
</style>
<template>
<baseDialog
:is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
class="detail-content-warn"
>
<div
v-loading="loading"
class="form_div"
>
<div class="div-title">使用情况</div>
<el-form
class="edit-sub-block"
label-width="150px"
:inline="true"
>
<div class="itemDiv">
<template v-for="(item,index) in formList">
<el-form-item
:label="`${item.label}:`"
class="halfItem"
:key="index"
>
{{ detailInfo[item.value] || "-" }}
</el-form-item>
</template>
</div>
</el-form>
<div class="div-title flex">
关联审批单列表
<el-button
type="primary"
class="btn"
size="mini"
@click="handleExport"
>导出</el-button>
</div>
<template v-if="loadingComplete">
<d2-table
ref="oaTable"
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
</d2-table>
</template>
<div class="block"></div>
</div>
</basedialog>
</template>
<script>
import { getFundUsageLimitDetail, getFundUsageLimitOaList } from "@api/usedCarManagement"
import { mapActions, mapState } from "vuex"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
name: "DetailDialog",
mixins: [reportTrackPageMixin],
components: {
},
props: {
visible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
}),
dialogShow: {
get () {
return this.visible
},
set (val) {
this.$emit('dialogClose', { flag: this.refreshFlag })
}
}
},
mounted () {
},
watch: {
visible: {
handler (val) {
if (val) {
this.loading = true
this.getDetail()
}
else {
this.loadingComplete = false
this.detailInfo = {}
this.refreshFlag = false
}
},
immediate: true,
deep: true
}
},
data () {
return {
dialogConfig: {
setting: {
showClose: true,
appendToBody: true,
},
config: {
title: "资金使用详情",
width: "1080px"
}
},
detailInfo: {},
loading: true,
tableData: [],
getListApi: getFundUsageLimitOaList,
searchFormSearch: {},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '支付方式',
prop: 'paymentReason',
width: 100
}, {
label: '支付金额',
prop: 'amt',
minWidth: 120,
formatter: (cellValue) => {
return cellValue.amt != null ? `¥${this.addZero(cellValue.amt, false)}` : "-"
}
},
{
label: '收款人',
prop: 'rcvName',
minWidth: 120
},
{
label: '车牌号',
prop: 'licensePlate',
width: '100px'
},
{
label: '企微审批单号',
prop: 'spNo',
minWidth: 120
},
{
label: '评估单编号',
prop: 'evalOrderNo',
minWidth: 120
}
]
},
refreshFlag: false,
formList: [
{
label: '使用额度',
value: 'usageLimitText'
},
{
label: '已用金额',
value: 'usedAmountText'
},
{
label: '当期额度使用率',
value: 'usageRate'
},
{
label: '操作时间',
value: 'operationTime'
},
{
label: '操作人姓名',
value: 'operatorName'
},
{
label: '认证手机号',
value: 'authPhone'
},
{
label: '预警通知邮箱',
value: 'warningEmail'
},
],
loadingComplete: false,
}
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
async getDetail () {
const data = await getFundUsageLimitDetail({ id: this.paramsObj.id })
this.detailInfo = data
this.dataProcess(this.detailInfo)
this.loadingComplete = true
this.loading = false
},
dataProcess (info) {
if (info) {
info.usageLimitText = info.usageLimit != null ? `${this.addZero(info.usageLimit)}元` : '-'
info.usedAmountText = info.usedAmount != null ? `${this.addZero(info.usedAmount)}元` : '-'
}
},
addZero (num, hasThousands = true) {
let numStr = parseFloat(num).toFixed(2)
if (hasThousands) numStr = numStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',')
return numStr
},
beforeSearchFn () {
return new Promise((resolve) => {
this.searchFormSearch = {
fundUsageLimitId: this.paramsObj.id
}
resolve()
})
},
handleExport () {
this.setReportTrackData(0, 'usedcar_fund_warning_oa_list_export', {})
let params = {
method: "dj.smartcarlife.api.fund.usage.limit.oa.export.async",
fundUsageLimitId: this.paramsObj.id
}
const list = [
...this.dowloadList,
{
name: "关联审批单列表",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
},
}
}
</script>
<style lang="scss" scoped>
.flex {
display: flex;
align-items: center;
}
.detail-content-warn {
::v-deep .el-dialog {
.el-dialog__body {
overflow-y: scroll;
max-height: calc(70vh - 61px);
padding-top: 0;
}
}
.tipsText {
.circle {
display: inline-block;
border-radius: 50%;
width: 6px;
height: 6px;
margin-right: 8px;
vertical-align: middle;
}
}
.tipsError {
margin-left: 102px;
}
.tipsBt {
margin-left: auto;
}
.div-title {
display: flex;
align-items: center;
height: 50px;
font-size: 16px;
font-weight: 600;
color: #333333;
.btn {
margin-left: auto;
}
}
.el-icon-circle-close {
color: #ffffff;
}
.form_div {
max-height: 80vh;
color: #333333;
.tipsDiv {
display: flex;
align-items: center;
border-radius: 4px;
opacity: 1;
border: 1px solid #e5e5e5;
background: #fafafa;
padding: 16px 20px;
margin-bottom: 20px;
}
.el-form-item__content {
display: inline-block;
width: calc(100% - 150px);
line-height: 24px;
}
::v-deep .el-form-item__label {
padding: 0;
}
.el-form-item {
width: 100%;
// margin-bottom: 20px;
}
.edit-sub-block {
// padding: 0 10px;
.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% - 150px);
word-break: break-all;
}
.itemDiv {
display: flex;
flex-wrap: wrap;
.halfItem {
width: 50%;
margin: 0 !important;
}
}
.onLineItem {
::v-deep .el-form-item__content {
max-width: 80%;
}
}
}
.edit-sub-block-two {
.el-form-item__label {
padding: 0;
}
.el-form-item {
// width: 300px;
margin: 0px;
}
}
}
.receiptBtn {
margin-left: 8px;
}
.block {
height: 24px;
}
}
</style>
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content-warn"
@handleClick="submit"
>
<div class="usage-box flex">
<div class="progress-box">
<el-steps
direction="vertical"
:active="3"
>
<el-step title="请阅读功能使用注意事项"></el-step>
<el-step title="请填写当期使用额度"></el-step>
<el-step title="请填写预警通知邮箱"></el-step>
</el-steps>
</div>
<div class="form">
<div class="tips">
每次“新增使用额度”都会重置上次限额,且上次未使用额度不会延续叠加使用(仅当期有效);<br>
预警通知触发条件:当额度使用率达到70%、80%、90%、95%时,各触发一次预警;<br>
“使用额度”仅控制二手车业务自动付款,超过当期额度后无法自动付款。
</div>
<el-form
label-width="150px"
size="small"
:model="infoForm"
ref="editRef"
:rules="formRules"
>
<el-form-item
label="当期使用额度:"
class="usage-limit"
prop="usageLimit"
>
<el-input
v-model.number="infoForm.usageLimit"
class="input-width"
:maxlength="15"
@input="handleUsageLimitNum"
@blur="handleBlur"
placeholder="请输入当前使用额度"
>
</el-input>
<span class="unit">元</span>
</el-form-item>
<el-form-item
label="预警通知邮箱:"
prop="warningEmail"
>
<el-input
v-model="infoForm.warningEmail"
class="input-width"
:maxlength="200"
placeholder="请输入预警通知邮箱(多邮箱用逗号隔开,最多五个)"
>
</el-input>
</el-form-item>
</el-form>
</div>
</div>
</basedialog>
</template>
<script>
import { addFundUsageLimit } from "@api/usedCarManagement"
import { limitPrice } from '@/common/format'
import { deepClone } from "@/common/util"
export default {
name: "UsageLimitDialog",
inject: ['userInfo'],
props: {
visible: {
type: Boolean,
default: false
},
},
computed: {
dialogShow: {
get () {
return this.visible
},
set (val) {
this.$emit('dialogClose', { flag: this.refreshFlag })
}
},
authPhone () {
return this.userInfo.loginAccount.phone
}
},
watch: {
visible: {
handler (val) {
if (val) {
this.oldVal = ''
this.infoForm = this.$options.data.call(this).infoForm
this.$refs?.editRef?.resetFields()
}
},
immediate: true,
deep: true
}
},
mounted () {
},
data () {
return {
dialogConfig: {
config: {
title: "新增使用额度",
width: "840px"
}
},
infoForm: {
usageLimit: '',
warningEmail: ''
},
oldVal: '',
formRules: {
usageLimit: [
{ required: true, message: "请填写当期使用额度", trigger: "blur" }
],
warningEmail: [{
required: true,
validator: (rule, value, callback) => {
if (!value) {
return callback(new Error(`请填写预警通知邮箱`))
}
// 去除首尾空格,并按逗号分割
const emailArray = value.split(',').map(email => email.trim())
if (emailArray.length > 5) {
return callback(new Error(`最多只能填写5个邮箱`))
}
// 邮箱格式正则(基础版)
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
// 检查每个邮箱是否合法
const invalidEmails = emailArray.filter(email => {
return email && !emailRegex.test(email) // 过滤非法邮箱
})
if (invalidEmails.length > 0) {
return callback(new Error(`以下邮箱格式不正确: ${invalidEmails.join(', ')}`))
}
// 可选:检查是否有重复邮箱
const unique = [...new Set(emailArray)]
if (unique.length !== emailArray.length) {
return callback(new Error('存在重复的邮箱地址'))
}
callback() // 验证通过
},
trigger: "blur"
}]
},
}
},
methods: {
handleBlur (event) {
let { usageLimit } = this.infoForm
this.infoForm.usageLimit = usageLimit <= 0 ? '' : usageLimit
},
handleUsageLimitNum (event) {
this.infoForm.usageLimit = limitPrice(event, this.oldVal, 15, 2)
this.oldVal = this.infoForm.usageLimit
},
submit () {
this.$refs.editRef.validate(async (valid) => {
if (valid) {
let { infoForm, authPhone } = this,
params = deepClone(infoForm)
// 提交前清理末尾逗号
params.warningEmail = params.warningEmail.trim().replace(/,+$/, '')
const data = await addFundUsageLimit({
...params,
authPhone
})
if (data) {
this.notice.okTips('新增使用额度成功')
this.$emit('addUsageLimitSuccess')
} else this.notice.errorTips('新增使用额度失败')
}
})
}
}
}
</script>
<style lang="scss" scoped>
.flex {
display: flex;
align-items: center;
}
.detail-content-warn {
::v-deep .el-dialog {
height: 428px;
.el-dialog__body {
border-bottom: 1px solid #e6e6e6;
}
}
.usage-box {
height: 263px;
.progress-box {
width: 210px;
height: 244px;
::v-deep .el-step__main {
padding: 4px 0 0 18px;
.el-step__title {
font-size: 14px;
}
}
::v-deep .el-step__line {
left: 15px;
background: none;
.el-step__line-inner {
height: 29px !important;
position: absolute;
top: 54px;
}
}
::v-deep .el-step__icon {
width: 32px;
height: 32px;
}
}
.form {
width: calc(100% - 210px);
height: 263px;
.tips {
border-radius: 4px;
opacity: 1;
border: 1px solid #e5e5e5;
background: #fafafa;
color: #666666;
font-size: 13px;
line-height: 20px;
padding: 8px 16px;
margin-bottom: 41px;
}
.usage-limit {
margin-bottom: 70px;
position: relative;
.unit {
position: absolute;
right: 8px;
top: 6px;
color: #333333;
font-size: 14px;
line-height: 20px;
}
}
}
}
}
</style>
<!-- 二手车资金预警 -->
<template>
<d2-container class="container">
<div
class="header"
slot="header"
>
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData"
labelWidth="130px"
>
<template #inputRangeHtml>
<input-range
start-placeholder="最小额度"
end-placeholder="最大额度"
:display-value="searchForm.amtList"
maxLength="15"
inputMaxLength="15"
></input-range>
</template>
</d2-search>
<div class="up-btns">
<el-button
:id="tableParams.btnId"
size="small"
type="primary"
@click="getAccountBalance"
>
查询
</el-button>
<el-button
size="small"
@click="handleReset"
> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<template #left>
<div class="account-info flex">
惠州数科宁波银行账户余额:
<div class="price">{{accountInfo.bal|| '-'}}元</div>
(查询时间:{{accountInfo.queryTime || '-'}})
</div>
</template>
<div class="btns flex">
<span data-event-code="usedcar_add_fund_warning">
<auth-button
category="Button"
:show-btn-ids="['9051501']"
/>
</span>
<span data-event-code="usedcar_fund_warning_management_list_export">
<auth-button
category="Button"
:show-btn-ids="['9051502']"
/>
</span>
</div>
</d2-table-header>
<d2-table
ref="usedCarFundWarningManageTable"
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<div
slot="auth-button"
slot-scope="scope"
>
<!-- 详情 -->
<span
style="margin-right: 10px"
:data-track="
JSON.stringify({
id: scope.scope.id
})
"
data-event-code="used_car_fund_warning_detail"
>
<auth-button
:data="scope.scope"
:show-btn-ids="['9051503']"
/>
</span>
</div>
</d2-table>
</div>
<auth-phone-dialog
:visible="authPhoneDialogVisible"
@dialogClose="authPhoneDialogVisible = false"
@loginSuccess="loginSuccess"
/>
<usage-limit-dialog
:visible="usageLimitDialogVisible"
@dialogClose="usageLimitDialogVisible = false"
@addUsageLimitSuccess="addUsageLimitSuccess"
/>
<detail-dialog
:visible.sync="detailVisible"
:params-obj="detailInfo"
@dialogClose="detailVisible = false"
/>
</d2-container>
</template>
<script>
import inputRange from '../pendingPaymentBill/components/inputRange'
import { deepClone } from "@/common/util"
import { getFundUsageLimitList, getAccountBalance } from "@api/usedCarManagement"
import { mapActions, mapState } from "vuex"
import dayjs from "dayjs"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import authPhoneDialog from './components/authPhoneDialog.vue'
import usageLimitDialog from './components/usageLimitDialog.vue'
import detailDialog from './components/detailDialog.vue'
export default {
name: "usedCarPaymentManage",
mixins: [reportTrackPageMixin],
components: {
inputRange,
authPhoneDialog,
usageLimitDialog,
detailDialog
},
data () {
return {
rangePickerOptions: {
disabledDate (date) {
if (date > new Date()) {
return true
}
return false
}
},
searchForm: {
operatorName: '',
authPhone: '',
amtList: [],
operationTime: ''
},
showFormData: [
{
label: "操作人姓名",
name: "operatorName",
type: "input",
isClear: true,
maxlength: 20
},
{
label: "认证手机号",
name: "authPhone",
inputType: "number",
type: "input",
isClear: true,
maxlength: 20
},
{
label: "使用额度",
addHtml: 'inputRangeHtml'
},
{
label: "操作时间",
name: "operationTime",
type: "datePicker",
dateType: "datetimerange",
isClear: true,
pickerOptions: "todayEndPickerOptions",
defaultTime: ["00:00:00", "23:59:59"],
}
],
getListApi: getFundUsageLimitList,
searchFormSearch: {},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
mutiSelectUniqueKey: "id",
mutiSelectName: "contentIndex",
tableOption: {
width: "170"
},
tableColumns: [
{
label: "使用额度",
prop: "usageLimit",
minWidth: 120,
formatter: (cellValue) => {
return cellValue.usageLimit != null ? `¥${this.addZero(cellValue.usageLimit)}` : "-"
}
},
{
label: "已用额度",
prop: "usageLimit",
minWidth: 120,
formatter: (cellValue) => {
return cellValue.usedAmount != null ? `¥${this.addZero(cellValue.usedAmount)}` : "-"
}
},
{
label: "操作时间",
prop: "operationTime",
minWidth: 120
},
{
label: "操作人姓名",
prop: "operatorName",
minWidth: 120
},
{
label: "认证手机号",
prop: "authPhone",
minWidth: 120
},
{
label: "当期额度使用率",
prop: "usageRate",
minWidth: 120,
},
]
},
track_event_code: "used_car_fund_warning_management",
accountInfo: {},
authPhoneDialogVisible: false,
usageLimitDialogVisible: false,
detailVisible: false,
detailInfo: {}
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
provide () {
return {
userInfo: this.$store.state.d2admin.user.info
}
},
mounted () {
this.getAccountBalance()
this.onPageShow()
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleReset () {
this.searchForm = this.$options.data.call(this).searchForm
this.$refs.usedCarFundWarningManageTable.refreshTable(true, true)
},
beforeSearchFn () {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
resolve()
})
},
getParams () {
let params = deepClone(this.searchForm)
if (params.operationTime) {
let [srart, end] = params.operationTime
params.operationStartTime = dayjs(srart).format("YYYY-MM-DD HH:mm:ss")
params.operationEndTime = dayjs(end).format("YYYY-MM-DD HH:mm:ss")
}
if (params.amtList.length) {
params.minUsageLimit = params.amtList[0]
params.maxUsageLimit = params.amtList[1]
}
delete params.amtList
delete params.operationTime
console.log(JSON.parse(JSON.stringify(params)))
return params
},
handleAddUsedQuota () {
this.authPhoneDialogVisible = true
},
handleDetail (row) {
this.detailVisible = true
this.detailInfo = row
},
filterIds () {
let ids = []
if (
this.$refs.usedCarFundWarningManageTable.mutiSelectArr.contentIndex?.length
) {
this.$refs.usedCarFundWarningManageTable.mutiSelectArr.contentIndex.forEach(
(item) => {
ids.push(item.id)
}
)
}
return ids
},
handleExport () {
let params = {
method: "dj.smartcarlife.api.fund.usage.limit.export.async",
...this.getParams()
},
ids = this.filterIds()
if (ids.length) {
ids.map((e, index) => {
params[`ids[${index}]`] = e
})
}
Object.keys(params).forEach((key) => {
if (params[key] == null || params[key] == "") {
delete params[key]
}
})
const list = [
...this.dowloadList,
{
name: "资金使用预警",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
},
async getAccountBalance () {
const data = await getAccountBalance()
data.queryTime = dayjs(data.updatedDate).format("YYYY-MM-DD HH:mm:ss")
this.accountInfo = data
},
loginSuccess () {
this.authPhoneDialogVisible = false
this.usageLimitDialogVisible = true
},
addUsageLimitSuccess () {
this.usageLimitDialogVisible = false
this.$refs.usedCarFundWarningManageTable.refreshTable(true, true)
},
addZero (num) {
let numStr = parseFloat(num).toFixed(2)
return numStr
},
}
}
</script>
<style scoped lang="scss">
.flex {
display: flex;
align-items: center;
}
.btns {
margin-left: auto;
gap: 10px;
}
.account-info {
font-size: 14px;
color: #333333;
.price {
font-weight: 500;
color: #2a58ad;
}
}
</style>
<template>
<baseDialog
:is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
class="detail-content-warn"
>
<div
v-loading="loading"
class="form_div"
ref="form"
>
<div class="tipsDiv">
<div class="labelCla">付款单推送状态:</div>
<div class="tipsText flex">
<span
class="circle"
:style="{
background: PUSH_STATUS_COLOR[detailInfo.pushStatus]
}"
></span>
{{ detailInfo.pushStatusText }}
</div>
<template v-if="detailInfo.pushStatus == 2">
<div class="tipsError">
原因:【{{ detailInfo.failReason || '-' }}】
</div>
</template>
<template v-if="detailInfo.pushStatus != 1">
<div class="tipsBt">
<el-button
size="small"
type="primary"
@click="dataPush"
:loading="pushLoading"
>重推付款单</el-button>
</div>
</template>
</div>
<el-form
class="edit-sub-block"
label-width="150px"
:inline="true"
>
<div class="itemDiv">
<template v-for="(item,index) in formList">
<el-form-item
:label="`${item.label}:`"
class="halfItem"
:key="index"
>
{{ detailInfo[item.value] || "-" }}
</el-form-item>
</template>
</div>
<div class="itemDiv">
<el-form-item
label="回单状态:"
class="halfItem"
>
{{ detailInfo.receiptStatusText || "-" }}
<el-button
type="text"
class="receiptBtn"
@click="handleReceipt(detailInfo.receiptUrl)"
v-if="detailInfo.receiptUrl"
>查看回单</el-button>
</el-form-item>
</div>
</el-form>
<div class="div-title">操作日志</div>
<d2-table
ref="recordTable"
:has-page="false"
:table-data="detailInfo.logList"
:table-params="tableParams"
>
</d2-table>
<div class="block"></div>
</div>
</basedialog>
</template>
<script>
import { batchRepush, batchTransferDetail } from "@api/usedCarManagement"
import {
RECEIPT_STATUS,
PUSH_STATUS,
PUSH_STATUS_COLOR,
NB_TRANSFER_STATUS,
} from "../contant"
import dayjs from 'dayjs'
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
mixins: [reportTrackPageMixin],
name: "DetailDialog",
components: {
},
props: {
visible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
dialogShow: {
get () {
return this.visible
},
set (val) {
this.$emit('dialogClose', { flag: this.refreshFlag })
}
}
},
mounted () {
},
watch: {
visible: {
handler (val) {
if (val) {
this.pushLoading = false
this.loading = true
this.getDetail()
}
else {
this.detailInfo = {}
this.refreshFlag = false
}
},
immediate: true,
deep: true
}
},
data () {
return {
PUSH_STATUS_COLOR,
dialogConfig: {
setting: {
isShowFooter: true,
showClose: true,
appendToBody: false,
btnList: [],
hideConfirmBtn: true,
cancel_name: '返回'
},
config: {
title: "付款单详情",
width: "1080px"
}
},
detailInfo: {},
loading: true,
tableData: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: false,
tableColumns: [{
label: '操作项',
prop: 'transferStatus',
formatter: (cellValue) => {
return {
0: '获取付款单',
1: '推送付款单',
2: '重推付款单'
}[cellValue.transferStatus] || '-'
}
}, {
label: '操作时间',
prop: 'createdDate',
formatter: (cellValue) => {
return cellValue.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
}, {
label: '操作结果',
prop: 'failReason'
}, {
label: '操作人',
prop: 'createdBy'
}]
},
refreshFlag: false,
formList: [
{
label: '车牌号',
value: 'licensePlate'
},
{
label: '车架号',
value: 'vin'
},
{
label: '付款单时间',
value: 'createdDate'
},
{
label: '推送财资时间',
value: 'pushNbTime'
},
{
label: '本方户名',
value: 'payName'
},
{
label: '本方账号',
value: 'payAcc'
},
{
label: '对方户名',
value: 'rcvName'
},
{
label: '对方账号',
value: 'rcvAcc'
},
{
label: '交易金额',
value: 'amtText'
},
{
label: '银行摘要',
value: 'bankSummary'
},
{
label: '支付方式',
value: 'paymentReason'
},
{
label: '评估单编号 ',
value: 'evalOrderNo'
},
{
label: '审批编号',
value: 'spNo'
},
{
label: '推送财资状态',
value: 'pushStatusText'
},
{
label: '财资付款状态',
value: 'nbTransferStatusText'
}
],
pushLoading: false
}
},
methods: {
getDetail () {
const params = { id: this.paramsObj.id }
batchTransferDetail(params).then(res => {
this.detailInfo = res
this.dataProcess(this.detailInfo)
this.loading = false
})
},
dataProcess (info) {
if (info) {
info.pushStatusText = PUSH_STATUS[info.pushStatus]
info.nbTransferStatusText = NB_TRANSFER_STATUS[info.nbTransferStatus]
info.receiptStatusText = RECEIPT_STATUS[info.receiptStatus]
info.amtText = info.amt != null ? `${this.addZero(info.amt)}元` : '-'
if (this.$refs.form) this.$refs.form.parentNode.scrollTop = 0
}
},
dataPush () {
this.setReportTrackData(0, 'usedcar_payment_push', {})
this.pushLoading = true
this.$confirm('请确认是否要执行当前操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
const ids = [this.paramsObj.id]
batchRepush({ idList: ids }).then(res => {
this.pushLoading = false
this.notice.okTips()
this.getDetail()
this.refreshFlag = true
}).catch(err => {
this.pushLoading = false
})
}).catch(err => {
this.pushLoading = false
console.log(err)
})
},
handleReceipt (url) {
this.setReportTrackData(0, 'usedcar_payment_receipt', {})
window.open(url)
},
addZero (num, hasThousands = true) {
let numStr = parseFloat(num).toFixed(2)
if (hasThousands) numStr = numStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',')
return numStr
},
}
}
</script>
<style lang="scss" scoped>
.flex {
display: flex;
align-items: center;
}
.detail-content-warn {
::v-deep .el-dialog {
height: 70vh;
.el-dialog__body {
overflow-y: scroll;
border-bottom: 1px solid #e5e5e5;
padding-bottom: 24px;
}
}
.tipsText {
.circle {
display: inline-block;
border-radius: 50%;
width: 6px;
height: 6px;
margin-right: 8px;
vertical-align: middle;
}
}
.tipsError {
margin-left: 102px;
}
.tipsBt {
margin-left: auto;
}
.div-title {
display: flex;
align-items: center;
height: 50px;
font-size: 16px;
font-weight: 600;
color: #333333;
// margin: 10px 0 20px 0;
}
.el-icon-circle-close {
color: #ffffff;
}
.form_div {
max-height: 80vh;
color: #333333;
.tipsDiv {
display: flex;
align-items: center;
border-radius: 4px;
opacity: 1;
border: 1px solid #e5e5e5;
background: #fafafa;
padding: 16px 20px;
margin-bottom: 20px;
}
.el-form-item__content {
display: inline-block;
width: calc(100% - 150px);
line-height: 24px;
}
::v-deep .el-form-item__label {
padding: 0;
}
.el-form-item {
width: 100%;
// margin-bottom: 20px;
}
.edit-sub-block {
// padding: 0 10px;
.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;
}
.itemDiv {
display: flex;
flex-wrap: wrap;
.halfItem {
width: 50%;
margin: 0 !important;
}
}
.onLineItem {
::v-deep .el-form-item__content {
max-width: 80%;
}
}
}
.edit-sub-block-two {
.el-form-item__label {
padding: 0;
}
.el-form-item {
// width: 300px;
margin: 0px;
}
}
}
.receiptBtn {
margin-left: 8px;
}
.block {
height: 24px;
}
}
</style>
const PAYMENT_TYPE = [
'定金',
'尾款',
'全款'
]
const PAYMENT_TYPE_OPTIONS = PAYMENT_TYPE.map(key => {
return {
label: key,
value: key,
}
})
const PUSH_STATUS = {
0: '未推送',
1: '成功',
2: '失败'
}
const PUSH_STATUS_COLOR = {
0: '#FDB757',
1: '#2CCA74',
2: '#EB4E4E'
}
const PUSH_STATUS_OPTIONS = Object.keys(PUSH_STATUS).map(key => {
return {
label: PUSH_STATUS[key],
value: key,
}
})
const RECEIPT_STATUS = {
0: '否',
1: '是'
}
const RECEIPT_STATUS_OPTIONS = Object.keys(RECEIPT_STATUS).map(key => {
return {
label: RECEIPT_STATUS[key],
value: key,
}
})
const NB_TRANSFER_STATUS = {
'1': '交易成功',
'-1': '交易中',
'0': '交易失败'
}
const NB_TRANSFER_STATUS_COLOR = {
'1': '#2CCA74',
'-1': '#FDB757',
'0': '#EB4E4E'
}
const NB_TRANSFER_STATUS_OPTIONS = Object.keys(NB_TRANSFER_STATUS).map(key => {
return {
label: NB_TRANSFER_STATUS[key],
value: key,
}
})
module.exports = {
RECEIPT_STATUS,
PUSH_STATUS,
NB_TRANSFER_STATUS,
PUSH_STATUS_COLOR,
NB_TRANSFER_STATUS_COLOR,
PAYMENT_TYPE_OPTIONS,
PUSH_STATUS_OPTIONS,
RECEIPT_STATUS_OPTIONS,
NB_TRANSFER_STATUS_OPTIONS
}
\ No newline at end of file \ No newline at end of file
...@@ -2,17 +2,11 @@ ...@@ -2,17 +2,11 @@
<template> <template>
<d2-container class="order-list m-t-40"> <d2-container class="order-list m-t-40">
<div class="header" slot="header"> <div class="header" slot="header">
<d2-search <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'150px'"
ref="showSearch" :form-data="showFormData">
class="show-search"
:search-form="searchForm"
:label-width="'150px'"
:form-data="showFormData"
>
<template slot="goodsCascader"> <template slot="goodsCascader">
<el-cascader :options="baseData.productTypeList" style="width: 100%;" <el-cascader :options="baseData.productTypeList" style="width: 100%;" v-model="tempGoodsType"
v-model="tempGoodsType" :placeholder="'请选择'" filterable :placeholder="'请选择'" filterable @change="selectAddAttr($event)" clearable
@change="selectAddAttr($event)" clearable
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"> :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }">
</el-cascader> </el-cascader>
</template> </template>
...@@ -90,7 +84,7 @@ ...@@ -90,7 +84,7 @@
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="施工状态" align="center" prop="upgradeFlag"> <!-- <el-table-column label="施工状态" align="center" prop="upgradeFlag">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.constructionFlag scope.row.constructionFlag
...@@ -98,7 +92,7 @@ ...@@ -98,7 +92,7 @@
: "未施工" : "未施工"
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="订单状态" align="center" prop="status"> <el-table-column label="订单状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ statusOpts[scope.row.status] }}</span> <span>{{ statusOpts[scope.row.status] }}</span>
...@@ -108,7 +102,7 @@ ...@@ -108,7 +102,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
profitAllocationStatusOpts[scope.row.profitAllocationStatus] profitAllocationStatusOpts[scope.row.profitAllocationStatus]
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="开票状态" align="center" prop="invoiceStatus"> <el-table-column label="开票状态" align="center" prop="invoiceStatus">
...@@ -147,11 +141,7 @@ ...@@ -147,11 +141,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(item, index) in scope.row.subOrderList" :key="index"> <span v-for="(item, index) in scope.row.subOrderList" :key="index">
<p> <p>
<el-tooltip <el-tooltip class="item" :content="getGoodsTypeName(item)" placement="right">
class="item"
:content="getGoodsTypeName(item)"
placement="right"
>
<span> <span>
{{ {{
getGoodsTypeName(item) getGoodsTypeName(item)
...@@ -313,7 +303,7 @@ ...@@ -313,7 +303,7 @@
<el-form-item v-show="showNum"> <el-form-item v-show="showNum">
<span>导入成功{{ importNum.succNum }}条,导入失败{{ <span>导入成功{{ importNum.succNum }}条,导入失败{{
importNum.failNum importNum.failNum
}}条</span> }}条</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
</slot> </slot>
...@@ -446,14 +436,14 @@ export default { ...@@ -446,14 +436,14 @@ export default {
optionLabel: "confLabel", optionLabel: "confLabel",
optionsName: "upgradeList" optionsName: "upgradeList"
}, },
{ // {
label: "施工状态", // label: "施工状态",
name: "constructionFlag", // name: "constructionFlag",
type: "select", // type: "select",
optionId: "confId", // optionId: "confId",
optionLabel: "confLabel", // optionLabel: "confLabel",
optionsName: "constructionList" // optionsName: "constructionList"
}, // },
{ {
label: "分账状态", label: "分账状态",
name: "profitAllocationStatus", name: "profitAllocationStatus",
......
...@@ -145,7 +145,7 @@ const FORM_DATA = [ ...@@ -145,7 +145,7 @@ const FORM_DATA = [
isClear: true isClear: true
}, },
{ {
label: "是否成交(安心包)", label: "安心包是否成交",
name: "orderAxbTransactionFlag", name: "orderAxbTransactionFlag",
type: "select", type: "select",
optionList: [], optionList: [],
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<d2-search <d2-search
ref="showSearch" ref="showSearch"
class="show-search" class="show-search"
label-width="130px" label-width="138px"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" :form-data="showFormData"
> >
...@@ -1094,12 +1094,18 @@ export default { ...@@ -1094,12 +1094,18 @@ export default {
padding-left: 32px; padding-left: 32px;
position: relative; position: relative;
.el-icon--left { .el-icon--left {
color: #999;
position: absolute; position: absolute;
font-size: 16px; font-size: 16px;
top: 50%; top: 50%;
left: 12px; left: 12px;
transform: translateY(-50%); transform: translateY(-50%);
} }
&:hover{
.el-icon--left {
color: #2A58AD;
}
}
} }
.circle { .circle {
display: inline-block; display: inline-block;
......
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-10-17 21:05:36
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-10-30 14:13:41
* @FilePath: \dj-car-life-system\src\views\residentManage\recruitmentManagement\components\baseInfo.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="baseInfo">
<detailComp :configData="configData" :detailInfo="detailInfo"></detailComp>
</div>
</template>
<script>
import detailComp from "./detailComp.vue"
export default {
components: {
detailComp
},
data() {
return {
configData: [
{
title: "基础信息",
infoData: [
{
title: "门店名称",
key: "merchantName"
},
{
title: "近一月新车销售",
key: "salesVolume"
},
{
title: "业务类型",
key: "businessTypeName"
},
{
title: "招聘类型",
key: "recruitmentTypeName"
},
{
title: "招聘数量",
key: "recruitmentQuantity"
},
{
title: "区域运营",
key: "regionOperationName"
},
{
title: "创建人",
key: "createdBy"
},
{
title: "申请时间",
key: "createdDate"
},
{
title: "需求描述",
key: "requirementDescription",
col: 24
}
]
}
]
}
},
methods: {
getStatusItem(baseData, optKey, row, rowKey) {
if (!baseData || !baseData[optKey] || !row) return null
return baseData[optKey].find(
(item) => item.confId == row[rowKey] // 使用严格相等
)
}
},
props: {
detailInfo: {
type: Object,
default: () => {}
}
}
}
</script>
.info-wrapper {
background-color: #fff;
margin: 0 20px;
.item {
margin-bottom: 20px;
.title {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 13.5px 20px;
border-bottom: 1px solid #e5e5e5;
line-height: 23px;
box-sizing: border-box;
}
.form_div {
color: #333333;
padding: 20px;
font-size: 14px;
.edit-sub-block {
.el-form-item {
width: 100%;
margin-bottom: 0px;
}
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
line-height: 20px;
}
.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-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content {
width: calc(100% - 150px);
word-break: break-all;
line-height: 20px;
}
::v-deep el-form-item--medium .el-form-item__label {
line-height: 20px;
}
}
.unit {
margin-left: 8px;
flex-shrink: 0;
line-height: 32px;
}
.edit-sub-block-two {
.el-form-item {
margin-bottom: 0px;
}
}
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.photo-box {
display: flex;
align-items: center;
::v-deep .photo-activity {
width: 100%;
height: 100%;
object-fit: contain;
position: static !important;
border-radius: 4px;
}
::v-deep .video-poster {
position: absolute;
width: 104px;
height: 104px;
object-fit: fill;
top: 0;
right: 0;
left: 0;
bottom: 0;
border-radius: 4px;
}
::v-deep .mask {
border-radius: 4px;
}
::v-deep .pic-box {
margin-right: 16px;
.video-poster {
width: 90px;
height: 90px;
}
}
}
}
}
}
<!-- 详情 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:config="config"
:is-show.sync="visible"
class="accountDailog"
>
<div class="sun-dialog" v-loading="loading">
<template v-if="detailInfo">
<detailComp
:configData="configData"
:detailInfo="detailInfo"
></detailComp>
</template>
</div>
</baseDialog>
</template>
<script>
import { interviewResultOpt, processResultOpt } from "@/common/constants.js"
import detailComp from "./detailComp.vue"
import { Util, deepClone } from "@/common/util"
import { getSunlightLog, getSunlightConfig } from "@/api/usedCarManagement"
export default {
name: "sunDialog",
components: {
detailComp
},
data() {
return {
rules: {},
dialogConfig: {
title: "查看结果",
width: "640px"
},
config: {
isShowFooter: false
},
loading: false,
isShow: true,
configData: [
{
infoData: [
{
title: "处理结果",
key: "processResult",
col: 24,
isHidden: false,
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"processResultOpt", // 配置项数组的键名
row,
"processResult"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
title: "面试时间",
key: "interviewTime",
isHidden: true,
col: 24
},
{
title: "面试结果",
key: "interviewResult",
col: 24,
isHidden: true,
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"interviewResultOpt", // 配置项数组的键名
row,
"interviewResult"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
title: "说明",
key: "description",
isHidden: false,
col: 24
},
{
title: "处理人",
key: "processorName",
isHidden: false,
col: 24
},
{
title: "处理时间",
key: "processTime",
isHidden: false,
col: 24
}
]
}
],
baseData: {
interviewResultOpt,
processResultOpt
}
}
},
props: {
detailVisible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
visible: {
get() {
return this.detailVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "detailVisible" })
}
},
detailInfo: {
get() {
return this.paramsObj
}
}
},
watch: {
detailInfo: {
handler(newVal) {
// 处理结果=1-人员不匹配 2-已完成面试 ,
if (newVal.processResult == 1) {
this.configData[0].infoData[
this.findFormAttrId("infoData", "interviewTime")
].isHidden = true
this.configData[0].infoData[
this.findFormAttrId("infoData", "interviewResult")
].isHidden = true
} else {
this.configData[0].infoData[
this.findFormAttrId("infoData", "interviewTime")
].isHidden = false
this.configData[0].infoData[
this.findFormAttrId("infoData", "interviewResult")
].isHidden = false
}
this.$set(this.configData[0], "infoData", this.configData[0].infoData)
},
immediate: true
}
},
created() {},
mounted() {},
methods: {
findFormAttrId(formData, name) {
console.log(this.configData[0][formData])
return (
this.configData[0][formData].findIndex((item) => item.key == name) || 0
)
},
getStatusItem(baseData, optKey, row, rowKey) {
if (!baseData || !baseData[optKey] || !row) return null
return baseData[optKey].find((item) => item.confId == row[rowKey])
},
handleClose() {
console.log("handleClose")
}
}
}
</script>
<style lang="scss" scoped>
@import "./detail.scss";
::v-deep .el-dialog__body {
padding: 12px 20px !important;
}
::v-deep .el-dialog__footer {
border-top: 1px solid #e5e5e5;
padding: 14px 20px !important;
}
::v-deep .el-dialog__header {
padding: 16px 20px !important;
color: #333333;
font-size: 20px;
font-weight: bold;
}
.operation-wrapper {
background: #fafafa;
padding: 0 20px;
margin-top: -20px;
.operateTitle {
color: #333333;
font-size: 16px;
padding: 13.5px 0;
font-weight: bold;
border-bottom: 1px solid #e5e5e5;
}
.list-item {
margin: 20px;
display: flex;
align-items: center;
gap: 0 40px;
color: #333333;
font-size: 14px;
.name {
width: 144px;
font-weight: 600;
}
.user {
width: 200px;
}
&:last-of-type {
padding-bottom: 20px;
}
}
}
.sun-dialog {
min-height: 200px;
}
</style>
<template>
<div class="info-wrapper">
<div class="item" v-for="(item, index) in configData" :key="index">
<div class="title" v-if="item.title">{{ item.title }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length">
<el-form
:ref="item.childRef"
class="edit-sub-block"
label-width="150px"
:inline="true"
:model="detailInfo"
:rules="rules"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.infoData">
<template v-if="item.isHidden ? !item.isHidden : true">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'" :prop="item.key">
<template v-if="item.type == 'imgList'">
<div
class="photo-box"
v-if="
detailInfo[item.key] && detailInfo[item.key].length
"
>
<glsx-preview
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:videoImg="true"
:picOptions="{
...picOptions,
type: item.otherType
}"
limit="1"
></glsx-preview>
</div>
<template v-else> - </template>
</template>
<template v-else-if="item.isEdit">
<template v-if="item.type == 'input'">
<el-input
v-model="detailInfo[item.key]"
:placeholder="`请输入${item.label}`"
:maxlength="item.maxLength || ''"
size="small"
class="edit-form-item"
></el-input>
</template>
<template v-else-if="item.type == 'date'">
<el-date-picker
v-model="detailInfo[item.key]"
type="date"
:placeholder="item.label"
size="small"
class="edit-form-item"
:picker-options="item.pickerOptions"
>
</el-date-picker>
</template>
<template v-else-if="item.type == 'textarea'">
<el-input
type="textarea"
:rows="3"
placeholder="请输入"
v-model="detailInfo[item.key]"
:maxlength="item.maxLength"
class="edit-form-item"
>
</el-input>
</template>
<template v-else-if="item.type == 'select'">
<el-select
v-model="detailInfo[item.key]"
:placeholder="`请选择${item.label}`"
size="small"
class="edit-form-item"
>
<el-option
v-for="item in item.options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</template>
<template v-else>
<div class="flex">
<div
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
<template v-if="item.suffixText">
<div class="unit">
{{ item.suffixText }}
</div>
</template>
</div>
</template>
</el-form-item></el-col
>
</template>
</template>
</el-row>
</el-form>
</div>
</div>
<template v-if="item.subTitle">
<div v-for="signIndex in item.sign" :key="signIndex">
<div class="subtitle">{{ item.subTitle }}{{ signIndex }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.subData && item.subData.length">
<el-form
class="edit-sub-block"
label-width="150px"
:inline="true"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.subData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
</div>
</div>
</template>
<script>
export default {
props: {
configData: {
type: Array,
default: () => []
},
detailInfo: {
type: Object,
default: () => {}
}
},
data() {
return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
picOptions: {
width: "90px",
height: "90px",
isClose: false
},
rules: {}
}
}
}
</script>
<style scoped lang="scss">
@import "./detail.scss";
</style>
<!-- 操作记录 -->
<template>
<div class="oparete-wrap">
<div class="title">操作记录</div>
<div class="content">
<div class="item" v-for="(item, index) in logs" :key="index">
<div class="item-type">{{ operationType[item.operationType] }}</div>
<div class="item-operate">操作人:{{ item.createdBy }}</div>
<div class="item-time">操作时间:{{ item.createdDate }}</div>
</div>
</div>
</div>
</template>
<script>
export default {
props: {
logs: {
type: Array,
default: () => []
}
},
data() {
return {
// 1-创建 2-人事确认 3-驳回 4-新增简历 5-编辑简历 6-新增入职 7-完成 ,
operationType: {
1: "创建",
2: "人事确认",
3: "驳回",
4: "新增简历",
5: "编辑简历",
6: "新增入职",
7: "完成",
8: "处理"
}
}
}
}
</script>
<style lang="scss" scoped>
.oparete-wrap {
background: #ffffff;
margin: 20px 20px 0;
.title {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 13.5px 20px;
border-bottom: 1px solid #e5e5e5;
line-height: 23px;
box-sizing: border-box;
}
.content {
padding: 20px;
}
.item {
display: flex;
align-items: center;
margin-bottom: 20px;
.item-type {
color: #333333;
font-size: 14px;
font-weight: 600;
width: 60px;
margin-right: 40px;
}
.item-operate {
width: 200px;
color: #333333;
font-size: 14px;
margin-right: 40px;
}
.item-time {
color: #333333;
font-size: 14px;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!