Commit 677ca12a by Lin

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

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