Commit d3ed75a0 by zhangxw

订单审核添加备注/交易流水号/凭证字段

1 parent 37fc5138
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
<el-form-item label="订单类型:" class="form-item-half">{{ djOrderTypeMap[detailInfo.djOrderType] }}</el-form-item> <el-form-item label="订单类型:" class="form-item-half">{{ djOrderTypeMap[detailInfo.djOrderType] }}</el-form-item>
<el-form-item label="总价:" class="form-item-half">{{ detailInfo.finalPrice }}</el-form-item> <el-form-item label="总价:" class="form-item-half">{{ detailInfo.finalPrice }}</el-form-item>
<el-form-item label="提单人:" class="form-item-half">{{ detailInfo.sellerName }}<span class="split">|</span>{{ detailInfo.merchantName }}</el-form-item> <el-form-item label="提单人:" class="form-item-half">{{ detailInfo.sellerName }}<span class="split">|</span>{{ detailInfo.merchantName }}</el-form-item>
<el-form-item label="备注:" class="form-item-half">{{ detailInfo.orderRemark || '-' }}</el-form-item>
<el-form-item label="交易流水号:" :class="detailInfo.oldOrderCode ? '' : 'form-item-half'">{{ detailInfo.outTradeNo || '-' }}</el-form-item>
<el-form-item label="凭证:">
<div class="image-box" v-if="detailInfo.payVoucherList.length">
<img class="image-item" v-for="(item, index) in detailInfo.payVoucherList" :key="index" @click="handleImg(detailInfo.payVoucherList, 'payVoucher', index)" :src="item.payVoucher" alt="" />
</div>
<div v-else>-</div>
</el-form-item>
</el-form> </el-form>
</div> </div>
<template v-if="detailInfo.oldOrderCode"> <template v-if="detailInfo.oldOrderCode">
...@@ -131,6 +139,7 @@ ...@@ -131,6 +139,7 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<el-image-viewer v-if="imgVisible" :on-close="closeImgViewer" :url-list="imgList" :initial-index="initialIndex" />
</baseDialog> </baseDialog>
</template> </template>
<script> <script>
...@@ -138,6 +147,10 @@ import { djOrderTypeMap, discountTypeMap } from "@/common/constants" ...@@ -138,6 +147,10 @@ import { djOrderTypeMap, discountTypeMap } from "@/common/constants"
import { getAuditOrderDetail, auditGoodsOrderApplyRecord } from "@api/order" import { getAuditOrderDetail, auditGoodsOrderApplyRecord } from "@api/order"
export default { export default {
name: "ApprovalDialog", name: "ApprovalDialog",
components: {
"el-image-viewer": () =>
import("element-ui/packages/image/src/image-viewer")
},
props: { props: {
approvalVisible: { approvalVisible: {
type: Boolean, type: Boolean,
...@@ -171,7 +184,8 @@ export default { ...@@ -171,7 +184,8 @@ export default {
}, },
formObj: { formObj: {
remark: '' remark: ''
} },
imgVisible: false
} }
}, },
created() { created() {
...@@ -195,6 +209,15 @@ export default { ...@@ -195,6 +209,15 @@ export default {
this.detailInfo = res this.detailInfo = res
}) })
}, },
handleImg(url, name, index) {
this.imgVisible = !this.imgVisible
this.initialIndex = index
this.imgList = url.map((item) => item[name])
this.imgUrlName = name
},
closeImgViewer() {
this.imgVisible = false
},
// 处理商品数据 // 处理商品数据
flattenGoodsOrder(data) { flattenGoodsOrder(data) {
const result = [] const result = []
...@@ -255,6 +278,9 @@ export default { ...@@ -255,6 +278,9 @@ export default {
.form-item-half { .form-item-half {
width: calc(50% - 10px) !important; width: calc(50% - 10px) !important;
display: inline-block; display: inline-block;
::v-deep .el-form-item__content {
width: calc(100% - 162px);
}
} }
.textarea-input { .textarea-input {
width: 585px; width: 585px;
...@@ -263,4 +289,16 @@ export default { ...@@ -263,4 +289,16 @@ export default {
.split { .split {
margin: 0 5px; margin: 0 5px;
} }
.image-box {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
.image-item {
width: 48px;
height: 48px;
border-radius: 4px;
overflow: hidden;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!