Commit bc78911f 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 f608c682 f3290490
...@@ -17,18 +17,16 @@ ...@@ -17,18 +17,16 @@
<el-form-item label="员工名称:"> <el-form-item label="员工名称:">
<el-input <el-input
v-model.trim="storeSearchForm.staffName" v-model.trim="storeSearchForm.staffName"
placeholder="员工名称" placeholder="请输入员工名称"
max-length="20" max-length="20"
@keydown.native="handleCurrentChange(1)"
clearable clearable
/> />
</el-form-item> </el-form-item>
<el-form-item label="员工手机号:"> <el-form-item label="员工手机号:">
<el-input <el-input
v-model.trim="storeSearchForm.staffPhone" v-model.trim="storeSearchForm.staffPhone"
placeholder="员工名称" placeholder="请输入手机号"
max-length="20" max-length="20"
@keydown.native="handleCurrentChange(1)"
clearable clearable
/> />
</el-form-item> </el-form-item>
...@@ -70,7 +68,7 @@ ...@@ -70,7 +68,7 @@
<a @click="handleClear" class="clear-btn"> 清空 </a> <a @click="handleClear" class="clear-btn"> 清空 </a>
</div> </div>
<div class="tableBody"> <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 type="index" label="序号" width="50">
</el-table-column> </el-table-column>
<el-table-column prop="staffName" label="员工名称" align="center"> <el-table-column prop="staffName" label="员工名称" align="center">
...@@ -185,7 +183,7 @@ export default { ...@@ -185,7 +183,7 @@ export default {
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.id !== row.id) this.selectedData = this.selectedData.filter((item) => item.id !== row.id)
const obj = this.selectingData.find((v) => v.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) { handleCurrentChange(val) {
this.currentPage = val this.currentPage = val
...@@ -205,7 +203,7 @@ export default { ...@@ -205,7 +203,7 @@ export default {
display: flex; display: flex;
gap: 10px; gap: 10px;
.tableBox { .tableBox {
flex: 1; width: calc(50% - 10px);
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
.tableHeader { .tableHeader {
opacity: 1; opacity: 1;
......
...@@ -311,10 +311,10 @@ export default { ...@@ -311,10 +311,10 @@ export default {
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.id !== row.id) this.selectedData = this.selectedData.filter((item) => item.id !== row.id)
const obj = this.selectingData.find((v) => v.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() { handleCurrentChange(val = 1) {
this.currentPage = 1 this.currentPage = val
this.getSelectingList() this.getSelectingList()
}, },
handleRelateScriptConfirm() { handleRelateScriptConfirm() {
......
<template> <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"> @confirmDialog="handleConfirm">
<el-form :inline="true" size="mini" class="demo-form-inline"> <el-form :inline="true" size="mini" class="demo-form-inline">
<el-form-item label="品牌名称:"> <el-form-item label="品牌名称:">
...@@ -172,8 +172,8 @@ export default { ...@@ -172,8 +172,8 @@ export default {
background: #ffffff; background: #ffffff;
height: 324px; height: 324px;
overflow-y: auto; overflow-y: auto;
width: 600px; width: 100%;
margin-right: 20px; // margin-right: 20px;
.tree-title { .tree-title {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
query: { query: {
id: scope.id, id: scope.id,
contentType: scope.contentType, contentType: scope.contentType,
selectStaffType: scope.sendChannelType selectStaffType: scope.selectStaffType
} }
}) })
} else { } else {
......
...@@ -6,21 +6,13 @@ ...@@ -6,21 +6,13 @@
<div class="itemCon"> <div class="itemCon">
<el-form ref="editChildRef" <el-form ref="editChildRef"
:model="infoForm" :model="infoForm"
:rules="rules"
:label-width="formDefaultObj.labelWidth"> :label-width="formDefaultObj.labelWidth">
<template v-for="(item, index) in itemList"> <template v-for="(item, index) in itemList">
<el-form-item :label="item.title" <el-form-item :label="item.title"
:key="index"
v-if="item.inputType != 7" v-if="item.inputType != 7"
:prop="item.controlId" :prop="item.controlId">
:rules="item.require == 1
? [
{
required: true,
message: item.title + '不能为空',
trigger: 'change'
}
]
: null
">
<template v-if="item.inputType == 1"> <template v-if="item.inputType == 1">
<el-input v-model="infoForm[item.controlId]" <el-input v-model="infoForm[item.controlId]"
placeholder="请输入" placeholder="请输入"
...@@ -117,14 +109,7 @@ ...@@ -117,14 +109,7 @@
</el-form-item> </el-form-item>
<el-form-item label="流量方信息" <el-form-item label="流量方信息"
v-if="infoForm.shelfType == 1" v-if="infoForm.shelfType == 1"
prop="merchantId" prop="merchantId">
:rules="[
{
required: true,
message: '请选择流量方',
trigger: 'change'
}
]">
<el-select v-model="infoForm.merchantId" <el-select v-model="infoForm.merchantId"
:remote-method="remoteMethod" :remote-method="remoteMethod"
remote remote
...@@ -140,14 +125,7 @@ ...@@ -140,14 +125,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="产品上架表" <el-form-item label="产品上架表"
prop="fileName" prop="fileName">
:rules="[
{
required: true,
message: '产品上架表不能为空',
trigger: 'change'
}
]">
<el-input readonly <el-input readonly
v-model="infoForm.fileName" v-model="infoForm.fileName"
v-show="false" /> v-show="false" />
...@@ -190,6 +168,8 @@ ...@@ -190,6 +168,8 @@
</div> </div>
<el-dialog title="提示" <el-dialog title="提示"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:show-close="false"
:close-on-click-modal="false"
width="30%"> width="30%">
<div class="dialog-content" <div class="dialog-content"
v-if="updateStatus == ''"> v-if="updateStatus == ''">
...@@ -255,6 +235,22 @@ export default { ...@@ -255,6 +235,22 @@ export default {
defaultWidth: "530px", defaultWidth: "530px",
isEdit: true isEdit: true
}, },
rules: {
merchantId: [
{
required: true,
message: '请选择流量方',
trigger: 'change'
}
],
fileName: [
{
required: true,
message: '产品上架表不能为空',
trigger: 'change'
}
]
},
itemList: [], itemList: [],
loading: false, loading: false,
editChildRef: "editChildRef", editChildRef: "editChildRef",
...@@ -338,6 +334,7 @@ export default { ...@@ -338,6 +334,7 @@ export default {
item.inputType == 4 || item.inputType == 4 ||
item.inputType == 5 item.inputType == 5
) { ) {
// this.$set(this.infoForm, item.controlId, '')
} else if (item.inputType == 6) { } else if (item.inputType == 6) {
} else if (item.inputType == 7) { } else if (item.inputType == 7) {
item.uploadFileList = [] item.uploadFileList = []
...@@ -347,6 +344,7 @@ export default { ...@@ -347,6 +344,7 @@ export default {
return item return item
}) })
this.itemList = deepClone(this.itemList) this.itemList = deepClone(this.itemList)
this.itemRuleAdd(this.itemList)
console.log("this.itemList", this.itemList) console.log("this.itemList", this.itemList)
} }
this.loading = false this.loading = false
...@@ -358,7 +356,6 @@ export default { ...@@ -358,7 +356,6 @@ export default {
// 重新发起 // 重新发起
getBusisDetailBasic({ id: this.$route.params.recordId }) getBusisDetailBasic({ id: this.$route.params.recordId })
.then((res) => { .then((res) => {
console.log("res", res)
const { basicInfo } = res const { basicInfo } = res
console.log("basicInfo", JSON.parse(basicInfo.basicApproveInfo)) console.log("basicInfo", JSON.parse(basicInfo.basicApproveInfo))
this.itemList = deepClone(JSON.parse(basicInfo.basicApproveInfo)) this.itemList = deepClone(JSON.parse(basicInfo.basicApproveInfo))
...@@ -373,7 +370,6 @@ export default { ...@@ -373,7 +370,6 @@ export default {
item.uploadFileList = [] item.uploadFileList = []
item.files = [] item.files = []
// 清空附件信息 // 清空附件信息
item.value = ''
item.fileNames = '' item.fileNames = ''
} else { } else {
this.infoForm[item.controlId] = item.value this.infoForm[item.controlId] = item.value
...@@ -382,6 +378,7 @@ export default { ...@@ -382,6 +378,7 @@ export default {
}) })
this.itemList = deepClone(this.itemList) this.itemList = deepClone(this.itemList)
this.infoForm = deepClone(this.infoForm) this.infoForm = deepClone(this.infoForm)
this.itemRuleAdd(this.itemList)
console.log("this.itemList", this.itemList) console.log("this.itemList", this.itemList)
} }
this.loading = false this.loading = false
...@@ -391,6 +388,38 @@ export default { ...@@ -391,6 +388,38 @@ export default {
}) })
} }
}, },
// 为项目添加验证规则
itemRuleAdd(itemList) {
itemList.forEach((item) => {
// 1.文本;2.多行文本;3.数字;4.金额;5.单选;6.多选;7.附件
if (
item.inputType == 1 ||
item.inputType == 2 ||
item.inputType == 3 ||
item.inputType == 4
) {
if (item.require == 1) {
this.rules[item.controlId] = [
{
required: true,
message: '请输入' + item.title,
trigger: 'blur'
}
]
}
} else if (item.inputType == 5 || item.inputType == 6) {
if (item.require == 1) {
this.rules[item.controlId] = [
{
required: true,
message: '请选择' + item.title,
trigger: 'change'
}
]
}
}
})
},
routerBack() { routerBack() {
this.$router.go(-1) this.$router.go(-1)
}, },
......
...@@ -187,9 +187,6 @@ export default { ...@@ -187,9 +187,6 @@ export default {
if (info.redFlag) { if (info.redFlag) {
info.redFlagShow = this.redFlagOpt.find(item => item.confId === info.redFlag)?.confValue info.redFlagShow = this.redFlagOpt.find(item => item.confId === info.redFlag)?.confValue
} }
if (info.taxAmount) {
info.taxAmount = info.taxAmount + '%'
}
} }
} }
} }
......
...@@ -215,10 +215,7 @@ export default { ...@@ -215,10 +215,7 @@ export default {
}, { }, {
label: '税额', label: '税额',
prop: 'taxAmount', prop: 'taxAmount',
width: '150px', width: '150px'
formatter: (cellValue) => {
return cellValue.taxAmount ? cellValue.taxAmount + '%' : '-'
}
}, { }, {
label: '价税合计金额', label: '价税合计金额',
prop: 'amountWithTax', prop: 'amountWithTax',
...@@ -363,6 +360,9 @@ export default { ...@@ -363,6 +360,9 @@ export default {
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
handleReset() { handleReset() {
if (this.$route.params.orderCode) { // 清空订单详情页带过来的参数值
this.$route.params.orderCode = ''
}
this.searchForm = { this.searchForm = {
buyerName: '', buyerName: '',
invoiceData: '', invoiceData: '',
...@@ -386,15 +386,24 @@ export default { ...@@ -386,15 +386,24 @@ export default {
if (this.$refs.recordTable.mutiSelectArr.transferAccounts) { if (this.$refs.recordTable.mutiSelectArr.transferAccounts) {
selectedData = this.$refs.recordTable.mutiSelectArr.transferAccounts selectedData = this.$refs.recordTable.mutiSelectArr.transferAccounts
} }
if (!selectedData?.length) {
this.$message({
message: "请选择要下载的发票",
type: "warning",
showClose: true
})
return false
}
const ids = selectedData.map((item) => { const ids = selectedData.map((item) => {
return item.id return item.id
}) })
let params = {} const params = {}
if (ids.length == 0) {
params = deepClone(this.searchFormSearch)
} else {
params.idList = ids params.idList = ids
} // if (ids.length == 0) {
// params = deepClone(this.searchFormSearch)
// } else {
// params.idList = ids
// }
// return console.log('params', params) // return console.log('params', params)
downloadZip(params).then(res => { downloadZip(params).then(res => {
if (res) { if (res) {
...@@ -409,15 +418,24 @@ export default { ...@@ -409,15 +418,24 @@ export default {
if (this.$refs.recordTable.mutiSelectArr.transferAccounts) { if (this.$refs.recordTable.mutiSelectArr.transferAccounts) {
selectedData = this.$refs.recordTable.mutiSelectArr.transferAccounts selectedData = this.$refs.recordTable.mutiSelectArr.transferAccounts
} }
if (!selectedData?.length) {
this.$message({
message: "请选择要打印的发票",
type: "warning",
showClose: true
})
return false
}
const ids = selectedData.map((item) => { const ids = selectedData.map((item) => {
return item.id return item.id
}) })
let params = {} const params = {}
if (ids.length == 0) {
params = deepClone(this.searchFormSearch)
} else {
params.idList = ids params.idList = ids
} // if (ids.length == 0) {
// params = deepClone(this.searchFormSearch)
// } else {
// params.idList = ids
// }
// return console.log('params', params) // return console.log('params', params)
mergePdf(params).then(res => { mergePdf(params).then(res => {
if (res) { if (res) {
......
...@@ -135,7 +135,18 @@ ...@@ -135,7 +135,18 @@
class="info-item" class="info-item"
> >
<span class="item-label">{{ item.label }}:</span> <span class="item-label">{{ item.label }}:</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> <span>{{ detailInfo[item.name] || "-" }}</span>
</template>
</div> </div>
<block <block
v-for="(item, index) in busiInfoAttrObj.dynamic" v-for="(item, index) in busiInfoAttrObj.dynamic"
...@@ -369,7 +380,8 @@ export default { ...@@ -369,7 +380,8 @@ export default {
fixed: [ fixed: [
{ {
label: "退款子项", label: "退款子项",
name: "refundSubOrderCode" name: "refundSubOrderCode",
tooltip: true
}, },
{ {
label: "可退总价", label: "可退总价",
...@@ -857,6 +869,14 @@ export default { ...@@ -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>
<style> <style>
......
...@@ -197,6 +197,16 @@ import { uploadFile } from "@/api/sys.base" ...@@ -197,6 +197,16 @@ import { uploadFile } from "@/api/sys.base"
export default { export default {
name: "NewSignRefundDialog", name: "NewSignRefundDialog",
data() { 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 { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
loading: false, loading: false,
...@@ -466,7 +476,8 @@ export default { ...@@ -466,7 +476,8 @@ export default {
required: true, required: true,
message: "请输入金额,支持输入1~999999的数字,支持小数点后2位", message: "请输入金额,支持输入1~999999的数字,支持小数点后2位",
trigger: "change" trigger: "change"
} },
{ validator: checkAmount, trigger: "blur" }
] ]
}, },
{ {
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<el-table-column :selectable="selectableFn" type="selection" width="55" align="center" /> <el-table-column :selectable="selectableFn" type="selection" width="55" align="center" />
<template v-for="item in tableColumn"> <template v-for="item in tableColumn">
<el-table-column :prop="item.prop" :label="item.label" align="center"> <el-table-column :prop="item.prop" :label="item.label" align="center">
<span slot-scope="scope">{{ <span slot-scope="scope">
scope.row[item.prop] ? scope.row[item.prop] : "-" {{ scope.row[item.prop] ? item.unit ? item.unit + scope.row[item.prop] : scope.row[item.prop] : "-" }}
}}</span> </span>
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
...@@ -52,7 +52,8 @@ export default { ...@@ -52,7 +52,8 @@ export default {
}, },
{ {
label: '售价', label: '售价',
prop: 'upgradePrice' prop: 'upgradePrice',
unit: '¥'
}, },
{ {
label: '数量/件', label: '数量/件',
...@@ -60,7 +61,8 @@ export default { ...@@ -60,7 +61,8 @@ export default {
}, },
{ {
label: '支付金额', label: '支付金额',
prop: 'totalPrice' prop: 'totalPrice',
unit: '¥'
} }
], ],
total: 0, total: 0,
......
...@@ -324,7 +324,8 @@ ...@@ -324,7 +324,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="form_gp"> <div class="form_gp"
v-if="detail.vptInvoiceInfo">
<p class="edit-sub-title">发票状态</p> <p class="edit-sub-title">发票状态</p>
<el-form class="edit-sub-block" <el-form class="edit-sub-block"
:inline="true"> :inline="true">
......
...@@ -32,7 +32,9 @@ ...@@ -32,7 +32,9 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="商品名称:"> <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 </el-form-item></el-col
> >
...@@ -66,7 +68,7 @@ ...@@ -66,7 +68,7 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item <el-form-item
:label=" :label="
detailInfo.failType == '退款' ? '退回积分' : '积分收益:' detailInfo.failType == '退款' ? '退回积分:' : '积分收益:'
" "
class="halfItem" class="halfItem"
> >
...@@ -171,7 +173,9 @@ ...@@ -171,7 +173,9 @@
v-if="detailInfo.status == '已失效'" v-if="detailInfo.status == '已失效'"
> >
<el-form-item label="退款子订单信息:" class="halfItem"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -531,6 +535,12 @@ export default { ...@@ -531,6 +535,12 @@ export default {
justify-content: center; justify-content: center;
margin-top: 20px; margin-top: 20px;
} }
.max-width {
white-space: nowrap; /* 禁止文本换行 */
overflow: hidden; /* 超出内容隐藏 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
max-width: 150px;
}
</style> </style>
<style> <style>
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<el-table-column :selectable="selectableFn" type="selection" width="55" align="center" /> <el-table-column :selectable="selectableFn" type="selection" width="55" align="center" />
<template v-for="item in tableColumn"> <template v-for="item in tableColumn">
<el-table-column :prop="item.prop" :label="item.label" align="center"> <el-table-column :prop="item.prop" :label="item.label" align="center">
<span slot-scope="scope">{{ <span slot-scope="scope">
scope.row[item.prop] ? scope.row[item.prop] : "-" {{ scope.row[item.prop] ? item.unit ? item.unit + scope.row[item.prop] : scope.row[item.prop] : "-" }}
}}</span> </span>
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
...@@ -52,7 +52,8 @@ export default { ...@@ -52,7 +52,8 @@ export default {
}, },
{ {
label: '售价', label: '售价',
prop: 'upgradePrice' prop: 'upgradePrice',
unit: '¥'
}, },
{ {
label: '数量/件', label: '数量/件',
...@@ -60,7 +61,8 @@ export default { ...@@ -60,7 +61,8 @@ export default {
}, },
{ {
label: '支付金额', label: '支付金额',
prop: 'totalPrice' prop: 'totalPrice',
unit: '¥'
} }
], ],
total: 0, total: 0,
......
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
) { ) {
callback(new Error("输入的积分超过当前订单最大积分")) callback(new Error("输入的积分超过当前订单最大积分"))
} else if ( } else if (
value >= this.refundForm.remainingScore && value > this.refundForm.remainingScore &&
this.refundForm.refundType == 2 this.refundForm.refundType == 2
) { ) {
callback(new Error("输入的积分超过当前订单最大积分")) callback(new Error("输入的积分超过当前订单最大积分"))
......
...@@ -249,11 +249,15 @@ export default { ...@@ -249,11 +249,15 @@ export default {
) + ' 23:59:59' ) + ' 23:59:59'
delete params.extractionTime delete params.extractionTime
} }
if (params.checkStatus === 0) {
params.checkStatusList = [params.checkStatus]
delete params.checkStatus
}
if (params.checkStatus) { if (params.checkStatus) {
if (params.checkStatus == 3) { if (params.checkStatus == 3) {
params.checkStatusList = [3, 4] params.checkStatusList = [3, 4]
} else { } else {
params.checkStatusList = Array.from[params.checkStatus] params.checkStatusList = [params.checkStatus]
} }
delete params.checkStatus delete params.checkStatus
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</template> </template>
</div> </div>
<d2-table-header title="审批列表"> <d2-table-header title="未推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button> <el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</template> </template>
</div> </div>
<d2-table-header title="审批列表"> <d2-table-header title="推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button> <el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
......
...@@ -65,6 +65,12 @@ ...@@ -65,6 +65,12 @@
:table-params="tableParams" :table-params="tableParams"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :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" <div slot="auth-button"
slot-scope="scope"> slot-scope="scope">
<!-- 详情 --> <!-- 详情 -->
...@@ -261,7 +267,8 @@ export default { ...@@ -261,7 +267,8 @@ export default {
}, },
{ {
label: "业务类型", label: "业务类型",
prop: "businessTypeDesc" addHtml: "typeHtml",
width: "150"
}, },
{ {
label: "录入时间", label: "录入时间",
...@@ -285,7 +292,17 @@ export default { ...@@ -285,7 +292,17 @@ export default {
}, { }, {
confId: 2, confId: 2,
confValue: '延保' confValue: '延保'
}] }],
businessOptShowClass: {
0: "type-yellow",
1: "type-blue",
2: "type-green"
},
businessNameShow: {
0: "轻改",
1: "权益",
2: "延保"
},
}, },
fileRules: { fileRules: {
fileName: [{ required: true, message: '请上传文件', trigger: 'change' }] fileName: [{ required: true, message: '请上传文件', trigger: 'change' }]
...@@ -612,6 +629,31 @@ export default { ...@@ -612,6 +629,31 @@ export default {
font-size: 0; 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 { .import-template {
position: absolute; position: absolute;
height: 20px; height: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!