@@ -94,7 +94,7 @@ onBeforeUnmount(() => { active = false; generation++; openGeneration++ })
< template # toolbar -start > < h1 > 自有业务 < InlineHelp title = "查询范围说明" > 仅统计未实际接入拼车货物的已装车排车 , 与车辆归属无关 ; 日期和时间按浏览器本地时区显示 , 统计覆盖同一完整筛选范围 。 < / InlineHelp > < / h1 > < / template >
< template # toolbar -start > < h1 > 自有业务 < InlineHelp title = "查询范围说明" > 仅统计未实际接入拼车货物的已装车排车 , 与车辆归属无关 ; 日期和时间按浏览器本地时区显示 , 统计覆盖同一完整筛选范围 。 < / InlineHelp > < / h1 > < / template >
< template # filters > < QueryToolbar v-model = "filters" :fields="fields" ariaLabel="自有业务筛选" preference-key="owned-business-query" :loading="loading" @search="search" / > < / template >
< template # filters > < QueryToolbar v-model = "filters" :fields="fields" ariaLabel="自有业务筛选" preference-key="owned-business-query" :loading="loading" @search="search" / > < / template >
< template # notices > < LoadErrorState v-if = "error" title="自有业务读取未完成" :message="error.message" @retry="load"><template #details><ApiErrorMeta :details="error" /></template></LoadErrorState><p v-if="warehouseError">{{ warehouseError.message }} <el-button link @click="loadWarehouses">重试目录</el-button></p><p v-if="!access.can('platform:warehouse:list')" > 没有公共仓库目录读取权限 , 仓库筛选暂不可选 。 < / p > < / template >
< template # notices > < LoadErrorState v-if = "error" title="自有业务读取未完成" :message="error.message" @retry="load"><template #details><ApiErrorMeta :details="error" /></template></LoadErrorState><p v-if="warehouseError">{{ warehouseError.message }} <el-button link @click="loadWarehouses">重试目录</el-button></p><p v-if="!access.can('platform:warehouse:list')" > 没有公共仓库目录读取权限 , 仓库筛选暂不可选 。 < / p > < / template >
< template # actions = "{ row }" > < div class = "density -actions" > < el-button class = "density-action" link @click ="router.push(`/overseas-master-data/owned-business/${encodeURIComponent(row.dispatchNo)}`)" > 查看明细 < / el -button > < el-button v-if = "access.can(permission.ownedBusinessEdit)" class="density-action" link :disabled="opening || mutating || !row.actions.edit.allowed" @click="openAction(row as OwnedBusinessRow, 'operations')">登记运营信息</el-button><el-button class="density-action" link :disabled="opening || mutating" @click="openAction(row as OwnedBusinessRow, 'photos')" > {{ access.can ( permission.ownedBusinessUpload ) & & row.actions.upload.allowed ? ' 上传照片 ' : ' 查看照片 ' }} < / el -button > < / div > < / template >
< template # actions = "{ row }" > < div class = "row-actions density-actions admin-text -actions" > < el-button class = "density-action" link @click ="router.push(`/overseas-master-data/owned-business/${encodeURIComponent(row.dispatchNo)}`)" > 查看明细 < / el -button > < el-button v-if = "access.can(permission.ownedBusinessEdit)" class="density-action" link :disabled="opening || mutating || !row.actions.edit.allowed" @click="openAction(row as OwnedBusinessRow, 'operations')">登记运营信息</el-button><el-button class="density-action" link :disabled="opening || mutating" @click="openAction(row as OwnedBusinessRow, 'photos')" > {{ access.can ( permission.ownedBusinessUpload ) & & row.actions.upload.allowed ? ' 上传照片 ' : ' 查看照片 ' }} < / el -button > < / div > < / template >
< template # driver = "{ row }" > { { text ( row . driver . name ) } } < br > { { text ( row . driver . phone ) } } < / template >
< template # driver = "{ row }" > { { text ( row . driver . name ) } } < br > { { text ( row . driver . phone ) } } < / template >
< template # appointments = "{ row }" > < div v-for = "destination in row.destinations" :key="destination.destinationKey" class="owned-business-destination"><strong>{{ destination.warehouseCode || destination.warehouseName || '—' }}</strong><div v-for="appointment in destination.appointments" :key="appointment.appointmentNo">{{ appointment.appointmentNo }}<small v-if="appointment.confirmationNo">确认号 {{ appointment.confirmationNo }}</small></div><span v-if="!destination.appointments.length" > — < / span > < / div > < / template >
< template # appointments = "{ row }" > < div v-for = "destination in row.destinations" :key="destination.destinationKey" class="owned-business-destination"><strong>{{ destination.warehouseCode || destination.warehouseName || '—' }}</strong><div v-for="appointment in destination.appointments" :key="appointment.appointmentNo">{{ appointment.appointmentNo }}<small v-if="appointment.confirmationNo">确认号 {{ appointment.confirmationNo }}</small></div><span v-if="!destination.appointments.length" > — < / span > < / div > < / template >
< template # destinations = "{ row }" > < div v-for = "destination in row.destinations" :key="destination.destinationKey" class="owned-business-destination"><strong>{{ destination.warehouseCode || destination.warehouseName || destination.address || '—' }}</strong><div v-for="appointment in destination.appointments" :key="appointment.appointmentNo" > 预约 {{ time ( appointment.scheduledAt ) }} < / div > < div > 实到 { { time ( destination . actualArrivedAt ) } } < / div > < / div > < / template >
< template # destinations = "{ row }" > < div v-for = "destination in row.destinations" :key="destination.destinationKey" class="owned-business-destination"><strong>{{ destination.warehouseCode || destination.warehouseName || destination.address || '—' }}</strong><div v-for="appointment in destination.appointments" :key="appointment.appointmentNo" > 预约 {{ time ( appointment.scheduledAt ) }} < / div > < div > 实到 { { time ( destination . actualArrivedAt ) } } < / div > < / div > < / template >