Commit 677ca12a by Lin

feat: BI事项管理弹框样式交互

1 parent 3429f7c2
......@@ -13,25 +13,19 @@
>
<div class="reject-dialog">
<div class="dialog-title-box">
<div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1">
<div class="flex">
<span class="title-text">手机号:</span>
<span class="title-text1 flex-1">{{ info.staffPhone }}</span>
</div>
<div class="flex">
<span class="title-text">所属门店:</span>
<span class="title-text1">{{ info.merchantName }}</span>
<span class="title-text">事项描述:</span>
<span class="title-text1 flex-1">{{ info.staffPhone }}作为用户和产品之间的桥梁,社交分享在产品的发展过程中扮演了重要的角色。
分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。
弹窗高度不固定,事项描述可能换很多行,要全部显示出来</span>
</div>
</div>
<div class="dialog-title1">
<div class="flex">
<span class="title-text">客户姓名:</span>
<span class="title-text1">{{ info.customerName }}</span>
</div>
<div class="flex-1 flex">
<span class="title-text">缺失原因:</span>
<span class="title-text1 flex-1">{{ info.reason }}</span>
<span class="title-text">事项时间:</span>
<!-- <span class="title-text1 flex-1">{{ info.reason }}</span> -->
<span class="title-text1 flex-1">2025-10-11</span>
</div>
</div>
</div>
......@@ -45,9 +39,6 @@
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<!-- <span :style="{ 'margin-left': '150px' }"
>审核通过后,转账业务单据自动流转至财务确认。</span
> -->
</div>
<div slot="footer">
<el-button
......@@ -58,16 +49,13 @@
>
取消
</el-button>
<el-button v-preventReClick @click="confirmBtn(2)" size="small">
驳回
</el-button>
<el-button
size="small"
type="primary"
@click="confirmBtn(1)"
:loading="$store.state.d2admin.loading.value || btnLoding"
>
通过
确定
</el-button>
</div>
</el-dialog>
......@@ -89,17 +77,17 @@
},
rejectRef: "rejectRef",
dialogConfig: {
title: "审核",
title: "事项处理",
width: "600px"
},
examineRef: "examineRef",
formRules: {},
editFormData: [
{
label: "审核意见",
label: "处理策略",
name: "remark",
type: "input",
maxlength: 50,
maxlength: 200,
inputType: "textarea",
showLimit: true,
rows: 4
......@@ -147,15 +135,10 @@
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
if (type === 2 && !this.infoForm.remark) {
this.$message.warning("请填写审核意见")
return
}
params.auditOpinion = this.infoForm.remark
params.id = this.info.id
params.auditStatus = type
console.log(params)
reportApproval(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
......@@ -169,14 +152,14 @@
<style lang="scss" scoped>
.reject-dialog {
.dialog-title-box {
width: 100%;
background: #fafafa;
width: 79%;
padding: 10px 20px;
color: #333333;
font-size: 16px;
font-weight: 400;
box-sizing: border-box;
margin-bottom: 20px;
margin-left: 60px;
.dialog-name {
font-weight: 600;
margin-bottom: 12px;
......@@ -186,17 +169,13 @@
color: #333333;
font-size: 14px;
font-weight: 400;
margin-bottom: 8px;
margin-bottom: 20px;
}
}
.title-text {
width: 80px;
}
.title-text1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100px;
display: block;
}
.flex {
......@@ -223,6 +202,9 @@
color: #999999;
}
}
.edit-form-container {
margin-top: -24px;
}
::v-deep .el-dialog__footer {
border-top: 1px solid #e5e5e5;
.el-button {
......
......@@ -17,21 +17,7 @@
</div>
</div>
<div class="d2-container-content">
<d2-table-header title="审核列表">
<el-button
size="small"
@click="handleBatchExamine(1)"
data-event-code="failure_to_report_reception_pass"
>
批量通过
</el-button>
<el-button
size="small"
@click="handleBatchExamine(2)"
data-event-code="failure_to_report_reception_all_reject"
>
批量驳回
</el-button>
<d2-table-header>
<el-button
size="small"
type="primary"
......@@ -71,17 +57,15 @@
type="text"
@click="handleAudits(scope.scope)"
data-event-code="failure_to_report_reception_audit"
v-if="scope.scope.auditStatus == '0'"
>
审核
处理
</el-button>
<el-button
type="text"
@click="handleReject(scope.scope)"
data-event-code="failure_to_report_reception_reject"
v-if="scope.scope.auditStatus != '0'"
@click="handleDel(scope.scope)"
data-event-code="failure_to_report_reception_audit"
>
重新审核
删除
</el-button>
</template>
</d2-table>
......@@ -110,12 +94,12 @@
import { Util, deepClone } from "@/common/util"
const STATUS_OPTIONS = [
{
label: "待审核",
label: "待处理",
id: "0",
backgroundColor: "#FDB757"
},
{
label: "已通过",
label: "已处理",
id: "1",
backgroundColor: "#2CCA74"
},
......@@ -142,26 +126,18 @@
rejectVisible: false,
showFormData: [
{
label: "员工姓名",
name: "staffName",
type: "input",
keyFn: this.keyDowmGetList,
placeholder: "请输入",
maxlength: 20,
isClear: true
},
{
label: "员工手机号",
name: "staffPhone",
type: "input",
maxlength: 11,
inputType: "number",
keyFn: this.keyDowmGetList,
placeholder: "请输入",
isClear: true
label: "4s门店",
name: "merchantId",
type: "select",
noDataText: "请先选择所属仓库",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "merchantIdList"
},
{
label: "审核状态",
label: "状态",
name: "auditStatus",
type: "select",
optionList: [
......@@ -171,11 +147,11 @@
},
{
id: 0,
label: "待审核"
label: "待处理"
},
{
id: 1,
label: "已通过"
label: "已处理"
},
{
id: 2,
......@@ -187,40 +163,20 @@
optionsName: "parkServiceList"
},
{
label: "所属门店",
name: "merchantId",
type: "select",
noDataText: "请先选择所属仓库",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "merchantIdList"
},
{
label: "缺失原因",
name: "reasonCode",
type: "select",
optionList: [],
optionId: "reasonCode",
optionLabel: "reason",
optionsName: "customerStatusList"
},
{
label: "报备时间",
name: "createdDate",
type: "datePicker",
isClear: true,
dateType: "datetimerange",
pickerOptions: "rangePickertwoMonthOptionsWithCurrentLimit"
},
{
label: "创建日期",
name: "reportDate",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickertwoMonthOptionsWithCurrentLimit"
},
{
label: "创建人",
name: "staffName",
type: "input",
keyFn: this.keyDowmGetList,
placeholder: "请输入",
maxlength: 20,
isClear: true
}
],
pageInfo: {
......@@ -245,70 +201,60 @@
},
tableColumns: [
{
label: "员工姓名",
prop: "staffName",
minWidth: 175
label: "4S门店",
prop: "merchantName",
minWidth: 100
},
{
label: "员工手机号",
minWidth: 144,
prop: "staffPhone"
label: "事项描述",
prop: "reason",
minWidth: 140
},
{
label: "门店",
prop: "merchantName",
minWidth: 180
label: "线上运营",
prop: "staffName",
minWidth: 112
},
{
label: "客户姓名",
label: "区域运营",
prop: "customerName"
},
{
label: "缺失原因",
prop: "reason",
minWidth: 180
},
{
label: "报备时间",
label: "创建日期",
minWidth: 60,
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
return cellValue.auditTime
? Util.dateFormate(cellValue.auditTime, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "创建日期",
formatter: (cellValue) => {
return cellValue.reportDate
? Util.dateFormate(cellValue.reportDate, "YYYY-MM-DD")
: "-"
},
minWidth: 180
label: "创建人",
prop: "auditUser"
},
{
label: "审核人",
label: "状态",
minWidth: 100,
prop: "auditStatus",
type: "slot",
addHtml: "auditStatus"
},
{
label: "处理人",
prop: "auditUser"
},
{
label: "审核时间",
label: "处理时间",
formatter: (cellValue) => {
return cellValue.auditTime
? Util.dateFormate(cellValue.auditTime, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "审核状态",
minWidth: 100,
prop: "auditStatus",
type: "slot",
addHtml: "auditStatus"
minWidth: 60
},
{
label: "审核意见",
label: "处理策略",
minWidth: 180,
prop: "auditOpinion"
}
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!