Commit a11e4cdc by wangzhihui

```

feat(purchase): 订单详情对话框优化

- 新增凭证列显示签收凭证图片
- 重构签收凭证展示逻辑,使用表格插槽渲染
- 优化CSS样式格式,统一间距规范
- 添加空白行以改善代码可读性
```
1 parent ca45e4dc
<template> <template>
<baseDialog :config="dialogConfig.setting" <baseDialog :config="dialogConfig.setting" :dialog-config="dialogConfig.config" :is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow"
@closeDialog="handleDetailClose"> @closeDialog="handleDetailClose">
<div v-if="dialogShow" class="detail-content"> <div v-if="dialogShow" class="detail-content">
<div class="addressTitle"> <div class="addressTitle">
<img alt="" <img alt="" class="icon" src="../images/addressIcon.webp">
class="icon"
src="../images/addressIcon.webp">
<span class="title">{{ paramsObj.merchantName }}</span> <span class="title">{{ paramsObj.merchantName }}</span>
</div> </div>
<div class="address-info"> <div class="address-info">
...@@ -21,35 +17,23 @@ ...@@ -21,35 +17,23 @@
<div v-if="detailInfo.terminateDeliveryInstruction" class="address-info"> <div v-if="detailInfo.terminateDeliveryInstruction" class="address-info">
<span class="address">结束发货说明:<span class="label">{{ detailInfo.terminateDeliveryInstruction }}</span></span> <span class="address">结束发货说明:<span class="label">{{ detailInfo.terminateDeliveryInstruction }}</span></span>
</div> </div>
<div v-if="detailInfo.uploadFileUrls"
class="address-info" <div class="table-class">
style="justify-content: flex-start; align-items: flex-start;"> <d2-table ref="purchaseOrderDetailTable" :table-data="detailInfo.tableData" :table-params="tableParams"
<span class="address">签收凭证:</span> :table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
<div v-if="detailInfo.uploadFileUrls"> <template #uploadFileUrls="scope">
<el-image v-for="(url, index) in detailInfo.uploadFileUrls.split(',')" <div v-if="scope.scope.uploadFileUrls">
:key="index" <el-image fit="fill" :preview-src-list="scope.scope.uploadFileUrls.split(',')"
class="sign-image" :src="scope.scope.uploadFileUrls.split(',')[0]" style="width: 36px; height: 36px;">
fit="cover" </el-image>
:preview-src-list="detailInfo.uploadFileUrls.split(',')"
:src="url"
style="width: 36px; height: 36px; margin-right: 8px; cursor: pointer;" />
</div> </div>
<div v-else> <div v-else>
- -
</div> </div>
</div> </template>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable"
:table-data="detailInfo.tableData"
:table-params="tableParams"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return" src="@/assets/retrun.png">
alt=""
class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
</template> </template>
...@@ -58,15 +42,12 @@ ...@@ -58,15 +42,12 @@
{{ scope.scope.filmRollList[0] }} {{ scope.scope.filmRollList[0] }}
</div> </div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1"> <div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1">
<el-popover placement="top" <el-popover placement="top" trigger="hover" width="200">
trigger="hover"
width="200">
<div class="film-roll-box"> <div class="film-roll-box">
<div class="title"> <div class="title">
膜卷号 膜卷号
</div> </div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" <div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
:key="subIndex"
class="merchant-item"> class="merchant-item">
{{ subItem }} {{ subItem }}
</div> </div>
...@@ -84,7 +65,8 @@ ...@@ -84,7 +65,8 @@
</div> </div>
</template> </template>
<template #carName="scope"> <template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top"> <el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index"> <div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
...@@ -106,9 +88,7 @@ ...@@ -106,9 +88,7 @@
审核记录 审核记录
</div> </div>
<div class="record-div"> <div class="record-div">
<div v-for="(item, index) in detailInfo.auditDetaiList" <div v-for="(item, index) in detailInfo.auditDetaiList" :key="index" class="record-div-d">
:key="index"
class="record-div-d">
<span class="dot"></span> <span class="dot"></span>
<span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span> <span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span>
<span class="span-txt-two" style="display: inline-block; width: 116px;"> <span class="span-txt-two" style="display: inline-block; width: 116px;">
...@@ -117,15 +97,15 @@ ...@@ -117,15 +97,15 @@
</span> </span>
<span v-if="item.rejectedStatus"> <span v-if="item.rejectedStatus">
<span style="display: inline-block; margin: 0 8px;">至</span> <span style="display: inline-block; margin: 0 8px;">至</span>
<span>{{ item.rejectedStatus ? $$(rejectedForShow, [item.rejectedStatus], 'rejectedStatus') : '' }}</span> <span>
{{ item.rejectedStatus ? $$(rejectedForShow, [item.rejectedStatus], 'rejectedStatus')
: '' }}
</span>
</span> </span>
</span> </span>
<span class="span-txt-two reviewer ellipsis"> <span class="span-txt-two reviewer ellipsis">
审核人: 审核人:
<el-tooltip class="item" <el-tooltip class="item" :content="item.reviewedBy" effect="dark" placement="right"
:content="item.reviewedBy"
effect="dark"
placement="right"
popper-class="remark-popper-class"> popper-class="remark-popper-class">
<el-button type="text"> <el-button type="text">
{{ item.reviewedBy }} {{ item.reviewedBy }}
...@@ -135,25 +115,21 @@ ...@@ -135,25 +115,21 @@
<span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span> <span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span>
<span v-if="item.remark" class="span-txt-two"> <span v-if="item.remark" class="span-txt-two">
备注: 备注:
<el-tooltip class="item" <el-tooltip class="item" :content="item.remark" effect="dark" placement="right"
:content="item.remark"
effect="dark"
placement="right"
popper-class="remark-popper-class"> popper-class="remark-popper-class">
<el-button type="text"> <el-button type="text">
{{ item.remark ? (item.remark.length > 12 ? (`${item.remark.slice(0, 12)}...`) : item.remark) : '' }} {{ item.remark ? (item.remark.length > 12 ? (`${item.remark.slice(0, 12)}...`)
: item.remark) : '' }}
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</span> </span>
<span v-if="[4, 6, 7, 9].includes(item.status)" class="span-txt-two"> <span v-if="[4, 6, 7, 9].includes(item.status)" class="span-txt-two">
驳回原因: 驳回原因:
<el-tooltip class="item" <el-tooltip class="item" :content="item.rejectCause" effect="dark" placement="right"
:content="item.rejectCause"
effect="dark"
placement="right"
popper-class="remark-popper-class"> popper-class="remark-popper-class">
<el-button type="text"> <el-button type="text">
{{ item.rejectCause ? (item.rejectCause.length > 12 ? (`${item.rejectCause.slice(0, 12)}...`) : item.rejectCause) : '' }} {{ item.rejectCause ? (item.rejectCause.length > 12 ? (`${item.rejectCause.slice(0,
12)}...`) : item.rejectCause) : '' }}
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</span> </span>
...@@ -273,6 +249,12 @@ export default { ...@@ -273,6 +249,12 @@ export default {
}, },
}, },
{ {
label: "凭证",
prop: "uploadFileUrls",
width: "138px",
addHtml: "uploadFileUrls",
},
{
label: "备注", label: "备注",
prop: "remark", prop: "remark",
width: 150, width: 150,
...@@ -444,7 +426,7 @@ export default { ...@@ -444,7 +426,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
> span { >span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -541,6 +523,7 @@ export default { ...@@ -541,6 +523,7 @@ export default {
.emptyImg { .emptyImg {
width: 64px; width: 64px;
} }
.tips { .tips {
font-size: 14px; font-size: 14px;
color: #999999; color: #999999;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!