Commit d3ed75a0 by zhangxw

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

1 parent 37fc5138
......@@ -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">{{ 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.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>
</div>
<template v-if="detailInfo.oldOrderCode">
......@@ -131,6 +139,7 @@
</el-form>
</div>
</div>
<el-image-viewer v-if="imgVisible" :on-close="closeImgViewer" :url-list="imgList" :initial-index="initialIndex" />
</baseDialog>
</template>
<script>
......@@ -138,6 +147,10 @@ import { djOrderTypeMap, discountTypeMap } from "@/common/constants"
import { getAuditOrderDetail, auditGoodsOrderApplyRecord } from "@api/order"
export default {
name: "ApprovalDialog",
components: {
"el-image-viewer": () =>
import("element-ui/packages/image/src/image-viewer")
},
props: {
approvalVisible: {
type: Boolean,
......@@ -171,7 +184,8 @@ export default {
},
formObj: {
remark: ''
}
},
imgVisible: false
}
},
created() {
......@@ -195,6 +209,15 @@ export default {
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) {
const result = []
......@@ -255,6 +278,9 @@ export default {
.form-item-half {
width: calc(50% - 10px) !important;
display: inline-block;
::v-deep .el-form-item__content {
width: calc(100% - 162px);
}
}
.textarea-input {
width: 585px;
......@@ -263,4 +289,16 @@ export default {
.split {
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>
\ 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!