|
@@ -63,6 +63,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+ <!-- 工单变更记录 -->
|
|
|
|
|
+ <TrackRecord :records="records" />
|
|
|
|
|
+
|
|
|
<!-- 底部操作按钮 -->
|
|
<!-- 底部操作按钮 -->
|
|
|
<view class="fixed-bottom" v-if="showButtons">
|
|
<view class="fixed-bottom" v-if="showButtons">
|
|
|
<template v-if="isCreator">
|
|
<template v-if="isCreator">
|
|
@@ -95,6 +98,7 @@
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import { ref, computed, onMounted } from 'vue'
|
|
import { ref, computed, onMounted } from 'vue'
|
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
|
|
+import TrackRecord from '@/pages/order/components/track-record.vue'
|
|
|
|
|
|
|
|
const workOrderId = ref('')
|
|
const workOrderId = ref('')
|
|
|
const orderType = ref('') // 1-卖书 2-回收
|
|
const orderType = ref('') // 1-卖书 2-回收
|
|
@@ -102,6 +106,7 @@ const waybillCode = ref('')
|
|
|
const orderId = ref('')
|
|
const orderId = ref('')
|
|
|
const workOrderDetail = ref(null)
|
|
const workOrderDetail = ref(null)
|
|
|
const currentUserId = ref(null)
|
|
const currentUserId = ref(null)
|
|
|
|
|
+const records = ref([])
|
|
|
|
|
|
|
|
// 判断是否为创建人
|
|
// 判断是否为创建人
|
|
|
const isCreator = computed(() => {
|
|
const isCreator = computed(() => {
|
|
@@ -145,6 +150,7 @@ const getWorkOrderDetail = async () => {
|
|
|
|
|
|
|
|
if (res.code === 200 && res.data) {
|
|
if (res.code === 200 && res.data) {
|
|
|
workOrderDetail.value = res.data
|
|
workOrderDetail.value = res.data
|
|
|
|
|
+ records.value = res.data.changeRecords || []
|
|
|
} else {
|
|
} else {
|
|
|
uni.$u.toast(res.msg || '获取工单详情失败')
|
|
uni.$u.toast(res.msg || '获取工单详情失败')
|
|
|
}
|
|
}
|