Commit b1e75db0 by wangzhihui

需求优化开发

1 parent d46762d3
......@@ -5,7 +5,11 @@
<div class="form-line">
<el-form :inline="true" :model="dataForm">
<el-form-item label="请选择门店:">
<el-select v-model="dataForm.merchantNos" placeholder="请选择">
<el-select
v-model="dataForm.merchantNos"
filterable
placeholder="请选择"
>
<el-option
:label="item.merchantName"
:value="item.merchantId"
......
......@@ -116,6 +116,36 @@
</el-row>
</el-form>
</div>
<d2-table
v-if="item.tableParams"
class="table-box"
:hasNum="item.hasNum"
:table-params="item.tableParams"
:tableData="detailInfo.oaAudits ? detailInfo.oaAudits : []"
:hasPage="false"
>
<div slot="oaFlowStatusHtml" slot-scope="scope">
<div class="online-status">
<span
class="dot"
:style="{
background: scope.scope.oaFlowStatus
? baseData.oaFlowStatusOpt.find(
(item) => item.confId == scope.scope.oaFlowStatus
).color
: ''
}"
></span>
{{
scope.scope.oaFlowStatus
? baseData.oaFlowStatusOpt.find(
(item) => item.confId == scope.scope.oaFlowStatus
).confValue
: "-"
}}
</div>
</div>
</d2-table>
<div class="form_div" v-if="item.custom">
<el-form
:ref="item.childRef"
......@@ -256,57 +286,66 @@ export default {
}
},
{
title: "企微审批状态",
key: "oaFlowStatus",
// 提取公共查找逻辑为函数
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"oaFlowStatusOpt",
row,
"oaFlowStatus"
)
return statusItem ? statusItem.confValue : "-"
},
className: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"oaFlowStatusOpt",
row,
"oaFlowStatus"
)
return statusItem ? statusItem.color : ""
}
},
{
title: "支付状态",
key: "oaFlowPaymentStatus",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"oaFlowPaymentStatusOpt",
row,
"oaFlowPaymentStatus"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
title: "企微审批单号",
key: "lastOaFlowCode"
},
{
title: "是否拆分支付",
key: "splitPay",
formatter: (row) => {
return row.splitPay == 1 ? "是" : "否"
}
},
{
title: "评估单编号",
key: "evalOrderNo"
}
]
],
tableParams: {
tableColumns: [
{
label: "支付方式",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"payStatusOpt",
row,
"paymentType"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
label: "支付状态",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"oaFlowPaymentStatusOpt",
row,
"oaFlowPaymentStatus"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
label: "支付金额",
prop: "paymentAmount",
formatter: (row) => {
return row.paymentAmount || row.paymentAmount === 0
? "¥" + row.paymentAmount
: "-"
}
},
{
label: "企微审批单号",
prop: "oaFlowCode"
},
{
label: "企微审批状态",
addHtml: "oaFlowStatusHtml"
},
{
label: "是否拆分",
formatter: (row) => {
return row.splitPay == 1 ? "是" : "否"
}
},
{
label: "拆分详情",
prop: "detail"
}
]
}
},
{
title: "合同信息",
......@@ -445,10 +484,8 @@ export default {
: {}
this.detailInfo = {
...this.detailInfo,
carTypeName: res.carBase ? res.carBase.carTypeName : "",
...this.$route.query
carTypeName: res.carBase ? res.carBase.carTypeName : ""
}
console.log(res, this.$route.query, "detail")
})
},
handleCancel() {
......@@ -472,8 +509,6 @@ export default {
description: this.detailInfo.description
}
getContractEdit(params).then((res) => {
console.log(res)
this.handleCancel()
this.$message.success("操作成功")
})
......@@ -575,5 +610,21 @@ export default {
}
}
}
.table-box {
padding: 0 20px 20px;
}
.online-status {
display: flex;
justify-content: center;
align-items: center;
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
}
@import "./detail.scss";
</style>
......@@ -446,10 +446,7 @@ export default {
this.$router.push({
path: "/contractView",
query: {
id: data.id,
lastOaFlowCode: data.lastOaFlowCode,
oaFlowPaymentStatus: data.oaFlowPaymentStatus,
oaFlowStatus: data.oaFlowStatus
id: data.id
}
})
},
......
......@@ -352,10 +352,10 @@ export default {
},
async handleExport() {
try {
let params = this.getParams().t
let params = this.getParams()
params.updatedBy = this.userInfo.detail.userName
params.currentPage = 1
params.ids = this.filterIds()
params.t.ids = this.filterIds()
params.method = "/sunlightInspiresConfig/export"
params.server_provider_type = "gsc"
params.server_provider_name = "gsc-vcp-web-facade"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!