Commit b1e75db0 by wangzhihui

需求优化开发

1 parent d46762d3
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
<div class="form-line"> <div class="form-line">
<el-form :inline="true" :model="dataForm"> <el-form :inline="true" :model="dataForm">
<el-form-item label="请选择门店:"> <el-form-item label="请选择门店:">
<el-select v-model="dataForm.merchantNos" placeholder="请选择"> <el-select
v-model="dataForm.merchantNos"
filterable
placeholder="请选择"
>
<el-option <el-option
:label="item.merchantName" :label="item.merchantName"
:value="item.merchantId" :value="item.merchantId"
......
...@@ -116,6 +116,36 @@ ...@@ -116,6 +116,36 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </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"> <div class="form_div" v-if="item.custom">
<el-form <el-form
:ref="item.childRef" :ref="item.childRef"
...@@ -256,31 +286,26 @@ export default { ...@@ -256,31 +286,26 @@ export default {
} }
}, },
{ {
title: "企微审批状态", title: "评估单编号",
key: "oaFlowStatus", key: "evalOrderNo"
// 提取公共查找逻辑为函数 }
],
tableParams: {
tableColumns: [
{
label: "支付方式",
formatter: (row) => { formatter: (row) => {
const statusItem = this.getStatusItem( const statusItem = this.getStatusItem(
this.baseData, this.baseData,
"oaFlowStatusOpt", "payStatusOpt",
row, row,
"oaFlowStatus" "paymentType"
) )
return statusItem ? statusItem.confValue : "-" return statusItem ? statusItem.confValue : "-"
},
className: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"oaFlowStatusOpt",
row,
"oaFlowStatus"
)
return statusItem ? statusItem.color : ""
} }
}, },
{ {
title: "支付状态", label: "支付状态",
key: "oaFlowPaymentStatus",
formatter: (row) => { formatter: (row) => {
const statusItem = this.getStatusItem( const statusItem = this.getStatusItem(
this.baseData, this.baseData,
...@@ -291,22 +316,36 @@ export default { ...@@ -291,22 +316,36 @@ export default {
return statusItem ? statusItem.confValue : "-" return statusItem ? statusItem.confValue : "-"
} }
}, },
{
label: "支付金额",
prop: "paymentAmount",
formatter: (row) => {
return row.paymentAmount || row.paymentAmount === 0
? "¥" + row.paymentAmount
: "-"
}
},
{ {
title: "企微审批单号", label: "企微审批单号",
key: "lastOaFlowCode" prop: "oaFlowCode"
}, },
{ {
title: "是否拆分支付", label: "企微审批状态",
key: "splitPay", addHtml: "oaFlowStatusHtml"
},
{
label: "是否拆分",
formatter: (row) => { formatter: (row) => {
return row.splitPay == 1 ? "是" : "否" return row.splitPay == 1 ? "是" : "否"
} }
}, },
{ {
title: "评估单编号", label: "拆分详情",
key: "evalOrderNo" prop: "detail"
} }
] ]
}
}, },
{ {
title: "合同信息", title: "合同信息",
...@@ -445,10 +484,8 @@ export default { ...@@ -445,10 +484,8 @@ export default {
: {} : {}
this.detailInfo = { this.detailInfo = {
...this.detailInfo, ...this.detailInfo,
carTypeName: res.carBase ? res.carBase.carTypeName : "", carTypeName: res.carBase ? res.carBase.carTypeName : ""
...this.$route.query
} }
console.log(res, this.$route.query, "detail")
}) })
}, },
handleCancel() { handleCancel() {
...@@ -472,8 +509,6 @@ export default { ...@@ -472,8 +509,6 @@ export default {
description: this.detailInfo.description description: this.detailInfo.description
} }
getContractEdit(params).then((res) => { getContractEdit(params).then((res) => {
console.log(res)
this.handleCancel() this.handleCancel()
this.$message.success("操作成功") this.$message.success("操作成功")
}) })
...@@ -575,5 +610,21 @@ export default { ...@@ -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"; @import "./detail.scss";
</style> </style>
...@@ -446,10 +446,7 @@ export default { ...@@ -446,10 +446,7 @@ export default {
this.$router.push({ this.$router.push({
path: "/contractView", path: "/contractView",
query: { query: {
id: data.id, id: data.id
lastOaFlowCode: data.lastOaFlowCode,
oaFlowPaymentStatus: data.oaFlowPaymentStatus,
oaFlowStatus: data.oaFlowStatus
} }
}) })
}, },
......
...@@ -352,10 +352,10 @@ export default { ...@@ -352,10 +352,10 @@ export default {
}, },
async handleExport() { async handleExport() {
try { try {
let params = this.getParams().t let params = this.getParams()
params.updatedBy = this.userInfo.detail.userName params.updatedBy = this.userInfo.detail.userName
params.currentPage = 1 params.currentPage = 1
params.ids = this.filterIds() params.t.ids = this.filterIds()
params.method = "/sunlightInspiresConfig/export" params.method = "/sunlightInspiresConfig/export"
params.server_provider_type = "gsc" params.server_provider_type = "gsc"
params.server_provider_name = "gsc-vcp-web-facade" 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!