Commit f3290490 by 前端

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

…ife-system into SAAS+V4.53.0-0528
2 parents 9d747c4a b59656e7
......@@ -17,18 +17,16 @@
<el-form-item label="员工名称:">
<el-input
v-model.trim="storeSearchForm.staffName"
placeholder="员工名称"
placeholder="请输入员工名称"
max-length="20"
@keydown.native="handleCurrentChange(1)"
clearable
/>
</el-form-item>
<el-form-item label="员工手机号:">
<el-input
v-model.trim="storeSearchForm.staffPhone"
placeholder="员工名称"
placeholder="请输入手机号"
max-length="20"
@keydown.native="handleCurrentChange(1)"
clearable
/>
</el-form-item>
......@@ -70,7 +68,7 @@
<a @click="handleClear" class="clear-btn"> 清空 </a>
</div>
<div class="tableBody">
<el-table class="table" :data="selectedData" border height="264px">
<el-table class="table" :data="selectedData" border height="364px">
<el-table-column type="index" label="序号" width="50">
</el-table-column>
<el-table-column prop="staffName" label="员工名称" align="center">
......@@ -185,7 +183,7 @@ export default {
handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.id !== row.id)
const obj = this.selectingData.find((v) => v.id == row.id)
this.$refs.seletingTable.toggleRowSelection(obj)
if (obj) this.$refs.seletingTable.toggleRowSelection(obj)
},
handleCurrentChange(val) {
this.currentPage = val
......@@ -205,7 +203,7 @@ export default {
display: flex;
gap: 10px;
.tableBox {
flex: 1;
width: calc(50% - 10px);
border: 1px solid #e5e5e5;
.tableHeader {
opacity: 1;
......
......@@ -311,10 +311,10 @@ export default {
handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.id !== row.id)
const obj = this.selectingData.find((v) => v.id == row.id)
this.$refs.seletingTable.toggleRowSelection(obj)
if (obj) this.$refs.seletingTable.toggleRowSelection(obj)
},
handleCurrentChange() {
this.currentPage = 1
handleCurrentChange(val = 1) {
this.currentPage = val
this.getSelectingList()
},
handleRelateScriptConfirm() {
......
......@@ -13,7 +13,7 @@
</template>
</el-form-item>
<el-form-item label="关联门店:" prop="isRelMerchant">
<el-radio-group v-model="formData.isRelMerchant">
<el-radio-group v-model="formData.isRelMerchant" @input="radioInput">
<el-radio :label="1">全部门店</el-radio>
<el-radio :label="2">关联门店</el-radio>
</el-radio-group>
......@@ -48,8 +48,8 @@
<template v-if="item.type == 'form'">
<div class="config-item">
<div class="config-title">
<div>
<i class="el-icon-caret-bottom" style="color: #b9bcc4;"></i>
<div @click="switchBox(item.id)">
<i class="el-icon-caret-bottom" :class="{ 'rotate-90': !item.isVisible }" style="color: #b9bcc4;"></i>
层级{{ index + 1 }}
</div>
<div>
......@@ -58,17 +58,17 @@
<el-button type="text" :disabled="config.filter(i => i.type == 'form').length == 1" @click="deleteRow(index, item.id)">删除</el-button>
</div>
</div>
<div class="config-content">
<div class="config-content" :class="{ 'hide': !item.isVisible, 'show': item.isVisible }">
<el-form :ref="`subFormRef${item.id}`" :model="form[`subForm${item.id}`]" :rules="rulesForm"
label-width="120px">
<el-form-item label="素材标题:" prop="materialTitle">
<el-input type="text" v-model="form[`subForm${item.id}`].materialTitle" placeholder="请输入"
<el-input style="width: 432px;" type="text" v-model="form[`subForm${item.id}`].materialTitle" placeholder="请输入"
maxlength="10" show-word-limit></el-input>
<div v-if="isCheck && !form[`subForm${item.id}`].materialTitle" class="error-tips">请输入素材标题</div>
<div class="tips">显示在素材标题栏</div>
</el-form-item>
<el-form-item label="素材简称:" prop="materialName">
<el-input type="text" v-model="form[`subForm${item.id}`].materialName" placeholder="请输入"
<el-input style="width: 432px;" type="text" v-model="form[`subForm${item.id}`].materialName" placeholder="请输入"
maxlength="5" show-word-limit></el-input>
<div v-if="isCheck && !form[`subForm${item.id}`].materialName" class="error-tips">请输入素材简称</div>
<div class="tips">显示在文件夹</div>
......@@ -133,8 +133,8 @@
<template v-if="item.type == 'builtIn'">
<div class="config-item">
<div class="config-title">
<div>
<i class="el-icon-caret-bottom" style="color: #b9bcc4;"></i>
<div @click="switchBox(item.id)">
<i class="el-icon-caret-bottom" :class="{ 'rotate-90': !item.isVisible }" style="color: #b9bcc4;"></i>
层级{{ index + 1 }}
</div>
<div>
......@@ -143,7 +143,7 @@
@click="moveDown(index)">下移</el-button>
</div>
</div>
<div class="config-content">
<div class="config-content" :class="{ 'hide': !item.isVisible, 'show': item.isVisible }">
<el-form :model="form[`subForm${item.id}`]" label-width="120px">
<el-form-item label="(内置)素材标题:">
<div>{{ item.title }}</div>
......@@ -157,6 +157,7 @@
</template>
</div>
</div>
<div v-if="isCheck && !formData.MaterialList.length" class="error-tips">请完善素材配置</div>
</el-form-item>
</el-form>
<div style="padding-bottom: 40px; text-align: center">
......@@ -178,19 +179,22 @@
const default_config = [
{
id: 1,
type: 'form'
type: 'form',
isVisible: true
},
{
id: 2,
type: 'builtIn',
title: '历史录单记录',
valueKey: 'history'
valueKey: 'history',
isVisible: true
},
{
id: 3,
type: 'builtIn',
title: '保险告知书',
valueKey: 'notice'
valueKey: 'notice',
isVisible: true
}
]
const default_form = {
......@@ -222,7 +226,8 @@ export default {
return {
formData: {
isRelMerchant: '',
isRelBrand: 2
isRelBrand: 2,
MaterialList: []
},
rules: {
brandList: [
......@@ -256,10 +261,11 @@ export default {
{
required: true, validator: (rule, value, callback) => {
const { MaterialList } = this.formData
if (MaterialList && MaterialList.length != 0) {
callback()
} else {
if (!isRelMerchant) callback("请完善素材配置")
if (MaterialList && MaterialList.length == 0) {
callback("请完善素材配置")
} else {
callback()
}
}, trigger: "change"
}
......@@ -268,9 +274,9 @@ export default {
brandVisible: false,
brandData: [],
checkBrand: [],
defaultKeys: [],
defaultKeys: [], // 回显数据
storeVisible: false,
storeSelected: [],
storeSelected: [], // 回显数据
storeData: [],
carSeriesVisible: false,
form: deepClone(default_form),
......@@ -329,14 +335,13 @@ export default {
isPass: false,
levelId: 1,
formInfo: null,
levelOptionMapping: [1, 2, 3],
levelOptionMapping: [1, 2, 3], // 互斥数组
seriesList: [],
brandTreeData: [],
key: new Date().getTime()
}
},
mounted() {
console.log(this.$route.query)
this.getDetail()
},
methods: {
......@@ -363,6 +368,7 @@ export default {
this.brandClose()
this.brandData = val.newList
this.checkBrand = val.checkList
if(val.checkList.length > 0) this.$refs.basicForm.clearValidate('brandList')
// 修改后,清空所有数据
this.config = deepClone(default_config)
this.form = deepClone(default_form)
......@@ -371,6 +377,11 @@ export default {
this.levelOptionMapping = [1, 2, 3]
this.storeSelected = []
},
radioInput(val) {
if (val == 1) {
this.storeData = []
}
},
// 关联门店
openMerchantDialog() {
if (this.brandData.length == 0) {
......@@ -378,19 +389,20 @@ export default {
return
}
this.storeVisible = true
if (this.storeData.length > 0) {
this.storeSelected = this.storeData
}
this.storeSelected = this.storeData.length > 0 ? this.storeData : []
},
// 品牌选择回调
handleRelateStoreConfirm(selectedData) {
console.log(selectedData)
this.storeData = selectedData
this.storeVisible = false
if(selectedData.length > 0) this.$refs.basicForm.clearValidate('isRelMerchant')
},
// 关闭门店弹窗
handleRelateStoreClose() {
this.storeVisible = false
},
// 删除门店
delMerchant(row) {
console.log(row)
const filterArr = this.storeData.filter(i => i.id !== row.id)
......@@ -435,7 +447,8 @@ export default {
addConfig() {
const obj = {
id: new Date().getTime(),
type: 'form'
type: 'form',
isVisible: true
}
this.config.unshift(obj)
this.$set(this.form, `subForm${obj.id}`, deepClone(this.subForm))
......@@ -521,6 +534,7 @@ export default {
}
if (arr.length > 2) {
params.MaterialList = arr
this.formData.MaterialList = arr
this.isPass = true
}
if (this.isPass) console.log(params, 'params')
......@@ -552,6 +566,7 @@ export default {
name: "packageConfig"
})
},
// 上移下移
moveUp(targetIndex) {
console.log(targetIndex)
if (targetIndex > 0) {
......@@ -620,6 +635,7 @@ export default {
// id: item.relBusinessId
// }
// })
// 品牌回显处理
console.log(this.checkBrand)
let checkList = []
console.log(brandData, 'brandData')
......@@ -647,6 +663,7 @@ export default {
this.checkBrand = checkList
this.brandData = this.filterCheckList(deepClone(checkList))
console.log(this.checkBrand, 'checkBrand', this.brandData)
// 门店回显处理
if (isRelMerchant == 2) {
this.storeData = storeData.map(i => {
return {
......@@ -656,13 +673,15 @@ export default {
})
}
this.formData.isRelMerchant = isRelMerchant
// 配置回显
this.form = {}
let _config = []
const _homeEntranceType = []
materialInfoList.forEach(item => {
const obj = {
id: item.id,
type: item.materialTitle ? 'form' : 'builtIn'
type: item.materialTitle ? 'form' : 'builtIn',
isVisible: true
}
if (item.materialType == 1) {
obj.title = '历史录单记录'
......@@ -713,10 +732,15 @@ export default {
});
}
});
// 过滤掉一级项中 id 存在于 childrenIds 中的项
return checkList.filter(item => !childrenIds.has(item.id));
},
switchBox(id) {
const item = this.config.find(item => item.id === id);
if (item) {
item.isVisible = !item.isVisible; // 直接修改原对象属性
}
},
}
}
</script>
......@@ -773,17 +797,30 @@ export default {
font-size: 12px;
}
.error-tips {
color: #f56c6c;
font-size: 12px;
}
}
}
}
.error-tips {
color: #f56c6c;
font-size: 12px;
}
.pic-url {
width: 36px;
height: 36px;
vertical-align: middle;
}
.show {
display: block;
}
.hide {
display: none;
}
.rotate-90 {
transform: rotate(-90deg);
transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}
.el-icon-caret-bottom {
transition: transform 0.3s ease;
}
</style>
\ No newline at end of file
<template>
<d2-dialog title="选择品牌" :is-visible="dialogVisible" class="brand-dialog" width="60%" @closeDialog="handleClose"
<d2-dialog title="选择品牌" :is-visible="dialogVisible" class="brand-dialog" width="50%" @closeDialog="handleClose"
@confirmDialog="handleConfirm">
<el-form :inline="true" size="mini" class="demo-form-inline">
<el-form-item label="品牌名称:">
......@@ -172,8 +172,8 @@ export default {
background: #ffffff;
height: 324px;
overflow-y: auto;
width: 600px;
margin-right: 20px;
width: 100%;
// margin-right: 20px;
.tree-title {
display: flex;
align-items: center;
......
......@@ -280,7 +280,7 @@ export default {
query: {
id: scope.id,
contentType: scope.contentType,
selectStaffType: scope.sendChannelType
selectStaffType: scope.selectStaffType
}
})
} else {
......
......@@ -135,7 +135,18 @@
class="info-item"
>
<span class="item-label">{{ item.label }}:</span>
<span>{{ detailInfo[item.name] || "-" }}</span>
<!-- <span>{{ detailInfo[item.name] || "-" }}</span> -->
<template v-if="item.tooltip">
<template v-if="detailInfo[item.name]">
<el-tooltip class="item" effect="dark" :content="detailInfo[item.name]" placement="top-start">
<span class="max-width">{{ detailInfo[item.name] }}</span>
</el-tooltip>
</template>
<template v-else><span>-</span></template>
</template>
<template v-else>
<span>{{ detailInfo[item.name] || "-" }}</span>
</template>
</div>
<block
v-for="(item, index) in busiInfoAttrObj.dynamic"
......@@ -369,7 +380,8 @@ export default {
fixed: [
{
label: "退款子项",
name: "refundSubOrderCode"
name: "refundSubOrderCode",
tooltip: true
},
{
label: "可退总价",
......@@ -857,6 +869,14 @@ export default {
}
}
}
.max-width {
display: inline-block;
white-space: nowrap; /* 禁止文本换行 */
overflow: hidden; /* 超出内容隐藏 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
max-width: 290px;
vertical-align: middle;
}
</style>
<style>
......
......@@ -197,6 +197,16 @@ import { uploadFile } from "@/api/sys.base"
export default {
name: "NewSignRefundDialog",
data() {
var checkAmount = (rule, value, callback) => {
if (!value) {
return callback(new Error("请输入金额,支持输入1~999999的数字,支持小数点后2位"))
}
if (value > this.detail.total) {
callback(new Error('本次退款金额不可超过可退总价'))
} else {
callback()
}
}
return {
userInfo: this.$store.state.d2admin.user.info,
loading: false,
......@@ -466,7 +476,8 @@ export default {
required: true,
message: "请输入金额,支持输入1~999999的数字,支持小数点后2位",
trigger: "change"
}
},
{ validator: checkAmount, trigger: "blur" }
]
},
{
......
......@@ -32,7 +32,9 @@
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="商品名称:">
{{ detailInfo.goodsName ? detailInfo.goodsName : "-" }}
<el-tooltip class="item" effect="dark" :content="detailInfo.goodsName" placement="top-start">
<div class="max-width">{{ detailInfo.goodsName ? detailInfo.goodsName : "-" }}</div>
</el-tooltip>
</el-form-item></el-col
>
......@@ -66,7 +68,7 @@
<el-col :span="8">
<el-form-item
:label="
detailInfo.failType == '退款' ? '退回积分' : '积分收益:'
detailInfo.failType == '退款' ? '退回积分:' : '积分收益:'
"
class="halfItem"
>
......@@ -171,7 +173,9 @@
v-if="detailInfo.status == '已失效'"
>
<el-form-item label="退款子订单信息:" class="halfItem">
{{ detailInfo.refundSubOrderCode ? detailInfo.refundSubOrderCode : "-" }}
<el-tooltip class="item" effect="dark" :content="detailInfo.refundSubOrderCode" placement="top-start">
<div class="max-width">{{ detailInfo.refundSubOrderCode ? detailInfo.refundSubOrderCode : "-" }}</div>
</el-tooltip>
</el-form-item>
</el-col>
</el-row>
......@@ -531,6 +535,12 @@ export default {
justify-content: center;
margin-top: 20px;
}
.max-width {
white-space: nowrap; /* 禁止文本换行 */
overflow: hidden; /* 超出内容隐藏 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
max-width: 150px;
}
</style>
<style>
......
......@@ -152,7 +152,7 @@ export default {
) {
callback(new Error("输入的积分超过当前订单最大积分"))
} else if (
value >= this.refundForm.remainingScore &&
value > this.refundForm.remainingScore &&
this.refundForm.refundType == 2
) {
callback(new Error("输入的积分超过当前订单最大积分"))
......
......@@ -249,11 +249,15 @@ export default {
) + ' 23:59:59'
delete params.extractionTime
}
if (params.checkStatus === 0) {
params.checkStatusList = [params.checkStatus]
delete params.checkStatus
}
if (params.checkStatus) {
if (params.checkStatus == 3) {
params.checkStatusList = [3, 4]
} else {
params.checkStatusList = Array.from[params.checkStatus]
params.checkStatusList = [params.checkStatus]
}
delete params.checkStatus
}
......
......@@ -23,7 +23,7 @@
</div>
</template>
</div>
<d2-table-header title="审批列表">
<d2-table-header title="未推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
</d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
......
......@@ -23,7 +23,7 @@
</div>
</template>
</div>
<d2-table-header title="审批列表">
<d2-table-header title="推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
</d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
......
......@@ -65,6 +65,12 @@
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<template slot="typeHtml"
slot-scope="scope">
<span :class="baseData.businessOptShowClass[scope.scope.businessType]">
{{ baseData.businessNameShow[scope.scope.businessType] }}
</span>
</template>
<div slot="auth-button"
slot-scope="scope">
<!-- 详情 -->
......@@ -261,7 +267,8 @@ export default {
},
{
label: "业务类型",
prop: "businessTypeDesc"
addHtml: "typeHtml",
width: "150"
},
{
label: "录入时间",
......@@ -285,7 +292,17 @@ export default {
}, {
confId: 2,
confValue: '延保'
}]
}],
businessOptShowClass: {
0: "type-yellow",
1: "type-blue",
2: "type-green"
},
businessNameShow: {
0: "轻改",
1: "权益",
2: "延保"
},
},
fileRules: {
fileName: [{ required: true, message: '请上传文件', trigger: 'change' }]
......@@ -612,6 +629,31 @@ export default {
font-size: 0;
}
@mixin typeBase {
width: 52px;
border-radius: 239px;
opacity: 1;
font-size: 14px;
text-align: center;
line-height: 24px;
display: inline-block;
}
.type-yellow {
@include typeBase();
background: #ff8d1a1a;
color: #ff8d1a;
}
.type-blue {
@include typeBase();
background: #5850ff1a;
color: #5850ff;
}
.type-green {
@include typeBase();
background: #43cf7c1a;
color: #43cf7c;
}
.import-template {
position: absolute;
height: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!