|
@@ -69,14 +69,16 @@ const orderStore = useOrderStore()
|
|
|
const fileStore = useFileStore()
|
|
const fileStore = useFileStore()
|
|
|
const message = useMessage()
|
|
const message = useMessage()
|
|
|
const currentOrdersId = ref('')
|
|
const currentOrdersId = ref('')
|
|
|
-const orderscouponid = ref('')
|
|
|
|
|
|
|
+const coupon2sid = ref('')
|
|
|
const orderDetail = ref<OrderType>({} as OrderType)
|
|
const orderDetail = ref<OrderType>({} as OrderType)
|
|
|
|
|
|
|
|
// 获取订单详情
|
|
// 获取订单详情
|
|
|
const getOrderDetail = async () => {
|
|
const getOrderDetail = async () => {
|
|
|
- const res = await orderStore.getOrderDetail(currentOrdersId.value)
|
|
|
|
|
|
|
+ const res = await orderStore.getOrderViewDetail({
|
|
|
|
|
+ ordersid: currentOrdersId.value,
|
|
|
|
|
+ })
|
|
|
orderDetail.value = res
|
|
orderDetail.value = res
|
|
|
- orderscouponid.value = res.orderscouponid
|
|
|
|
|
|
|
+ coupon2sid.value = res.coupon2sid
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取订单状态
|
|
// 获取订单状态
|
|
@@ -122,7 +124,7 @@ const getInvoiceImg = async () => {
|
|
|
// 获取购机者证件照片附件
|
|
// 获取购机者证件照片附件
|
|
|
const getIdentityImg = async () => {
|
|
const getIdentityImg = async () => {
|
|
|
const res = await fileStore.getAttachmentList({
|
|
const res = await fileStore.getAttachmentList({
|
|
|
- attlsh: orderscouponid.value, // 关联id为优惠劵id
|
|
|
|
|
|
|
+ attlsh: coupon2sid.value, // 关联id为优惠劵id
|
|
|
attmodel: 'coupon_identity',
|
|
attmodel: 'coupon_identity',
|
|
|
})
|
|
})
|
|
|
identityImg.value = res
|
|
identityImg.value = res
|
|
@@ -131,7 +133,7 @@ const getIdentityImg = async () => {
|
|
|
// 获取购机者照片附件
|
|
// 获取购机者照片附件
|
|
|
const getBuyerImg = async () => {
|
|
const getBuyerImg = async () => {
|
|
|
const res = await fileStore.getAttachmentList({
|
|
const res = await fileStore.getAttachmentList({
|
|
|
- attlsh: orderscouponid.value, // 关联id为优惠劵id
|
|
|
|
|
|
|
+ attlsh: coupon2sid.value, // 关联id为优惠劵id
|
|
|
attmodel: 'coupon_buyer',
|
|
attmodel: 'coupon_buyer',
|
|
|
})
|
|
})
|
|
|
buyerImg.value = res
|
|
buyerImg.value = res
|