@@ -305,7 +335,7 @@ import { useMessage } from '/@/hooks/web/useMessage'
import { formatTableData } from '/@/hooks/web/common'
import { updateTableField } from '/@/hooks/component/costomForm'
const lstDraftCompareRlt = defineAsyncComponent(() => import("../../../components/lstDraftCompareRlt/index.vue"))
-import { RefreshYGT } from './api/BookingLedger.js'
+import { RefreshYGT,RefreshYard } from './api/BookingLedger.js'
import { useI18n } from '/@/hooks/web/useI18n'
const { t } = useI18n()
import { useAppStore } from '/@/store/modules/app'
@@ -549,6 +579,26 @@ function handleGetWebDataYZ(row, code) {
setLoading(false)
})
}
+function handleGetWebData(row, code) {
+ const data = {
+ bookingId: row.id,
+ webCode: code
+ }
+ webData.value = ''
+ webDataTitle.value = '场站数据'
+ setLoading(true)
+ GetWebData(data).then((res) => {
+ if (res.code === 200) {
+ webData.value = res.data
+ webDataFlag.value = true
+ } else {
+ createMessage.error(res.message)
+ }
+ setLoading(false)
+ }).catch(() => {
+ setLoading(false)
+ })
+}
const bsloading = ref(false)
// 校验运踪状态
const checkBookStatus = (id) => {
@@ -558,6 +608,13 @@ const checkBookStatus = (id) => {
reload()
})
}
+const handleRefshYard = (id) => {
+ setLoading(true)
+ RefreshYard({ ids: [id], businessType: 1 }).then(res => {
+ reload()
+ setLoading(false)
+ })
+}
const isAdvancedQuery = ref(false)
// const showColumns = ref({})
// const formAllData = ref([])
@@ -659,30 +716,37 @@ onMounted(() => {