Commit d73d9b03 by 前端

Merge branch 'SAAS+V4.55.0-0730' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.55.0-0730
2 parents ad5561c5 b613e400
Showing 34 changed files with 1770 additions and 267 deletions
......@@ -62,3 +62,15 @@ export function mergePdf(data) {
data.method = path2 + `mergePdf`
return request(data, RequestMethods.POST)
}
// 发票冲红
export function invoiceRed(data) {
data.method = 'dj.smartcarlife.api.vpt.invoiceInfo.red'
return request(data, RequestMethods.POST)
}
// 冲红管理列表
export function getInvoiceRedList(data) {
data.method = 'dj.smartcarlife.api.vpt.invoiceInfo.red.page'
return request(data)
}
import request from "./request"
const path = "dj.api.smartcarlife."
const djPath = "dj.api."
// 分页查询银企账号记录
export function getListApi(data) {
data.method = `${path}merchantBankEnterpriseAccount.listWithPage`
return request(data, "post")
}
// 渠道级联dj.api.smartcarlife.get.merchant.level
export function getMerchantLevelApi(data) {
data.method = `${djPath}smartcarlife.get.merchant.level`
return request(data, "post")
}
// 银企账号 - 添加或修改记录
export function updateBankAccount(data) {
data.method = `${path}merchantBankEnterpriseAccount.insertOrUpdate`
return request(data, "post")
}
// 银企账号 - 根据商户号查询银企账号详细信息
export function getBankById(data) {
data.method = `${path}merchantBankEnterpriseAccount.getByMerchantId`
return request(data, "post")
}
// 银企账号 - 删除
export function deleteBankAccount(data) {
data.method = `${path}merchantBankEnterpriseAccount.deleteByMerchantId`
return request(data, "post")
}
......@@ -531,7 +531,7 @@ export function getRecordTagList(data) {
return request(data, "post")
}
// 查询质检列表|侧边栏
// 查询质检列表|侧边栏
export function getQualityList(data) {
data.method = `${path2}reception.findCheckResultByBatchId`
return request(data, "post")
......@@ -571,3 +571,14 @@ export function checkProductDefineAPI(data) {
data.method = `${path2}merchantPerformanceProductDefine.deleteValid`
return request(data, "post")
}
// 查询录音标签列表
export function receptionTagPage(data) {
data.method = `dj.api.smartcarlife.reception.receptionTagPage`
return request(data, "post")
}
// 导出录音标签列表
export function receptionTagPageExport(data) {
data.method = `dj.api.smartcarlife.reception.receptionTagPageExport`
return request(data, "post")
}
......@@ -283,24 +283,31 @@ export function personalConfigImport(data) {
// 批量设置运营人员
export function shopBatchSet(data) {
data.method = 'dj.api.smartcarlife.serviceMerchant.shopOperation.setting.batch'
data.method =
"dj.api.smartcarlife.serviceMerchant.shopOperation.setting.batch"
return request(data, "post")
}
// 批量设置展业场景
export function busiBatchSet(data) {
data.method = 'dj.api.smartcarlife.serviceMerchant.BusinessDev.setting.batch'
data.method = "dj.api.smartcarlife.serviceMerchant.BusinessDev.setting.batch"
return request(data, "post")
}
// 查询地图行政区域省市区三级结构
export function getDistrictDetail(data) {
data.method = 'dj.api.smartcarlife.map.districts.details'
data.method = "dj.api.smartcarlife.map.districts.details"
return request(data)
}
// 获取嘀加设置的服务商
export function getMerService(data) {
data.method = 'dj.smartcarlife.api.merchant.dj.serviceList'
data.method = "dj.smartcarlife.api.merchant.dj.serviceList"
return request(data)
}
//日报填写标识修改
export function updateDailyReportFlag(data) {
data.method = "dj.api.smartcarlife.serviceMerchant.dailyReportFillFlag.update"
return request(data)
}
......@@ -317,7 +317,10 @@ $prefix: d2;
max-height: 200px !important;
overflow-y: scroll;
}
.el-tooltip__popper.tools-gltip {
width: 238px !important;
height: 95px !important;
}
.el-tooltip__popper.is-light {
width: 177px;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08) !important;
......
......@@ -799,6 +799,20 @@ export const rangeType = [
{ confId: 2, confValue: "按订单" }
]
// 转账管理 - 审批方式
export const approveTypeList = [
{ confId: 1, confValue: "嘀加审批" },
{ confId: 2, confValue: "企微OA审批" }
]
// 转账管理 - 审批状态
export const oaApproveStatusList = [
{ confId: 1, confValue: "审批中" },
{ confId: 2, confValue: "已通过" },
{ confId: 3, confValue: "已驳回" },
{ confId: 4, confValue: "已撤销" }
]
// 规则审核-类型
export const ruleReview_type = [
{ confId: 1, confValue: "清分" },
......@@ -1304,6 +1318,23 @@ export const InvoicingOpt = [
{ confId: "2", confValue: "红票" }
]
// 发票管理 冲红原因
export const redReasonOpt = [
{ confId: "01", confValue: "开票有误" },
{ confId: "02", confValue: "销货退回" },
{ confId: "04", confValue: "销售折让" }
]
// 发票冲红管理 红票状态
export const redCodeOpt = [
{ confId: "0000", confValue: "开票成功" },
{ confId: "6666", confValue: "未开票" },
{ confId: "7777", confValue: "开票中" },
{ confId: "4999", confValue: "申请中" },
{ confId: "5999", confValue: "审核中" },
{ confId: "9999", confValue: "开票失败" },
]
// 待付清单 数据来源
export const transferSourceOpt = [
{ confId: 1, confValue: "嘀加退款" },
......@@ -1334,7 +1365,11 @@ export const transferStatusOpt = [
{ confId: 1, confValue: "推送付款单" },
{ confId: 2, confValue: "重推付款单" }
]
export const label_businessOpt = [
{ confId: 2, confValue: "轻改" },
{ confId: 3, confValue: "权益" },
{ confId: 1, confValue: "延保" }
]
// 服务中心-长课程配置 是否启用处罚
export const punishFlagOpt = [
{ confId: "0", confValue: "否" },
......
import { baseConfig } from "@/main"
const OSS = require("ali-oss")
export default {
class GlOssApi {
constructor(params = {}) {
this.baseConfig = params.baseConfig
}
/**
* 阿里云oss sdk文件上传 dir 上传到的文件位置
* @param {*} file 文件流
* 分片上传大文件到阿里云OSS(带断点续传和重试机制)
* @param {*} file 文件流(大文件)
* @param {*} successCallback 成功回调
* @param {*} errCallBack 失败回调
* @param {*} bucketName 阿里云桶名(可以指定多个桶名)
* @param {*} dir 上传文件夹路径 譬如images
* @param {*} bucketName 桶名(可选)
* @param {*} dir 上传目录(可选)
* @param {*} partSize 分片大小(单位 KB,默认500KB)
* @param {*} maxRetries 最大重试次数(默认3次)
*/
bucketUpload(
multipartUpload(
file,
successCallback = new Function(),
errCallBack = new Function(),
bucketName = "zzl-filerepostorypublic",
dir = "image"
dir = "image",
partSize = 500, // 默认分片大小为500KB
maxRetries = 3 // 最大重试次数
) {
const fileName = file.name // 先获取上传要的资料签名
// 实例化一个上传客户端
const { baseConfig } = this
if (!baseConfig) errCallBack(new Error("初始化缺少baseConfig配置"))
const fileName = file.name
const client = new OSS({
// yourRegion填写Bucket所在地域。Region填写为oss-cn-hangzhou。
// region: "oss-cn-beijing", //我的存储是北京,可根据具体配置自行修改
// region: "oss-cn-shanghai",
// 从STS服务获取的临时访问密钥(AccessKey ID和AccessKey Secret)。)(后台接口返回)
accessKeyId: baseConfig.alyOss.accessKeyId,
accessKeySecret: baseConfig.alyOss.accessKeySecret,
// 从STS服务获取的安全令牌(SecurityToken)。
// stsToken: obj.securityToken,
// 填写Bucket名称。
bucket: baseConfig.alyOss.bucket,
endpoint: baseConfig.alyOss.endpoint
})
try {
// 为保证唯一性,可以通过uuid将文件名替换
// let uuid = uuidv4() + fileName.substring(fileName.lastIndexOf('.'))if (dir.substring(dir.length - 1, 1) !== '/') {
if (partSize < 100) {
console.error("分片大小不能小于100KB")
errCallBack(new Error("分片大小不能小于100KB"))
return
}
// 确保目录以斜杠结尾
if (!dir.endsWith("/")) {
dir += "/"
const result = client.put(dir + fileName, file)
result
.then((res) => {
console.log(res, "返回文件名和文件地址")
}
const key = dir + fileName
let retryCount = 0
let currentCheckpoint = null
const uploadWithRetry = async () => {
client
.multipartUpload(key, file, {
partSize: partSize * 1024, // 转换为字节
checkpoint: currentCheckpoint, // 使用上次的断点信息
progress: function (p, checkpoint) {
currentCheckpoint = checkpoint
console.log(`上传进度: ${p * 100}%`)
}
})
.then(async (result) => {
const size =
file.size > 1000000
? parseFloat(file.size / 1000000).toFixed(2) + "M"
: parseFloat(file.size / 1000).toFixed(2) + "KB"
console.log(result, 111111111)
let [aliyunAddress] = result.res.requestUrls
console.log(aliyunAddress, "aliyunAddress")
const sourceImage = aliyunAddress
const targetImage = "exampledir/dest.png"
await processImage(
"image/quality,Q_50",
bucketName,
result.name,
targetImage
)
successCallback({
attachment: fileName,
aliyunAddress: res.url,
aliyunAddress: decodeURIComponent(aliyunAddress).split("?")[0],
size: size
})
})
.catch((err) => {
errCallBack(err)
console.error("分片上传失败", err)
if (retryCount < maxRetries) {
retryCount++
console.log(`第${retryCount}次重试上传...`)
setTimeout(() => {
uploadWithRetry()
}, 3000) // 3秒后重试
} else {
errCallBack(err)
}
})
} catch (e) {
console.log(e)
}
const processImage = async (
processStr,
targetBucket,
sourceImage,
targetImage
) => {
const result = await client.processObjectSave(
sourceImage,
targetImage,
processStr,
targetBucket
)
console.log(result.res, "99999")
}
uploadWithRetry() // 启动上传流程
}
}
export default GlOssApi
......@@ -1325,5 +1325,52 @@ export const routerName = {
}
],
component: _import("systemConfig/downloadReportManage/index")
},
90631: {
path: "/merchantBankAccount",
name: "merchantBankAccount",
meta: {
title: "银企账号",
authId: "90631",
parentId: "906",
cache: false
},
auth: [
{
authId: "9063101",
parentId: "90631",
label: "新增银企账号",
category: "Button",
type: "primary",
handle: "handleAdd"
},
{
authId: "9063102",
parentId: "90631",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9063103",
parentId: "90631",
label: "详情",
handle: "handleDetail"
},
{
authId: "9063104",
parentId: "90631",
label: "修改",
handle: "handleEdit"
},
{
authId: "9063105",
parentId: "90631",
label: "删除",
handle: "handleDelete"
}
],
component: _import("systemConfig/merchantBankAccount/index")
}
}
......@@ -96,8 +96,53 @@ export const routerName = {
parentId: "91702",
label: "查看发票",
handle: "handleLookInvoice"
},
{
authId: "9170206",
parentId: "91702",
label: "冲红",
handle: "handleRed"
}
],
component: _import("invoiceManage/invoiceQueryList")
},
91703: {
path: "/invoiceRedManage",
name: "invoiceRedManage",
meta: {
title: "发票冲红管理",
authId: "91703",
parentId: "917",
cache: false
},
auth: [
{
authId: "9170301",
parentId: "91703",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9170302",
parentId: "91703",
label: "查看蓝票",
handle: "handleDetailBlue"
},
{
authId: "9170303",
parentId: "91703",
label: "查看红票",
handle: "handleDetailRed"
},
{
authId: "9170304",
parentId: "91703",
label: "重新冲红",
handle: "handleRed"
}
],
component: _import("invoiceManage/invoiceRedManage")
}
}
......@@ -186,8 +186,8 @@
</glsx-combi-form>
</div>
</baseDialog>
<choose-order-dialog v-if="chooseVisible"
:chooseVisible="chooseVisible"
<choose-order-dialog v-if="chooseVisible"
:chooseVisible="chooseVisible"
:infoForm="infoForm"
@chooseOrderConfirm="chooseOrderConfirm"
@dialogClose="chooseDialogClose">
......@@ -196,7 +196,7 @@
</template>
<script>
import { sceneCodeList, transferTypeList, rangeType } from '@/common/constants.js'
import { sceneCodeList, transferTypeList, rangeType, approveTypeList } from '@/common/constants.js'
import { getAmount, transferAccountsRecordAdd, getPreviousRecord } from '@api/transferAccountsManage'
import { getList } from '@api/serviceManage'
import { getListApi } from '@api/publicAccount'
......@@ -237,7 +237,8 @@ export default {
remark: '',
voucherList: [],
rangeType: 1, // 对账方式 默认是按周期
orderCodeScope: [] // 订单范围
orderCodeScope: [], // 订单范围
approveType: ''
},
oldVal: {
transferTotalAmount: ""
......@@ -314,9 +315,11 @@ export default {
// 服务商款项时 对账方式不显示 订单范围不显示 对账周期显示
this.showOrHideAttr('editFormData', '对账方式', true)
this.showOrHideAttr('editFormData', '订单范围', true)
this.showOrHideAttr('editFormData', '审批方式', true)
this.showOrHideAttr('editFormData', '对账周期', false)
// 清空已选订单范围
this.infoForm.orderCodeScope = []
this.infoForm.approveType = ''
this.infoForm.rangeType = 1
} else {
this.showOrHideAttr_transferType('editFormData', 'expenseTypeHtml', true)
......@@ -392,6 +395,7 @@ export default {
this.getPreviousRecord_Validate()
// 切换流量方将已选的订单清空
this.infoForm.orderCodeScope = []
this.infoForm.approveType = ''
}
}, {
label: '所属平台方',
......@@ -409,6 +413,16 @@ export default {
addHtml: 'rangeTypeHtml',
rules: [{ required: true, message: '请选择对账方式', trigger: 'change' }]
}, {
label: '审批方式',
name: 'approveType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'approveTypeList',
isHide: true,
rules: [{ required: true, message: '请选择审批方式', trigger: 'change' }]
}, {
label: '对账周期',
name: 'reconciliationDate',
type: 'datePicker',
......@@ -501,7 +515,8 @@ export default {
{ confId: 3, confValue: "流量费" }
],
PlatformMerchantList: [],
rangeTypeList: deepClone(rangeType)
rangeTypeList: deepClone(rangeType),
approveTypeList: deepClone(approveTypeList)
},
uploadFileList: [],
chooseVisible: false
......@@ -550,6 +565,7 @@ export default {
this.infoForm.transferTotalAmount = ''
this.infoForm.reconciliationDate = ''
this.infoForm.orderCodeScope = []
this.infoForm.approveType = ''
}
}
},
......@@ -653,6 +669,7 @@ export default {
handleMethodChange(e) {
this.showOrHideAttr('editFormData', '对账周期', e != 1)
this.showOrHideAttr('editFormData', '订单范围', e != 2)
this.showOrHideAttr('editFormData', '审批方式', e != 2)
},
formatSelected(data, all) {
......@@ -1139,6 +1156,7 @@ export default {
// 处理按订单对账参数
params.rangeType = infoForm?.rangeType
if (infoForm?.rangeType == 2) {
params.approveType = infoForm?.approveType
params.orderRefList = infoForm?.orderCodeScope?.map(val => {
return {
orderCode: val.orderCode,
......
......@@ -137,7 +137,7 @@
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { transferAccountsStatusList, transferTypeList, sceneCodeList, warningStatus, rangeType } from '@/common/constants.js'
import { transferAccountsStatusList, transferTypeList, sceneCodeList, warningStatus, rangeType, approveTypeList, oaApproveStatusList } from '@/common/constants.js'
import { transferAccountsRecordPage, transferAccountsRecordUpdateStatus, reTransfer } from '@api/transferAccountsManage'
import { rewithdraw } from '@api/withdrawalManage'
import examineDialog from './components/examineDialog'
......@@ -160,7 +160,7 @@ export default {
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
labelWidth: '120px',
searchForm: {
orderCode: '',
merchantName: '',
......@@ -178,7 +178,10 @@ export default {
createdBy: '',
createdDate: '',
rangeType: '',
refOrderCode: ''
refOrderCode: '',
approveType: '',
oaApproveStatus: '',
oaSpNo: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -288,6 +291,30 @@ export default {
name: '',
type: 'slot',
addHtml: 'orderCodeScope'
}, {
label: '审批方式',
name: 'approveType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'approveTypeList'
}, {
label: '审批状态',
name: 'oaApproveStatus',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'oaApproveStatusList'
}, {
label: '企微审批编号',
name: 'oaSpNo',
type: 'input',
maxlength: '50',
isClear: true
}],
getListApi: transferAccountsRecordPage,
tableParams: {
......@@ -490,7 +517,28 @@ export default {
formatter: (cellValue) => {
return cellValue.withdrawTradeNo ? cellValue.withdrawTradeNo : '--'
}
}
},
{
label: '审批方式',
prop: 'approveType',
width: '120px',
formatter: (cellValue) => {
return this.baseData.approveTypeList.find(item => item.confId === cellValue.approveType)?.confValue
}
},
{
label: '审批状态',
prop: 'oaApproveStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.oaApproveStatusList.find(item => item.confId === cellValue.oaApproveStatus)?.confValue || '--'
}
},
{
label: '企微审批编号',
prop: 'oaSpNo',
width: '140px',
},
]
},
baseData: {
......@@ -499,7 +547,9 @@ export default {
transferTypeList: deepClone(transferTypeList),
warningStatusList: deepClone(warningStatus),
PlatformMerchantList: [],
rangeTypeList: deepClone(rangeType)
rangeTypeList: deepClone(rangeType),
approveTypeList: deepClone(approveTypeList),
oaApproveStatusList: deepClone(oaApproveStatusList),
},
examineVisible: false,
......@@ -602,7 +652,10 @@ export default {
createdBy: '',
createdDate: '',
rangeType: '',
refOrderCode: ''
refOrderCode: '',
approveType: '',
oaApproveStatus: '',
oaSpNo: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......
......@@ -621,7 +621,8 @@ import { limitPrice } from "@/common/format"
import { applicableModelTypeList, BaseData } from "@/common/constants.js"
import { mapActions, mapMutations } from "vuex"
import { baseConfig } from "@/main"
import GlOssApi from "glsk-oss-jssdk"
// import GlOssApi from "glsk-oss-jssdk"
import GlOssApi from "@/common/oss.js"
const SESSION_NAME = `${process.env.VUE_APP_STORAGE_PREFIX}-${process.env.VUE_APP_VERSION}-info`
export default {
name: "ProductForm",
......
......@@ -2,21 +2,31 @@
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-02-24 21:48:44
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-02-27 17:02:40
* @LastEditTime: 2025-07-10 18:45:37
* @FilePath: \dj-car-life-system\src\views\goods\shelfManage\editContract.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 编辑 - 运营确认 -->
<template>
<d2-container class="edit-contract" v-loading="isLoadingGoodsCategoryConfiguration || isLoad">
<d2-container
class="edit-contract"
v-loading="isLoadingGoodsCategoryConfiguration || isLoad"
>
<!-- 基础信息 -->
<base-info :basic-info="basicInfo"></base-info>
<!-- 流量方信息 -->
<multilateralShopMerchant ref="multilateralShopMerchant" :merchants-list="merchantEditData"
@addMerchant="handleAddMerchant"></multilateralShopMerchant>
<multilateralShopMerchant
ref="multilateralShopMerchant"
:merchants-list="merchantEditData"
@addMerchant="handleAddMerchant"
></multilateralShopMerchant>
<!-- 流量方信息 - 新增 - 新增商户 -->
<add-merchant v-if="addMerVisible" :add-mer-visible="addMerVisible" @handleClose="handleAddMerchant"></add-merchant>
<add-merchant
v-if="addMerVisible"
:add-mer-visible="addMerVisible"
@handleClose="handleAddMerchant"
></add-merchant>
<!-- 上架商品及测算 -->
<goods-info ref="goodsInfo" :record-id="routeObj.id"></goods-info>
<!-- 分账配置 -->
......@@ -86,7 +96,6 @@ export default {
}
},
computed: {
...mapGetters("goodsInfoData", {
isLoadingGoodsCategoryConfiguration: "isLoadingGoodsCategoryConfiguration"
......@@ -139,7 +148,7 @@ export default {
// this.merchantEditData.push(res.createBusinessApproveMerchant)
// }
this.merchantEditData = res.createBusinessApproveMerchantList || []
console.log(this.merchantEditData, ' this.merchantEditData')
console.log(this.merchantEditData, " this.merchantEditData")
this.SET_DATA({
name: "shelfUpdateMerchant",
data: {
......@@ -156,7 +165,8 @@ export default {
// 返回测算数据
const divisionSubmitResult = await this.$refs.divisionConfig.submit()
const financeSubmitResult = await this.$refs.financeConfig.submit()
const merchantSubmitResult = await this.$refs.multilateralShopMerchant.submit()
const merchantSubmitResult =
await this.$refs.multilateralShopMerchant.submit()
if (
!merchantSubmitResult ||
!divisionSubmitResult ||
......@@ -181,10 +191,11 @@ export default {
if (confirmType == "save") {
const divisionSubmitResult = await this.$refs.divisionConfig.submit()
const financeSubmitResult = await this.$refs.financeConfig.submit()
const merchantSubmitResult = await this.$refs.multilateralShopMerchant.submit()
const merchantSubmitResult =
await this.$refs.multilateralShopMerchant.submit()
const goodsInfoSubmitResult = await this.$refs.goodsInfo.submit()
// return console.log("goodsInfoSubmitResult", goodsInfoSubmitResult)
console.log(merchantSubmitResult, 'merchantSubmitResult')
console.log(merchantSubmitResult, "merchantSubmitResult")
if (
!merchantSubmitResult ||
!divisionSubmitResult ||
......
<template>
<d2-dialog :title="title" :is-visible="redVisible" class="redDialog" width="680px" @closeDialog="handleRedClose" @confirmDialog="handleRedConfirm">
<div class="red-box">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="180px" default-width="400px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editForm" :form-data="editFormData" :form-rules="formRules"></glsx-combi-form>
</div>
</d2-dialog>
</template>
<script>
import { deepClone } from '@/common/util'
import { redReasonOpt } from "@/common/constants.js"
import { invoiceRed } from "@api/invoiceManage"
export default {
name: 'RedDialog',
props: {
redVisible: {
type: Boolean,
default: false
},
redInfo: {
type: Object,
default: () => { }
}
},
data() {
//这里存放数据
return {
title: '冲红',
isBlock: true,
editChildRef: 'editChildRef',
editForm: {
reason: ''
},
formRules: {
reason: [{ required: true, message: '请选择冲红原因', trigger: 'change' }]
},
editFormData: [{
label: "数电票号码",
name: "electronicInvoiceNo",
type: 'showTxt'
}, {
label: "原发票价税合计金额",
name: "amountWithTax",
type: 'showTxt'
}, {
label: "原发票金额(不含税)",
name: "noTaxAmount",
type: 'showTxt'
}, {
label: "原发票税额",
name: "taxAmount",
type: 'showTxt'
}, {
label: "剩余可冲红金额",
name: "noTaxAmount",
type: 'showTxt'
}, {
label: "剩余可冲红税额",
name: "taxAmount",
type: 'showTxt'
}, {
label: "冲红原因",
name: "reason",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "redReasonOpt"
}],
baseData: {
redReasonOpt: deepClone(redReasonOpt)
}
}
},
methods: {
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 (
item.type === "select" &&
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)
}
}
})
}
},
handleRedClose() {
this.$emit('handleRedClose')
},
handleRedConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
this.$confirm('请确认是否要执行当前操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.loading = true
const params = {
invoiceReqSerialNo: this.redInfo.invoiceReqSerialNo,
reason: this.editForm.reason
}
invoiceRed(params).then(res => {
this.notice.okTips('冲红成功')
this.$emit('handleRedClose', true)
})
}).catch(err => {
console.log(err)
}).finally(() => {
this.loading = false
})
}
})
}
},
mounted() {
this.editForm = deepClone(this.redInfo)
this.getOptionsList('editFormData', false)
}
};
</script>
<style lang='scss' scoped>
</style>
......@@ -67,7 +67,11 @@ export default {
placeholder: String,
startPlaceholder: String,
endPlaceholder: String,
infinity: Boolean
infinity: Boolean,
regRuleStr: {
type: String,
default: 'priceReg'
}
},
watch: {
displayValue(val) {
......@@ -81,12 +85,12 @@ export default {
},
methods: {
handleStartInput(event) {
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2)
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2, '', '', this.regRuleStr)
this.oldVal.startInput = this.userInput[0]
},
handleEndInput(event) {
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2)
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2, '', '', this.regRuleStr)
this.oldVal.endInput = this.userInput[1]
},
handleClickIcon(event) {
......@@ -128,6 +132,12 @@ export default {
contrastValue() {
const val = this.userInput
if (Array.isArray(val)) {
if(val[0] == '-') {
val[0] = null
}
if(val[1] == '-') {
val[1] = null
}
if (+val[0] > +val[1]) {
val[1] = null
this.tipsShow = true
......
......@@ -14,6 +14,7 @@
<div slot="invoiceAmountHtml">
<input-range start-placeholder="最小金额"
end-placeholder="最大金额"
regRuleStr="priceReg_negative_input"
:display-value="searchForm.invoiceAmount"></input-range>
</div>
</d2-search>
......@@ -38,9 +39,17 @@
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9170204']" />
</span>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9170205']" />
</span>
<span style="margin-right: 10px" v-if="['NOT_RED','RED_FAIL'].includes(scope.scope.redFlag) && scope.scope.invoiceType == '1'">
<auth-button :data="scope.scope" :show-btn-ids="['9170206']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
......@@ -49,6 +58,8 @@
v-if="detailVisible"
:params-obj="recordInfo"
@dialogClose="closeDetailDialog" />
<!-- 冲红 -->
<RedDialog :redVisible="redVisible" v-if="redVisible" :redInfo="redInfo" @handleRedClose="handleRedClose"></RedDialog>
</div>
</template>
......@@ -64,11 +75,13 @@ import {
import inputRange from './components/inputRange'
// import refetchDialog from './components/refetchDialog'
import invoiceQueryDetailDialog from './components/invoiceQueryDetailDialog'
import RedDialog from './components/RedDialog'
export default {
name: 'InvoiceQueryList',
components: {
inputRange,
invoiceQueryDetailDialog
invoiceQueryDetailDialog,
RedDialog
},
data() {
return {
......@@ -86,7 +99,8 @@ export default {
bizOrderCode: '',
bizTradeNo: '',
buyerTaxpayerNum: '',
invoiceAmount: []
invoiceAmount: [],
invoiceType: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -173,6 +187,15 @@ export default {
label: '价税合计金额',
name: 'invoiceAmount',
addHtml: "invoiceAmountHtml"
}, {
label: "开票类型",
name: "invoiceType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "InvoicingOpt"
}],
getListApi: invoiceInfoPage,
tableParams: {
......@@ -247,10 +270,6 @@ export default {
return this.baseData.invalidFlagOpt.find(item => item.confId === cellValue.invalidFlag)?.confValue
}
}, {
label: "开票人",
prop: "drawerName",
width: "120"
}, {
label: '开票类型',
prop: 'invoiceType',
width: '100px',
......@@ -258,6 +277,10 @@ export default {
return this.baseData.InvoicingOpt.find(item => item.confId === cellValue.invoiceType)?.confValue
}
}, {
label: "开票人",
prop: "drawerName",
width: "120"
}, {
label: '二维码来源',
prop: 'createdSource',
width: '100px',
......@@ -289,7 +312,9 @@ export default {
InvoicingOpt: deepClone(InvoicingOpt)
},
recordInfo: null,
detailVisible: false
detailVisible: false,
redVisible: false,
redInfo: {}
}
},
computed: {
......@@ -375,7 +400,8 @@ export default {
bizOrderCode: '',
bizTradeNo: '',
buyerTaxpayerNum: '',
invoiceAmount: []
invoiceAmount: [],
invoiceType: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......@@ -472,6 +498,17 @@ export default {
this.detailVisible = !this.detailVisible
},
handleRedClose(isRefresh = false) {
this.redVisible = !this.redVisible
isRefresh && this.handleReset()
},
// 冲红
handleRed(row) {
this.redInfo = row
this.handleRedClose()
},
closeDetailDialog() {
this.detailVisible = !this.detailVisible
this.$refs.recordTable.refreshTable(false, true)
......
<!-- 发票查询 - 列表 -->
<template>
<div>
<d2-container>
<div class="header" slot="header" style="padding: 20px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="labelWidth" :form-data="showFormData"></d2-search>
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="redTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px" v-if="scope.scope.blueInvoiceDownloadUrl">
<auth-button :data="scope.scope" :show-btn-ids="['9170302']" />
</span>
<span style="margin-right: 10px" v-if="scope.scope.redInvoiceDownloadUrl">
<auth-button :data="scope.scope" :show-btn-ids="['9170303']" />
</span>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9170304']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
<!-- 冲红 -->
<RedDialog :redVisible="redVisible" v-if="redVisible" :redInfo="redInfo" @handleRedClose="handleRedClose"></RedDialog>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { redCodeOpt } from "@/common/constants.js"
import {
getInvoiceRedList,
downloadZip,
mergePdf
} from "@api/invoiceManage"
import RedDialog from './components/RedDialog'
export default {
name: 'invoiceRedManage',
components: {
RedDialog
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '120px',
searchForm: {
electronicInvoiceNo: '',
pushData: [],
code: '',
tradeNo: '',
buyerName: ''
},
searchFormSearch: {},
showFormData: [{
label: '蓝字发票号码',
name: 'electronicInvoiceNo',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '填开日期',
name: 'pushData',
type: 'datePicker',
isClear: true,
pickerOptions: 'rangePickerOptions'
}, {
label: "状态",
name: "code",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "redCodeOpt"
}, {
label: '主订单号',
name: 'tradeNo',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '购买方名称',
name: 'buyerName',
type: 'input',
maxlength: '50',
isClear: true
}],
getListApi: getInvoiceRedList,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
mutiSelectUniqueKey: 'id',
mutiSelectName: 'transferAccounts',
tableOption: { width: '200px' },
tableColumns: [{
label: '状态',
prop: 'code',
width: '120px',
formatter: (cellValue) => {
return this.baseData.redCodeOpt.find(item => item.confId === cellValue.code)?.confValue
},
className: (cellValue) => {
return {
'9999': 'redSpot',
'0000': 'greenSpot',
'7777': "yellowSpot",
'4999': "ashSpot",
'5999': "deepBlueSpot"
}[cellValue.code]
}
}, {
label: '数电票号码',
prop: 'electronicInvoiceNo',
width: '200px'
}, {
label: '填开日期',
prop: 'pushDate',
width: '180px'
}, {
label: '购买方名称',
prop: 'buyerName'
},
{
label: "主订单号",
prop: "tradeNo",
width: "200"
}, {
label: "失败原因",
prop: "failReason"
}]
},
baseData: {
redCodeOpt: deepClone(redCodeOpt),
},
recordInfo: null,
redVisible: false,
redInfo: {}
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
getParams() {
var params = deepClone(this.searchForm)
const dateFormatList = [{
attr: 'pushData',
startAttr: 'pushDateStart',
endAttr: 'pushDateEnd',
}]
dateFormatList.forEach(item => {
if (params[item.attr] && params[item.attr].length) {
params[item.startAttr] = Util.dateFormate(params[item.attr][0], 'YYYY-MM-DD 00:00:00')
params[item.endAttr] = Util.dateFormate(params[item.attr][1], 'YYYY-MM-DD 23:59:59')
delete params[item.attr]
}
})
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = this.getParams()
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (
this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部'
) {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(
this.showFormData[index],
'optionList',
this.baseData[item.optionsName]
)
}
})
},
handleSearch() {
this.$refs.redTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
electronicInvoiceNo: '',
pushData: [],
code: '',
tradeNo: '',
buyerName: ''
}
this.$refs.redTable.refreshTable(false, true)
},
handleExport() {
var params = this.getParams()
// 去除为null的值
for (const key in params) {
if (params[key] === null || params[key] === '' || params[key].length == 0) {
delete params[key]
}
}
params.method = 'dj.smartcarlife.api.vpt.invoiceInfo.red.export.async'
const list = [
...this.dowloadList,
{
name: '发票冲红查询导出',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
handleRedClose() {
this.redVisible = !this.redVisible
},
// 冲红
handleRed(row) {
console.log(row)
this.redInfo = row
this.handleRedClose()
},
// 查看蓝票
handleDetailBlue(row) {
if (row.blueInvoiceDownloadUrl) {
window.open(row.blueInvoiceDownloadUrl)
}
},
// 查看红票
handleDetailRed(row) {
if (row.redInvoiceDownloadUrl) {
window.open(row.redInvoiceDownloadUrl)
}
}
}
}
</script>
<style lang="scss" scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
.tableHeaderBtn {
margin-left: 10px;
}
.importResult-1 {
width: 100%;
height: 40px;
background: #fff3e8;
color: #ff8d1a;
font-size: 14px;
display: flex;
align-items: center; /* 垂直居中 */
.importResult-1-font {
margin-left: 20px;
}
}
.importResult-2 {
width: 100%;
height: 40px;
background: #d4deef;
color: #2a58ad;
font-size: 14px;
display: flex;
align-items: center; /* 垂直居中 */
.importResult-2-font {
margin-left: 20px;
}
}
</style>
......@@ -30,38 +30,30 @@
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<template slot="fileUrl" slot-scope="scope">
<template slot="recordingUrl" slot-scope="scope">
<div
class="audio"
@click="play(scope.scope.fileUrl)"
v-if="scope.scope.fileUrl"
@click="play(scope.scope.recordingUrl)"
v-if="scope.scope.recordingUrl"
>
{{ scope.scope.fileUrl }}
{{ scope.scope.recordingUrl }}
</div>
</template>
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9121801']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
</template>
<script>
import {
getBrandList,
findAllLevelList,
getSceneData,
sceneExport
} from "@/api/scene.js"
import { outputValue_businessOpt } from "@/common/constants.js"
import { receptionTagPage, receptionTagPageExport } from "@/api/resident.js"
import { listShop4sByRef } from "@api/merchant"
import { getBrandList } from "@/api/scene.js"
import { label_businessOpt } from "@/common/constants.js"
import { Util, deepClone } from "@/common/util"
export default {
data() {
return {
getListApi: getSceneData,
getListApi: receptionTagPage,
tableParams: {
listName: "list",
tableOption: {
......@@ -70,27 +62,26 @@ export default {
tableColumns: [
{
label: "驻店名称",
prop: "yqMerchantName"
prop: "staffName"
},
{
label: "门店名称",
prop: "storeBrand"
prop: "merchantName"
},
{
label: "品牌",
prop: "storeBrand"
prop: "oneCarBrand"
},
{
label: "录音链接",
// prop: "fileUrl"
addHtml: "fileUrl",
addHtml: "recordingUrl",
width: "150px"
},
{
label: "质检日期",
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD")
return cellValue.checkDate
? Util.dateFormate(cellValue.checkDate, "YYYY-MM-DD")
: "-"
}
},
......@@ -102,7 +93,9 @@ export default {
label: "业务场景",
prop: "bussinessType",
formatter(row) {
let result = { 1: "会员权益/升级", 2: "轻改" }[row.bussinessType]
let result = { 1: "延保", 2: "轻改", 3: "权益" }[
row.bussinessType
]
return result || "-"
}
},
......@@ -118,77 +111,61 @@ export default {
},
{
label: "身份介绍",
prop: "startTime"
prop: "sfjs"
},
{
label: "服务意识",
prop: "startTime"
prop: "fwys"
},
{
label: "话题介入",
prop: "startTime"
prop: "htjr"
},
{
label: "需求分析",
prop: "startTime"
prop: "sqfx"
},
{
label: "专业知识",
prop: "startTime"
prop: "zyzs"
},
{
label: "场景塑造",
prop: "startTime"
prop: "cjsz"
},
{
label: "案例展示",
prop: "startTime"
prop: "alzs"
},
{
label: "攻防能力",
prop: "startTime"
prop: "gfnl"
},
{
label: "攻防能力",
prop: "startTime"
label: "逼单能力",
prop: "bdnl"
}
]
},
props: {
value: "code",
label: "directoryName",
children: "sceneMarketLevelTwoList"
},
searchFormSearch: {},
searchForm: {
businessCodeArr: [],
storeName: "",
reportDate: [],
storeBrandId: "",
createdBy: ""
orderFinishFlag: true,
staffName: "",
merchantId: "",
checkType: "",
checkStart: [],
carBrandId: ""
},
showFormData: [
{
label: "驻店名称",
name: "storeName",
name: "staffName",
type: "input",
isClear: true
},
// {
// label: "主营品牌",
// name: "storeBrandId",
// type: "select",
// // multiple: true,
// isClear: true,
// optionList: [],
// optionId: "id",
// optionLabel: "label",
// optionsName: "brandList"
// },
{
label: "业务场景",
name: "businessType",
name: "checkType",
type: "select",
isClear: true,
optionList: [],
......@@ -198,15 +175,17 @@ export default {
},
{
label: "门店",
name: "storeName",
type: "input",
isClear: true
name: "merchantId",
type: "select",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "storeIdList"
},
{
label: "品牌",
name: "storeBrandId",
name: "carBrandId",
type: "select",
// multiple: true,
isClear: true,
collapseTags: true,
optionList: [],
......@@ -217,7 +196,7 @@ export default {
{
label: "质检时间",
name: "reportDate",
name: "checkStart",
type: "datePicker",
isClear: false,
pickerOptions: "rangePickerOptions_30day2"
......@@ -234,7 +213,7 @@ export default {
}
],
baseData: {
businessTypeOpt: deepClone(outputValue_businessOpt),
businessTypeOpt: deepClone(label_businessOpt),
receptionStatusOpt: [
{
confId: 0,
......@@ -245,7 +224,8 @@ export default {
confValue: "未成交"
}
],
brandList: []
brandList: [],
storeIdList: []
}
}
},
......@@ -266,23 +246,18 @@ export default {
console.log(this.searchForm)
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.businessCode =
this.searchFormSearch.businessCodeArr.length > 1
? this.searchFormSearch.businessCodeArr[1]
: ""
if (this.searchForm?.reportDate?.length) {
let [startDate, endDate] = this.searchForm.reportDate
this.searchFormSearch.startDate = Util.dateFormate(
if (this.searchForm?.checkStart?.length) {
let [startDate, endDate] = this.searchForm.checkStart
this.searchFormSearch.checkStartTime = Util.dateFormate(
startDate,
"YYYY-MM-DD"
)
this.searchFormSearch.endDate = Util.dateFormate(
this.searchFormSearch.checkEndTime = Util.dateFormate(
endDate,
"YYYY-MM-DD"
)
}
delete this.searchFormSearch.reportDate
delete this.searchFormSearch.businessCodeArr
delete this.searchFormSearch.checkStart
resolve()
})
},
......@@ -297,7 +272,7 @@ export default {
async exportTable() {
try {
await this.beforeSearchFn()
const res = await sceneExport({
const res = await receptionTagPageExport({
...this.searchFormSearch
})
if (res) window.open(res)
......@@ -307,7 +282,7 @@ export default {
},
initSelect() {
// 使用 Promise.all 处理多个异步任务,并捕获所有可能的错误
Promise.allSettled([this.getBrandList()])
Promise.allSettled([this.getBrandList(), this.getServiceStore()])
.then((results) => {
// 检查每个任务的结果
results.forEach((result, index) => {
......@@ -324,11 +299,11 @@ export default {
})
},
getBusinessTypeList() {
getServiceStore() {
return new Promise((resolve, reject) => {
findAllLevelList({})
listShop4sByRef({})
.then((res) => {
this.baseData.businessTypeList = res
this.baseData.storeIdList = res || []
resolve(res) // 返回结果以便主流程感知
})
.catch((err) => {
......
<template>
<div class="container">
<div class="left">
<div class="title-type">
<div
:class="['type', titleActiveIndex == index ? 'active' : '']"
v-for="(item, index) in titleTypeList"
:key="index"
@click="handleClick(index)"
>
{{ item.title }}
</div>
</div>
<div class="content gl-form-page">
<el-form :inline="true" :model="cousrFrom" class="form-inline">
<el-form-item>
<el-input
prefix-icon="el-icon-search"
v-model="cousrFrom.user"
placeholder="课程/标签搜索"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="search" size="small"
>查询</el-button
>
<el-button @click="resetForm" size="small">重置</el-button>
</el-form-item>
</el-form>
<el-checkbox-group v-model="checkedCities">
<el-checkbox v-for="city in cityOptions" :label="city" :key="city">
<div class="title">问界延保+安心包套餐培训视频(含考核)</div>
<el-tooltip
effect="light"
placement="top"
popper-class="tools-gltip"
>
<div slot="content" class="process-info">
<div>学习进度:<span>已完成</span></div>
<div>考核成绩:<span>80分</span></div>
<div>完成时间:<span>2025-06-30 16:30:05</span></div>
</div>
<div class="status orange">已完成</div>
</el-tooltip>
</el-checkbox>
</el-checkbox-group>
</div>
</div>
<div class="right">
<div class="title-type">
<div class="select">已选课程</div>
<div class="time">共3节 75min</div>
</div>
<div class="reminder">
<img
class="error-circle"
src="../../images/error-circle.png"
/>提示:总课程时长建议< 60 min
</div>
<div class="select-list">
<div class="select-item" v-for="i in 20">
<div class="item-content">
问界销售异议处理问界销售异议处理问界销售异议处理-质量异议(含考核)<span
class="item-time"
>25min</span
>
</div>
<div class="del">删除</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "allocation",
data() {
return {
cousrFrom: {
user: ""
},
checkedCities: [],
titleActiveIndex: 0,
titleTypeList: [{ title: "推荐课程" }, { title: "自选课程" }],
cityOptions: ["上海", "北京", "广州", "深圳"]
}
},
methods: {
handleClick(index) {
this.titleActiveIndex = index
},
resetForm() {},
search() {}
}
}
</script>
<style scoped lang="scss">
.container {
display: flex;
align-content: center;
.left {
width: 383px;
height: 468px;
border: 1px solid #e5e5e5;
}
.right,
.left {
width: 383px;
height: 468px;
border: 1px solid #e5e5e5;
}
.right {
margin-left: 20px;
.title-type {
display: flex;
align-items: center;
justify-content: space-between;
height: 40px;
box-sizing: border-box;
padding: 10px 16px;
border-bottom: 1px solid #e5e5e5;
background: #f5f6fa;
.select {
color: #333333;
font-size: 14px;
}
.time {
color: #666666;
font-size: 14px;
}
}
.reminder {
height: 32px;
display: flex;
align-items: center;
padding: 6px 11px;
box-sizing: border-box;
color: #666666;
font-size: 12px;
font-weight: 400;
background: #fef4e8;
border-bottom: 1px solid #e5e5e5;
.error-circle {
width: 14px;
height: 14px;
margin-right: 8px;
}
}
.select-list {
height: 365px;
overflow-y: auto;
overflow-x: hidden;
.select-item {
display: flex;
align-items: center;
border-bottom: 1px solid #e5e5e5;
.item-content {
color: #333333;
font-size: 14px;
line-height: 20px;
padding: 14px 16px;
white-space: wrap;
border-right: 1px solid #e5e5e5;
}
.item-time {
font-size: 12px;
color: #666666;
}
.del {
padding: 14px 18px;
color: #2a58ad;
font-size: 14px;
white-space: nowrap;
}
}
}
}
.left {
.title-type {
display: flex;
align-items: center;
height: 40px;
padding: 0px 16px;
border-bottom: 1px solid #e5e5e5;
background: #f5f6fa;
.type {
padding: 10px;
line-height: 20px;
color: #666666;
font-size: 14px;
margin-right: 10px;
cursor: pointer;
}
.active {
color: #2a58ad;
border-bottom: 2px solid #2a58ad;
}
}
.content {
padding: 16px 7px 16px 16px;
}
}
.gl-form-page {
.form-inline {
margin-bottom: 16px;
}
.el-form-item__content {
height: 32px;
}
.el-form .el-button {
width: 52px;
height: 32px;
}
::v-deep {
.el-checkbox-group {
height: 365px;
overflow-y: auto;
overflow-x: hidden;
}
.el-checkbox {
margin-right: 0px;
display: flex;
align-items: center;
margin-bottom: 16px;
}
.el-checkbox__label {
display: flex;
align-items: center;
color: #333333;
font-size: 14px;
.title {
width: 268px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.status {
padding: 2px 8px;
font-size: 12px;
font-weight: 500;
border-radius: 2px;
}
.orange {
color: #f59619;
border: 1px solid #f59619;
}
.green {
color: #2cca74;
border: 1px solid #2cca74;
}
}
}
}
}
.tools-gltip {
width: 238px !important;
height: 95px !important;
background: #fff;
.process-info {
width: 238px;
height: 94px;
color: #666666;
font-size: 14px;
div {
margin-bottom: 8px;
span {
color: #333333;
}
}
}
}
</style>
<!-- 配置课程 -->
<template>
<div class="configureCourse">
<div class="left-wrap">
<div class="header">
<img class="staff-icon" src="../../images/staff-icon.png" alt="" />
<div class="title">
员工列表
<div class="num">共7人,已配置1人</div>
<div class="configureCourse-wrap">
<div class="configureCourse">
<div class="left-wrap">
<div class="header">
<img class="staff-icon" src="../../images/staff-icon.png" alt="" />
<div class="title">
员工列表
<div class="num">共7人,已配置1人</div>
</div>
</div>
</div>
<div class="staff-list">
<div
v-for="(item, index) in staffList"
:key="item.id"
:class="['staff-item', staffIndex == index ? 'active' : '']"
@click="handleClick(index)"
>
{{ item.name }}
<div class="config" v-if="item.isConfig">已配置</div>
<div class="staff-list">
<div
v-for="(item, index) in staffList"
:key="item.id"
:class="['staff-item', staffIndex == index ? 'active' : '']"
@click="handleClick(index)"
>
{{ item.name }}
<div class="config" v-if="item.isConfig">已配置</div>
</div>
</div>
</div>
</div>
<div class="right-wrap">
<div class="nav-tabs">
<div
:class="['nav-item', activeName == index ? 'active' : '']"
v-for="(item, index) in tabPaneList"
:key="index"
@click="handleTabClick(index)"
>
{{ item.label }}
<div class="right-wrap">
<div class="nav-tabs">
<div
:class="['nav-item', activeName == index ? 'active' : '']"
v-for="(item, index) in tabPaneList"
:key="index"
@click="handleTabClick(index)"
>
{{ item.label }}
</div>
</div>
<components :is="tabName"></components>
</div>
<components :is="tabName"></components>
</div>
<div class="end-configuration">结束配置</div>
</div>
</template>
<script>
......@@ -54,7 +57,7 @@ export default {
label: "课程配置"
}
],
tabName: "staffDetail",
tabName: "couseAllocation",
staffList: [
{
name: "王小虎",
......@@ -96,12 +99,15 @@ export default {
</script>
<style lang="scss" scoped>
.configureCourse {
height: calc(100vh - 190px);
display: flex;
margin: 0 20px;
margin-bottom: 16px;
.left-wrap {
min-width: 200px;
width: 200px;
height: 988px;
height: 100%;
min-height: 760px;
background: #ffffff;
margin-right: 16px;
.header {
......@@ -156,7 +162,10 @@ export default {
}
}
.right-wrap {
min-height: 760px;
width: calc(100% - 216px);
min-width: 984px;
overflow-x: auto;
.nav-tabs {
display: flex;
align-items: center;
......@@ -185,4 +194,16 @@ export default {
// background: #ffffff;
}
}
.end-configuration {
width: 120px;
height: 36px;
border-radius: 4px;
background: #2a58ad;
color: #ffffff;
font-size: 16px;
font-weight: 400;
text-align: center;
line-height: 36px;
margin: 0 auto;
}
</style>
<!-- 课程配置 -->
<template>
<div class="couseAllocation">
<div class="header">AI导师建议</div>
<div class="ai-suggest">
驻店销售个人产值持续提升,但转化率连续两周低于标准,反映驻店人员接待能力明显下降。主要原因包括:新车型上市,驻店销售对新车谈客技巧掌握不足;谈客过程中身份介绍、场景塑造、案例展示及逼单等核心能力存在短板。
建议: ① 紧急配置新车型销售专项课程,强化产品知识与谈客话术; ②
针对薄弱能力开展分组实战演练,结合真实案例进行情景模拟训练,提升谈客转化率。
</div>
<div class="header">课程配置</div>
<div class="allocation">
<glsx-combi-form
isBlock="true"
class="form-container"
ref="formRef"
label-width="138px"
default-width="400px"
:form-ref="handleFormRef"
:form-obj="allocationForm"
:form-data="allocationFormData"
:form-rules="formRules"
>
<div slot="allocationHtml" slot-scope="scope">
<curricula-variable></curricula-variable>
</div>
</glsx-combi-form>
</div>
<div class="foot-btns">
<div class="btn reset">重置</div>
<div class="btn multiple" @click="handleMultiple">多人配置</div>
<div class="btn submit">提交本员工配置</div>
</div>
<multipleDialog
:multipleVisible="multipleVisible"
v-if="multipleVisible"
@dialogClose="handleCloseDialog"
></multipleDialog>
</div>
</template>
<script>
import curriculaVariable from "./allocation"
import multipleDialog from "./multiple"
export default {
components: {
curriculaVariable,
multipleDialog
},
data() {
return {
multipleVisible: false,
allocationForm: {
type: 1,
followNotes: "",
title: "",
studyTime: "1"
},
handleFormRef: "handleFormRef",
formRules: {
type: [
{ required: true, message: "请选择业务场景", trigger: "change" }
],
studyTime: [
{ required: true, message: "请选择业务场景", trigger: "change" }
],
title: [{ required: true, message: "请输入标题", trigger: "blur" }]
},
allocationFormData: [
{
label: "学习完成时间:",
name: "studyTime",
type: "radio",
optionList: [
{
confLabel: "本周内",
confId: 1
}
],
optionId: "confId",
optionLabel: "confLabel"
},
{
label: "处罚方式:",
name: "type",
type: "radio",
optionList: [
{
confLabel: "不处罚",
confId: 1
},
{
confLabel: "限制录单",
confId: 2
}
],
optionId: "confId",
optionLabel: "confLabel",
handleRadioChange: (val) => {
this.tmplSelectList = []
setTimeout(() => {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate(
"fieldIds"
)
}, 800)
}
},
{
label: "配置课程:",
type: "slot",
addHtml: "allocationHtml"
},
{
label: "学习任务标题:",
name: "title",
type: "input"
}
]
}
},
methods: {
handleMultiple() {
this.multipleVisible = true
},
handleCloseDialog() {
this.multipleVisible = false
}
}
}
</script>
<style lang="scss" scoped>
.couseAllocation {
background: #fff;
height: calc(100% - 45px);
overflow-y: auto;
overflow-x: hidden;
.header {
color: #111111;
font-size: 16px;
font-weight: 500;
padding: 8px 20px;
border-bottom: 1px solid #e5e5e5;
}
.ai-suggest {
margin: 20px 40px;
padding: 12px 20px;
background: #f5f6fa;
border-radius: 2px;
}
.allocation {
background: #fff;
padding: 20px 20px 0;
}
.foot-btns {
display: flex;
align-items: center;
margin: 0 auto;
justify-content: center;
padding: 20px 0;
.btn {
padding: 6px 28px;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
}
.reset {
background: #e8e8e8;
color: #666666;
}
.multiple {
background: #dfe6f3;
color: #2a58ad;
margin: 0 16px;
}
.submit {
background: #2a58ad;
color: #ffffff;
}
}
}
</style>
......@@ -24,17 +24,17 @@
>
</div>
<div class="couse-content">
<div class="content-item" v-for="item in 10" :key="item">
<div class="name">月产值</div>
<div class="value"><30万</div>
<div class="content-item" v-for="item in couseData" :key="item">
<div class="name">{{ item.title }}</div>
<div class="value">{{ item.rate }}</div>
<div class="configuration">
<div class="item">
<div>可配置</div>
<div class="number">4家</div>
<div class="number">{{ item.configNum }}家</div>
</div>
<div class="item">
<div>可配置</div>
<div class="number">4家</div>
<div>已配置</div>
<div class="number">{{ item.readyNum }}家</div>
</div>
</div>
<div class="btns">
......@@ -59,7 +59,16 @@ export default {
data() {
return {
activeIndex: 0,
customVisible: false
customVisible: false,
couseData: [
{
title: "月产值",
rate: "<30万",
configNum: 3,
readyNum: 4,
id: 1
}
]
}
},
methods: {
......@@ -72,6 +81,7 @@ export default {
handleDetail(row) {
console.log(1111)
row.activeName = "indicatorInfo"
row.pageId = row.id
this.$emit("openWindow", row)
},
handleClick(index) {
......
......@@ -2,7 +2,7 @@
<d2-container class="customer-tags">
<div class="d2-container-content">
<d2-table-header title="门店列表">
<el-button size="small" type="primary" @click="exportTable">
<el-button size="small" type="primary" @click="handleBatch">
批量配课
</el-button>
</d2-table-header>
......@@ -49,7 +49,10 @@ export default {
getListApi: studyPage,
// 表格参数
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
mutiSelectUniqueKey: "id",
mutiSelectName: "indicatorIndex",
tableOption: {
width: "100"
},
......@@ -160,60 +163,14 @@ export default {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
async exportTable() {
await this.beforeSearchFn()
// console.log(params)
let params = this.searchFormSearch
params.method = 'dj.api.smartcarlife.study.punish.list.export'
const list = [
...this.dowloadList,
{
name: '处罚名单',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
// try {
// await this.beforeSearchFn()
// const res = await studyExport({
// ...this.searchFormSearch
// })
// console.log(res)
// if (res) window.open(res)
// } catch (error) {
// if (error) this.$message.error(error)
// }
handleBatch() {
let selectedData = []
if (this.$refs.table.mutiSelectArr.indicatorIndex) {
selectedData = this.$refs.table.mutiSelectArr.indicatorIndex
}
console.log(selectedData)
},
// getServiceStore() {
// listShop4sByRef({}).then((res) => {
// res ||= []
// this.showFormData.forEach((item, index) => {
// if (item.type === "select" && item.name == "merchantId") {
// this.$set(this.showFormData[index], "optionList", [
// {
// merchantName: "全部",
// merchantId: ""
// },
// ...res
// ])
// }
// })
// })
// },
// async getStudyPage() {
// try {
// await this.beforeSearchFn()
// const res = await studyPage({
// ...this.searchFormSearch
// })
// console.log(res)
// this.staticData = res || {}
// } catch (error) {
// if (error) this.$message.error(error)
// }
// },
}
}
</script>
......
<!-- 多人配置 -->
<template>
<div class="multiple-dialog">
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleConfirm"
@closeDialog="handleClose"
>
<glsx-combi-form
label-width="160px"
default-width="400px"
:form-obj="multipleForm"
:form-data="multipleFormData"
:form-rules="infoRules"
>
<template slot="multiple" slot-scope="scope">
<el-checkbox v-model="checkAll" @change="handleCheckAllChange"
>全选</el-checkbox
>
<div class="staff-list">
<div
:class="['staff-item', item.active ? 'active' : '']"
v-for="(item, index) in staffList"
:key="index"
@click="item.active = !item.active"
>
{{ item.text }}
</div>
</div>
</template>
</glsx-combi-form>
</baseDialog>
</div>
</template>
<script>
export default {
props: {
multipleVisible: {
type: Boolean,
default: false
}
},
computed: {
visible: {
get() {
return this.multipleVisible
},
set(newVal) {
this.$emit("dialogClose", {
flag: newVal,
attrName: "multipleVisible"
})
}
}
},
data() {
return {
dialogConfig: {
title: "多人配置",
width: "720px"
},
checkAll: true,
infoRules: {
refundType: [
{
required: true,
message: "请选择退款类型",
trigger: "blur"
}
]
},
multipleForm: {},
multipleFormData: [
{
label: "本次课程配置同步给:",
name: "multiple",
addHtml: "multiple"
}
],
staffList: [
{
text: "杨婷瑶",
value: 1,
active: true
},
{
text: "魏小敏",
value: 2,
active: false
},
{
text: "侯裕",
value: 3,
active: false
},
{
text: "杨婷瑶",
value: 1,
active: true
},
{
text: "魏小敏",
value: 2,
active: false
},
{
text: "侯裕",
value: 3,
active: false
},
{
text: "杨婷瑶",
value: 1,
active: true
},
{
text: "魏小敏",
value: 2,
active: false
},
{
text: "侯裕",
value: 3,
active: false
},
{
text: "杨婷瑶",
value: 1,
active: true
},
{
text: "魏小敏",
value: 2,
active: false
},
{
text: "侯裕",
value: 3,
active: false
}
]
}
},
methods: {
handleCheckAllChange() {
this.staffList.forEach((item) => {
item.active = this.checkAll
})
},
handleClose() {
this.visible = false
},
handleConfirm() {
this.visible = false
}
}
}
</script>
<style scoped lang="scss">
.staff-list {
display: flex;
align-items: center;
margin-top: 5px;
flex-wrap: wrap;
width: 480px;
.staff-item {
padding: 6px 12px;
border-radius: 2px;
color: #333333;
font-size: 14px;
font-weight: 400;
background: #f2f3f5;
margin-right: 8px;
margin-bottom: 8px;
box-sizing: border-box;
line-height: 20px;
}
.active {
color: #2a58ad;
font-weight: 500;
background: #2a58ad26;
}
}
</style>
......@@ -87,7 +87,7 @@ export default {
color: #111111;
font-size: 16px;
font-weight: 500;
padding: 14px 20px;
padding: 8px 20px;
border-bottom: 1px solid #e5e5e5;
}
.tabs {
......
......@@ -134,11 +134,14 @@ export default {
<style lang="scss" scoped>
.staff-detail {
background: #fff;
overflow-y: auto;
overflow-x: hidden;
height: calc(100% - 45px);
.header {
color: #111111;
font-size: 16px;
font-weight: 500;
padding: 14px 20px;
padding: 8px 20px;
border-bottom: 1px solid #e5e5e5;
}
.form_div {
......
......@@ -22,7 +22,8 @@ export default {
{
name: "门店总数",
value: "100",
addHtml: "store"
addHtml: "store",
id: 2
},
{
name: "产值(元)",
......@@ -30,7 +31,8 @@ export default {
link: "11%",
trend: () => {
return false
}
},
id: 3
},
{
name: "客单价(元)",
......@@ -38,7 +40,8 @@ export default {
link: "11%",
trend: () => {
return false
}
},
id: 4
},
{
name: "交车数",
......@@ -46,7 +49,8 @@ export default {
link: "11%",
trend: () => {
return false
}
},
id: 5
},
{
name: "触客数",
......@@ -54,7 +58,8 @@ export default {
link: "11%",
trend: () => {
return false
}
},
id: 6
},
{
name: "订单数",
......@@ -62,7 +67,8 @@ export default {
link: "11%",
trend: () => {
return false
}
},
id: 6
}
]
}
......@@ -71,6 +77,7 @@ export default {
handleDetail(row) {
console.log(1111)
row.activeName = "storeInfo"
row.pageId = row.id
this.$emit("openWindow", row)
}
},
......
......@@ -150,6 +150,7 @@ export default {
this.analysisActiveIndex = index
},
openWindow(data) {
console.log(data)
this.$emit("openWindow", data)
}
}
......
......@@ -125,6 +125,7 @@ export default {
console.log(data)
const id = data.pageId ? data.pageId : `${data.staffName}_${data.phoneNumber}`
const windowList = [...this.tab, ...this.dropdownList]
console.log(windowList)
const windowItem = windowList.find((e) => e.id == id)
let component = data.activeName,
title = data.staffName || '-'
......
......@@ -156,12 +156,22 @@
</div>
</template>
<template slot="dailyReport" slot-scope="scope">
<el-switch
:value="scope.scope.dailyReport"
active-value="Y"
inactive-value="N"
@change="handleDailyReport(scope.scope)"
></el-switch>
<div class="daily-report">
1.1日报
<el-switch
:value="scope.scope.boutiqueDailyReportFillFlag"
active-value="Y"
inactive-value="N"
@change="handleDailyReport(scope.scope, 1)"
></el-switch>
2.1日报
<el-switch
:value="scope.scope.boutiqueDailyReportFillFlag"
active-value="Y"
inactive-value="N"
@change="handleDailyReport(scope.scope, 0)"
></el-switch>
</div>
</template>
<auth-button
slot="auth-button"
......@@ -342,7 +352,8 @@ import {
shopBatchSet,
busiBatchSet,
getDistrictDetail,
getMerService
getMerService,
updateDailyReportFlag
} from "@/api/shopConfig.js"
import {
merchantOutputValueTargetExport,
......@@ -608,7 +619,8 @@ export default {
{
label: "日报填写",
prop: "dailyReport",
addHtml: "dailyReport"
addHtml: "dailyReport",
width: "200px"
},
{
label: "下级商户",
......@@ -1028,7 +1040,14 @@ export default {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
...mapMutations("d2admin/user", ["setUpdateRefesh"]),
//日报填写
handleDailyReport(val) {
handleDailyReport(row, sceneType) {
console.log(row)
let dailyReportFillFlag =
row[
sceneType == 1
? "boutiqueDailyReportFillFlag"
: "quotationDailyReportFillFlag"
]
this.$confirm(
"切换日报填写开关会影响驻店是否需要填日报才能提单!",
"提示",
......@@ -1038,10 +1057,24 @@ export default {
}
)
.then(() => {
// verification({ orderCode: row.orderCode }).then((res) => {
// this.notice.okTips()
// this.handleSearch()
// })
updateDailyReportFlag({
merchantId: row.merchantId,
sceneType,
dailyReportFillFlag: !dailyReportFillFlag
}).then((res) => {
row[
sceneType == 1
? "boutiqueDailyReportFillFlag"
: "quotationDailyReportFillFlag"
] =
!row[
sceneType == 1
? "boutiqueDailyReportFillFlag"
: "quotationDailyReportFillFlag"
]
this.notice.okTips()
this.handleSearch()
})
})
.catch(() => {})
},
......@@ -1780,4 +1813,9 @@ export default {
text-overflow: ellipsis;
overflow: hidden;
}
.daily-report {
display: flex;
align-items: center;
justify-content: space-between;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!