Commit 853ff9de by 前端

Merge branch 'SAAS+V5.5.0' into 'SAAS+V5.5.2'

上线合并

See merge request !529
2 parents 7452ff24 8fc63b10
Showing 77 changed files with 4128 additions and 165 deletions
......@@ -196,3 +196,9 @@ export function downloadNumAdd(data) {
data.method = `${path2}carUploadRecord.downloadNum.add`
return request(data, "post")
}
/** 获取转化人员数据 */
export function getSellerListApi(data) {
data.method = `${path2}staff.page.info`
return request(data, "post")
}
import request from "./request"
const path = "dj.api.smartcarlife."
// 分页查询预付款管理记录
export function advancePaymentPage(data) {
data.method = `${path}advancePayment.page`
return request(data)
}
// 分页查询门店预付款明细记录
export function advancePaymentShopDetailPage(data) {
data.method = `${path}advancePayment.shopDetailPage`
return request(data)
}
// 分页查询收付款管理记录
// export function advancePaymentTradePage(data) {
// data.method = `${path}advancePayment.tradePage`
// return request(data)
// }
// 分页查询预付款管理商户信息
export function advancePaymentMerchantPage(data) {
data.method = "dj.api.smartcarlife.advancePayment.merchantPage"
return request(data, "post")
}
// 查询商户月份付款信息
export function getMerchantMonthPayInfo(data) {
data.method = "dj.api.smartcarlife.advancePayment.getMerchantMonthPayInfo"
return request(data)
}
// 分页查询商户月份付款信息
export function getMerchantPage(data) {
data.method = "dj.api.smartcarlife.advancePayment.merchantPage"
return request(data)
}
// 分页查询预付款管理记录
export function advancePaymentPageExportAsync(data) {
data.method = "dj.api.smartcarlife.advancePayment.page.export.async"
return request(data, "post")
}
// /router/dj.api.smartcarlife.advancePayment.page.export.async/1.0.0
// 导出预付款管理记录列表(异步)
// /router/dj.api.smartcarlife.advancePayment.shopDetailPage.export.async/1.0.0
// 导出门店预付款明细列表(异步)
// 新增收付款管理记录
export function advancePaymentTradeAdd(data) {
data.method = "dj.api.smartcarlife.advancePayment.trade.add"
return request(data, "post")
}
// /router/dj.api.smartcarlife.advancePayment.tradePage.export.async/1.0.0
// 导出收付款管理列表(异步)
// 分页查询收付款管理记录
export function advancePaymentTradePage(data) {
data.method = "dj.api.smartcarlife.advancePayment.tradePage"
return request(data, "post")
}
// /router/dj.api.smartcarlife.advancePayment.tradePage.export.async/1.0.0
// 导出收付款管理列表(异步)
// /router/dj.api.smartcarlife.advancePayment.traffic.add/1.0.0
// 新增流量费/我司收益管理记录
export function trafficAdd(data) {
data.method = "dj.api.smartcarlife.advancePayment.traffic.add"
return request(data, "post")
}
// /router/dj.api.smartcarlife.advancePayment.trafficPage/1.0.0
// 分页查询流量费/我司收益管理记录
export function trafficPage(data) {
data.method = "dj.api.smartcarlife.advancePayment.trafficPage"
return request(data, "post")
}
// /router/dj.api.smartcarlife.advancePayment.trafficPage.export.async/1.0.0
// 导出流量费/我司收益管理列表(异步)
......@@ -173,6 +173,12 @@ export function operatorreviewOperatorAudit(data) {
return request(data)
}
// 批量运营审核
export function operatorBatchAudit(data) {
data.method = `dj.api.smarcarlife.operatorreview.operatorBatchAudit.json`
return request(data)
}
// 运营驳回
export function operatorreviewOperatorReject(data) {
data.method = `${path}operatorreview.operatorReject`
......@@ -209,6 +215,12 @@ export function businessreviewBusinessAudit(data) {
return request(data)
}
// 批量商务审核
export function businessBatchAudit(data) {
data.method = `dj.api.smarcarlife.businessreview.businessBatchAudit.json`
return request(data)
}
// 商务驳回
export function businessreviewBusinessReject(data) {
data.method = `${path}businessreview.businessReject`
......
......@@ -20,7 +20,6 @@ const request = (
) => {
// 兼容线上dj和scrm appkey和secret不一样的情况
let apiName = ""
// console.log("params.method", params)
if (params.method.includes("dj.api.smartcarlife")) {
apiName = "dj"
} else if (params.method.includes("dj.api.script")) {
......@@ -29,7 +28,9 @@ const request = (
apiName = "staff"
} else if (params.method.includes("dj.smartcarlife.stock")) {
apiName = "dj.smartcarlife"
} else {
} else if (params.method.includes("risk.manage.api")) {
apiName = "riskmanage"
}else {
// console.log(params.method.split(".api"))
apiName = params.method.split(".api")[0]
}
......@@ -50,7 +51,8 @@ const request = (
clue: "axios5",
"dj.businessSchool": "axios6",
script: "axios7",
staff: "axios9"
staff: "axios9",
riskmanage:"axios10",
}
const baseApiName = mappingName[apiName]
// console.log(baseApiName, "baseApiName")
......@@ -85,7 +87,8 @@ const request = (
"glsx.accounts.biz.common.pictureUpload": "md5",
clue: "sha1",
script: "sha1",
staff: "sha1"
staff: "sha1",
riskmanage:'sha1'
}
// console.log(signWay[apiName], "baseApiName")
const secret = baseConfig[baseApiName].secret
......
......@@ -129,7 +129,202 @@ export function exportStydypage(data) {
}
// 短课程配置-学习记录列表导出
export function exportSoppage(data){
data.method=`${path}servicecenter.sop.detail.page.export`
export function exportSoppage(data) {
data.method = `${path}servicecenter.sop.detail.page.export`
return request(data, RequestMethods.POST)
}
//学习中心-考试管理-等级考试-列表
export function getLevelExamList(data) {
data.method = `risk.manage.api.level.exam.page`
return request(data, RequestMethods.POST)
}
// 所属部门-列表
export function getOrganizationList(data = {}) {
data = Object.assign(data, {
currentPage: 1,
pageSize: 9999
})
data.method = `risk.manage.api.beisen.organization.page`
return request(data, RequestMethods.POST)
}
//北森职务-列表
export function getBeisenJobList(data = {}) {
data = Object.assign(data, {
currentPage: 1,
pageSize: 9999
})
data.method = `risk.manage.api.bei.sen.job.post.page`
return request(data, RequestMethods.POST)
}
// 北森考试-列表
export function getBeisenExamList(data = {}) {
data = Object.assign(data, {
currentPage: 1,
pageSize: 9999
})
data.method = `risk.manage.api.bei.sen.examination.page`
return request(data, RequestMethods.POST)
}
// 等级考试-列表导出
export function exportLevelExam(data) {
data.method = `risk.manage.api.level.exam.export.async`
return request(data, RequestMethods.POST)
}
// 等级考试-失效|生效
export function toggleLevelExamStatus(data = {}) {
data.method = `risk.manage.api.level.exam.status.toggle`
return request(data, RequestMethods.POST)
}
// 等级考试-删除
export function deleteLevelExam(data) {
data.method = `risk.manage.api.level.exam.delete`
return request(data, RequestMethods.POST)
}
// 等级考试-新增
export function addLevelExam(data) {
data.method = `risk.manage.api.level.exam.add`
return request(data, RequestMethods.POST)
}
// 等级考试-数据页-数据概览
export function getLevelExamOverView(data) {
data.method = `risk.manage.api.level.exam.data.overview`
return request(data, RequestMethods.POST)
}
// 等级考试-数据页-员工考试结果分页列表
export function getLevelExamDataPersonPage(data) {
data.method = `risk.manage.api.level.exam.data.person.page`
return request(data, RequestMethods.POST)
}
// 等级考试-数据页-员工考试结果分页列表导出
export function getLevelExamDataExport(data) {
data.method = `risk.manage.api.level.exam.data.export.async`
return request(data, RequestMethods.POST)
}
// 等级考试-详情
export function getLevelExamDetail(data) {
data.method = `risk.manage.api.level.exam.detail`
return request(data, RequestMethods.POST)
}
// 等级考试-编辑
export function updateLevelExam(data) {
data.method = `risk.manage.api.level.exam.update`
return request(data, RequestMethods.POST)
}
// 课程管理-新增课程分类
export function addCourseCategory(data) {
data.method = `risk.manage.api.course.category.add`
return request(data, RequestMethods.POST)
}
// 课程管理-批量更新课程分类
export function batchUpdateCourseCategory(data) {
data.method = `risk.manage.api.course.category.batch.update`
return request(data, RequestMethods.POST)
}
// 课程管理-删除课程分类
export function deleteCourseCategory(data) {
data.method = `risk.manage.api.course.category.delete`
return request(data, RequestMethods.POST)
}
// 课程管理-查询课程分类树
export function queryCourseCategoryTree(data = {}) {
data.method = `risk.manage.api.course.category.list.tree`
return request(data, RequestMethods.POST)
}
// 课程管理-修改课程分类
export function updateCourseCategory(data) {
data.method = `risk.manage.api.course.category.update`
return request(data, RequestMethods.POST)
}
// 课程管理-课程分页查询
export function queryCoursePage(data) {
data.method = `risk.manage.api.course.page`
return request(data, RequestMethods.POST)
}
// 课程管理-同步数据
export function synCourseData(data = {}) {
data.method = `risk.manage.api.course.syn.data`
return request(data, RequestMethods.POST)
}
// 课程管理-课程导出
export function exportCourse(data) {
data.method = `risk.manage.api.course.export`
return request(data, RequestMethods.POST)
}
// 课程管理-课程数据明细导出
export function exportCourseDetail(data) {
data.method = `risk.manage.api.course.detail.export`
return request(data, RequestMethods.POST)
}
// 课程管理-课程数据明细分页查询
export function getCourseDetailPage(data) {
data.method = `risk.manage.api.course.detail.page`
return request(data, RequestMethods.POST)
}
// 培训计划-新增
export function addTrainingPlan(data) {
data.method = `risk.manage.api.training.plan.add`
return request(data, RequestMethods.POST)
}
// 北森员工分页列表
export function getBeiSenEmployeeList(data) {
data.method = `risk.manage.api.training.plan.bei.sen.employee.page`
return request(data, RequestMethods.POST)
}
// 培训计划-分页查询
export function getTrainingPlanList(data) {
data.method = `risk.manage.api.training.plan.page`
return request(data, RequestMethods.POST)
}
// 培训计划-查看详情
export function getTrainingPlanDetail(data) {
data.method = `risk.manage.api.training.plan.detail`
return request(data, RequestMethods.POST)
}
// 培训计划-失效|生效
export function toggleTrainingPlanStatus(data) {
data.method = `risk.manage.api.training.plan.status.toggle`
return request(data, RequestMethods.POST)
}
// 培训计划-编辑
export function updateTrainingPlan(data) {
data.method = `risk.manage.api.training.plan.update`
return request(data, RequestMethods.POST)
}
// 培训计划人员-列表导出
export function exportTrainingPlanPerson(data) {
data.method = `risk.manage.api.training.plan.person.export.async`
return request(data, RequestMethods.POST)
}
// 培训计划人员-列表
export function getTrainingPlanPersonList(data) {
data.method = `risk.manage.api.training.plan.person.page`
return request(data, RequestMethods.POST)
}
// 培训计划人员-解锁开单权限
export function unlockTrainingPlanPersonOrder(data) {
data.method = `risk.manage.api.training.plan.person.unlock.order`
return request(data, RequestMethods.POST)
}
......@@ -97,6 +97,12 @@ export function getServiceListAPI(data) {
return request(data, "post")
}
// 获取发货主体
export function getShippingListAPI(data) {
data.method = "dj.smartcarlife.api.yqPartnerMerchant.selectShippingEntityInfoAll"
return request(data, "post")
}
// 获取服务商配置
export function getProviderProcurementInfo(data) {
data.method =
......
......@@ -312,3 +312,14 @@ export function updateDailyReportFlag(data) {
data.method = "dj.api.smartcarlife.serviceMerchant.dailyReportFillFlag.update"
return request(data)
}
// 接口名称:查询门店轻改录单设置
export function getOrderFieldSettingList(data) {
data.method = "dj.api.smartcarlife.order.field.lightChange.setting.list"
return request(data)
}
// 接口名称:更新门店录单设置
export function updateOrderFieldSetting(data) {
data.method = "dj.api.smartcarlife.order.field.setting.update"
return request(data)
}
......@@ -145,12 +145,24 @@ export function technicianUpdate(data) {
// 分页查询退货单列表
export function stockRefundPage(data) {
data.method = 'dj.smartcarlife.api.stock.refund.page'
data.method = "dj.smartcarlife.api.stock.refund.page"
return request(data, RequestMethods.POST)
}
// 分页查询退货单详细信息
export function stockRefundDetailPage(data) {
data.method = 'dj.smartcarlife.api.stock.refund.detail.page'
data.method = "dj.smartcarlife.api.stock.refund.detail.page"
return request(data, RequestMethods.POST)
}
\ No newline at end of file
}
// 退货管理 - 退货详情 - 退货单详情
export function stockRefundDetail(data) {
data.method = "dj.smartcarlife.api.stock.refund.getDetail"
return request(data, RequestMethods.POST)
}
// 退货管理 - 审核
export function stockRefundUpdateStatus(data) {
data.method = "dj.smartcarlife.api.stock.refund.updateStatus"
return request(data, RequestMethods.POST)
}
......@@ -56,3 +56,23 @@ export const taskOrderStatusList = [
label: "成功"
}
]
export const tradeTypeList = [
// 1:银行转账(对公),2:银行承兑,3:银行转账,4:银盛收款
{
id: "1",
label: "银行转账(对公)"
},
{
id: "2",
label: "银行承兑"
},
{
id: "3",
label: "银行转账"
},
{
id: "4",
label: "银盛收款"
}
]
// 交易类型(1:银行转账(对公),2:银行承兑,3:银行转账,4:银盛收款)
......@@ -1707,6 +1707,104 @@ export const processResultOpt = [
{ confId: "1", confValue: "人员不匹配" },
{ confId: "2", confValue: "已完成面试" }
]
export const gradeStatusOpt = [
{ confId: 2, confValue: "生效" },
{ confId: 1, confValue: "未生效" },
{ confId: 0, confValue: "草稿" },
{ confId: 3, confValue: "失效" }
]
export const gradeStatusOptMap = {
1: "#FDB757",
0: "#999999",
2: "#2CCA74",
3: "#EB4E4E"
}
export const effectiveOpt = [
{ confId: 1, confValue: "立即生效" },
{ confId: 2, confValue: "定时生效" }
]
export const zzStatusOpt = [
{ confId: 1, confValue: "在职" },
{ confId: 0, confValue: "离职" }
]
export const zzStatusMap = {
1: "#2CCA74",
0: "#EB4E4E"
}
// 课程类型:10-视频,80-音频,20-混合,30-文档,40-H5,70-URL,120-图文
export const courseFileTypeOpt = [
{ confId: 10, confValue: "视频" },
{ confId: 80, confValue: "音频" },
{ confId: 20, confValue: "混合" },
{ confId: 30, confValue: "文档" },
{ confId: 40, confValue: "H5" },
{ confId: 70, confValue: "URL" },
{ confId: 120, confValue: "图文" }
]
export const courseStatusOpt = [
// { confId: 10, confValue: "转换中" },
// { confId: 20, confValue: "转换失败" },
// { confId: 30, confValue: "未发布" },
{ confId: 40, confValue: "已发布" },
{ confId: 50, confValue: "已下架" }
]
//课程状态10-转换中, 20-转换失败, 30-未发布, 40-已发布, 50-已下架
export const courseStatusOptMap = {
// 10: "#FDB757",
// 20: "#999999",
// 30: "#999999",
40: "#2CCA74",
50: "#EB4E4E"
}
// 员工状态:0:离职 1:在职
export const empStatusOpt = [
{ confId: 0, confValue: "离职" },
{ confId: 1, confValue: "在职" }
]
export const empStatusOptMap = {
0: "#EB4E4E",
1: "#2CCA74"
}
// 学习状态:10 - 未学习,20 - 未完成,30 - 待考核,40 - 未通过,50 - 已完成,60 - 待签署
export const learnStatusOpt = [
{ confId: 10, confValue: "未学习" },
{ confId: 20, confValue: "未完成" },
// { confId: 30, confValue: "待考核" },
// { confId: 40, confValue: "未通过" },
{ confId: 50, confValue: "已完成" }
// { confId: 60, confValue: "待签署" }
]
export const learnStatusOptMap = {
// 30: "#FDB757",
10: "#999999",
20: "#999999",
// 40: "#EB4E4E",
50: "#2CCA74"
// 60: "#FDB757"
}
// 是否及格:1-通过, 0-未通过
export const passFlagOpt = [
{ confId: 1, confValue: "是" },
{ confId: 0, confValue: "否" }
]
export const planStatusTypeOpt = [
{ confId: 1, confValue: "生效" },
{ confId: 2, confValue: "失效" },
{ confId: 0, confValue: "草稿" }
]
export const planStatusTypeOptMap = {
1: "#2CCA74",
2: "#EB4E4E",
0: "#999999"
}
export const openOrderStatusOpt = [
{ confId: 0, confValue: "已锁定" },
{ confId: 1, confValue: "已解锁" }
]
export const electronicContractOpt = [
{ confId: "1", confValue: "系统生成" },
{ confId: "2", confValue: "人工导入" }
......
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width"
:append-to-body="appendToBody"
:fullscreen="fullscreen">
<el-dialog
:title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width"
:append-to-body="appendToBody"
:fullscreen="fullscreen"
>
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
......@@ -18,13 +20,14 @@
<slot />
<div slot="footer">
<slot name="btn-start" />
<el-button v-if="!noCancel"
@click="handleClose"> 取消 </el-button>
<el-button v-if="!noCancel" @click="handleClose"> 取消 </el-button>
<slot name="btn-middle" />
<el-button type="primary"
v-if="isShowFooter"
@click="handleConfirm"
:loading="$store.state.d2admin.loading.value">
<el-button
type="primary"
v-if="isShowFooter"
@click="handleConfirm"
:loading="$store.state.d2admin.loading.value"
>
{{ btnOkLabel }}
</el-button>
<slot name="btn-end" />
......@@ -73,7 +76,7 @@ export default {
type: Boolean,
default: false
},
fullscreen:Boolean
fullscreen: Boolean
},
methods: {
......
......@@ -36,8 +36,8 @@
</el-select>
<el-date-picker v-model="searchSelectObj[item.selectName].value"
:style="{ width: 'calc(100% - ' + (typeof item.selectWidth === 'number' ? item.selectWidth + 'px' : (item.selectWidth || '130px')) + ')' }"
:type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期"
:type="item.diffType ? searchSelectObj[item.selectName].attr : (item.dateType || 'daterange')"
:clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
:picker-options="item.pickerOptions ? pickerOption[item.pickerOptions] : undefined" />
</template>
<!-- 双选择框 -->
......
......@@ -7,6 +7,7 @@
:width="dialogWidth"
:btn-ok-label="dialogConfig.okText"
@closeDialog="handleClose"
:appendToBody="appendToBody"
@confirmDialog="handleConfirm"
>
<glsx-combi-form
......@@ -86,6 +87,10 @@ export default {
baseData: {
type: Object,
default: () => ({})
},
appendToBody: {
type: Boolean,
default: false
}
},
......
......@@ -660,7 +660,7 @@ export const routerName = {
parentId: "90514",
label: "回单",
handle: "handleReceipt"
},
}
],
component: _import("financeManage/usedCarPaymentManage/index")
},
......@@ -695,8 +695,136 @@ export const routerName = {
parentId: "90515",
label: "详情",
handle: "handleDetail"
},
}
],
component: _import("financeManage/usedCarFundWarning/index")
},
90516: {
path: "/prepaymentManage",
name: "prepaymentManage",
meta: {
title: "预付款管理",
authId: "90516",
parentId: "905",
cache: false
},
auth: [
{
authId: "9051601",
parentId: "90516",
label: "管理收款",
category: "Button",
type: "primary",
handle: "handleManageReceipt"
},
{
authId: "9051602",
parentId: "90516",
label: "管理付款",
category: "Button",
type: "primary",
handle: "handleManagePayment"
},
{
authId: "9051603",
parentId: "90516",
label: "流量费/我司收益",
category: "Button",
type: "primary",
handle: "handleTrafficFee"
},
{
authId: "9051604",
parentId: "90516",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051606",
parentId: "90516",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051607",
parentId: "90516",
label: "新增",
category: "Button",
type: "primary",
handle: "handleAddReceipt"
},
{
authId: "9051608",
parentId: "90516",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051609",
parentId: "90516",
label: "新增",
category: "Button",
type: "primary",
handle: "handleAddReceipt"
},
{
authId: "9051610",
parentId: "90516",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051611",
parentId: "90516",
label: "新增",
category: "Button",
type: "primary",
handle: "handleAddReceipt"
},
{
authId: "9051605",
parentId: "90516",
label: "详情",
handle: "handleDetail",
addRoutePath: [
{
authId: "905160501",
name: "详情",
parentId: "90516"
}
]
}
],
component: _import("financeManage/prepaymentManage/index")
},
905160501: {
path: "/prepaymentManage/detail",
name: "prepaymentDetail",
meta: {
title: "预付款详情",
authId: "905160501",
parentId: "90516",
cache: false
},
auth: [
{
authId: "9051612",
parentId: "905160501",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
}
],
component: _import("financeManage/prepaymentManage/detail")
}
}
......@@ -284,8 +284,33 @@ export const routerName = {
parentId: "90808",
label: "查看",
handle: "look"
},
{
authId: "9080803",
parentId: "90808",
label: "审核",
handle: "handleReview",
addRoutePath: [
{
authId: "908080301",
name: "审核",
parentId: "90808"
}
]
}
],
component: _import("stockManage/returnManage/index")
},
908080301: {
path: "/returnManage/reviewPage",
name: "reviewPage",
meta: {
title: "审核",
authId: "908080301",
parentId: "90808",
cache: false,
activePath: "/returnManage"
},
component: _import("stockManage/returnManage/reviewPage")
}
}
......@@ -164,10 +164,37 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9090306",
parentId: "90903",
label: "批量审核",
category: "Button",
type: "primary",
handle: "handleBatchCheck",
addRoutePath: [
{
authId: "909030601",
name: "批量审核",
parentId: "90903"
}
]
}
],
component: _import("purchase/procurementReview")
},
909030601: {
path: "/procurementReview/batchReview",
name: "batchReview",
meta: {
title: "批量审核",
authId: "909030601",
parentId: "90903",
cache: false,
activePath: "/procurementReview"
},
component: _import("purchase/batchReview")
},
90904: {
path: "/purchaseAndDelivery",
name: "purchaseAndDelivery",
......@@ -330,10 +357,37 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9090606",
parentId: "90906",
label: "批量审核",
category: "Button",
type: "primary",
handle: "handleBatchCheck",
addRoutePath: [
{
authId: "909060601",
name: "批量审核",
parentId: "90906"
}
]
}
],
component: _import("purchase/procurementBusiness")
},
909060601: {
path: "/procurementBusiness/batchReview",
name: "businessBatchReview",
meta: {
title: "批量审核",
authId: "909060601",
parentId: "90906",
cache: false,
activePath: "/procurementBusiness"
},
component: _import("purchase/batchReview")
},
90907: {
path: "/factoryPurchaseAndDelivery",
name: "factoryPurchaseAndDelivery",
......
......@@ -4,7 +4,7 @@ export const routerName = {
path: "/serviceCentre",
name: "serviceCentre",
meta: {
title: "服务中心",
title: "学习中心",
authId: "919",
parentId: "1",
cache: false
......@@ -72,5 +72,221 @@ export const routerName = {
activePath: "/longCourse"
},
component: _import("serviceCentre/longCourse/components/configureCourse")
},
91904: {
path: "/examinationManagement",
name: "examinationManagement",
meta: {
title: "考试管理",
authId: "91904",
parentId: "919",
cache: false
},
auth: [
{
authId: "9190401",
parentId: "91904",
label: "新建考试",
handle: "handleExamination",
category: "Button",
type: "primary",
addRoutePath: [
{
authId: "91905",
name: "等级考试",
parentId: "91904"
}
]
},
{
authId: "9190402",
parentId: "91904",
label: "查看",
handle: "handleDetail",
addRoutePath: [
{
authId: "91906",
name: "考试详情",
parentId: "91904"
}
]
},
{
authId: "9190403",
parentId: "91904",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9190404",
parentId: "91904",
label: "失效",
handle: "handlelose"
},
{
authId: "9190408",
parentId: "91904",
label: "生效",
handle: "handleEffect"
},
{
authId: "9190405",
parentId: "91904",
label: "删除",
handle: "handleDelete"
},
{
authId: "9190406",
parentId: "91904",
label: "数据",
handle: "handleDataView"
},
{
authId: "9190407",
parentId: "91904",
label: "编辑",
handle: "handleEdit"
}
],
component: _import("serviceCentre/examinationManagement/index")
},
91905: {
path: "/addExamination",
name: "addExamination",
meta: {
title: "等级考试",
authId: "91905",
parentId: "91904",
cache: false,
activePath: "/examinationManagement"
},
component: _import("serviceCentre/examinationManagement/add.vue")
},
91906: {
path: "/examinationDetail",
name: "examinationDetail",
meta: {
title: "考试详情",
authId: "91906",
parentId: "91904",
cache: false,
activePath: "/examinationManagement"
},
component: _import("serviceCentre/examinationManagement/detail.vue")
},
91907: {
path: "/courseManagement",
name: "courseManagement",
meta: {
title: "课程管理",
authId: "91907",
parentId: "919",
cache: false
},
auth: [
{
authId: "9190701",
parentId: "91907",
label: "新增培训计划",
handle: "handleAddTrainPlan",
category: "Button",
type: "primary",
addRoutePath: [
{
authId: "91908",
name: "课程培训计划",
parentId: "91907"
}
]
},
{
authId: "9190702",
parentId: "91907",
label: "同步数据",
handle: "handleSynchrodata",
category: "Button",
type: "primary"
},
{
authId: "9190703",
parentId: "91907",
label: "批量分类",
category: "Button",
type: "primary",
handle: "handleClassification"
},
{
authId: "9190709",
parentId: "91907",
label: "导出",
category: "Button",
type: "primary",
handle: "handleCourseExport"
},
{
authId: "9190704",
parentId: "91907",
label: "数据",
handle: "handleDataView"
},
{
authId: "9190705",
parentId: "91907",
label: "编辑",
handle: "handleEdit"
},
{
authId: "9190706",
parentId: "91907",
label: "查看",
handle: "handleDetail",
addRoutePath: [
{
authId: "91909",
name: "查看培训计划",
parentId: "91907"
}
]
},
{
authId: "9190707",
parentId: "91907",
label: "失效",
handle: "handlelose"
},
{
authId: "9190708",
parentId: "91907",
label: "生效",
handle: "handleEffect"
}
],
component: _import("serviceCentre/courseManagement/index")
},
91908: {
path: "/addTraining",
name: "addTraining",
meta: {
title: "课程培训计划",
authId: "91908",
parentId: "91907",
cache: false,
activePath: "/courseManagement"
},
component: _import("serviceCentre/courseManagement/training/add.vue")
},
91909: {
path: "/trainingView",
name: "trainingView",
meta: {
title: "查看培训计划",
authId: "91908",
parentId: "91907",
cache: false,
activePath: "/courseManagement"
},
component: _import("serviceCentre/courseManagement/training/detail.vue")
}
}
<template>
<baseDialog :title="title" :config="config" :dialog-config="dialogConfig" :is-show.sync="visibility" width="50%"
btn-ok-label="确定" @confirmDialog="handleSelectGoodsConfirm" @closeDialog="handleSelectGoodsClose"
class="selectGoods">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button type="primary" @click="handleReset" size="small">重置</el-button>
<!-- <el-button type="primary"></el-button> -->
</div>
<d2-table-header>
<div class="btns flex">
<span data-event-code="prepaymentManage_TrafficFee">
<auth-button category="Button" :show-btn-ids="['9051607']" />
</span>
<span data-event-code="prepaymentManage_Export">
<auth-button category="Button" :show-btn-ids="['9051606']" />
</span>
</div>
</d2-table-header>
<d2-table maxHeight="350px" ref="groundingIndexTable" :search-form="searchForm" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
</d2-table>
<addDialog v-if="addVisible" :addVisible.sync="addVisible" @addDialogClose="addDialogClose"
@addDialogSuccess="addDialogSuccess" />
</baseDialog>
</template>
<script>
import { mapActions, mapState } from "vuex"
import { advancePaymentTradePage } from "@api/prepaymentManage"
import { tradeTypeList } from "@/common/constant/vehicle"
import dayjs from "dayjs"
import addDialog from "./addDialog.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
name: 'ManageReceiptDailog',
mixins: [reportTrackPageMixin],
props: {
title: {
type: String,
default: "管理收款"
},
manageReceiptDialogVisible: {
type: Boolean,
default: false
}
},
components: {
addDialog
},
data() {
return {
addVisible: false,
dialogConfig: {
title: "管理收款",
width: "900px",
hideConfirmBtn: true,
cancel_name: "关闭"
},
config: {
showClose: true,
appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter: true,
hideConfirmBtn: true,
cancel_name: "关闭"
},
tradeTypeList,
getListApi: advancePaymentTradePage,
showFormData: [{
label: '门店名称',
name: 'merchantName',
type: 'input',
maxlength: 50,
isClear: true
},
{
type: 'datePicker',
label: '收款日期',
name: 'paymentDate',
width: '260px'
}
],
searchForm: {
merchantName: '',
paymentDate: '',
managerType: 1
},
tempGoodsType: [],
baseData: {
productTypeList: [],
productList: []
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableColumns: [
// {
// label: '序号',
// prop: 'ownSerialNum',
// type: 'ownSerialNum',
// width: '60'
// },
{
label: '金额',
prop: 'tradeAmount',
width: 110,
// formatter: (cellValue) => {
// return cellValue.upgradeGoodsName || '-'
// }
}, {
label: '收款类型',
prop: 'tradeType',
// width: 120,
// width: 180,
formatter: (cellValue) => {
return tradeTypeList.find(v => v.id == cellValue.tradeType)?.label || '-'
}
}, {
label: '收款日期',
prop: 'tradeTime',
width: 170,
formatter: (cellValue) => {
return cellValue?.tradeTime ? dayjs(cellValue.tradeTime).format('YYYY-MM-DD HH:mm:ss') : '-'
}
}, {
label: '门店',
prop: 'merchantName',
width: 140,
// formatter: (cellValue) => {
// return cellValue?.thirdPartyCode || '-'
// }
},
{
label: '操作人',
prop: 'createdBy',
// formatter: (cellValue) => {
// return cellValue?.goodsInfo?.goodsName || '-'
// },
width: 100
}, {
label: '操作日期',
prop: 'createdDate',
width: 170,
formatter: (cellValue) => {
return cellValue?.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
}]
}
}
},
computed: {
visibility: {
get() {
return this.manageReceiptDialogVisible
},
set(value) {
this.$emit('update:manageReceiptDialogVisible', value)
}
},
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
},
methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleExport() {
const params = {
method: "dj.api.smartcarlife.advancePayment.tradePage.export.async",
...this.getParams()
}
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" })
},
getParams() {
if (this.searchForm.paymentDate?.length > 0) {
const [start, end] = this.searchForm.paymentDate
this.searchForm.startTradeTime = dayjs(start).format('YYYY-MM-DD') + ' 00:00:00'
this.searchForm.endTradeTime = dayjs(end).format('YYYY-MM-DD') + ' 23:59:59'
}
return {
...this.searchForm
}
},
handleAddReceipt() {
this.addVisible = true
},
addDialogClose() {
this.addVisible = false
},
addDialogSuccess() {
// this.addVisible = false
// 重新查询
this.$refs.groundingIndexTable.refreshTable(false, true)
},
// resetSearchForm() {
// this.searchForm = this.$options.data.call(this).searchForm
// this.$refs.showSearch.resetForm()
// },
setTableFinishFun(data) {
this.tableData = data
},
beforeSearchFn() {
return new Promise(resolve => {
this.getParams()
resolve()
})
},
handleSelectGoodsConfirm() {
// const selectData = this.tableData?.find(v => v.id == this.selectedRowId)
// if (!selectData) return this.$message.warning('请选择商品')
this.$emit('handleSelectGoodsConfirm', selectData)
},
handleSelectGoodsClose() {
this.$emit('handleSelectGoodsClose')
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
// 重新查询
this.$refs.groundingIndexTable.refreshTable(true, true)
}
}
}
</script>
<style lang="scss" scoped>
.selectGoods {
::v-deep .el-dialog__body {
// padding: 0;
border-bottom: 1px solid #e4e7ed;
}
}
// .show-search {
// // height: 32px;
// }
.up-btns {
padding-top: 0;
}
.flex {
display: flex;
align-items: center;
}
.btns {
margin-left: auto;
gap: 10px;
// 最后一个span元素添加右边距
>span:last-child {
padding-right: 20px;
// margin-left: 0;
}
}
.show-search {
::v-deep .d2-search-block {
padding: 0;
}
}
.table {
border-bottom: 1px solid #e4e7ed;
}
</style>
<!-- 新增提现弹窗 -->
<template>
<baseDialog :config="config" :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog"
@handleClick="handleCashConfirm">
<el-form ref="formRef" :model="infoForm" :rules="cashRules" label-width="120px">
<el-form-item label="门店名称:" prop="merchantId">
<el-select v-model="infoForm.merchant" value-key="merchantId" filterable style="width: 310px"
placeholder="请选择门店">
<el-option v-for="(item, index) in baseData.merchantList" :key="index" :label="item.merchantName"
:value="item" />
</el-select>
<!-- <p>银盛账户余额:{{ balance || balance === 0 ? balance : "-" }}</p> -->
</el-form-item>
<el-form-item label="金额:" prop="tradeAmount">
<!-- :disabled="totalAmountDisabled" -->
<el-input v-model="infoForm.tradeAmount" placeholder="请输入金额" style="width: 310px" @input="handleUpgradeNum" />
</el-form-item>
<el-form-item label="收款类型:" prop="tradeType">
<el-select v-model="infoForm.tradeType" filterable style="width: 310px" placeholder="请选择收款类型">
<el-option v-for="(item, index) in baseData.tradeTypeList" :key="index" :label="item.label"
:value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="收款日期:" prop="tradeTime">
<el-date-picker style="width: 310px" v-model="infoForm.tradeTime" type="datetime"
:picker-options="tradeTimePickerOptions" placeholder="选择日期时间">
</el-date-picker>
<!-- <el-select v-model="infoForm.administrators" filterable style="width: 310px">
<el-option v-for="(item, index) in baseData.administratorsList" :key="index"
:label="item.name + ' ' + item.phone" :value="item.phone" />
</el-select> -->
</el-form-item>
</el-form>
<!-- </d2-dialog> -->
</baseDialog>
</template>
<script>
import { deepClone } from "@/common/util"
import { sendToSmsCodeApi } from "@/api/sys.base"
import { advancePaymentMerchantPage, advancePaymentTradeAdd } from "@api/prepaymentManage"
import dayjs from "dayjs"
import { limitPrice } from "@/common/format"
export default {
// name: 'AddDialog',
data() {
return {
dialogConfig: {
title: "新增收款",
width: "600px"
},
config: {
showClose: true,
appendToBody: true, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter: true,
cancel_name: "取 消",
confirm_name: "确 定"
},
infoForm: {
// administrators: "",
// smsCode: "",
// remark: "",
merchant: null,
merchantId: "",
// totalAmount: "",
tradeAmount: "",
tradeTime: "",
tradeType: "1"
},
oldVal: {
tradeAmount: ""
},
cashRules: {
merchantId: [
{ required: true, message: "请选择门店", trigger: "change" }
],
tradeAmount: [
{
required: true,
message: "请输入金额,支持输入0~999999999的数字,支持小数点后2位",
trigger: "change"
}
],
tradeType: [
{ required: true, message: "请选择收款类型", trigger: "change" }
],
tradeTime: [
{ required: true, message: "请选择收款日期", trigger: "change" },
{ validator: (rule, value, callback) => this.validateTradeTime(rule, value, callback), trigger: "change" }
]
// smsCode: [
// { required: true, message: "请输入验证码", trigger: "change" }
// ]
},
// 验证码
showtips: false,
isSend: false,
sendMsg: "获取验证码",
time: "",
// 基本数据
baseData: {
tradeTypeList: [
// 1:银行转账(对公),2:银行承兑,3:银行转账,4:银盛收款
{
id: "1",
label: "银行转账(对公)"
}
],
// administratorsList: [],
merchantList: []
},
balance: "",
// totalAmountDisabled: true
}
},
props: {
addVisible: {
type: Boolean,
default: false
}
},
computed: {
visible: {
get() {
return this.addVisible
},
set(newVal) {
this.$emit("update:addVisible", newVal)
}
},
tradeTimePickerOptions() {
const start = this.infoForm.merchant && this.infoForm.merchant.startDate
return {
disabledDate: (date) => {
const a = dayjs(date).startOf('day').valueOf()
const min = start ? dayjs(start).startOf('day').valueOf() : -Infinity
const max = dayjs().endOf('day').valueOf()
return a < min || a > max
}
}
}
},
watch: {
'infoForm.merchant'(val) {
this.infoForm.merchantId = val ? val.merchantId : ''
this.infoForm.merchantName = val ? val.merchantName : ''
this.infoForm.tradeTime = ''
}
},
mounted() {
this.getMerchantList()
// this.getAdminList()
},
methods: {
validateTradeTime(rule, value, callback) {
const start = this.infoForm.merchant && this.infoForm.merchant.startDate
if (start && value) {
const a = dayjs(value).startOf('day').valueOf()
const min = dayjs(start).startOf('day').valueOf()
const max = dayjs().endOf('day').valueOf()
if (a < min) return callback(new Error('收款日期需不早于门店开始日期'))
if (a > max) return callback(new Error('收款日期不可晚于当前时间'))
}
callback()
},
getMerchantList() {
var params = {}
params.currentPage = 1
// params.pageSize = 1000000
params.pageSize = 100
advancePaymentMerchantPage(params).then((res) => {
this.baseData.merchantList = res.list
})
},
handleUpgradeNum(newVal) {
var maxVal = 999999999
if (this.balance) {
maxVal = this.balance
}
// else {
// newVal = ''
// }
this.infoForm.tradeAmount = limitPrice(
newVal,
this.oldVal.tradeAmount,
13,
2,
-999999999,
maxVal,
'priceReg_negative_input'
)
this.oldVal.tradeAmount = this.infoForm.tradeAmount
},
handleCashConfirm() {
this.$refs.formRef.validate((valid) => {
if (valid) {
var params = deepClone(this.infoForm)
// params.
if (params.tradeTime) {
params.tradeTime = dayjs(params.tradeTime).format("YYYY-MM-DD HH:mm:ss")
}
// params.remark = this.infoForm.remark
// params.smsCode = this.infoForm.smsCode
// params.phone = this.infoForm.administrators
// params.merchantId = this.infoForm.merchantId
// if (this.infoForm.totalAmount > 0) {
// params.totalAmount = this.infoForm.totalAmount
// } else {
// this.$message({
// message: "提现金额必须大于0",
// type: "warning",
// showClose: true
// })
// return
// }
console.log(params)
advancePaymentTradeAdd(params).then((res) => {
this.notice.okTips("新增成功")
this.visible = false
this.$emit("addDialogSuccess")
})
}
})
},
handleSend() {
if (!this.infoForm.administrators) {
this.notice.warningTips("请选择管理员")
return
}
sendToSmsCodeApi({ phone: this.infoForm.administrators }).then((res) => {
this.notice.okTips("已发送,30分钟内有效")
this.isSend = true
this.showtips = true
this.sendMsg = 60
this.msgDown()
})
},
msgDown() {
this.time = setTimeout(() => {
clearTimeout(this.time)
if (this.sendMsg > 1) {
--this.sendMsg
this.msgDown()
} else {
this.isSend = false
}
}, 1000)
}
}
}
</script>
<style scoped>
p {
margin: 0 0;
}
.cash-btn {
margin-left: 20px;
}
</style>
<template>
<baseDialog :title="title" :config="config" :dialog-config="dialogConfig" :is-show.sync="visibility" width="50%"
btn-ok-label="确定" @confirmDialog="handleSelectGoodsConfirm" @closeDialog="handleSelectGoodsClose"
class="selectGoods">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button type="primary" @click="handleReset" size="small">重置</el-button>
<!-- <el-button type="primary"></el-button> -->
</div>
<d2-table-header>
<div class="btns flex">
<span data-event-code="prepaymentManage_TrafficFee">
<auth-button category="Button" :show-btn-ids="['9051609']" />
</span>
<span data-event-code="prepaymentManage_Export">
<auth-button category="Button" :show-btn-ids="['9051608']" />
</span>
</div>
</d2-table-header>
<d2-table maxHeight="350px" ref="groundingIndexTable" :search-form="searchForm" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
</d2-table>
<!-- <div class="table"></div> -->
<addDialog v-if="addVisible" :addVisible.sync="addVisible" @addDialogClose="addDialogClose"
@addDialogSuccess="addDialogSuccess" />
</baseDialog>
</template>
<script>
import { mapActions, mapState } from "vuex"
import { advancePaymentTradePage } from "@api/prepaymentManage"
import { tradeTypeList } from "@/common/constant/vehicle"
import dayjs from "dayjs"
import addDialog from "./addDialog.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
name: 'PaymentDialog',
mixins: [reportTrackPageMixin],
props: {
title: {
type: String,
default: "管理付款款"
},
paymentDialogVisible: {
type: Boolean,
default: false
}
},
components: {
addDialog
},
data() {
return {
addVisible: false,
dialogConfig: {
title: "管理付款",
width: "900px",
hideConfirmBtn: true,
cancel_name: "关闭"
},
config: {
showClose: true,
appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter: true,
hideConfirmBtn: true,
cancel_name: "关闭"
},
tradeTypeList,
getListApi: advancePaymentTradePage,
showFormData: [{
label: '门店名称',
name: 'merchantName',
type: 'input',
maxlength: 50,
isClear: true
},
{
type: 'datePicker',
label: '付款日期',
name: 'paymentDate',
width: '260px'
}
],
searchForm: {
merchantName: '',
paymentDate: '',
managerType: 2
},
tempGoodsType: [],
baseData: {
productTypeList: [],
productList: []
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableColumns: [
// {
// label: '序号',
// prop: 'ownSerialNum',
// type: 'ownSerialNum',
// width: '60'
// },
{
label: '金额',
prop: 'tradeAmount',
width: 110,
// formatter: (cellValue) => {
// return cellValue.upgradeGoodsName || '-'
// }
}, {
label: '付款类型',
prop: 'tradeType',
// width: 120,
// width: 180,
formatter: (cellValue) => {
return tradeTypeList.find(v => v.id == cellValue.tradeType)?.label || '-'
}
}, {
label: '付款日期',
prop: 'tradeTime',
width: 170,
formatter: (cellValue) => {
return cellValue?.tradeTime ? dayjs(cellValue.tradeTime).format('YYYY-MM-DD HH:mm:ss') : '-'
}
}, {
label: '门店',
prop: 'merchantName',
width: 140,
// formatter: (cellValue) => {
// return cellValue?.thirdPartyCode || '-'
// }
},
{
label: '操作人',
prop: 'createdBy',
// formatter: (cellValue) => {
// return cellValue?.goodsInfo?.goodsName || '-'
// },
width: 100
}, {
label: '操作日期',
prop: 'createdDate',
width: 170,
formatter: (cellValue) => {
return cellValue?.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
}]
}
}
},
computed: {
visibility: {
get() {
return this.paymentDialogVisible
},
set(value) {
this.$emit('update:paymentDialogVisible', value)
}
},
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
},
methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleExport() {
const params = {
method: "dj.api.smartcarlife.advancePayment.tradePage.export.async",
...this.getParams()
}
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" })
},
getParams() {
if (this.searchForm.paymentDate?.length > 0) {
const [start, end] = this.searchForm.paymentDate
this.searchForm.startTradeTime = dayjs(start).format('YYYY-MM-DD') + ' 00:00:00'
this.searchForm.endTradeTime = dayjs(end).format('YYYY-MM-DD') + ' 23:59:59'
}
return {
...this.searchForm
}
},
handleAddReceipt() {
this.addVisible = true
},
addDialogClose() {
this.addVisible = false
},
addDialogSuccess() {
// this.addVisible = false
// 重新查询
this.$refs.groundingIndexTable.refreshTable(false, true)
},
// resetSearchForm() {
// this.searchForm = this.$options.data.call(this).searchForm
// this.$refs.showSearch.resetForm()
// },
setTableFinishFun(data) {
this.tableData = data
},
beforeSearchFn() {
return new Promise(resolve => {
this.getParams()
resolve()
})
},
handleSelectGoodsConfirm() {
// const selectData = this.tableData?.find(v => v.id == this.selectedRowId)
// if (!selectData) return this.$message.warning('请选择商品')
this.$emit('handleSelectGoodsConfirm', selectData)
},
handleSelectGoodsClose() {
this.$emit('handleSelectGoodsClose')
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
// 重新查询
this.$refs.groundingIndexTable.refreshTable(true, true)
}
}
}
</script>
<style lang="scss" scoped>
.selectGoods {
::v-deep .el-dialog__body {
// padding: 0;
border-bottom: 1px solid #e4e7ed;
}
}
// .show-search {
// // height: 32px;
// }
.up-btns {
padding-top: 0;
}
.flex {
display: flex;
align-items: center;
}
.btns {
margin-left: auto;
gap: 10px;
// 最后一个span元素添加右边距
>span:last-child {
padding-right: 20px;
// margin-left: 0;
}
}
.show-search {
::v-deep .d2-search-block {
padding: 0;
}
}
.table {
border-bottom: 1px solid #e4e7ed;
}
</style>
<!-- 新增提现弹窗 -->
<template>
<baseDialog :config="config" :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog"
@handleClick="handleCashConfirm">
<el-form ref="formRef" :model="infoForm" :rules="cashRules" label-width="120px">
<el-form-item label="门店名称:" prop="merchantId">
<el-select v-model="infoForm.merchant" value-key="merchantId" filterable style="width: 310px"
placeholder="请选择门店">
<el-option v-for="(item, index) in baseData.merchantList" :key="index" :label="item.merchantName"
:value="item" />
</el-select>
<!-- <p>银盛账户余额:{{ balance || balance === 0 ? balance : "-" }}</p> -->
</el-form-item>
<el-form-item label="金额:" prop="tradeAmount">
<!-- :disabled="totalAmountDisabled" -->
<el-input v-model="infoForm.tradeAmount" placeholder="请输入金额" style="width: 310px" @input="handleUpgradeNum" />
</el-form-item>
<el-form-item label="付款类型:" prop="tradeType">
<el-select v-model="infoForm.tradeType" filterable style="width: 310px" placeholder="请选择付款类型">
<el-option v-for="(item, index) in baseData.tradeTypeList" :key="index" :label="item.label"
:value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="付款日期:" prop="tradeTime">
<el-date-picker style="width: 310px" v-model="infoForm.tradeTime" type="datetime"
:picker-options="tradeTimePickerOptions" placeholder="选择日期时间">
</el-date-picker>
<!-- <el-select v-model="infoForm.administrators" filterable style="width: 310px">
<el-option v-for="(item, index) in baseData.administratorsList" :key="index"
:label="item.name + ' ' + item.phone" :value="item.phone" />
</el-select> -->
</el-form-item>
</el-form>
<!-- </d2-dialog> -->
</baseDialog>
</template>
<script>
import { deepClone } from "@/common/util"
import { advancePaymentMerchantPage, advancePaymentTradeAdd } from "@api/prepaymentManage"
import dayjs from "dayjs"
import { limitPrice } from "@/common/format"
export default {
// name: 'AddDialog',
data() {
return {
dialogConfig: {
title: "新增付款",
width: "600px"
},
config: {
showClose: true,
appendToBody: true, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter: true,
cancel_name: "取 消",
confirm_name: "确 定"
},
infoForm: {
// administrators: "",
// smsCode: "",
// remark: "",
merchant: null,
merchantId: "",
// totalAmount: "",
tradeAmount: "",
tradeTime: ""
},
oldVal: {
tradeAmount: ""
},
cashRules: {
merchantId: [
{ required: true, message: "请选择门店", trigger: "change" }
],
tradeAmount: [
{
required: true,
message: "请输入金额,支持输入0~999999999的数字,支持小数点后2位",
trigger: "change"
}
],
tradeType: [
{ required: true, message: "请选择付款类型", trigger: "change" }
],
tradeTime: [
{ required: true, message: "请选择付款日期", trigger: "change" },
{ validator: (rule, value, callback) => this.validateTradeTime(rule, value, callback), trigger: "change" }
]
// smsCode: [
// { required: true, message: "请输入验证码", trigger: "change" }
// ]
},
// 验证码
showtips: false,
isSend: false,
sendMsg: "获取验证码",
time: "",
// 基本数据
baseData: {
tradeTypeList: [
// 1:银行转账(对公),2:银行承兑,3:银行转账,4:银盛收款
{
id: "2",
label: "银行承兑"
},
{
id: "3",
label: "银行转账"
}
],
// administratorsList: [],
merchantList: []
},
balance: "",
// totalAmountDisabled: true
}
},
props: {
addVisible: {
type: Boolean,
default: false
}
},
computed: {
visible: {
get() {
return this.addVisible
},
set(newVal) {
this.$emit("update:addVisible", newVal)
}
},
tradeTimePickerOptions() {
const start = this.infoForm.merchant && this.infoForm.merchant.startDate
return {
disabledDate: (date) => {
const a = dayjs(date).startOf('day').valueOf()
const min = start ? dayjs(start).startOf('day').valueOf() : -Infinity
const max = dayjs().endOf('day').valueOf()
return a < min || a > max
}
}
}
},
watch: {
'infoForm.merchant'(val) {
this.infoForm.merchantId = val ? val.merchantId : ''
this.infoForm.merchantName = val ? val.merchantName : ''
this.infoForm.tradeTime = ''
}
},
mounted() {
this.getMerchantList()
// this.getAdminList()
},
methods: {
validateTradeTime(rule, value, callback) {
const start = this.infoForm.merchant && this.infoForm.merchant.startDate
if (start && value) {
const a = dayjs(value).valueOf()
const b = dayjs(start).startOf('day').valueOf()
if (a < b) return callback(new Error('付款日期需不早于门店开始日期'))
}
callback()
},
getMerchantList() {
var params = {}
params.currentPage = 1
// params.pageSize = 1000000
params.pageSize = 100
advancePaymentMerchantPage(params).then((res) => {
this.baseData.merchantList = res.list
})
},
handleUpgradeNum(newVal) {
var maxVal = 999999999
if (this.balance) {
maxVal = this.balance
}
// else {
// newVal = ''
// }
this.infoForm.tradeAmount = limitPrice(
newVal,
this.oldVal.tradeAmount,
13,
2,
-999999999,
maxVal,
'priceReg_negative_input'
)
this.oldVal.tradeAmount = this.infoForm.tradeAmount
},
handleCashConfirm() {
this.$refs.formRef.validate((valid) => {
if (valid) {
var params = deepClone(this.infoForm)
// params.
if (params.tradeTime) {
params.tradeTime = dayjs(params.tradeTime).format("YYYY-MM-DD HH:mm:ss")
}
// params.remark = this.infoForm.remark
// params.smsCode = this.infoForm.smsCode
// params.phone = this.infoForm.administrators
// params.merchantId = this.infoForm.merchantId
// if (this.infoForm.totalAmount > 0) {
// params.totalAmount = this.infoForm.totalAmount
// } else {
// this.$message({
// message: "提现金额必须大于0",
// type: "warning",
// showClose: true
// })
// return
// }
console.log(params)
advancePaymentTradeAdd(params).then((res) => {
this.notice.okTips("新增成功")
this.visible = false
this.$emit("addDialogSuccess")
})
}
})
},
handleSend() {
if (!this.infoForm.administrators) {
this.notice.warningTips("请选择管理员")
return
}
sendToSmsCodeApi({ phone: this.infoForm.administrators }).then((res) => {
this.notice.okTips("已发送,30分钟内有效")
this.isSend = true
this.showtips = true
this.sendMsg = 60
this.msgDown()
})
},
msgDown() {
this.time = setTimeout(() => {
clearTimeout(this.time)
if (this.sendMsg > 1) {
--this.sendMsg
this.msgDown()
} else {
this.isSend = false
}
}, 1000)
}
}
}
</script>
<style scoped>
p {
margin: 0 0;
}
.cash-btn {
margin-left: 20px;
}
</style>
<template>
<baseDialog :title="title" :config="config" :dialog-config="dialogConfig" :is-show.sync="visibility" width="50%"
btn-ok-label="确定" @confirmDialog="handleSelectGoodsConfirm" @closeDialog="handleSelectGoodsClose"
class="selectGoods">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button type="primary" @click="handleReset" size="small">重置</el-button>
<!-- <el-button type="primary"></el-button> -->
</div>
<d2-table-header>
<div class="btns flex">
<span data-event-code="prepaymentManage_TrafficFee">
<auth-button category="Button" :show-btn-ids="['9051611']" />
</span>
<span data-event-code="prepaymentManage_Export">
<auth-button category="Button" :show-btn-ids="['9051610']" />
</span>
</div>
</d2-table-header>
<d2-table maxHeight="350px" ref="groundingIndexTable" :search-form="searchForm" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
</d2-table>
<!-- <div class="table"></div> -->
<addDialog v-if="addVisible" :addVisible.sync="addVisible" @addDialogClose="addDialogClose"
@addDialogSuccess="addDialogSuccess" />
</baseDialog>
</template>
<script>
import { mapActions, mapState } from "vuex"
import { trafficPage } from "@api/prepaymentManage"
import { tradeTypeList } from "@/common/constant/vehicle"
import dayjs from "dayjs"
import addDialog from "./addDialog.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
name: 'TrafficFeeDialog',
mixins: [reportTrackPageMixin],
props: {
title: {
type: String
},
trafficFeeDialogVisible: {
type: Boolean,
default: false
}
},
components: {
addDialog
},
data() {
return {
addVisible: false,
dialogConfig: {
title: "管理流量费/我司收益",
width: "900px",
hideConfirmBtn: true,
cancel_name: "关闭"
},
config: {
showClose: true,
appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter: true,
hideConfirmBtn: true,
cancel_name: "关闭"
},
tradeTypeList,
getListApi: trafficPage,
showFormData: [{
label: '门店名称',
name: 'merchantName',
type: 'input',
maxlength: 50,
isClear: true
},
{
type: 'datePicker',
dateType: 'monthrange',
label: '月份',
name: 'monthrange',
width: '260px'
}
],
searchForm: {
merchantName: '',
monthrange: '',
managerType: 1
},
tempGoodsType: [],
baseData: {
productTypeList: [],
productList: []
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableColumns: [
// {
// label: '序号',
// prop: 'ownSerialNum',
// type: 'ownSerialNum',
// width: '60'
// },
{
label: '日期',
prop: 'month',
// width: 110,
// formatter: (cellValue) => {
// return cellValue.upgradeGoodsName || '-'
// }
}, {
label: '摘要',
prop: 'summary',
}, {
label: '门店',
prop: 'merchantName',
width: 140,
// formatter: (cellValue) => {
// return cellValue?.tradeTime ? dayjs(cellValue.tradeTime).format('YYYY-MM-DD HH:mm:ss') : '-'
// }
}, {
label: '收款金额',
prop: 'receiveAmount',
// width: 140,
// formatter: (cellValue) => {
// return cellValue?.thirdPartyCode || '-'
// }
},
{
label: '流量费',
prop: 'trafficFee',
// width: 140,
// formatter: (cellValue) => {
// return cellValue?.thirdPartyCode || '-'
// }
},
{
label: '我司收益',
prop: 'ourRevenue',
// width: 140,
// formatter: (cellValue) => {
// return cellValue?.thirdPartyCode || '-'
// }
},
{
label: '可抵收益月份',
prop: 'deductibleMonth'
},
{
label: '备注',
prop: 'remark'
},
{
label: '操作人',
prop: 'createdBy',
width: 100
}, {
label: '操作日期',
prop: 'createdDate',
width: 170,
formatter: (cellValue) => {
return cellValue?.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
}]
}
}
},
computed: {
visibility: {
get() {
return this.trafficFeeDialogVisible
},
set(value) {
this.$emit('update:trafficFeeDialogVisible', value)
}
},
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
},
methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleExport() {
const params = {
method: "dj.api.smartcarlife.advancePayment.trafficPage.export.async",
...this.getParams()
}
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" })
},
handleAddReceipt() {
this.addVisible = true
},
addDialogClose() {
this.addVisible = false
},
addDialogSuccess() {
// this.addVisible = false
// 重新查询
this.$refs.groundingIndexTable.refreshTable(false, true)
},
// resetSearchForm() {
// this.searchForm = this.$options.data.call(this).searchForm
// this.$refs.showSearch.resetForm()
// },
setTableFinishFun(data) {
this.tableData = data
},
beforeSearchFn() {
return new Promise(resolve => {
this.getParams()
resolve()
})
},
getParams() {
if (this.searchForm.monthrange?.length > 0) {
const [start, end] = this.searchForm.monthrange
this.searchForm.startMonth = dayjs(start).format('YYYY-MM')
this.searchForm.endMonth = dayjs(end).format('YYYY-MM')
}
return {
...this.searchForm
}
},
handleSelectGoodsConfirm() {
// const selectData = this.tableData?.find(v => v.id == this.selectedRowId)
// if (!selectData) return this.$message.warning('请选择商品')
this.$emit('handleSelectGoodsConfirm', selectData)
},
handleSelectGoodsClose() {
this.$emit('handleSelectGoodsClose')
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
// 重新查询
this.$refs.groundingIndexTable.refreshTable(true, true)
}
}
}
</script>
<style lang="scss" scoped>
.selectGoods {
::v-deep .el-dialog__body {
// padding: 0;
// border-bottom: 1px solid #e4e7ed;
}
}
// .show-search {
// // height: 32px;
// }
.up-btns {
padding-top: 0;
}
.flex {
display: flex;
align-items: center;
}
.btns {
margin-left: auto;
gap: 10px;
// 最后一个span元素添加右边距
>span:last-child {
padding-right: 20px;
// margin-left: 0;
}
}
.show-search {
::v-deep .d2-search-block {
padding: 0;
}
}
.table {
border-bottom: 1px solid #e4e7ed;
}
</style>
<!-- 门店预付款明细 -->
<template>
<d2-container class="container">
<div class="d2-container-content">
<d2-table-header>
<template #left>
<div class="account-info flex">
门店名称:
<div class="price">{{ routerInfo.merchantName }}</div>
</div>
<span data-event-code="prepaymentManage_detail_export">
<auth-button category="Button" :show-btn-ids="['9051604']" />
</span>
</template>
<div class="btns flex">
<!-- <span data-event-code="prepaymentManage_Export">
<auth-button category="Button" :show-btn-ids="['9051604']" />
</span> -->
<!-- <auth-button :show-btn-ids="['9040206', '9040201', '9040202', '9040203', '9040205']"
category="Button" /> -->
<span data-event-code="prepaymentManage_detail_export">
<auth-button category="Button" :show-btn-ids="['9051612']" />
</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="postScriptHtml" slot-scope="scope">
<span>
<el-tooltip class="item" effect="dark" :content="scope.scope.remark" placement="right">
<span>
{{ scope.scope.remark ? (scope.scope.remark.length > 15 ? (scope.scope.remark.slice(0, 15) + '...') :
scope.scope.remark) : '' }}
</span>
</el-tooltip>
</span>
</div>
</d2-table>
</div>
<el-button class="go-back" type="primary" @click="goBack">返回</el-button>
</d2-container>
</template>
<script>
import { deepClone } from "@/common/util"
import { advancePaymentShopDetailPage } from "@api/prepaymentManage"
import { mapActions, mapState } from "vuex"
import dayjs from "dayjs"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
name: "usedCarPaymentManage",
mixins: [reportTrackPageMixin],
components: {
},
data() {
return {
getListApi: advancePaymentShopDetailPage,
searchFormSearch: {},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
// mutiSelectUniqueKey: "id",
// mutiSelectName: "contentIndex",
tableOption: false,
tableColumns: [
{
label: "业务日期",
prop: "monthName",
minWidth: 160
},
{
label: "摘要",
prop: "summary",
minWidth: 130
},
{
label: "广联付款",
prop: "payAmount",
minWidth: 110
},
{
label: "广联收款",
prop: "receiveAmount",
minWidth: 110,
},
{
label: "应抵流量费",
prop: "trafficFee",
minWidth: 110,
},
{
label: "我司收益",
prop: "ourRevenue",
minWidth: 110,
},
{
label: "可抵扣我司收益",
prop: "deductibleOurRevenue",
minWidth: 110,
},
{
label: "应抵流量预付余额",
prop: "trafficFeeBalance",
minWidth: 90,
},
{
label: "可抵收益预付余额",
prop: "deductibleRevenueBalance",
minWidth: 90,
},
{
label: "日均流量费",
prop: "dayAvgTrafficFee",
minWidth: 90,
},
{
label: "备注",
prop: "remark",
minWidth: 120,
addHtml: 'postScriptHtml'
}
]
},
track_event_code: "prepaymentManage_detail",
detailInfo: {}
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
}),
routerInfo() {
return this.$route.query
}
},
provide() {
return {
userInfo: this.$store.state.d2admin.user.info
}
},
mounted() {
// this.getAccountBalance()
// this.onPageShow()
this.searchFormSearch = {
...this.routerInfo
}
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
beforeSearchFn() {
return new Promise((resolve) => {
// this.searchFormSearch = this.getParams()
resolve()
})
},
goBack() {
this.close({
name: "prepaymentManage"
})
this.$router.push({
name: "prepaymentManage"
})
},
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 this.searchFormSearch
},
handleAddUsedQuota() {
this.authPhoneDialogVisible = true
},
handleDetail(row) {
this.detailVisible = true
this.detailInfo = row
},
handleExport() {
let params = {
// 导出门店预付款明细列表(异步)
method: "dj.api.smartcarlife.advancePayment.shopDetailPage.export.async",
...this.getParams()
}
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
// },
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: #666666;
.price {
color: #333333;
}
}
.go-back {
display: flex;
align-items: center;
margin: 10px auto;
}
</style>
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content-warn"
@handleClick="submit"
>
<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-steps direction="vertical" :active="3">
<el-step title="请阅读功能使用注意事项"></el-step>
<el-step title="请填写当期使用额度"></el-step>
<el-step title="请填写预警通知邮箱"></el-step>
......@@ -22,40 +15,17 @@
预警通知触发条件:当额度使用率达到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-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-form-item label="预警通知邮箱:" prop="warningEmail">
<el-input v-model="infoForm.warningEmail" class="input-width" :maxlength="200"
placeholder="请输入预警通知邮箱(多邮箱用逗号隔开,最多五个)">
</el-input>
</el-form-item>
</el-form>
......@@ -79,20 +49,20 @@ export default {
},
computed: {
dialogShow: {
get () {
get() {
return this.visible
},
set (val) {
set(val) {
this.$emit('dialogClose', { flag: this.refreshFlag })
}
},
authPhone () {
authPhone() {
return this.userInfo.loginAccount.phone
}
},
watch: {
visible: {
handler (val) {
handler(val) {
if (val) {
this.oldVal = ''
this.infoForm = this.$options.data.call(this).infoForm
......@@ -103,9 +73,9 @@ export default {
deep: true
}
},
mounted () {
mounted() {
},
data () {
data() {
return {
dialogConfig: {
config: {
......@@ -159,15 +129,15 @@ export default {
}
},
methods: {
handleBlur (event) {
handleBlur(event) {
let { usageLimit } = this.infoForm
this.infoForm.usageLimit = usageLimit <= 0 ? '' : usageLimit
},
handleUsageLimitNum (event) {
handleUsageLimitNum(event) {
this.infoForm.usageLimit = limitPrice(event, this.oldVal, 15, 2)
this.oldVal = this.infoForm.usageLimit
},
submit () {
submit() {
this.$refs.editRef.validate(async (valid) => {
if (valid) {
let { infoForm, authPhone } = this,
......@@ -194,41 +164,52 @@ export default {
display: flex;
align-items: center;
}
.detail-content-warn {
::v-deep .el-dialog {
height: 428px;
.el-dialog__body {
border-bottom: 1px solid #e6e6e6;
// 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;
......@@ -240,9 +221,11 @@ export default {
padding: 8px 16px;
margin-bottom: 41px;
}
.usage-limit {
margin-bottom: 70px;
position: relative;
.unit {
position: absolute;
right: 8px;
......
......@@ -315,15 +315,18 @@ export default {
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;
// border-bottom: 1px solid #e5e5e5;
padding-bottom: 24px;
}
}
.tipsText {
.circle {
display: inline-block;
......@@ -334,12 +337,15 @@ export default {
vertical-align: middle;
}
}
.tipsError {
margin-left: 102px;
}
.tipsBt {
margin-left: auto;
}
.div-title {
display: flex;
align-items: center;
......@@ -349,6 +355,7 @@ export default {
color: #333333;
// margin: 10px 0 20px 0;
}
.el-icon-circle-close {
color: #ffffff;
}
......@@ -377,6 +384,7 @@ export default {
::v-deep .el-form-item__label {
padding: 0;
}
.el-form-item {
width: 100%;
// margin-bottom: 20px;
......@@ -393,18 +401,22 @@ export default {
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%;
......@@ -416,15 +428,18 @@ export default {
.el-form-item__label {
padding: 0;
}
.el-form-item {
// width: 300px;
margin: 0px;
}
}
}
.receiptBtn {
margin-left: 8px;
}
.block {
height: 24px;
}
......
......@@ -14,6 +14,14 @@
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }">
</el-cascader>
</template>
<template slot="sellerSelect">
<el-select v-model="searchForm.sellerUserId" remote reserve-keyword
placeholder="请选择转化人员" @visible-change="visibleChange" :remote-method="remoteMethod"
v-el-select-loadmore="interestsLoadmore" style="width: 100%" filterable>
<el-option v-for="(subItem, subIndex) in sellerList" :key="subIndex"
:label="subItem.staffName" :value="subItem.uuid" />
</el-select>
</template>
</d2-search>
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
......@@ -223,6 +231,11 @@
</template>
</el-table-column>
<el-table-column label="流量方" align="center" width="170" prop="merchantName" />
<el-table-column label="运营模式" align="center" width="170" prop="merchantName">
<template slot-scope="scope">
<span>{{ scope.row.directSalesFlag != null ? saleFlagTextObj[scope.row.directSalesFlag] : "-" }}</span>
</template>
</el-table-column>
<el-table-column label="二级流量方" align="center" width="170" prop="merchantName">
<template slot-scope="scope">
<span>{{ scope.row.subShopMerchantName || "-" }}</span>
......@@ -339,8 +352,10 @@ import {
waitinputorderCount,
orderImport,
getServiceStore,
cancelDivideAccountsAPI
cancelDivideAccountsAPI,
getSellerListApi
} from "@api/order"
import { getBrandList } from "@/api/shopConfig.js"
import { getDiversionMerchantRef, listShop4sByRef } from "@api/merchant"
import { manageTypeList, BaseData, zyVoucherStatusOpt } from "@/common/constants"
import { mapActions, mapState, mapMutations } from "vuex"
......@@ -355,6 +370,24 @@ export default {
chooseRuleDialog,
ruleInfoDialog
},
directives: {
"el-select-loadmore": {
bind(el, binding) {
setTimeout(() => {
const SELECTWRAP_DOM = el.querySelector(
".el-select-dropdown .el-select-dropdown__wrap"
)
SELECTWRAP_DOM.addEventListener("scroll", function () {
const condition =
this.scrollHeight - this.scrollTop <= this.clientHeight
if (condition) {
binding.value()
}
})
}, 1000)
}
}
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
......@@ -471,7 +504,12 @@ export default {
// this.baseData.storeIdList = []
this.getAllServiceStore()
}
this.sellerList = []
this.currentPage = 1
this.staffName = ''
this.getSellerList()
this.searchForm.merchantId = ""
this.searchForm.sellerUserId = ""
this.getOptionsList()
}
},
......@@ -610,6 +648,28 @@ export default {
label: "商品类目",
name: "goodsType",
addHtml: "goodsCascader"
}, {
label: "转化人员",
name: 'sellerUserId',
addHtml: "sellerSelect"
}, {
label: "主营品牌",
name: "brandIdList",
type: "select",
multiple: true,
collapseTags: true,
optionList: [],
optionId: "id",
optionLabel: "label",
optionsName: "brandList",
}, {
label: "运营模式",
name: "directSalesFlag",
type: "select",
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "saleFlagList"
}
],
searchForm: {
......@@ -635,6 +695,9 @@ export default {
goodsType: '',
secondaryGoodsType: '',
thirdLevelGoodsType: '',
sellerUserId: '',
brandIdList: [],
directSalesFlag: ''
},
baseData: {
orderStatusList: [
......@@ -777,7 +840,13 @@ export default {
}
],
zyVoucherStatusOpt: Util.deepClone(zyVoucherStatusOpt),
productTypeList: []
productTypeList: [],
saleFlagList: [
{ confId: "0", confValue: "非直营" },
{ confId: "1", confValue: "直营" }
],
brandList: [],
sellerList: []
},
tableData: [],
total: 0,
......@@ -792,7 +861,14 @@ export default {
ruleVisible: false,
recordInfo: null,
ruleInfoVisible: false,
tempGoodsType: []
tempGoodsType: [],
saleFlagTextObj: {
0: '非直营',
1: '直营'
},
sellerList: [],
pageSize: 20,
currentPage: 1
}
},
computed: {
......@@ -818,6 +894,8 @@ export default {
(item) => !itemName.includes(item.name)
)
}
this.getBrandList()
this.getSellerList()
getParkStore({}).then((res) => {
res.forEach((item) => {
item.merchantId = item.merchantNo
......@@ -1014,10 +1092,19 @@ export default {
provinceId: '',
invoiceStatus: '',
zyVoucherStatus: '',
profitAllocationStatus: ''
profitAllocationStatus: '',
salesType: "",
sellerUserId: "",
brandIdList: [],
directSalesFlag: ""
}
this.tempGoodsType = []
// this.baseData.storeIdList = []
this.sellerList = []
this.currentPage = 1
this.staffName = ''
// 获取全部转化人员数据
this.getSellerList()
this.handleSearch()
this.getAllServiceStore()
this.getOptionsList()
......@@ -1032,6 +1119,61 @@ export default {
this.getOptionsList()
})
},
// 获取转化人员数据
remoteMethod(query) {
this.staffName = query
this.currentPage = 1
this.sellerList = []
this.getSellerList() // 请求接口
},
visibleChange(data) {
// 获取焦点重新渲染下拉框数据
if (data) {
if (this.staffName) {
this.staffName = ""
this.currentPage = 1
this.sellerList = []
this.getSellerList()
}
}
},
// 获取更多转化人员
interestsLoadmore() {
setTimeout(() => {
this.currentPage = this.currentPage + 1
if (this.allPages < this.currentPage) {
this.currentPage = this.allPages
return
}
this.getSellerList()
}, 10)
},
getSellerList() {
let merchantIds = this.searchForm.yqMerchantIds
getSellerListApi({
yqMerchantIdList: merchantIds,
scene: 0,
staffName: this.staffName,
currentPage: this.currentPage,
pageSize: this.pageSize
}).then(res => {
this.allPages = res.pages
let arr = this.sellerList.concat(res.list)
this.sellerList = this.unique(arr)
if (this.sellerList?.findIndex(val => val.uuid == '' && val.staffName == '全部') < 0 && !this.staffName) {
this.sellerList.unshift({
uuid: '',
staffName: '全部'
})
}
})
},
unique(arr) {
const res = new Map()
return arr.filter(
(a) => !res.has(a.uuid) && res.set(a.uuid, 1)
)
},
getDiversionMerchantRef(merchantId) {
getDiversionMerchantRef({
merchantId: merchantId
......@@ -1049,7 +1191,7 @@ export default {
this.showFormData[index].optionLabel
] !== "全部"
) {
if (item.optionsName != 'parkServiceList') { // 服务对接由于是多选不应该添加全部选项
if (item.optionsName != 'parkServiceList' && item.optionsName != "brandList") { // 服务对接主营品牌由于是多选不应该添加全部选项
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
......@@ -1064,6 +1206,12 @@ export default {
}
})
},
getBrandList() {
getBrandList({}).then((res) => {
this.baseData.brandList = res
this.getOptionsList()
})
},
getParams() {
const params = Util.deepClone(this.searchForm)
const form = this.searchForm
......@@ -1133,6 +1281,13 @@ export default {
})
delete params.yqMerchantIds
}
if (params.brandIdList && params.brandIdList.length > 0) {
params.brandIdList.forEach((item, index) => {
const brandName = `brandIdList[${index}]`
params[brandName] = item
})
delete params.brandIdList
}
params.pageNum = 1
params.method = "dj.api.smartcarlife.ordermanage.export.async"
let eventParams = deepClone({ ...params })
......@@ -1154,6 +1309,20 @@ export default {
params.pageNum = 1
params.method = "dj.api.smartcarlife.order.residentEquity.export.async"
let eventParams = deepClone({ ...params })
if (eventParams.yqMerchantIds && eventParams.yqMerchantIds.length > 0) {
eventParams.yqMerchantIds.forEach((item, index) => {
const merchantName = `yqMerchantIds[${index}]`
eventParams[merchantName] = item
})
delete eventParams.yqMerchantIds
}
if (eventParams.brandIdList && eventParams.brandIdList.length > 0) {
eventParams.brandIdList.forEach((item, index) => {
const brandName = `brandIdList[${index}]`
eventParams[brandName] = item
})
delete eventParams.brandIdList
}
if (eventParams?.zyVoucherStatus == 1) eventParams.status = 13
const list = [
...this.dowloadList,
......
<!-- 编辑 - 对账单模版信息 -->
<template>
<d2-container v-loading="loading">
<div class="edit-page edit-tmpl" style="padding: 20px" v-for="(item, index) in selectList" :key="index">
<glsx-combi-form class="edit-form-container" :ref="'editFormRef' + index" label-width="150px" default-width="414px" :form-ref="editChildRef" :form-obj="item" :form-data="editFormData" :form-rules="formRules">
</glsx-combi-form>
</div>
<div class="footer">
<el-button @click="handleConfirm" type="primary" :loading="loading">确定</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
</d2-container>
</template>
<script>
import {
operatorBatchAudit,
businessBatchAudit
} from "@/api/purchaseShopping.js"
import { Util, deepClone } from "@/common/util"
import { getShippingEntityInfoAll } from "@api/serviceManage"
export default {
name: "BatchReview",
data() {
const editItemStyle = {
width: "50%",
marginRight: '0px'
}
const lineItemStyle = {
width: "100%",
marginRight: '0px'
}
return {
loading: false,
editChildRef: "editChildRef",
formRules: {
sendOutMerchantId: [
{ required: true, message: "请选择发货主体", trigger: "change" }
]
},
selectList: [],
editFormData: [
{
label: "订单编号",
name: "orderCode",
type: "showTxt",
style: editItemStyle
}, {
label: "下单门店",
name: "merchantName",
type: "showTxt",
style: editItemStyle
}, {
label: "订单总价/元",
name: "totalPrice",
type: "showTxt",
style: editItemStyle,
formatter: (cellValue) => {
return "¥" + cellValue.totalPrice
}
}, {
label: "下单时间",
name: "orderTime",
type: "showTxt",
style: editItemStyle,
formatter: (cellValue) => {
return cellValue.orderTime ? Util.dateFormate(cellValue.orderTime, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}, {
label: "运营审核时间",
name: "operatorReviewDate",
type: "showTxt",
isHide: true,
style: editItemStyle,
formatter: (cellValue) => {
return cellValue.operatorReviewDate ? Util.dateFormate(cellValue.operatorReviewDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}, {
label: "发货主体",
name: "sendOutMerchantId",
isHide: true,
style: lineItemStyle,
type: "select",
optionList: [],
optionId: "shippingEntityId",
optionLabel: "shippingEntity",
optionsName: "shippingEntityList"
},
{
label: "备注",
name: "remark",
type: "input",
placeholder: "请输入",
style: lineItemStyle,
inputType: "textarea",
maxlength: "200",
rows: 4,
showLimit: true
}
],
baseData: {
shippingEntityList: []
}
}
},
mounted() {
console.log(this.$route, 'this.$route.query')
this.fromPage = this.$route.query.fromPage || 'procurementReview'
this.selectList = deepClone(this.$route.query.list || '[]')
this.showOrHideAttr("editFormData", "发货主体", this.fromPage == "procurementBusiness")
this.showOrHideAttr("editFormData", "运营审核时间", this.fromPage == "procurementReview")
this.getShippingEntityInfoAll()
},
methods: {
showOrHideAttr(formName, label, isHide) {
const idx = this[formName].findIndex((item) => item.label == label)
this[formName][idx].isHide = isHide
},
getShippingEntityInfoAll() {
// 获取发货主体数据
getShippingEntityInfoAll({}).then((res) => {
this.baseData.shippingEntityList = res || []
this.getOptionsList("editFormData", false)
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
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 = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (['select', 'radio'].includes(item.type) && 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 = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
handleConfirm() {
if (this.loading) {
return true
}
const _api = this.fromPage == "procurementReview" ? operatorBatchAudit : businessBatchAudit
this.loading = true
const params = {
json: JSON.stringify({ auditList: this.selectList })
}
_api(params).then((res) => {
this.notice.okTips("批量审核成功")
this.handleCancel()
}).finally(() => {
this.loading = false
})
},
// 取消按钮返回列表页
handleCancel() {
this.$router.push({
name: this.fromPage || "procurementReview"
})
}
}
}
</script>
<style lang="scss" scoped>
.edit-page.edit-tmpl {
margin: 0 20px 20px;
background: #ffffff;
.title {
height: 50px;
line-height: 50px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 16px;
font-weight: 600;
color: #333333;
}
}
::v-deep .el-form-item--small .el-form-item__label,
::v-deep .el-form-item--small .el-form-item__content {
line-height: 20px;
}
.edit-tmpl {
.add-mer-btn {
margin-left: 12px;
}
}
.footer {
text-align: center;
}
</style>
<!-- 采购审核-商务审核 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" @handleChangeSelect="handleChangeSelect" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,8 +16,8 @@
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"> -->
<!-- <auth-button category="Button" /> -->
<!-- <auth-button category="Button" />
<!-- <auth-button category="Button" /> -->
<!-- <auth-button category="Button" />
</span> -->
<span>
<!-- <el-button type="primary"
......@@ -34,34 +25,20 @@
@click="handleExport">
导出
</el-button> -->
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090606']" />
</span>
<auth-button category="Button" :show-btn-ids="['9090605']" />
</span>
</d2-table-header>
<d2-table ref="purchasementReviewTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="purchasementReviewTable" :search-form="tableSearchForm" :table-params="tableParams" :table-data="tableData" :selectable-fn="selectableFn" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<CheckDialog :check-visible="checkVisible"
v-if="checkVisible"
:params-obj="paramsObj"
from-page="procurementBusiness"
@dialogClose="dialogClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<CheckDialog :check-visible="checkVisible" v-if="checkVisible" :params-obj="paramsObj" from-page="procurementBusiness" @dialogClose="dialogClose">
</CheckDialog>
<rejectDialog :reject-visible="rejectVisible"
v-if="rejectVisible"
:params-obj="paramsObj"
:filter-reject-list="[1,2]"
@dialogClose="dialogClose">
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" :filter-reject-list="[1,2]" @dialogClose="dialogClose">
</rejectDialog>
</d2-container>
</template>
......@@ -164,11 +141,14 @@ export default {
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
mutiSelectUniqueKey: "id",
mutiSelectName: "list",
tableOption: true,
tableColumns: [
{
label: '订单编号',
prop: 'orderCode'
prop: 'orderCode',
width: 150
},
{
label: '订单总价/元',
......@@ -309,6 +289,9 @@ export default {
this.getBaseData()
})
},
selectableFn(row, index) {
return row.status == 2
},
beforeSearchFn() {
return new Promise(resolve => {
......@@ -321,8 +304,8 @@ export default {
if (this.tableSearchForm.placeOrderTimeStr) {
this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.placeOrderTimeStr
}
delete this.tableSearchForm.placeOrderTimeStr
if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 6) {
this.tableSearchForm.statuses = [6, 7]
......@@ -368,6 +351,37 @@ export default {
this.checkVisible = !this.checkVisible
this.paramsObj = row
},
// 批量审核
handleBatchCheck() {
var selectedData = this.$refs?.purchasementReviewTable?.mutiSelectArr[this.tableParams.mutiSelectName] || []
if (selectedData.length == 0) {
this.$message({
message: '请选择要批量审核的订单',
type: 'warning'
})
return true
}
console.log(selectedData, 'selectedData')
var list = []
selectedData.forEach(item => {
list.push({
orderCode: item.orderCode,
merchantId: item.merchantId,
merchantName: item.merchantName,
totalPrice: item.totalPrice,
orderTime: item.orderTime,
operatorReviewDate: item.operatorReviewDate,
remark: ''
})
})
this.$router.push({
name: 'businessBatchReview',
query: {
fromPage: 'procurementBusiness',
list: list
}
})
},
// 查看详情
handleDetail(row) {
this.paramsObj = {
......
<!-- 采购审核-运营审核 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" @handleChangeSelect="handleChangeSelect" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,8 +16,8 @@
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"> -->
<!-- <auth-button category="Button" /> -->
<!-- <auth-button category="Button" />
<!-- <auth-button category="Button" /> -->
<!-- <auth-button category="Button" />
</span> -->
<span>
<!-- <el-button type="primary"
......@@ -34,33 +25,20 @@
@click="handleExport">
导出
</el-button> -->
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090306']" />
</span>
<auth-button category="Button" :show-btn-ids="['9090305']" />
</span>
</d2-table-header>
<d2-table ref="purchasementReviewTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="purchasementReviewTable" :search-form="tableSearchForm" :table-params="tableParams" :table-data="tableData" :selectable-fn="selectableFn" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<CheckDialog :check-visible="checkVisible"
v-if="checkVisible"
:params-obj="paramsObj"
@dialogClose="dialogClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<CheckDialog :check-visible="checkVisible" v-if="checkVisible" :params-obj="paramsObj" @dialogClose="dialogClose">
</CheckDialog>
<rejectDialog :reject-visible="rejectVisible"
v-if="rejectVisible"
:params-obj="paramsObj"
:filter-reject-list="[1]"
@dialogClose="dialogClose">
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" :filter-reject-list="[1]" @dialogClose="dialogClose">
</rejectDialog>
</d2-container>
</template>
......@@ -164,11 +142,14 @@ export default {
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
mutiSelectUniqueKey: "id",
mutiSelectName: "list",
tableOption: true,
tableColumns: [
{
label: '订单编号',
prop: 'orderCode'
prop: 'orderCode',
width: 150
},
{
label: '订单总价/元',
......@@ -314,6 +295,9 @@ export default {
this.getBaseData()
})
},
selectableFn(row, index) {
return row.status == 1 && row.sendOutMerchantId != null
},
beforeSearchFn() {
return new Promise(resolve => {
......@@ -326,8 +310,8 @@ export default {
if (this.tableSearchForm.placeOrderTimeStr) {
this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.placeOrderTimeStr
}
delete this.tableSearchForm.placeOrderTimeStr
if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 2) {
this.tableSearchForm.statuses = [2, 5]
......@@ -377,6 +361,39 @@ export default {
this.checkVisible = !this.checkVisible
this.paramsObj = row
},
// 批量审核
handleBatchCheck() {
var selectedData = this.$refs?.purchasementReviewTable?.mutiSelectArr[this.tableParams.mutiSelectName] || []
if (selectedData.length == 0) {
this.$message({
message: '请选择要批量审核的订单',
type: 'warning'
})
return true
}
console.log(selectedData, 'selectedData')
var list = []
selectedData.forEach(item => {
list.push({
orderCode: item.orderCode,
merchantId: item.merchantId,
merchantName: item.merchantName,
totalPrice: item.totalPrice,
orderTime: item.orderTime,
sendOutMerchantId: item.sendOutMerchantId,
sendOutMerchantName: item.sendOutMerchantName,
remark: ''
})
})
this.$router.push({
name: 'batchReview',
query: {
fromPage: 'procurementReview',
list: list
}
})
},
// 查看详情
handleDetail(row) {
this.paramsObj = {
......
......@@ -284,7 +284,8 @@ export default {
purchasingPattern: '',
sendOutMerchantName: '',
reviewedTimeStr: '',
shipper: ''
shipper: '',
deliveryDateStr: ''
},
tableSearchForm: {},
tableData: [],
......@@ -387,6 +388,13 @@ export default {
type: "input",
isClear: true,
maxlength: 50
},
{
label: "发货时间",
name: "deliveryDateStr",
type: "datePicker",
isClear: true
// pickerOptions: "rangePickerOptions"
}
],
selectedList: [],
......@@ -738,7 +746,6 @@ export default {
new Date(this.tableSearchForm.placeOrderTimeStr[1])
.toLocaleDateString()
.replace(/\//g, "-") + " 23:59:59"
delete this.tableSearchForm.placeOrderTimeStr
}
if (this.tableSearchForm.reviewedTimeStr) {
this.tableSearchForm.reviewedStartDateStr =
......@@ -749,8 +756,14 @@ export default {
new Date(this.tableSearchForm.reviewedTimeStr[1])
.toLocaleDateString()
.replace(/\//g, "-") + " 23:59:59"
delete this.tableSearchForm.reviewedTimeStr
}
if (this.tableSearchForm.deliveryDateStr) {
this.tableSearchForm.deliveryStartDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[0], 'YYYY-MM-DD 00:00:00')
this.tableSearchForm.deliveryEndDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[1], 'YYYY-MM-DD 23:59:59')
}
delete this.tableSearchForm.placeOrderTimeStr
delete this.tableSearchForm.reviewedTimeStr
delete this.tableSearchForm.deliveryDateStr
},
handleReset() {
for (const key in this.searchForm) {
......
......@@ -413,6 +413,7 @@ export default {
})
},
getParams() {
removeStaff
const result = this.form.configList.map((configItem) => {
const itemList = configItem.itemList.map((assessmentItem) => ({
assessmentType: assessmentItem.assessmentType,
......
<template>
<div class="layout">
<div class="tab" ref="tabbox">
<div
:class="['tab-item', { 'item-active': windowId == -1 }]"
@click="windowId = -1"
>
课程列表
</div>
<div
:class="['tab-item', { 'item-active': windowId == -2 }]"
@click="windowId = -2"
>
课程培训计划
</div>
<template v-for="(i, index) in tab">
<template>
<div
:key="i.id"
:class="['tab-item', { 'item-active': windowId == i.id }]"
@click="windowId = i.id"
:ref="`tab-${index}`"
>
{{ i.text }}
<div class="close" @click.stop="close(index)">
<i class="el-icon-close"></i>
</div>
</div>
</template>
</template>
<template v-if="dropdownList.length">
<div class="arrow-box">
<el-dropdown trigger="click" @command="windowId = $event">
<div class="dropdown-link">
<i class="el-icon-arrow-down"></i>
</div>
<el-dropdown-menu slot="dropdown">
<template v-for="(i, index) in dropdownList">
<el-dropdown-item
:class="{ 'dropdown-item-active': windowId == i.id }"
:key="i.id"
:command="i.id"
>
<div class="dropdown-item">
{{ i.text }}
<div class="close" @click.stop="closeDrop(index)">
<i class="el-icon-close"></i>
</div>
</div>
</el-dropdown-item>
</template>
</el-dropdown-menu>
</el-dropdown>
</div>
</template>
</div>
<div class="content">
<list v-show="windowId == -1" ref="listRef" @openWindow="openWindow" />
<training
v-show="windowId == -2"
ref="trainingRef"
@openWindow="openWindow"
/>
<template v-for="i in [...tab, ...dropdownList]">
<component
:ref="`page-${i.id}`"
:key="i.id"
:is="i.component"
v-show="windowId == i.id"
:show="windowId == i.id"
:query-data="i.data"
@backIndex="backIndex"
/>
</template>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import list from "./list/index.vue"
import training from "./training/index.vue"
import dataView from './list/components/dataView'
import trainDataView from './training/components/dataView'
export default {
name: "",
components: {
list,
training,
dataView,
trainDataView
// indicatorInfo
},
data () {
return {
tab: [],
dropdownList: [],
windowId: -1,
tabboxWidth: 0
}
},
// 在beforeDestroy钩子中移除事件监听
beforeDestroy () {
window.removeEventListener('popstate', this.preventBack)
},
created () {
this.windowId = this.$route.query.windowId?this.$route.query.windowId:-1
},
// 在你的Vue组件的mounted钩子中添加事件监听
mounted () {
history.pushState(null, null, document.URL)
window.addEventListener('popstate', this.preventBack)
if (this.tabboxWidth == 0) this.tabboxWidth = this.$refs.tabbox.offsetWidth
},
methods: {
preventBack () {
if (this.windowId !== -1) {
const [recep] = this.$refs[`page-${this.windowId}`]
if (recep && recep.isQualityVisible) recep.isQualityVisible = false
else this.windowId = -1
history.pushState(null, null, document.URL)
} else this.$router.go(-1)
},
openWindow (data) {
console.log(data)
const id = data.pageId ? data.pageId : `${data.metricName}_${data.itemBrand}`
const windowList = [...this.tab, ...this.dropdownList]
const windowItem = windowList.find((e) => e.id == id)
// windowItem.
let component = data.activeName,
title = data.title || '数据'
if (data.componentName) component = data.componentName
if (windowItem) {
windowItem.data=data
this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data)
return this.windowId = id
}
if (windowList.length == 20) return this.$message.error("最多同时打开20个tab")
const item = {
text: title,
data,
id,
component
}
if (this.dropdownList.length) this.dropdownList.push(item)
else {
this.tab.push(item)
this.checkEl()
}
this.windowId = id
},
close (index) {
this.tab.splice(index, 1)
if (this.dropdownList.length) {
this.tab.push(this.dropdownList[0])
this.closeDrop(0)
}
this.windowId = -1
this.checkEl()
},
closeDrop (index) {
this.dropdownList.splice(index, 1)
},
checkEl () {
const { tab, tabboxWidth } = this
const len = tab.length - 1
this.$nextTick(() => {
const [el] = this.$refs[`tab-${len}`]
if (el) {
const { offsetWidth, offsetLeft } = el
if (offsetLeft + offsetWidth / 2 > tabboxWidth - 54) {
this.dropdownList.push(tab[len])
this.tab.splice(len, 1)
}
}
})
},
backIndex () {
this.windowId = -1
this.$refs['inStoreManageIndex']?.handleSearch()
}
}
}
</script>
<style scoped lang="scss">
.layout {
height: 100%;
.tab {
display: flex;
align-items: center;
margin-left: 20px;
width: calc(100% - 54px);
box-sizing: border-box;
&-item {
width: fit-content;
height: 40px;
padding: 0 20px;
background: #fafafa;
border-radius: 4px 4px 0 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #666666;
cursor: pointer;
line-height: 40px;
margin-right: 1px;
flex-shrink: 0;
.close {
border-radius: 100%;
padding: 4px;
margin-left: 4px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background-color: #666;
.el-icon-close {
color: #fff;
}
}
}
.el-icon-close {
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
color: #666666;
transform: translateY(1px);
}
}
.item-active {
font-weight: 500;
color: #2a58ad;
background: #ffffff;
}
.arrow-box {
width: 32px;
height: 40px;
line-height: 40px;
text-align: center;
background: #fafafa;
cursor: pointer;
flex-shrink: 0;
.el-dropdown {
width: 100%;
}
}
}
.content {
position: relative;
width: 100%;
height: calc(100% - 40px);
// overflow-y: scroll;
box-sizing: border-box;
// padding-bottom: 70px;
}
}
::v-deep.dropdown-item {
display: flex;
align-items: center;
justify-content: center;
.close {
border-radius: 100%;
padding: 4px;
margin-left: 4px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background-color: #666;
.el-icon-close {
color: #fff;
}
}
i {
margin-right: 0;
}
}
.el-icon-close {
font-size: 12px;
color: #666666;
}
}
.dropdown-item-active {
background-color: #eaeef7;
color: #5579bd;
}
</style>
<template>
<div class="course-wrap">
<div class="left-pane">
<category-tree
:list="categoryList"
@refresh="refresh"
@handleInteraction="handleInteraction"
/>
</div>
<div class="right-pane">
<course
:list="categoryList"
@openWindow="openWindow"
:courseCategoryId="courseCategoryId"
></course>
</div>
</div>
</template>
<script>
import CategoryTree from "./components/CategoryTree.vue"
import course from "./components/course.vue"
import { queryCourseCategoryTree } from "@/api/serviceCentre"
export default {
components: {
CategoryTree,
course
},
data() {
return {
categoryList: [],
courseCategoryId: ""
}
},
created() {
this.queryCourseCategoryTreeData()
},
methods: {
handleInteraction(data) {
console.log(data)
this.courseCategoryId = data.courseCategoryId
},
refresh() {
this.queryCourseCategoryTreeData()
},
async queryCourseCategoryTreeData() {
try {
let result = await queryCourseCategoryTree()
this.categoryList = result ? result : []
} catch (err) {
this.$message.error(err.message)
}
},
openWindow(data) {
this.$emit("openWindow", data)
}
}
}
</script>
<style lang="scss" scoped>
.course-wrap {
margin: 0 20px;
display: flex;
align-items: center;
height: calc(100vh - 204px);
overflow: hidden;
// background: #000;
.right-pane {
width: calc(100% - 252px);
background: #fff;
position: absolute;
height: 95%;
left: 252px;
top: 0;
bottom: 0;
right: 0;
overflow: hidden;
}
.left-pane {
height: 100%;
background: #fff;
overflow: hidden;
}
}
</style>
<!-- 等级考试 -->
<template>
<div class="data-table">
<div class="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'120px'"
:form-data="showFormData"
>
</d2-search>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<el-button size="small" type="primary" @click="handleExport">
导出
</el-button>
</d2-table-header>
<d2-table
ref="table"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:sortObj="sortObj"
:before-search-fn="beforeSearchFn"
>
<!-- 门店名称 -->
<div slot="departmentNameHtml" slot-scope="scope">
<span v-if="scope.scope.departmentName.length < 28">{{
scope.scope.departmentName.slice(0, 28)
}}</span>
<div v-else>
<el-tooltip
class="item"
effect="dark"
:content="scope.scope.merchantName"
placement="top-start"
>
<span> {{ scope.scope.merchantName.slice(0, 28) }}...</span>
</el-tooltip>
</div>
</div>
<!-- 人员状态 -->
<div slot="zzStatusHtml" slot-scope="scope">
<div class="online-status">
<span
class="dot"
:style="{
background: getStatusColor(
scope && scope.scope && scope.scope.zzStatus,
'zzStatusMap'
)
}"
></span>
{{
getStatusItem(baseData, "zzStatusOpt", scope.scope, "zzStatus")
}}
</div>
</div>
</d2-table>
</div>
</div>
</template>
<script>
import {
getLevelExamDataPersonPage,
getLevelExamDataExport
} from "@api/serviceCentre"
import { zzStatusOpt, zzStatusMap } from "@/common/constants.js"
import { Util, deepClone } from "@/common/util"
export default {
data() {
return {
isRejectVisible: false,
summaryObj: {},
detailInfo: {},
getListApi: getLevelExamDataPersonPage,
sortObj: {
score: {
ascending: 0,
descending: 1
}
},
tableParams: {
listName: "list",
tableColumns: [
{
label: "员工",
prop: "personName"
},
{
label: "手机号",
prop: "mobilePhone"
},
{
label: "所属部门",
prop: "departmentName",
width: 200,
addHtml: "departmentNameHtml"
},
{
label: "职务",
prop: "jobPostName"
},
{
label: "人员状态",
prop: "zzStatus",
addHtml: "zzStatusHtml"
},
{
label: "得分",
prop: "score",
sortable: "custom"
},
{
label: "考试等级",
prop: "levelName"
}
// {
// label: "提交时间",
// prop: "createdDate",
// width: "150px",
// formatter: (row, column) => {
// return Util.dateFormate(row.createdDate, "YYYY-MM-DD HH:mm:ss")
// }
// }
]
},
searchFormSearch: {},
searchForm: {
personName: "",
mobilePhone: "",
zzStatus: "",
createdDate: [],
levelId: ""
},
showFormData: [
{
label: "员工",
name: "personName",
type: "input",
isClear: true
},
{
label: "手机号",
name: "mobilePhone",
type: "input",
isClear: true
},
{
label: "人员状态",
name: "zzStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "zzStatusOpt"
},
{
label: "考试等级",
name: "levelId",
type: "select",
isClear: true,
optionList: [],
optionId: "id",
optionLabel: "levelName",
optionsName: "levelOpt"
}
],
baseData: {
zzStatusOpt: deepClone(zzStatusOpt),
levelOpt: [],
zzStatusMap: deepClone(zzStatusMap)
}
}
},
props: {
dataView: {
type: Object,
default: () => {}
},
queryData: {
type: Object,
default: () => {}
}
},
mounted() {
// this.getOptionsList(this, "showFormData", true)
this.fetchOnboardingPlans()
},
methods: {
handleClose() {
this.$emit("handleClose")
},
handleConfirm() {
const ids = Array.from(this.selectedIds)
this.$emit("handleConfirm", ids)
},
getOptionsList(that, formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = that[formName].find((k) => k.name == refreshSigle)
var index = that[formName].findIndex((k) => k.name == refreshSigle)
that.$set(
that[formName][index],
"optionList",
deepClone(that.baseData[item.optionsName])
)
if (
hasAll &&
that.baseData[item.optionsName].length &&
that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {}
temp[that[formName][index].optionId] = ""
temp[that[formName][index].optionLabel] = "全部"
that[formName][index].optionList.unshift(temp)
}
} else {
that[formName].forEach((item, index) => {
if (
item.type === "select" &&
that.baseData[item.optionsName]?.length
) {
that.$set(
that[formName][index],
"optionList",
deepClone(that.baseData[item.optionsName])
)
if (
hasAll &&
that.baseData[item.optionsName].length &&
that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {}
temp[that[formName][index].optionId] = ""
temp[that[formName][index].optionLabel] = "全部"
that[formName][index].optionList.unshift(temp)
}
}
})
}
},
async fetchOnboardingPlans() {
try {
// const [levelOpt] = await Promise.all([
// getDictList({
// businessCode: "recruitment",
// typeCode: "recruitment_type"
// })
// ])
// 处理返回的数据
this.baseData.levelOpt = this.queryData.examLevelDTOS
this.getOptionsList(this, "showFormData", true)
} catch (error) {
console.error(error)
}
},
handleExport() {
var params = this.getParams()
if (this.$refs.table.sort) {
params.orderByType = this.$refs.table.orderByType
}
params.currentPage = 1
getLevelExamDataExport(params).then((res) => {
this.$open(res)
})
},
getStatusColor(status, optKey) {
if (status === null || status === undefined) return "#C0C4CC"
const map = (this.baseData && this.baseData[optKey]) || {}
return map[status] || "#C0C4CC"
},
getStatusItem(baseData, optKey, row, rowKey) {
if (!baseData || !baseData[optKey] || !row) return null
let item = baseData[optKey].find((item) => item.confId == row[rowKey])
return (item && item.confValue) || "-"
},
getParams() {
let params = deepClone(this.searchForm)
console.log(this.queryData)
params.examId = this.queryData.id
return params
},
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormSearch = this.getParams()
resolve()
})
},
handleSearch() {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
}
}
}
</script>
<style scoped lang="scss">
.data-table {
margin-top: 20px;
}
.online-status {
display: flex;
justify-content: center;
align-items: center;
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
}
</style>
<template>
<div ref="canvas" class="canvas"></div>
</template>
<script>
// 按需引入 echarts
import * as echarts from "echarts"
export default {
data() {
return {
client: "",
chart: ""
}
},
props: {
xData: {
type: Array,
default: () => []
},
yData: {
type: Array,
default: () => []
},
id: {
type: String,
default: "canvas"
}
},
watch: {
yData: {
handler() {
if (this.chart) this.chart.setOption(this.getChartSetOption(), true)
},
deep: true
},
xData() {
if (this.chart) this.chart.setOption(this.getChartSetOption(), true)
}
},
mounted() {
this.client = this.$refs.canvas
if (!this.client) return
this.chart = echarts.init(this.client)
this.chart.setOption(this.getChartSetOption())
this._onResize = () => this.chart && this.chart.resize()
window.addEventListener("resize", this._onResize)
},
methods: {
getMax() {
const nums = Array.isArray(this.yData)
? this.yData.map((i) =>
typeof i === "number" ? i : Number(i?.num) || 0
)
: []
return nums.length ? Math.max(...nums) : 1
},
getChartSetOption() {
const maxVal = this.getMax()
const yAxisMax = Math.ceil(maxVal)
const yAxisMin = 0
const interval = Math.ceil(yAxisMax / 4) || 1
var option = {
grid: {
top: "37",
bottom: "0",
left: "20",
right: "16",
containLabel: true
},
tooltip: {
show: false,
trigger: "axis",
axisPointer: { lineStyle: { type: "solid" } }
},
xAxis: {
type: "category",
axisLine: { show: false },
axisTick: { show: false, lineStyle: { color: "#fff" } },
splitLine: { show: false },
axisLabel: {
show: true,
color: "rgba(0, 0, 0, 0.65)",
fontSize: "12px",
interval: 0
},
data: this.xData
},
yAxis: {
type: "value",
name: "人数(去重计数)",
nameTextStyle: {
color: "rgba(0, 0, 0, 0.65)",
align: "right",
padding: [0, -65, 0, 0]
},
offset: 10,
axisLine: { show: false, lineStyle: { color: "#E7EBEF" } },
axisLabel: {
show: true,
color: "rgba(0, 0, 0, 0.65)",
fontSize: "12px"
},
splitLine: { show: true, lineStyle: { color: "#E9E9E9" } },
axisTick: { show: false },
min: yAxisMin,
max: interval * 4, // 0~4 共 5 个刻度点
interval
},
series: [
{
type: "bar",
barWidth: 12,
label: {
show: true,
position: "top",
rich: {
value: {
fontSize: 11,
color: "#999999",
lineHeight: 16,
align: "center"
}
},
formatter: (val) =>
`{value|${val.data.value}(${val.data.ratio}%)}`
},
itemStyle: { color: "#2A58AD" },
data: this.yData.map((item, index) => ({
value: typeof item === "number" ? item : item?.num || 0,
ratio:
typeof item === "number"
? 0
: (item?.proportion * 100).toFixed(2) || 0,
name: this.xData[index]
}))
}
]
}
return option
},
destroyChart() {
window.removeEventListener("resize", this._onResize)
if (this.chart) {
this.chart.dispose()
this.chart = null
}
}
},
beforeDestroy() {
this.destroyChart()
}
}
</script>
<style scoped lang="scss">
.canvas {
width: calc(100% - 180px);
height: 200px;
}
</style>
<template>
<div class="left-container">
<div class="data-view">
<div v-for="item in submitArr" :key="item.name" class="item">
<div class="name">{{ item.name }}</div>
<div class="value">{{ item.value(dataView) }}</div>
</div>
</div>
<div class="examination-result">
<div class="title">考试结果等级分布</div>
<echart-bar
class="echart"
:xData="xData"
:yData="yData"
id="resultRef"
></echart-bar>
<div class="hint">
<div
v-for="(item, index) in queryData.examLevelDTOS"
class="item"
:key="index"
>
<span>{{ item.levelName }}:</span>
<span>{{ item.minScore + "-" + item.maxScore }}</span>
</div>
</div>
</div>
</div>
</template>
<script>
import echartBar from "./echartBar.vue"
export default {
components: { echartBar },
props: {
dataView: {
type: Object,
default: () => {}
},
queryData: {
type: Object,
default: () => {}
}
},
watch: {
dataView: {
handler(newValue, oldValue) {
this.initEchartData(newValue)
},
deep: true,
immediate: true
}
},
data() {
return {
submitArr: [
{
name: "已提交人数",
value: (obj) => {
console.log(obj)
return obj.submitted || obj.submitted === 0 ? obj.submitted : "-"
}
},
{
name: "已提交人均得分",
value: (obj) => {
return obj.avg || obj.avg === 0 ? obj.avg : "-"
}
}
],
xData: [],
yData: []
}
},
methods: {
initEchartData(data) {
console.log(data)
let xData = []
data.scoreDistributions.forEach((item) => {
xData.push(item.levelName)
})
this.xData = xData
this.yData = data.scoreDistributions
}
}
}
</script>
<style lang="scss" scoped>
.left-container {
min-width: 800px;
.data-view {
display: flex;
align-items: center;
.item {
flex: 1;
height: 100px;
border-radius: 4px;
background: #f8faff;
margin-right: 16px;
padding: 16px 20px;
box-sizing: border-box;
margin-bottom: 16px;
.name {
color: #333333;
font-size: 14px;
font-weight: 400;
margin-bottom: 8px;
}
.value {
color: #1d1d1d;
font-size: 32px;
font-weight: 500;
}
}
}
.examination-result {
position: relative;
.title {
color: #333333;
font-size: 14px;
font-weight: 400;
}
.hint {
display: flex;
flex-direction: column;
align-items: flex-start;
position: absolute;
top: 52px;
right: 45px;
.item {
display: flex;
align-items: center;
color: #000000a6;
font-size: 11px;
font-weight: 400;
margin-bottom: 7px;
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!