4月17
This commit is contained in:
parent
31c71bf68f
commit
f1dba6c6ab
@ -123,7 +123,7 @@ export function putI18nCollect(data:any){
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function getExpressList(){
|
||||
export function getExpressList(data?: { systemOnly?: boolean }){
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
@ -132,6 +132,36 @@ export function getExpressList(){
|
||||
v: '1.0',
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data ?? {},
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function getPlatformList(data?: { systemOnly?: boolean }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'index.getPlatformList',
|
||||
v: '1.0',
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data ?? {},
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
/** 快递公司产品类型列表(可选按快递公司编码筛选) */
|
||||
export function getExpressProductTypeList(data?: { express_code?: string }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'index.getExpressProductTypeList',
|
||||
v: '1.0',
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data ?? {},
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
@ -107,6 +107,7 @@ export const orderList = (data: any): Promise<any> => {
|
||||
}
|
||||
|
||||
// 查询订单详情(接口文档:order.detail)
|
||||
// 已停用:deliveryOrder 页面已改为使用 order.deliveryOrder.list 返回数据进行详情展示,不再依赖该接口。
|
||||
export const orderDetail = (data: any): Promise<any> => {
|
||||
return request({
|
||||
url: '/system',
|
||||
|
||||
@ -118,7 +118,7 @@ export function getComputer() {
|
||||
})
|
||||
}
|
||||
|
||||
export function getExpressList() {
|
||||
export function getExpressList(data?: { systemOnly?: boolean }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
@ -127,7 +127,10 @@ export function getExpressList() {
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data:{},
|
||||
data: {
|
||||
systemOnly: true,
|
||||
...(data || {})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
68
src/api/setting.express/express.ts
Normal file
68
src/api/setting.express/express.ts
Normal file
@ -0,0 +1,68 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const v = '1.0'
|
||||
|
||||
export function expressList(data: any) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.express.list',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data || {}
|
||||
})
|
||||
}
|
||||
|
||||
export function expressListBase() {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.express.listBase',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: {}
|
||||
})
|
||||
}
|
||||
|
||||
export function expressCreate(data: { code: string, name: string, platform?: string }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.express.create',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function expressCheckCodeUnique(data: { id?: number, code: string }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.express.checkCodeUnique',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function expressUpdate(data: any) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.express.update',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
55
src/api/setting.expressInterface/expressInterface.ts
Normal file
55
src/api/setting.expressInterface/expressInterface.ts
Normal file
@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const v = '1.0'
|
||||
|
||||
export function expressInterfaceList(data?: { page?: number; page_size?: number; keyword?: string }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.expressInterface.list',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data || {}
|
||||
})
|
||||
}
|
||||
|
||||
export function expressInterfaceCreate(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.expressInterface.create',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function expressInterfaceUpdate(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.expressInterface.update',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function expressInterfaceDelete(data: { id: number }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.expressInterface.delete',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
64
src/api/setting.platform/platform.ts
Normal file
64
src/api/setting.platform/platform.ts
Normal file
@ -0,0 +1,64 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const v = '1.0'
|
||||
|
||||
export function settingPlatformList(data?: { page?: number; page_size?: number; keyword?: string }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.platform.list',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data || {}
|
||||
})
|
||||
}
|
||||
|
||||
export function settingPlatformCreate(data: {
|
||||
code: string
|
||||
name: string
|
||||
platform_code: string
|
||||
}) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.platform.create',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function settingPlatformUpdate(data: {
|
||||
id: number
|
||||
code: string
|
||||
name: string
|
||||
platform_code: string
|
||||
}) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.platform.update',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function settingPlatformDelete(data: { id: number }) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'setting.platform.delete',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -57,6 +57,7 @@ export default {
|
||||
'Role':'Role',
|
||||
'Validity period':'Validity period',
|
||||
// 'StoreIndex':'Store',
|
||||
'expressinterface':'Express Interface',
|
||||
},
|
||||
"login": {
|
||||
"title": "Login",
|
||||
|
||||
@ -57,7 +57,7 @@ export default {
|
||||
'Role':'角色管理',
|
||||
'Validity period':'效期预警',
|
||||
// 'StoreIndex':'货主',
|
||||
|
||||
'expressinterface':'快递接口',
|
||||
},
|
||||
"login": {
|
||||
"title": "登录",
|
||||
|
||||
@ -22,4 +22,6 @@ export const componentMap: Record<string, any> = {
|
||||
'system/print/station': () => import('@/views/system/setting/printStation/index.vue'),
|
||||
'storage/log': () => import('@/views/storage/log/index.vue'),
|
||||
'storage/validityperiod':() =>import('@/views/storage/validityperiod/index.vue'),
|
||||
'system/setting/expressinterface/index':() => import('@/views/system/setting/expressinterface/index.vue'),
|
||||
'system/setting/encoding/index':() => import('@/views/system/setting/encoding/index.vue'),
|
||||
};
|
||||
@ -110,6 +110,7 @@ import {
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -266,11 +267,24 @@ function onQuickSearch() {
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
setTimeout(() => {
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `归档订单-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
ElMessage.success('导出成功')
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -0,0 +1,117 @@
|
||||
<template>
|
||||
<div class="manual-form">
|
||||
<el-input-number
|
||||
v-model="manualForm.warehouseId"
|
||||
:min="1"
|
||||
:step="1"
|
||||
size="small"
|
||||
controls-position="right"
|
||||
placeholder="单仓库ID"
|
||||
/>
|
||||
<el-input
|
||||
v-model="manualWarehouseIdsText"
|
||||
size="small"
|
||||
placeholder="仓库ID数组,逗号分隔(例:100000,1000028)"
|
||||
clearable
|
||||
/>
|
||||
<el-input-number
|
||||
v-model="manualForm.queryTimeoutMs"
|
||||
:min="1"
|
||||
:step="500"
|
||||
size="small"
|
||||
controls-position="right"
|
||||
placeholder="查询超时(ms)"
|
||||
/>
|
||||
<el-input-number
|
||||
v-model="manualForm.executionTimeoutMs"
|
||||
:min="1"
|
||||
:step="500"
|
||||
size="small"
|
||||
controls-position="right"
|
||||
placeholder="执行超时(ms)"
|
||||
/>
|
||||
<div class="action-wrap">
|
||||
<el-button size="small" type="warning" :loading="manualLoading" @click="submitManualOutbound">
|
||||
手动出库
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { orderOutboundOrder } from '@/api/order.outboundOrder/orderoutboundOrder'
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'success', data: any): void
|
||||
(e: 'loading-change', value: boolean): void
|
||||
}>()
|
||||
|
||||
const manualLoading = ref(false)
|
||||
const manualWarehouseIdsText = ref('')
|
||||
const manualForm = reactive({
|
||||
warehouseId: undefined as number | undefined,
|
||||
queryTimeoutMs: undefined as number | undefined,
|
||||
executionTimeoutMs: undefined as number | undefined
|
||||
})
|
||||
|
||||
function parseWarehouseIds(value: string): number[] {
|
||||
return value
|
||||
.split(',')
|
||||
.map((item) => item.trim())
|
||||
.filter((item) => !!item)
|
||||
.map((item) => Number(item))
|
||||
.filter((item) => Number.isFinite(item))
|
||||
}
|
||||
|
||||
function buildPayload() {
|
||||
const warehouseIds = parseWarehouseIds(manualWarehouseIdsText.value)
|
||||
const payload: Record<string, any> = {}
|
||||
if (manualForm.warehouseId) payload.warehouseId = manualForm.warehouseId
|
||||
if (warehouseIds.length) payload.warehouseIds = warehouseIds
|
||||
if (manualForm.queryTimeoutMs) payload.queryTimeoutMs = manualForm.queryTimeoutMs
|
||||
if (manualForm.executionTimeoutMs) payload.executionTimeoutMs = manualForm.executionTimeoutMs
|
||||
return payload
|
||||
}
|
||||
|
||||
async function submitManualOutbound() {
|
||||
if (manualLoading.value) return null
|
||||
manualLoading.value = true
|
||||
emit('loading-change', true)
|
||||
try {
|
||||
const res: any = await orderOutboundOrder.manualOutboundOrder(buildPayload())
|
||||
if (!res || ![1, 200].includes(res.code)) {
|
||||
throw new Error(res?.message || '手动出库迁移失败')
|
||||
}
|
||||
const data = res.data || null
|
||||
ElMessage.success('手动出库迁移已执行')
|
||||
emit('success', data)
|
||||
return data
|
||||
} catch (error: any) {
|
||||
ElMessage.error(error?.message || '手动出库迁移失败')
|
||||
throw error
|
||||
} finally {
|
||||
manualLoading.value = false
|
||||
emit('loading-change', false)
|
||||
}
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
submitManualOutbound
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.manual-form {
|
||||
display: grid;
|
||||
grid-template-columns: 180px minmax(280px, 1fr) 160px 160px auto;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.action-wrap {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
@ -39,6 +39,11 @@ export const COMMON_TRANSLATIONS: Record<string, Record<string, string>> = {
|
||||
'padding': '拣货中',
|
||||
'fin': '已完成'
|
||||
},
|
||||
pack_status: {
|
||||
'none': '未打包',
|
||||
'padding': '打包中',
|
||||
'fin': '已完成'
|
||||
},
|
||||
intercept_status: {
|
||||
'none': '无',
|
||||
'pending': '待拦截',
|
||||
@ -126,53 +131,53 @@ function orderTimeFormatter(_row: any, _column: any, cellValue: unknown) {
|
||||
// deliveryOrder相关配置
|
||||
export const deliveryAvailableFields = [
|
||||
{ label: '货主', value: 'store_id', type: 'select', options: [] },
|
||||
{ label: '订单号', value: 'delivery_order_code', type: 'text' },
|
||||
{ label: '店铺名称', value: 'shop_nick', type: 'text' },
|
||||
{ label: '来源平台', value: 'source_platform_name', type: 'text' },
|
||||
{ label: '收货人', value: 'name', type: 'text' },
|
||||
{ label: '手机号', value: 'mobile', type: 'text' },
|
||||
{ label: '物流公司', value: 'logistics_name', type: 'text' },
|
||||
{ label: '物流单号', value: 'express_code', type: 'text' },
|
||||
{ label: '紧急订单', value: 'is_urgency', type: 'select', options: [
|
||||
{ label: '是', value: 'Y' },
|
||||
{ label: '否', value: 'N' },
|
||||
]},
|
||||
{ label: '快递', value: '', type: 'input' },
|
||||
{ label: '来源平台', value: '', type: 'input' },
|
||||
{ label: '同步状态', value: '', type: 'input' },
|
||||
{ label: '出库单号', value: '', type: 'text' },
|
||||
{ label: '前置单号', value: '', type: 'input' },
|
||||
{ label: '物流单号', value: '', type: 'text' },
|
||||
{ label: '移动电话', value: '', type: 'text' },
|
||||
{ label: '固定电话', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
// { label: '', value: '', type: 'text' },
|
||||
{ label: '审核时间', value: '', type: 'daterange' },
|
||||
{ label: '系统创建时间', value: '', type: 'daterange' },
|
||||
{ label: '下单时间', value: '', type: 'daterange' },
|
||||
{ label: '支付时间', value: '', type: 'daterange' },
|
||||
// { label: '', value: '', type: 'daterange' },
|
||||
// { label: '', value: '', type: 'daterange' },
|
||||
// { label: '', value: '', type: 'daterange' },
|
||||
// { label: '', value: '', type: 'daterange' },
|
||||
{ label: '同步状态', value: 'sync_status', type: 'select', options: [
|
||||
{ label: '待同步', value: 'padding' },
|
||||
{ label: '已同步', value: 'fin' },
|
||||
{ label: '错误', value: 'error' }
|
||||
]},
|
||||
{ label: '出库状态', value: 'outbound_status', type: 'select', options: [
|
||||
{ label: '未出库', value: 'none' },
|
||||
{ label: '待出库', value: 'padding' },
|
||||
{ label: '已出库', value: 'fin' }
|
||||
]},
|
||||
{ label: '创建时间', value: 'create_at', type: 'daterange' },
|
||||
{ label: '支付时间', value: 'pay_time', type: 'daterange' },
|
||||
]
|
||||
|
||||
export const deliveryColumns = [
|
||||
{ prop: 'delivery_order_code', label: '出库单号', width: '160' },
|
||||
{ prop: 'pre_delivery_order_code', label: '前置单号', width: '160' },
|
||||
{ prop: 'shop_nick', label: '店铺名称', width: '120' },
|
||||
{ prop: 'buyer_nick', label: '买家昵称', width: '120' },
|
||||
{ prop: 'name', label: '收件人', width: '100' },
|
||||
{ prop: 'mobile', label: '移动电话', width: '120' },
|
||||
{ prop: 'province', label: '省', width: '100' },
|
||||
{ prop: 'city', label: '市', width: '100' },
|
||||
{ prop: 'dispatch_lane', label: '道口', width: '80' },
|
||||
{ prop: 'status', label: '审核状态', width: '100' },
|
||||
{ prop: 'delivery_order_code', label: '配送单号', width: '170' },
|
||||
{ prop: 'shop_nick', label: '店铺名称', width: '140' },
|
||||
{ prop: 'source_platform_code', label: '平台来源', width: '100' },
|
||||
{ prop: 'name', label: '收货人', width: '100' },
|
||||
{ prop: 'mobile', label: '手机号', width: '120' },
|
||||
{ prop: 'status', label: '订单状态', width: '100' },
|
||||
{ prop: 'outbound_status', label: '出库状态', width: '100' },
|
||||
{ prop: 'sync_status', label: '同步状态', width: '100' },
|
||||
{ prop: 'total_amount', label: '总金额', width: '100' },
|
||||
{ prop: 'storage_status', label: '分配状态', width: '100' },
|
||||
{ prop: 'post_status', label: '快递状态', width: '100' },
|
||||
{ prop: 'pick_status', label: '拣货状态', width: '100' },
|
||||
{ prop: 'pack_status', label: '打包状态', width: '100' },
|
||||
{ prop: 'logistics_name', label: '物流公司', width: '120' },
|
||||
{ prop: 'express_code', label: '物流单号', width: '160' },
|
||||
{ prop: 'is_urgency', label: '紧急', width: '80' },
|
||||
{ prop: 'dispatch_lane', label: '道口', width: '80' },
|
||||
{ prop: 'items_count', label: '商品种类', width: '100' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '100' },
|
||||
{ prop: 'create_at', label: '创建日期', width: '160' },
|
||||
{ prop: 'place_order_time', label: '下单时间', width: '160' },
|
||||
{ prop: 'source_platform_name', label: '平台来源', width: '120' },
|
||||
{ prop: 'total_amount', label: '订单金额', width: '110' },
|
||||
{ prop: 'delivery_time', label: '配送时间', width: '165', formatter: orderTimeFormatter },
|
||||
{ prop: 'create_at', label: '创建时间', width: '165', formatter: orderTimeFormatter },
|
||||
]
|
||||
|
||||
export const deliverydetail = [
|
||||
@ -440,6 +445,9 @@ export const pendingOrderbuttonList: any[] = [
|
||||
}
|
||||
]
|
||||
|
||||
export const outboundAvailableFields = pendingAvailableFields
|
||||
export const outboundColumns = pendingCloums
|
||||
|
||||
// orderWorkbench相关配置
|
||||
export const workbenchStatusOptions = [
|
||||
{ label: '待处理', value: 'pedding' },
|
||||
|
||||
@ -110,6 +110,7 @@ import {
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -259,11 +260,24 @@ function onQuickSearch() {
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
setTimeout(() => {
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `配送异常-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
ElMessage.success('导出成功')
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -1,9 +1,22 @@
|
||||
<template>
|
||||
<div class="order-sub-container">
|
||||
<scan-box
|
||||
ref="scanBox"
|
||||
width="320px"
|
||||
:tree-props="{ children: 'children', label: 'label' }"
|
||||
:auto-submit="false"
|
||||
:preset-tree="presetTree"
|
||||
:available-fields="availableFieldsRef"
|
||||
@condition-change="handleConditionChange"
|
||||
@reset="handleConditionReset"
|
||||
@condition-clear="handleConditionClear"
|
||||
/>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
</div>
|
||||
|
||||
<div class="toolbar-right">
|
||||
@ -36,53 +49,90 @@
|
||||
@refresh="loadData"
|
||||
@selection-change="onSelectionChange"
|
||||
>
|
||||
<template #column-source_platform_code="{ row }">
|
||||
{{ translateOrderField('source_platform_code', row.source_platform_code) }}
|
||||
</template>
|
||||
|
||||
<template #column-status="{ row }">
|
||||
<el-tag :type="row.status === 'pedding' ? 'info' : row.status === 'created' ? 'success' : 'warning'" size="small">
|
||||
<el-tag :type="row.status === 'pedding' ? 'warning' : row.status === 'created' ? 'success' : 'danger'" size="small">
|
||||
{{ translateOrderField('status', row.status) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-is_urgency="{ row }">
|
||||
<el-tag :type="row.is_urgency === 'Y' ? 'danger' : 'info'" size="small">
|
||||
{{ translateOrderField('is_urgency', row.is_urgency) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-post_status="{ row }">
|
||||
{{ translateOrderField('post_status', row.post_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-storage_status="{ row }">
|
||||
{{ translateOrderField('storage_status', row.storage_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-print_status="{ row }">
|
||||
{{ translateOrderField('print_status', row.print_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-pick_status="{ row }">
|
||||
{{ translateOrderField('pick_status', row.pick_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-pack_status="{ row }">
|
||||
{{ translateOrderField('pack_status', row.pack_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-sync_status="{ row }">
|
||||
<el-tag :type="row.sync_status === 'fin' ? 'success' : row.sync_status === 'error' ? 'danger' : 'info'" size="small">
|
||||
{{ translateOrderField('sync_status', row.sync_status) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-outbound_status="{ row }">
|
||||
<el-tag :type="row.outbound_status === 'fin' ? 'success' : row.outbound_status === 'padding' ? 'warning' : 'info'" size="small">
|
||||
{{ translateOrderField('outbound_status', row.outbound_status) || row.outbound_status || '-' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #empty>
|
||||
<div class="empty-tip">暂无订单</div>
|
||||
<div class="empty-tip">暂无配送订单</div>
|
||||
</template>
|
||||
</upper-table>
|
||||
</div>
|
||||
|
||||
<div class="lower-level" :class="tableSize">
|
||||
<template v-if="selectedOrderId">
|
||||
<div class="detail-header">
|
||||
<el-tabs v-model="activeTab" class="detail-tab">
|
||||
<el-tab-pane label="订单明细" name="details" />
|
||||
<el-tab-pane label="商品明细" name="items" />
|
||||
<el-tab-pane label="操作日志" name="logs" />
|
||||
</el-tabs>
|
||||
</div>
|
||||
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
|
||||
<div class="detail-header">
|
||||
<el-tabs v-model="activeTab" class="detail-tab">
|
||||
<el-tab-pane label="订单详情" name="details" />
|
||||
<el-tab-pane label="商品明细" name="items" />
|
||||
<el-tab-pane label="操作日志" name="logs" />
|
||||
</el-tabs>
|
||||
</div>
|
||||
|
||||
<div class="detail-container">
|
||||
<KeepAlive>
|
||||
<div v-if="activeTab === 'details'">
|
||||
<detail :data="selectedRow" :config="deliverydetail" :column="3" />
|
||||
</div>
|
||||
<div v-else-if="activeTab === 'items'">
|
||||
<orderdetail :orderId="selectedOrderId" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<log :data="selectedRow" />
|
||||
</div>
|
||||
</KeepAlive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="no-selection" v-else>
|
||||
<div class="empty-tip">
|
||||
<p>请从上方列表中选择一项查看详情</p>
|
||||
</div>
|
||||
<div class="detail-container">
|
||||
<KeepAlive>
|
||||
<div v-if="activeTab === 'details'">
|
||||
<detail :data="selectedRow" :config="pendingOrderDetail" :column="3" />
|
||||
</div>
|
||||
<div v-else-if="activeTab === 'items'">
|
||||
<el-table :data="detailItemRows" border stripe size="small" class="detail-items-table">
|
||||
<el-table-column prop="index" label="#" width="56" align="center" />
|
||||
<el-table-column prop="sku" label="商品SKU" min-width="180" show-overflow-tooltip />
|
||||
<el-table-column prop="qty" label="数量" width="100" align="center" />
|
||||
</el-table>
|
||||
</div>
|
||||
<div v-else>
|
||||
<log :data="selectedRow" />
|
||||
</div>
|
||||
</KeepAlive>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-selection" v-else>
|
||||
<div class="empty-tip">
|
||||
<p>请从上方列表中选择一项查看详情</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -91,29 +141,35 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted, computed } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import { orderDeliveryOrder } from '@/api/order.deliveryOrder/orderdeliveryOrder'
|
||||
|
||||
import {
|
||||
deliveryAvailableFields,
|
||||
deliveryColumns,
|
||||
deliverydetail,
|
||||
pendingOrderDetail,
|
||||
translateOrderField
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import orderdetail from './component/orderdetail.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
const presetTree = ref<any[]>([])
|
||||
const availableFieldsRef = reactive(JSON.parse(JSON.stringify(deliveryAvailableFields)))
|
||||
const activeTab = ref('details')
|
||||
const list = ref<any[]>([])
|
||||
const loading = ref(false)
|
||||
const exportLoading = ref(false)
|
||||
const queryTime = ref(0)
|
||||
|
||||
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
|
||||
const tableSize = ref('small')
|
||||
const columns = ref(deliveryColumns)
|
||||
const selectionRows = ref<any[]>([])
|
||||
const hasSelection = ref(false)
|
||||
const selectedOrderId = ref<number | string | null>(null)
|
||||
const quickSearch = ref('')
|
||||
|
||||
@ -121,6 +177,23 @@ const selectedRow = computed(() => {
|
||||
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
|
||||
})
|
||||
|
||||
const detailItemRows = computed(() => {
|
||||
const rawItems = selectedRow.value?.items
|
||||
if (!rawItems) return []
|
||||
const specs = String(rawItems)
|
||||
.split(/[,\n;]/)
|
||||
.map((item) => item.trim())
|
||||
.filter((item) => !!item)
|
||||
return specs.map((spec, index) => {
|
||||
const [sku, qty] = spec.split('+')
|
||||
return {
|
||||
index: index + 1,
|
||||
sku: sku || '-',
|
||||
qty: qty || '-'
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
})
|
||||
@ -130,23 +203,23 @@ async function loadData() {
|
||||
loading.value = true
|
||||
const start = Date.now()
|
||||
try {
|
||||
const where = buildWhereConditions(scanBox.value?.getConditions?.() || {})
|
||||
if (quickSearch.value) {
|
||||
where.delivery_order_code = {
|
||||
operator: 'like',
|
||||
value: quickSearch.value,
|
||||
type: 'text'
|
||||
}
|
||||
}
|
||||
const params = {
|
||||
pagination: {
|
||||
page: pagination.currentPage,
|
||||
pageSize: pagination.pageSize
|
||||
},
|
||||
where: quickSearch.value
|
||||
? {
|
||||
delivery_order_code: {
|
||||
operator: 'like',
|
||||
value: quickSearch.value,
|
||||
type: 'text'
|
||||
}
|
||||
}
|
||||
: {},
|
||||
where,
|
||||
sort: {
|
||||
sortField: 'updated_at',
|
||||
sortOrder: 'DESC'
|
||||
sortOrder: 'DESC' as const
|
||||
}
|
||||
}
|
||||
const res: any = await orderDeliveryOrder.list(params)
|
||||
@ -159,18 +232,52 @@ async function loadData() {
|
||||
pagination.total = 0
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('loadData error:', e)
|
||||
list.value = []
|
||||
pagination.total = 0
|
||||
ElMessage.error('获取配送订单列表失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
queryTime.value = Date.now() - start
|
||||
}
|
||||
}
|
||||
|
||||
function buildWhereConditions(rawConditions: Record<string, any>) {
|
||||
const where: Record<string, any> = {}
|
||||
Object.keys(rawConditions || {}).forEach((key) => {
|
||||
const condition = rawConditions[key]
|
||||
if (condition && typeof condition === 'object' && 'operator' in condition) {
|
||||
where[key] = condition
|
||||
return
|
||||
}
|
||||
if (condition !== undefined && condition !== null && condition !== '') {
|
||||
where[key] = {
|
||||
operator: 'eq',
|
||||
value: condition,
|
||||
type: Array.isArray(condition) ? 'array' : typeof condition
|
||||
}
|
||||
}
|
||||
})
|
||||
return where
|
||||
}
|
||||
|
||||
function handleConditionChange() {
|
||||
pagination.currentPage = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleConditionClear() {
|
||||
pagination.currentPage = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleConditionReset() {
|
||||
pagination.currentPage = 1
|
||||
scanBox.value?.reset?.()
|
||||
loadData()
|
||||
}
|
||||
|
||||
function onSelectionChange(rows: any[]) {
|
||||
selectionRows.value = rows || []
|
||||
hasSelection.value = selectionRows.value.length > 0
|
||||
}
|
||||
|
||||
function handleRowClick(row: any) {
|
||||
@ -192,9 +299,34 @@ function onQuickSearch() {
|
||||
pagination.currentPage = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `配送订单-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/order-sub.scss";
|
||||
|
||||
.detail-items-table {
|
||||
padding: 8px 10px 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@ -110,6 +110,7 @@ import {
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -259,11 +260,24 @@ function onQuickSearch() {
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
setTimeout(() => {
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `委托外仓-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
ElMessage.success('导出成功')
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
|
||||
<template v-for="(btn, index) in expectionOrderbuttonList" :key="index">
|
||||
<el-dropdown
|
||||
@ -147,6 +148,7 @@ import {
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -366,11 +368,24 @@ async function handleExpectionOperation(command: string) {
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
setTimeout(() => {
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `异常订单-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
ElMessage.success('导出成功')
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -1,10 +1,23 @@
|
||||
<template>
|
||||
<div class="order-sub-container">
|
||||
<scan-box
|
||||
ref="scanBox"
|
||||
width="320px"
|
||||
:tree-props="{ children: 'children', label: 'label' }"
|
||||
:auto-submit="false"
|
||||
:preset-tree="presetTree"
|
||||
:available-fields="availableFieldsRef"
|
||||
@condition-change="handleConditionChange"
|
||||
@reset="handleConditionReset"
|
||||
@condition-clear="handleConditionClear"
|
||||
/>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" type="warning" :loading="manualLoading" @click="handleManualOutbound">
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" type="warning" :loading="manualLoading" @click="handleToolbarManualOutbound">
|
||||
手动出库迁移
|
||||
</el-button>
|
||||
</div>
|
||||
@ -19,26 +32,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="manual-form">
|
||||
<el-input-number v-model="manualForm.warehouseId" :min="1" :step="1" controls-position="right" placeholder="单仓库ID" />
|
||||
<el-input
|
||||
v-model="manualWarehouseIdsText"
|
||||
placeholder="仓库ID数组,逗号分隔(例:100000,1000028)"
|
||||
clearable
|
||||
/>
|
||||
<el-input-number v-model="manualForm.queryTimeoutMs" :min="1" :step="500" controls-position="right" placeholder="查询超时(ms)" />
|
||||
<el-input-number v-model="manualForm.executionTimeoutMs" :min="1" :step="500" controls-position="right" placeholder="执行超时(ms)" />
|
||||
</div>
|
||||
|
||||
<el-alert
|
||||
v-if="manualResult"
|
||||
type="success"
|
||||
:closable="false"
|
||||
show-icon
|
||||
class="manual-result"
|
||||
:title="`已处理 ${manualResult.totalSelected} 条,创建 ${manualResult.totalCreated} 条,跳过 ${manualResult.totalSkipped} 条,超时 ${manualResult.totalTimeout} 条`"
|
||||
/>
|
||||
|
||||
<div class="upper-wrapper">
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
@ -56,6 +49,7 @@
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
@refresh="loadData"
|
||||
@selection-change="onSelectionChange"
|
||||
>
|
||||
<template #column-status="{ row }">
|
||||
<el-tag :type="row.status === 'pedding' ? 'warning' : row.status === 'cancel' ? 'danger' : 'info'" size="small">
|
||||
@ -63,80 +57,146 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-source_platform_code="{ row }">
|
||||
{{ translateOrderField('source_platform_code', row.source_platform_code) }}
|
||||
</template>
|
||||
|
||||
<template #column-post_status="{ row }">
|
||||
{{ translateOrderField('post_status', row.post_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-storage_status="{ row }">
|
||||
{{ translateOrderField('storage_status', row.storage_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-print_status="{ row }">
|
||||
{{ translateOrderField('print_status', row.print_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-pick_status="{ row }">
|
||||
{{ translateOrderField('pick_status', row.pick_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-pack_status="{ row }">
|
||||
{{ translateOrderField('pack_status', row.pack_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-sync_status="{ row }">
|
||||
<el-tag :type="row.sync_status === 'fin' ? 'success' : row.sync_status === 'error' ? 'danger' : 'info'" size="small">
|
||||
{{ translateOrderField('sync_status', row.sync_status) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-is_urgency="{ row }">
|
||||
<el-tag :type="row.is_urgency === 'Y' ? 'danger' : 'info'" size="small">
|
||||
{{ translateOrderField('is_urgency', row.is_urgency) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-outbound_status="{ row }">
|
||||
<el-tag :type="row.outbound_status === 'fin' ? 'success' : row.outbound_status === 'padding' ? 'warning' : 'info'" size="small">
|
||||
{{ row.outbound_status || 'none' }}
|
||||
{{ translateOrderField('outbound_status', row.outbound_status) || row.outbound_status || 'none' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</upper-table>
|
||||
</div>
|
||||
|
||||
<div class="lower-level" :class="tableSize">
|
||||
<template v-if="selectedOrderId">
|
||||
<div class="detail-header">
|
||||
<el-tabs v-model="activeTab" class="detail-tab">
|
||||
<el-tab-pane label="订单明细" name="details" />
|
||||
<el-tab-pane label="商品明细" name="items" />
|
||||
<el-tab-pane label="操作日志" name="logs" />
|
||||
</el-tabs>
|
||||
</div>
|
||||
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
|
||||
<div class="detail-header">
|
||||
<el-tabs v-model="activeTab" class="detail-tab">
|
||||
<el-tab-pane label="订单明细" name="details" />
|
||||
<el-tab-pane label="商品明细" name="items" />
|
||||
<el-tab-pane label="操作日志" name="logs" />
|
||||
<el-tab-pane label="手动出库" name="manualOutbound" />
|
||||
</el-tabs>
|
||||
</div>
|
||||
|
||||
<div class="detail-container">
|
||||
<KeepAlive>
|
||||
<div v-if="activeTab === 'details'">
|
||||
<detail :data="selectedRow" :config="pendingOrderDetail" :column="3" />
|
||||
</div>
|
||||
<div v-else-if="activeTab === 'items'">
|
||||
<orderdetail :orderId="selectedOrderId" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<log :data="selectedRow" />
|
||||
</div>
|
||||
</KeepAlive>
|
||||
</div>
|
||||
</template>
|
||||
<div class="detail-container">
|
||||
<KeepAlive>
|
||||
<component
|
||||
:is="activeComponent"
|
||||
ref="manualOutboundRef"
|
||||
:data="selectedRow"
|
||||
:config="pendingOrderDetail"
|
||||
:column="3"
|
||||
:orderId="selectedOrderId"
|
||||
@success="handleManualOutboundSuccess"
|
||||
@loading-change="handleManualLoadingChange"
|
||||
/>
|
||||
</KeepAlive>
|
||||
<el-alert
|
||||
v-if="activeTab === 'manualOutbound' && manualResult"
|
||||
type="success"
|
||||
:closable="false"
|
||||
show-icon
|
||||
class="manual-result"
|
||||
:title="`已处理 ${manualResult.totalSelected} 条,创建 ${manualResult.totalCreated} 条,跳过 ${manualResult.totalSkipped} 条,超时 ${manualResult.totalTimeout} 条`"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-selection" v-else>
|
||||
<div class="empty-tip">
|
||||
<p>请从上方列表中选择一项查看详情</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { computed, nextTick, onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import { orderOutboundOrder } from '@/api/order.outboundOrder/orderoutboundOrder'
|
||||
import { pendingCloums, pendingOrderDetail, translateOrderField } from './config/order-common-config'
|
||||
import {
|
||||
outboundAvailableFields,
|
||||
outboundColumns,
|
||||
pendingOrderDetail,
|
||||
translateOrderField
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import orderdetail from './component/orderdetail.vue'
|
||||
import OutboundManualOutboundForm from './component/OutboundManualOutboundForm.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
const manualOutboundRef = ref<any>(null)
|
||||
const presetTree = ref<any[]>([])
|
||||
const activeTab = ref('details')
|
||||
const list = ref<any[]>([])
|
||||
const loading = ref(false)
|
||||
const manualLoading = ref(false)
|
||||
const exportLoading = ref(false)
|
||||
const queryTime = ref(0)
|
||||
|
||||
const availableFieldsRef = reactive(JSON.parse(JSON.stringify(outboundAvailableFields)))
|
||||
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
|
||||
const tableSize = ref('small')
|
||||
const columns = ref(pendingCloums)
|
||||
const columns = ref(outboundColumns)
|
||||
const selectionRows = ref<any[]>([])
|
||||
const selectedOrderId = ref<number | string | null>(null)
|
||||
const quickSearch = ref('')
|
||||
|
||||
const manualForm = reactive({
|
||||
warehouseId: undefined as number | undefined,
|
||||
queryTimeoutMs: undefined as number | undefined,
|
||||
executionTimeoutMs: undefined as number | undefined
|
||||
})
|
||||
const manualWarehouseIdsText = ref('')
|
||||
const manualResult = ref<any>(null)
|
||||
|
||||
const selectedRow = computed(() => {
|
||||
return list.value.find((item: any) => item.id === selectedOrderId.value) || null
|
||||
})
|
||||
|
||||
const componentMap: Record<string, any> = {
|
||||
details: detail,
|
||||
items: orderdetail,
|
||||
logs: log,
|
||||
manualOutbound: OutboundManualOutboundForm
|
||||
}
|
||||
|
||||
const activeComponent = computed(() => componentMap[activeTab.value] || componentMap.details)
|
||||
|
||||
function buildWhere() {
|
||||
const where: Record<string, any> = {}
|
||||
const where = buildWhereConditions(scanBox.value?.getConditions?.() || {})
|
||||
if (quickSearch.value) {
|
||||
where.delivery_order_code = {
|
||||
operator: 'like',
|
||||
@ -147,6 +207,25 @@ function buildWhere() {
|
||||
return where
|
||||
}
|
||||
|
||||
function buildWhereConditions(rawConditions: Record<string, any>) {
|
||||
const where: Record<string, any> = {}
|
||||
Object.keys(rawConditions || {}).forEach((key) => {
|
||||
const condition = rawConditions[key]
|
||||
if (condition && typeof condition === 'object' && 'operator' in condition) {
|
||||
where[key] = condition
|
||||
return
|
||||
}
|
||||
if (condition !== undefined && condition !== null && condition !== '') {
|
||||
where[key] = {
|
||||
operator: 'eq',
|
||||
value: condition,
|
||||
type: Array.isArray(condition) ? 'array' : typeof condition
|
||||
}
|
||||
}
|
||||
})
|
||||
return where
|
||||
}
|
||||
|
||||
async function loadData() {
|
||||
if (loading.value) return
|
||||
loading.value = true
|
||||
@ -180,44 +259,51 @@ async function loadData() {
|
||||
}
|
||||
}
|
||||
|
||||
function parseWarehouseIds(value: string): number[] {
|
||||
return value
|
||||
.split(',')
|
||||
.map((item) => item.trim())
|
||||
.filter((item) => !!item)
|
||||
.map((item) => Number(item))
|
||||
.filter((item) => Number.isFinite(item))
|
||||
function handleConditionChange() {
|
||||
pagination.currentPage = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleManualOutbound() {
|
||||
if (manualLoading.value) return
|
||||
manualLoading.value = true
|
||||
try {
|
||||
const warehouseIds = parseWarehouseIds(manualWarehouseIdsText.value)
|
||||
const payload: Record<string, any> = {}
|
||||
if (manualForm.warehouseId) payload.warehouseId = manualForm.warehouseId
|
||||
if (warehouseIds.length) payload.warehouseIds = warehouseIds
|
||||
if (manualForm.queryTimeoutMs) payload.queryTimeoutMs = manualForm.queryTimeoutMs
|
||||
if (manualForm.executionTimeoutMs) payload.executionTimeoutMs = manualForm.executionTimeoutMs
|
||||
const res: any = await orderOutboundOrder.manualOutboundOrder(payload)
|
||||
if (res && (res.code === 1 || res.code === 200)) {
|
||||
manualResult.value = res.data || null
|
||||
ElMessage.success('手动出库迁移已执行')
|
||||
await loadData()
|
||||
} else {
|
||||
ElMessage.error(res?.message || '手动出库迁移失败')
|
||||
}
|
||||
} catch (error) {
|
||||
ElMessage.error('手动出库迁移失败')
|
||||
} finally {
|
||||
manualLoading.value = false
|
||||
function handleConditionClear() {
|
||||
pagination.currentPage = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleConditionReset() {
|
||||
pagination.currentPage = 1
|
||||
scanBox.value?.reset?.()
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleToolbarManualOutbound() {
|
||||
if (!selectedOrderId.value) {
|
||||
ElMessage.warning('请先选择订单')
|
||||
return
|
||||
}
|
||||
if (activeTab.value !== 'manualOutbound') {
|
||||
activeTab.value = 'manualOutbound'
|
||||
await nextTick()
|
||||
}
|
||||
await manualOutboundRef.value?.submitManualOutbound?.()
|
||||
}
|
||||
|
||||
function handleManualOutboundSuccess(data: any) {
|
||||
manualResult.value = data || null
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleManualLoadingChange(value: boolean) {
|
||||
manualLoading.value = value
|
||||
}
|
||||
|
||||
function handleRowClick(row: any) {
|
||||
selectedOrderId.value = row?.id || null
|
||||
}
|
||||
|
||||
function onSelectionChange(rows: any[]) {
|
||||
selectionRows.value = rows || []
|
||||
}
|
||||
|
||||
function handlePageChange(page: number) {
|
||||
pagination.currentPage = page
|
||||
loadData()
|
||||
@ -234,6 +320,27 @@ function onQuickSearch() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `待出库订单-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
})
|
||||
@ -242,13 +349,6 @@ onMounted(() => {
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/order-sub.scss";
|
||||
|
||||
.manual-form {
|
||||
display: grid;
|
||||
grid-template-columns: 180px minmax(280px, 1fr) 160px 160px;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.manual-result {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" :disabled="!hasSelection" :loading="actionLoading" @click="handleReverseReview">反审回待审核</el-button>
|
||||
<el-button size="small" type="warning" :disabled="!hasSelection" :loading="actionLoading" @click="handleMarkPendingOutbound">标记待出库</el-button>
|
||||
<el-button size="small" type="danger" :disabled="!hasSelection" :loading="actionLoading" @click="handleCancelOrder">取消订单</el-button>
|
||||
@ -83,6 +84,10 @@
|
||||
{{ translateOrderField('pick_status', row.pick_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-pack_status="{ row }">
|
||||
{{ translateOrderField('pack_status', row.pack_status) }}
|
||||
</template>
|
||||
|
||||
<template #column-sync_status="{ row }">
|
||||
<el-tag :type="row.sync_status === 'fin' ? 'success' : row.sync_status === 'error' ? 'danger' : 'info'" size="small">
|
||||
{{ translateOrderField('sync_status', row.sync_status) }}
|
||||
@ -150,6 +155,7 @@ import {
|
||||
} from './config/order-common-config'
|
||||
import ArchiveOrderPanel from './component/ArchiveOrderPanel.vue'
|
||||
import detail from './component/detail.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -162,6 +168,7 @@ const activeTab = ref('details')
|
||||
const list = ref<any[]>([])
|
||||
const loading = ref(false)
|
||||
const actionLoading = ref(false)
|
||||
const exportLoading = ref(false)
|
||||
const queryTime = ref(0)
|
||||
|
||||
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
|
||||
@ -288,6 +295,27 @@ function onQuickSearch() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `待处理订单-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function getSelectedIds() {
|
||||
return selectionRows.value
|
||||
.map((item: any) => item?.id)
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" type="success" :disabled="!hasSelection" :loading="reviewSubmitting" @click="handleBatchReview">批量审核通过</el-button>
|
||||
</div>
|
||||
|
||||
@ -131,6 +132,7 @@ import {
|
||||
} from './config/order-common-config'
|
||||
import detail from './component/detail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -142,6 +144,7 @@ const activeTab = ref('details')
|
||||
|
||||
const list = ref<any[]>([])
|
||||
const loading = ref(false)
|
||||
const exportLoading = ref(false)
|
||||
const queryTime = ref(0)
|
||||
|
||||
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
|
||||
@ -269,6 +272,27 @@ function onQuickSearch() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
return
|
||||
}
|
||||
exportLoading.value = true
|
||||
try {
|
||||
exportUpperTableRows({
|
||||
rows: selectionRows.value,
|
||||
columns: columns.value,
|
||||
fileName: `待审核订单-${Date.now()}.xlsx`,
|
||||
transformCell: (prop, value) => translateOrderField(prop, value)
|
||||
})
|
||||
ElMessage.success('导出完成')
|
||||
} catch (error) {
|
||||
ElMessage.error('导出失败')
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function submitReview(ids: Array<number | string>) {
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先选择需要审核的订单')
|
||||
|
||||
45
src/views/order/orderManagement/utils/export.ts
Normal file
45
src/views/order/orderManagement/utils/export.ts
Normal file
@ -0,0 +1,45 @@
|
||||
import * as XLSX from 'xlsx'
|
||||
|
||||
type ColumnItem = {
|
||||
prop?: string
|
||||
label?: string
|
||||
formatter?: (row: any, column: any, cellValue: any, index: number) => any
|
||||
}
|
||||
|
||||
type ExportOptions = {
|
||||
rows: any[]
|
||||
columns: ColumnItem[]
|
||||
fileName?: string
|
||||
transformCell?: (prop: string, value: any, row: any) => any
|
||||
}
|
||||
|
||||
function normalizeCell(value: any) {
|
||||
if (value === undefined || value === null) return ''
|
||||
if (Array.isArray(value)) return value.join(', ')
|
||||
if (typeof value === 'object') return JSON.stringify(value)
|
||||
return value
|
||||
}
|
||||
|
||||
export function exportUpperTableRows(options: ExportOptions) {
|
||||
const { rows, columns, fileName = `export-${Date.now()}.xlsx`, transformCell } = options
|
||||
const exportColumns = (columns || []).filter((column) => !!column.prop)
|
||||
const exportData = (rows || []).map((row, index) => {
|
||||
const mapped: Record<string, any> = {}
|
||||
exportColumns.forEach((column) => {
|
||||
const prop = String(column.prop)
|
||||
const label = column.label || prop
|
||||
const rawValue = row[prop]
|
||||
const formattedValue = column.formatter
|
||||
? column.formatter(row, { property: prop }, rawValue, index)
|
||||
: rawValue
|
||||
const finalValue = transformCell ? transformCell(prop, formattedValue, row) : formattedValue
|
||||
mapped[label] = normalizeCell(finalValue)
|
||||
})
|
||||
return mapped
|
||||
})
|
||||
|
||||
const ws = XLSX.utils.json_to_sheet(exportData)
|
||||
const wb = XLSX.utils.book_new()
|
||||
XLSX.utils.book_append_sheet(wb, ws, '数据导出')
|
||||
XLSX.writeFile(wb, fileName)
|
||||
}
|
||||
@ -0,0 +1,352 @@
|
||||
<template>
|
||||
<div class="courier-page">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-input
|
||||
v-model="query.keyword"
|
||||
clearable
|
||||
placeholder="搜索编码/名称/快递公司"
|
||||
class="search-input"
|
||||
@keyup.enter="handleSearch"
|
||||
@clear="handleSearch"
|
||||
/>
|
||||
<el-button type="primary" size="small" @click="handleSearch">搜索</el-button>
|
||||
<el-button size="small" :loading="loading" @click="loadList">刷新</el-button>
|
||||
</div>
|
||||
<div class="toolbar-right">
|
||||
<el-button type="success" size="small" @click="openCreate">新增编码</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-wrapper">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
border
|
||||
stripe
|
||||
height="100%"
|
||||
row-key="id"
|
||||
>
|
||||
<el-table-column prop="id" label="ID" width="80" />
|
||||
<el-table-column prop="express_name" label="快递名称" min-width="180" />
|
||||
<el-table-column prop="code" label="业务编码" min-width="180" />
|
||||
<el-table-column prop="name" label="业务名称" min-width="180" />
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" @click="openEdit(row)">编辑</el-button>
|
||||
<el-button link type="danger" disabled>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<div class="pager">
|
||||
<el-pagination
|
||||
v-model:current-page="query.page"
|
||||
v-model:page-size="query.page_size"
|
||||
background
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="total"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@current-change="loadList"
|
||||
@size-change="handleSizeChange"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="dialogMode === 'create' ? '新增快递编码' : '编辑快递编码'"
|
||||
width="560px"
|
||||
align-center
|
||||
@close="resetForm"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" :rules="rules" label-width="110px">
|
||||
<el-form-item label="业务编码" prop="code">
|
||||
<el-input
|
||||
v-model="formData.code"
|
||||
placeholder="如 SF.KY"
|
||||
@blur="validateCodeUnique"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="业务名称" prop="name">
|
||||
<el-input v-model="formData.name" placeholder="如 顺丰空运产品" />
|
||||
</el-form-item>
|
||||
<el-form-item label="快递公司" prop="express_code">
|
||||
<el-select
|
||||
v-model="formData.express_code"
|
||||
placeholder="请选择快递公司"
|
||||
filterable
|
||||
style="width: 100%"
|
||||
@change="handleExpressChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in expressOptions"
|
||||
:key="item.code"
|
||||
:label="item.label || item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="saving" @click="submitForm">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import type { FormInstance, FormRules } from 'element-plus'
|
||||
import { getExpressList } from '@/api/index/index'
|
||||
import {
|
||||
expressCheckCodeUnique,
|
||||
expressCreate,
|
||||
expressList,
|
||||
expressUpdate
|
||||
} from '@/api/setting.express/express'
|
||||
|
||||
type ExpressOption = {
|
||||
code: string
|
||||
name: string
|
||||
label?: string
|
||||
}
|
||||
|
||||
type ExpressRecord = {
|
||||
id?: number
|
||||
code: string
|
||||
name: string
|
||||
express_code: string
|
||||
express_name?: string
|
||||
express_label?: string
|
||||
}
|
||||
|
||||
const loading = ref(false)
|
||||
const saving = ref(false)
|
||||
const tableData = ref<ExpressRecord[]>([])
|
||||
const total = ref(0)
|
||||
const expressOptions = ref<ExpressOption[]>([])
|
||||
|
||||
const query = reactive({
|
||||
keyword: '',
|
||||
page: 1,
|
||||
page_size: 20
|
||||
})
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const dialogMode = ref<'create' | 'edit'>('create')
|
||||
const formRef = ref<FormInstance>()
|
||||
const formData = reactive<ExpressRecord>({
|
||||
id: undefined,
|
||||
code: '',
|
||||
name: '',
|
||||
express_code: '',
|
||||
express_name: ''
|
||||
})
|
||||
|
||||
const rules: FormRules = {
|
||||
code: [{ required: true, message: '请输入业务编码', trigger: 'blur' }],
|
||||
name: [{ required: true, message: '请输入业务名称', trigger: 'blur' }],
|
||||
express_code: [{ required: true, message: '请选择快递公司', trigger: 'change' }]
|
||||
}
|
||||
|
||||
const isSuccess = (res: any) => res && [0, 1, 200].includes(res.code)
|
||||
|
||||
async function loadList() {
|
||||
loading.value = true
|
||||
try {
|
||||
const res: any = await expressList({
|
||||
page: query.page,
|
||||
page_size: query.page_size,
|
||||
keyword: query.keyword
|
||||
})
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '获取快递编码失败')
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
return
|
||||
}
|
||||
const data = res?.data || {}
|
||||
tableData.value = data.list || []
|
||||
total.value = Number(data.total || 0)
|
||||
} catch (error) {
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
ElMessage.error('获取快递编码失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function loadBaseOptions() {
|
||||
try {
|
||||
const res: any = await getExpressList({ systemOnly: true })
|
||||
if (!isSuccess(res)) return
|
||||
expressOptions.value = (res?.data || []).map((item: any) => ({
|
||||
code: item.code || item.express_code,
|
||||
name: item.name || item.express_name,
|
||||
label: item.label
|
||||
}))
|
||||
} catch (error) {
|
||||
expressOptions.value = []
|
||||
}
|
||||
}
|
||||
|
||||
function handleExpressChange(code: string) {
|
||||
const target = expressOptions.value.find((item) => item.code === code)
|
||||
if (!target) return
|
||||
formData.express_name = target.name || target.label || ''
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
query.page = 1
|
||||
loadList()
|
||||
}
|
||||
|
||||
function handleSizeChange() {
|
||||
query.page = 1
|
||||
loadList()
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
formData.id = undefined
|
||||
formData.code = ''
|
||||
formData.name = ''
|
||||
formData.express_code = ''
|
||||
formData.express_name = undefined
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
function openCreate() {
|
||||
dialogMode.value = 'create'
|
||||
dialogVisible.value = true
|
||||
resetForm()
|
||||
}
|
||||
|
||||
function openEdit(row: ExpressRecord) {
|
||||
dialogMode.value = 'edit'
|
||||
dialogVisible.value = true
|
||||
formData.id = row.id
|
||||
formData.code = row.code
|
||||
formData.name = row.name
|
||||
formData.express_code = row.express_code
|
||||
formData.express_name = row.express_name
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
async function validateCodeUnique() {
|
||||
if (!formData.code) return true
|
||||
try {
|
||||
const res: any = await expressCheckCodeUnique({
|
||||
id: dialogMode.value === 'edit' ? formData.id : undefined,
|
||||
code: formData.code
|
||||
})
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.warning(res?.message || '业务编码校验失败')
|
||||
return false
|
||||
}
|
||||
return true
|
||||
} catch (error) {
|
||||
ElMessage.warning('业务编码校验失败')
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
async function submitForm() {
|
||||
if (!formRef.value || saving.value) return
|
||||
const valid = await formRef.value.validate().catch(() => false)
|
||||
if (!valid) return
|
||||
const unique = await validateCodeUnique()
|
||||
if (!unique) return
|
||||
|
||||
saving.value = true
|
||||
try {
|
||||
const createPayload = {
|
||||
code: formData.code,
|
||||
name: formData.name,
|
||||
...(formData.express_code ? { platform: formData.express_code } : {})
|
||||
}
|
||||
const updatePayload = {
|
||||
id: formData.id,
|
||||
code: formData.code,
|
||||
name: formData.name,
|
||||
express_code: formData.express_code,
|
||||
express_name: formData.express_name
|
||||
}
|
||||
const res: any = dialogMode.value === 'create'
|
||||
? await expressCreate(createPayload)
|
||||
: await expressUpdate(updatePayload)
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '保存失败')
|
||||
return
|
||||
}
|
||||
ElMessage.success(dialogMode.value === 'create' ? '新增成功' : '更新成功')
|
||||
dialogVisible.value = false
|
||||
loadList()
|
||||
} catch (error) {
|
||||
ElMessage.error('保存失败')
|
||||
} finally {
|
||||
saving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadBaseOptions()
|
||||
loadList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.courier-page {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.toolbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.pager {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table__inner-wrapper) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table__body-wrapper) {
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,348 @@
|
||||
<template>
|
||||
<div class="platform-page">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-input
|
||||
v-model="query.keyword"
|
||||
clearable
|
||||
placeholder="搜索编码/名称/平台"
|
||||
class="search-input"
|
||||
@keyup.enter="handleSearch"
|
||||
@clear="handleSearch"
|
||||
/>
|
||||
<el-button type="primary" size="small" @click="handleSearch">搜索</el-button>
|
||||
<el-button size="small" :loading="loading" @click="loadList">刷新</el-button>
|
||||
</div>
|
||||
<div class="toolbar-right">
|
||||
<el-button type="success" size="small" @click="openCreate">新增平台编码</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-wrapper">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
border
|
||||
stripe
|
||||
height="100%"
|
||||
row-key="id"
|
||||
>
|
||||
<el-table-column prop="id" label="ID" width="80" />
|
||||
<el-table-column prop="platform_code" label="平台编码" min-width="120" />
|
||||
<el-table-column prop="label" label="显示标签" min-width="180" />
|
||||
<el-table-column prop="platform_name" label="平台名称" min-width="160" />
|
||||
<el-table-column prop="code" label="业务编码" min-width="140" />
|
||||
<el-table-column prop="name" label="业务名称" min-width="180" />
|
||||
<el-table-column label="操作" width="150" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" @click="openEdit(row)">编辑</el-button>
|
||||
<el-button link type="danger" @click="handleDelete(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<div class="pager">
|
||||
<el-pagination
|
||||
v-model:current-page="query.page"
|
||||
v-model:page-size="query.page_size"
|
||||
background
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="total"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@current-change="loadList"
|
||||
@size-change="handleSizeChange"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="dialogMode === 'create' ? '新增平台编码' : '编辑平台编码'"
|
||||
width="560px"
|
||||
align-center
|
||||
@close="resetForm"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" :rules="rules" label-width="110px">
|
||||
<el-form-item label="业务编码" prop="code">
|
||||
<el-input v-model="formData.code" placeholder="如 DY" />
|
||||
</el-form-item>
|
||||
<el-form-item label="业务名称" prop="name">
|
||||
<el-input v-model="formData.name" placeholder="如 抖音(仓管家映射)" />
|
||||
</el-form-item>
|
||||
<el-form-item label="平台" prop="platform_code">
|
||||
<el-select
|
||||
v-model="formData.platform_code"
|
||||
placeholder="请选择平台"
|
||||
filterable
|
||||
style="width: 100%"
|
||||
@change="handlePlatformChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in platformOptions"
|
||||
:key="item.code"
|
||||
:label="item.label || item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="saving" @click="submitForm">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import type { FormInstance, FormRules } from 'element-plus'
|
||||
import { getPlatformList } from '@/api/index/index'
|
||||
import {
|
||||
settingPlatformCreate,
|
||||
settingPlatformDelete,
|
||||
settingPlatformList,
|
||||
settingPlatformUpdate
|
||||
} from '@/api/setting.platform/platform'
|
||||
|
||||
type PlatformOption = {
|
||||
code: string
|
||||
name: string
|
||||
label?: string
|
||||
}
|
||||
|
||||
type PlatformRecord = {
|
||||
id?: number
|
||||
code: string
|
||||
name: string
|
||||
platform_code: string
|
||||
platform_name?: string
|
||||
label?: string
|
||||
}
|
||||
|
||||
const loading = ref(false)
|
||||
const saving = ref(false)
|
||||
const tableData = ref<PlatformRecord[]>([])
|
||||
const total = ref(0)
|
||||
const platformOptions = ref<PlatformOption[]>([])
|
||||
|
||||
const query = reactive({
|
||||
keyword: '',
|
||||
page: 1,
|
||||
page_size: 20
|
||||
})
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const dialogMode = ref<'create' | 'edit'>('create')
|
||||
const formRef = ref<FormInstance>()
|
||||
const formData = reactive<PlatformRecord>({
|
||||
id: undefined,
|
||||
code: '',
|
||||
name: '',
|
||||
platform_code: ''
|
||||
})
|
||||
|
||||
const rules: FormRules = {
|
||||
code: [{ required: true, message: '请输入业务编码', trigger: 'blur' }],
|
||||
name: [{ required: true, message: '请输入业务名称', trigger: 'blur' }],
|
||||
platform_code: [{ required: true, message: '请选择平台', trigger: 'change' }]
|
||||
}
|
||||
|
||||
const isSuccess = (res: any) => res && [0, 1, 200].includes(res.code)
|
||||
|
||||
async function loadList() {
|
||||
loading.value = true
|
||||
try {
|
||||
const res: any = await settingPlatformList({
|
||||
page: query.page,
|
||||
page_size: query.page_size,
|
||||
keyword: query.keyword
|
||||
})
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '获取平台编码失败')
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
return
|
||||
}
|
||||
const data = res?.data || {}
|
||||
tableData.value = data.list || []
|
||||
total.value = Number(data.total || 0)
|
||||
} catch (error) {
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
ElMessage.error('获取平台编码失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function loadPlatformOptions() {
|
||||
try {
|
||||
const res: any = await getPlatformList()
|
||||
if (!isSuccess(res)) {
|
||||
platformOptions.value = []
|
||||
return
|
||||
}
|
||||
platformOptions.value = (res?.data || []).map((item: any) => ({
|
||||
code: item.platform_code || item.code,
|
||||
name: item.platform_name || item.name,
|
||||
label: item.label || item.platform_name || item.name
|
||||
}))
|
||||
} catch (error) {
|
||||
platformOptions.value = []
|
||||
}
|
||||
}
|
||||
|
||||
function handlePlatformChange(code: string) {
|
||||
const target = platformOptions.value.find((item) => item.code === code)
|
||||
if (!target) return
|
||||
if (!formData.name) {
|
||||
formData.name = target.name || target.label || ''
|
||||
}
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
query.page = 1
|
||||
loadList()
|
||||
}
|
||||
|
||||
function handleSizeChange() {
|
||||
query.page = 1
|
||||
loadList()
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
formData.id = undefined
|
||||
formData.code = ''
|
||||
formData.name = ''
|
||||
formData.platform_code = ''
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
function openCreate() {
|
||||
dialogMode.value = 'create'
|
||||
dialogVisible.value = true
|
||||
resetForm()
|
||||
}
|
||||
|
||||
function openEdit(row: PlatformRecord) {
|
||||
dialogMode.value = 'edit'
|
||||
dialogVisible.value = true
|
||||
formData.id = row.id
|
||||
formData.code = row.code
|
||||
formData.name = row.name
|
||||
formData.platform_code = row.platform_code
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
async function submitForm() {
|
||||
if (!formRef.value || saving.value) return
|
||||
const valid = await formRef.value.validate().catch(() => false)
|
||||
if (!valid) return
|
||||
|
||||
saving.value = true
|
||||
try {
|
||||
const payload = {
|
||||
id: formData.id as number,
|
||||
code: formData.code,
|
||||
name: formData.name,
|
||||
platform_code: formData.platform_code
|
||||
}
|
||||
const res: any = dialogMode.value === 'create'
|
||||
? await settingPlatformCreate({
|
||||
code: payload.code,
|
||||
name: payload.name,
|
||||
platform_code: payload.platform_code
|
||||
})
|
||||
: await settingPlatformUpdate(payload)
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '保存失败')
|
||||
return
|
||||
}
|
||||
ElMessage.success(dialogMode.value === 'create' ? '新增成功' : '更新成功')
|
||||
dialogVisible.value = false
|
||||
loadList()
|
||||
} catch (error) {
|
||||
ElMessage.error('保存失败')
|
||||
} finally {
|
||||
saving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row: PlatformRecord) {
|
||||
if (!row.id) return
|
||||
ElMessageBox.confirm(`确认删除平台编码「${row.code}」吗?`, '提示', { type: 'warning' })
|
||||
.then(async () => {
|
||||
const res: any = await settingPlatformDelete({ id: row.id as number })
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '删除失败')
|
||||
return
|
||||
}
|
||||
ElMessage.success('删除成功')
|
||||
if (tableData.value.length === 1 && query.page > 1) {
|
||||
query.page -= 1
|
||||
}
|
||||
loadList()
|
||||
})
|
||||
.catch(() => undefined)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadPlatformOptions()
|
||||
loadList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.platform-page {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.toolbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.pager {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table__inner-wrapper) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table__body-wrapper) {
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
72
src/views/system/setting/encoding/index.vue
Normal file
72
src/views/system/setting/encoding/index.vue
Normal file
@ -0,0 +1,72 @@
|
||||
<template>
|
||||
<div class="encoding-wrapper">
|
||||
<el-tabs
|
||||
v-model="activeTab"
|
||||
tab-position="top"
|
||||
type="border-card"
|
||||
class="tab-container"
|
||||
>
|
||||
<el-tab-pane
|
||||
v-for="tab in tabs"
|
||||
:key="tab.name"
|
||||
:name="tab.name"
|
||||
:label="tab.label"
|
||||
:lazy="false"
|
||||
>
|
||||
<keep-alive>
|
||||
<component :is="tab.component" v-if="activeTab === tab.name" />
|
||||
</keep-alive>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import CourierCodeManagement from './components/CourierCodeManagement.vue'
|
||||
import PlatformCodeManagement from './components/PlatformCodeManagement.vue'
|
||||
|
||||
const activeTab = ref('courierCode')
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
name: 'courierCode',
|
||||
label: '快递编码管理',
|
||||
component: CourierCodeManagement
|
||||
},
|
||||
{
|
||||
name: 'platformCode',
|
||||
label: '平台编码管理',
|
||||
component: PlatformCodeManagement
|
||||
}
|
||||
]
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.encoding-wrapper {
|
||||
width: 100%;
|
||||
height: calc(100vh - 130px);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tab-container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
:deep(.el-tabs__header) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
:deep(.el-tabs__content) {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
:deep(.el-tab-pane) {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
497
src/views/system/setting/expressinterface/index.vue
Normal file
497
src/views/system/setting/expressinterface/index.vue
Normal file
@ -0,0 +1,497 @@
|
||||
<template>
|
||||
<div class="express-interface-page">
|
||||
<section class="page-header">
|
||||
<div class="header-main">
|
||||
<h3 class="page-title">快递接口配置</h3>
|
||||
<span class="page-subtitle">按仓库维度维护快递渠道参数</span>
|
||||
</div>
|
||||
<el-tag type="info" effect="plain">共 {{ total }} 条</el-tag>
|
||||
</section>
|
||||
|
||||
<section class="filter-card">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-input
|
||||
v-model="query.keyword"
|
||||
clearable
|
||||
class="search-input"
|
||||
placeholder="搜索名称/快递编码/平台编码"
|
||||
@keyup.enter="handleSearch"
|
||||
@clear="handleSearch"
|
||||
/>
|
||||
<el-button type="primary" size="small" @click="handleSearch">搜索</el-button>
|
||||
<el-button size="small" :loading="loading" @click="loadList">刷新</el-button>
|
||||
</div>
|
||||
<el-button type="success" size="small" @click="openCreate">新增接口配置</el-button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="table-card">
|
||||
<div class="table-wrapper">
|
||||
<el-table v-loading="loading" :data="tableData" border stripe height="100%" row-key="id">
|
||||
<el-table-column prop="id" label="ID" width="80" />
|
||||
<el-table-column prop="name" label="配置名称" min-width="150" />
|
||||
<el-table-column prop="express_code" label="快递编码" min-width="120" />
|
||||
<el-table-column prop="platform_code" label="平台编码" min-width="120" />
|
||||
<el-table-column prop="sender_name" label="发件人" min-width="120" />
|
||||
<el-table-column prop="sender_tel" label="发件电话" min-width="130" />
|
||||
<el-table-column prop="shop_name" label="店铺" min-width="180" />
|
||||
<el-table-column prop="can_use_count" label="可用单量" width="100" />
|
||||
<el-table-column label="操作" width="160" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" @click="openEdit(row)">编辑</el-button>
|
||||
<el-button link type="danger" @click="handleDelete(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<div class="pager">
|
||||
<el-pagination
|
||||
v-model:current-page="query.page"
|
||||
v-model:page-size="query.page_size"
|
||||
background
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="total"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@current-change="loadList"
|
||||
@size-change="handleSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="dialogMode === 'create' ? '新增快递接口配置' : '编辑快递接口配置'"
|
||||
width="720px"
|
||||
align-center
|
||||
class="config-dialog"
|
||||
@close="resetForm"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" class="dialog-form">
|
||||
<el-row :gutter="12">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="配置名称" prop="name">
|
||||
<el-input v-model="formData.name" placeholder="如 申通-快手" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="快递编码" prop="express_code">
|
||||
<el-select v-model="formData.express_code" filterable placeholder="请选择快递编码">
|
||||
<el-option
|
||||
v-for="item in expressOptions"
|
||||
:key="item.code"
|
||||
:label="item.label || item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="平台编码" prop="platform_code">
|
||||
<el-select v-model="formData.platform_code" filterable placeholder="请选择平台编码">
|
||||
<el-option
|
||||
v-for="item in platformOptions"
|
||||
:key="item.code"
|
||||
:label="item.label || item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="平台接口ID" prop="express_platform_id">
|
||||
<el-input-number v-model="formData.express_platform_id" :min="1" style="width: 100%" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="发件人">
|
||||
<el-input v-model="formData.sender_name" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="发件电话">
|
||||
<el-input v-model="formData.sender_tel" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="预设重量">
|
||||
<el-input-number v-model="formData.weight" :min="0" :precision="2" style="width: 100%" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="token">
|
||||
<el-input v-model="formData.token" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="站点编码">
|
||||
<el-input v-model="formData.site_code" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="店铺名称">
|
||||
<el-input v-model="formData.shop_name" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="saving" @click="submitForm">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import type { FormInstance, FormRules } from 'element-plus'
|
||||
import { getExpressList, getPlatformList } from '@/api/index/index'
|
||||
import {
|
||||
expressInterfaceCreate,
|
||||
expressInterfaceDelete,
|
||||
expressInterfaceList,
|
||||
expressInterfaceUpdate
|
||||
} from '@/api/setting.expressInterface/expressInterface'
|
||||
|
||||
type ExpressOption = { code: string; name: string; label?: string }
|
||||
type PlatformOption = { code: string; name: string; label?: string }
|
||||
type ExpressInterfaceRecord = Record<string, any>
|
||||
|
||||
const loading = ref(false)
|
||||
const saving = ref(false)
|
||||
const total = ref(0)
|
||||
const tableData = ref<ExpressInterfaceRecord[]>([])
|
||||
const expressOptions = ref<ExpressOption[]>([])
|
||||
const platformOptions = ref<PlatformOption[]>([])
|
||||
|
||||
const query = reactive({
|
||||
keyword: '',
|
||||
page: 1,
|
||||
page_size: 20
|
||||
})
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const dialogMode = ref<'create' | 'edit'>('create')
|
||||
const formRef = ref<FormInstance>()
|
||||
const formData = reactive<ExpressInterfaceRecord>({
|
||||
id: undefined,
|
||||
name: '',
|
||||
express_code: '',
|
||||
platform_code: '',
|
||||
express_platform_id: 1,
|
||||
sender_name: '',
|
||||
sender_tel: '',
|
||||
weight: 1,
|
||||
token: '',
|
||||
site_code: '',
|
||||
shop_name: ''
|
||||
})
|
||||
|
||||
const rules: FormRules = {
|
||||
name: [{ required: true, message: '请输入配置名称', trigger: 'blur' }],
|
||||
express_code: [{ required: true, message: '请选择快递编码', trigger: 'change' }],
|
||||
platform_code: [{ required: true, message: '请选择平台编码', trigger: 'change' }],
|
||||
express_platform_id: [{ required: true, message: '请输入平台接口ID', trigger: 'change' }]
|
||||
}
|
||||
|
||||
const isSuccess = (res: any) => res && [0, 1, 200].includes(res.code)
|
||||
|
||||
async function loadList() {
|
||||
loading.value = true
|
||||
try {
|
||||
const res: any = await expressInterfaceList({
|
||||
page: query.page,
|
||||
page_size: query.page_size,
|
||||
keyword: query.keyword
|
||||
})
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '获取快递接口配置失败')
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
return
|
||||
}
|
||||
const data = res?.data || {}
|
||||
tableData.value = data.list || []
|
||||
total.value = Number(data.total || 0)
|
||||
} catch (error) {
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
ElMessage.error('获取快递接口配置失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function loadExpressOptions() {
|
||||
try {
|
||||
const res: any = await getExpressList({ systemOnly: true })
|
||||
if (!isSuccess(res)) {
|
||||
expressOptions.value = []
|
||||
return
|
||||
}
|
||||
expressOptions.value = (res?.data || []).map((item: any) => ({
|
||||
code: item.express_code || item.code,
|
||||
name: item.express_name || item.name,
|
||||
label: item.label || item.name
|
||||
}))
|
||||
} catch (error) {
|
||||
expressOptions.value = []
|
||||
}
|
||||
}
|
||||
|
||||
async function loadPlatformOptions() {
|
||||
try {
|
||||
const res: any = await getPlatformList({ systemOnly: true })
|
||||
if (!isSuccess(res)) {
|
||||
platformOptions.value = []
|
||||
return
|
||||
}
|
||||
platformOptions.value = (res?.data || []).map((item: any) => ({
|
||||
code: item.platform_code || item.code,
|
||||
name: item.platform_name || item.name,
|
||||
label: item.label || item.platform_name || item.name
|
||||
}))
|
||||
} catch (error) {
|
||||
platformOptions.value = []
|
||||
}
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
query.page = 1
|
||||
loadList()
|
||||
}
|
||||
|
||||
function handleSizeChange() {
|
||||
query.page = 1
|
||||
loadList()
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
formData.id = undefined
|
||||
formData.name = ''
|
||||
formData.express_code = ''
|
||||
formData.platform_code = ''
|
||||
formData.express_platform_id = 1
|
||||
formData.sender_name = ''
|
||||
formData.sender_tel = ''
|
||||
formData.weight = 1
|
||||
formData.token = ''
|
||||
formData.site_code = ''
|
||||
formData.shop_name = ''
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
function openCreate() {
|
||||
dialogMode.value = 'create'
|
||||
dialogVisible.value = true
|
||||
resetForm()
|
||||
}
|
||||
|
||||
function openEdit(row: ExpressInterfaceRecord) {
|
||||
dialogMode.value = 'edit'
|
||||
dialogVisible.value = true
|
||||
formData.id = row.id
|
||||
formData.name = row.name || ''
|
||||
formData.express_code = row.express_code || ''
|
||||
formData.platform_code = row.platform_code || ''
|
||||
formData.express_platform_id = Number(row.express_platform_id || 1)
|
||||
formData.sender_name = row.sender_name || ''
|
||||
formData.sender_tel = row.sender_tel || ''
|
||||
formData.weight = Number(row.weight || 1)
|
||||
formData.token = row.token || ''
|
||||
formData.site_code = row.site_code || ''
|
||||
formData.shop_name = row.shop_name || ''
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
async function submitForm() {
|
||||
if (!formRef.value || saving.value) return
|
||||
const valid = await formRef.value.validate().catch(() => false)
|
||||
if (!valid) return
|
||||
|
||||
saving.value = true
|
||||
try {
|
||||
const payload: Record<string, any> = {
|
||||
name: formData.name,
|
||||
express_code: formData.express_code,
|
||||
platform_code: formData.platform_code,
|
||||
express_platform_id: formData.express_platform_id,
|
||||
sender_name: formData.sender_name || undefined,
|
||||
sender_tel: formData.sender_tel || undefined,
|
||||
weight: formData.weight,
|
||||
token: formData.token || undefined,
|
||||
site_code: formData.site_code || undefined,
|
||||
shop_name: formData.shop_name || undefined
|
||||
}
|
||||
const res: any = dialogMode.value === 'create'
|
||||
? await expressInterfaceCreate(payload)
|
||||
: await expressInterfaceUpdate({
|
||||
id: formData.id,
|
||||
...payload
|
||||
})
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '保存失败')
|
||||
return
|
||||
}
|
||||
ElMessage.success(dialogMode.value === 'create' ? '新增成功' : '更新成功')
|
||||
dialogVisible.value = false
|
||||
loadList()
|
||||
} catch (error) {
|
||||
ElMessage.error('保存失败')
|
||||
} finally {
|
||||
saving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row: ExpressInterfaceRecord) {
|
||||
if (!row?.id) return
|
||||
ElMessageBox.confirm(`确认删除配置「${row.name || row.id}」吗?`, '提示', { type: 'warning' })
|
||||
.then(async () => {
|
||||
const res: any = await expressInterfaceDelete({ id: row.id })
|
||||
if (!isSuccess(res)) {
|
||||
ElMessage.error(res?.message || '删除失败')
|
||||
return
|
||||
}
|
||||
ElMessage.success('删除成功')
|
||||
if (tableData.value.length === 1 && query.page > 1) {
|
||||
query.page -= 1
|
||||
}
|
||||
loadList()
|
||||
})
|
||||
.catch(() => undefined)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadExpressOptions()
|
||||
loadPlatformOptions()
|
||||
loadList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.express-interface-page {
|
||||
height: calc(100vh - 130px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
padding: 2px 2px 0;
|
||||
}
|
||||
|
||||
.header-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.filter-card,
|
||||
.table-card {
|
||||
background: #fff;
|
||||
border: 1px solid #ebeef5;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.filter-card {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.table-card {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.toolbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
padding: 12px 12px 0;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table__inner-wrapper) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.table-wrapper :deep(.el-table__body-wrapper) {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.pager {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
padding: 10px 12px 12px;
|
||||
border-top: 1px solid #f0f2f5;
|
||||
}
|
||||
|
||||
.config-dialog :deep(.el-dialog__body) {
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.dialog-form :deep(.el-select),
|
||||
.dialog-form :deep(.el-input),
|
||||
.dialog-form :deep(.el-input-number) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.toolbar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.toolbar-left {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -1,6 +1,6 @@
|
||||
# 接口响应
|
||||
|
||||
更新时间: 2026/4/16 20:48:29
|
||||
更新时间: 2026/4/17 20:05:13
|
||||
|
||||
```json
|
||||
[
|
||||
@ -8,119 +8,57 @@
|
||||
"接口": "user.login",
|
||||
"message": "登录成功",
|
||||
"data": {
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzYzNDM3MDksImV4cCI6MTc3NjM1ODEwOX0.7ZqQMkBW2GZWmiH0RHXcqgQTVJaatmCAK-76miv5v90"
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzY0Mjc1MTEsImV4cCI6MTc3NjQ0MTkxMX0.h2EZ06SLDAZAGSiC8sXdLb3VShAylMm_n2RF4NQe48g"
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "order.reviewOrder.list",
|
||||
"接口": "setting.expressInterface.list",
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"list": [
|
||||
{
|
||||
"id": 1,
|
||||
"delivery_order_code": "JY202604142929",
|
||||
"pre_delivery_order_code": "",
|
||||
"pre_delivery_order_id": "",
|
||||
"order_type": "JYCK",
|
||||
"warehouse_code": "100000",
|
||||
"order_flag": "",
|
||||
"source_platform_code": "TB",
|
||||
"source_platform_name": "淘宝",
|
||||
"sys_platform_code": null,
|
||||
"sys_platform_name": null,
|
||||
"create_at": "2026-04-14T06:53:07.000Z",
|
||||
"delete_at": null,
|
||||
"updated_at": "2026-04-15T09:30:32.000Z",
|
||||
"place_order_time": "2026-04-13T23:09:39.000Z",
|
||||
"pay_time": "2026-04-13T23:09:39.000Z",
|
||||
"pay_no": "",
|
||||
"service_code": null,
|
||||
"operator_name": "1",
|
||||
"operate_time": "2026-04-14T06:53:07.000Z",
|
||||
"delivery_time": null,
|
||||
"shop_nick": "加能量袜子店",
|
||||
"seller_nick": "1",
|
||||
"buyer_nick": "张三",
|
||||
"total_amount": "600.00",
|
||||
"item_amount": "600.00",
|
||||
"discount_amount": "0.00",
|
||||
"freight": "0.00",
|
||||
"ar_amount": "0.00",
|
||||
"got_amount": "0.00",
|
||||
"service_fee": null,
|
||||
"logistics_code": "ZTO",
|
||||
"logistics_name": "中通快递",
|
||||
"sys_logistics_code": null,
|
||||
"sys_logistics_name": null,
|
||||
"express_code": "",
|
||||
"logistics_area_code": "",
|
||||
"delivery_type": null,
|
||||
"is_urgency": "N",
|
||||
"invoice_flag": "N",
|
||||
"status": "pedding",
|
||||
"name": "张三",
|
||||
"zip_code": "",
|
||||
"tel": "",
|
||||
"mobile": "18022440198",
|
||||
"email": "",
|
||||
"country_code": "CN",
|
||||
"province": "广东省",
|
||||
"city": "广州市",
|
||||
"area": "白云区",
|
||||
"town": "人和镇",
|
||||
"detail_address": "广东省 广州市 白云区 人和镇 测试地址",
|
||||
"id_type": null,
|
||||
"id_number": null,
|
||||
"oaid": null,
|
||||
"sync_status": "padding",
|
||||
"store_id": 1000000,
|
||||
"id": 2,
|
||||
"name": "申通-快手",
|
||||
"express_code": "STO",
|
||||
"warehouse_id": 100000,
|
||||
"from_key": 24869601,
|
||||
"items": "101384+20",
|
||||
"items_count": 1,
|
||||
"items_total": 20,
|
||||
"items_weight": "0.00",
|
||||
"items_hash": "23ef3c5bc7ab12dc9bd25877afded196",
|
||||
"items_crc": 3353156042,
|
||||
"wave_id": 0,
|
||||
"post_status": "none",
|
||||
"storage_status": "none",
|
||||
"pick_status": "none",
|
||||
"pack_status": "none",
|
||||
"inspection_status": "none",
|
||||
"step": 0,
|
||||
"print_status": "none",
|
||||
"claim_status": "none",
|
||||
"outbound_status": "none",
|
||||
"lock_status": null,
|
||||
"intercept_status": null,
|
||||
"express_numbers": [],
|
||||
"waybill_codes": []
|
||||
"platform_code": "kuaishou",
|
||||
"express_platform_id": 1,
|
||||
"sender_name": "吴先生",
|
||||
"sender_tel": "15197817068",
|
||||
"weight": 1,
|
||||
"token": "db820eeeb6c8425eb3f1cc25a28fb2f8",
|
||||
"viewer": null,
|
||||
"client_id": null,
|
||||
"is_share": 0,
|
||||
"share_id": null,
|
||||
"can_use_count": 0,
|
||||
"province_name": "广东省",
|
||||
"city_name": "广州市",
|
||||
"district_name": "白云区",
|
||||
"site_code": "526126",
|
||||
"product_type": null,
|
||||
"shop_name": "仓配吴哥688(天豹云仓@仓配小吴哥)"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"page": 1,
|
||||
"pageSize": 20,
|
||||
"total": 1,
|
||||
"totalPages": 1,
|
||||
"hasPrevious": false,
|
||||
"hasNext": false
|
||||
}
|
||||
"total": 1,
|
||||
"page": 1,
|
||||
"page_size": 20
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "order.reviewOrder.reviewOrder",
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"inspection_status": "fin",
|
||||
"step": 1,
|
||||
"updated_at": "2026-04-16T12:48:29.000Z",
|
||||
"updated_count": 1,
|
||||
"ids": [
|
||||
1
|
||||
]
|
||||
}
|
||||
"接口": "setting.expressInterface.create",
|
||||
"message": "express_platform_id 参数不能为空",
|
||||
"data": null
|
||||
},
|
||||
{
|
||||
"接口": "setting.expressInterface.update",
|
||||
"message": "id 参数不能为空",
|
||||
"data": null
|
||||
},
|
||||
{
|
||||
"接口": "setting.expressInterface.delete",
|
||||
"message": "id 参数不能为空",
|
||||
"data": null
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# 接口
|
||||
|
||||
- 更新时间: 2026-04-16 17:15:32
|
||||
- 更新时间: 2026-04-17 20:22:54
|
||||
- 扫描目录: `src\api`
|
||||
- 模块数: 23
|
||||
- API 文件数: 23
|
||||
- 接口数: 193
|
||||
- 已启用: 180
|
||||
- 模块数: 27
|
||||
- API 文件数: 27
|
||||
- 接口数: 214
|
||||
- 已启用: 201
|
||||
- 占位接口: 0
|
||||
|
||||
## 模块统计
|
||||
@ -13,7 +13,8 @@
|
||||
| 模块 | 文件数 | 接口数 | 已启用 | 占位 |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| config | 1 | 1 | 1 | 0 |
|
||||
| index | 1 | 12 | 12 | 0 |
|
||||
| dashboard | 1 | 6 | 6 | 0 |
|
||||
| index | 1 | 14 | 14 | 0 |
|
||||
| order | 1 | 14 | 13 | 0 |
|
||||
| order.deliveryOrder | 1 | 1 | 1 | 0 |
|
||||
| order.index | 1 | 3 | 3 | 0 |
|
||||
@ -23,7 +24,10 @@
|
||||
| print | 1 | 11 | 11 | 0 |
|
||||
| printer.station | 1 | 11 | 11 | 0 |
|
||||
| setting.account | 1 | 7 | 7 | 0 |
|
||||
| setting.express | 1 | 5 | 5 | 0 |
|
||||
| setting.expressInterface | 1 | 4 | 4 | 0 |
|
||||
| setting.permission | 1 | 4 | 4 | 0 |
|
||||
| setting.platform | 1 | 4 | 4 | 0 |
|
||||
| setting.printTemplate | 1 | 13 | 13 | 0 |
|
||||
| setting.role | 1 | 5 | 5 | 0 |
|
||||
| stock | 1 | 25 | 24 | 0 |
|
||||
@ -41,12 +45,20 @@
|
||||
| 模块 | 接口名 | method | HTTP Method | 启用 | 占位 | 文件 | 备注 |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| config | listConfig | config.list | POST | 是 | 否 | config/config.ts | |
|
||||
| dashboard | getExpressRatio | dashboard.express_ratio | POST | 是 | 否 | dashboard/dashboard.ts | |
|
||||
| dashboard | getHotOrderRank | dashboard.hot_order_rank | POST | 是 | 否 | dashboard/dashboard.ts | |
|
||||
| dashboard | getOrderTrend | dashboard.order_trend | POST | 是 | 否 | dashboard/dashboard.ts | |
|
||||
| dashboard | getPlatformDist | dashboard.platform_distribution | POST | 是 | 否 | dashboard/dashboard.ts | |
|
||||
| dashboard | getStoreStats | dashboard.storeStats | POST | 是 | 否 | dashboard/dashboard.ts | |
|
||||
| dashboard | getWarehouseStats | dashboard.warehouseStats | POST | 是 | 否 | dashboard/dashboard.ts | |
|
||||
| index | fastWhereTree | index.fastWhereTree | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getCOSUploadConfig | index.getCOSUploadConfig | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getExpressList | index.getExpressList | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getExpressProductTypeList | index.getExpressProductTypeList | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getI18nMessage | index.getI18nMessage | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getImages | index.getImages | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getMessageDetail | index.getMessageDetail | POST | 是 | 否 | index/index.ts | |
|
||||
| index | getPlatformList | index.getPlatformList | POST | 是 | 否 | index/index.ts | |
|
||||
| index | listInterfaceTypes | index.listInterfaceTypes | POST | 是 | 否 | index/index.ts | |
|
||||
| index | loadStores | index.loadStores | POST | 是 | 否 | index/index.ts | |
|
||||
| index | putI18nCollect | index.putI18nCollect | POST | 是 | 否 | index/index.ts | |
|
||||
@ -108,10 +120,23 @@
|
||||
| setting.account | accountResetPassword | setting.account.resetPassword | POST | 是 | 否 | setting.account/account.ts | |
|
||||
| setting.account | unbindWechat | setting.account.unbindWechat | POST | 是 | 否 | setting.account/account.ts | |
|
||||
| setting.account | accountUpdate | setting.account.update | POST | 是 | 否 | setting.account/account.ts | |
|
||||
| setting.express | expressCheckCodeUnique | setting.express.checkCodeUnique | POST | 是 | 否 | setting.express/express.ts | |
|
||||
| setting.express | expressCreate | setting.express.create | POST | 是 | 否 | setting.express/express.ts | |
|
||||
| setting.express | expressList | setting.express.list | POST | 是 | 否 | setting.express/express.ts | |
|
||||
| setting.express | expressListBase | setting.express.listBase | POST | 是 | 否 | setting.express/express.ts | |
|
||||
| setting.express | expressUpdate | setting.express.update | POST | 是 | 否 | setting.express/express.ts | |
|
||||
| setting.expressInterface | expressInterfaceCreate | setting.expressInterface.create | POST | 是 | 否 | setting.expressInterface/expressInterface.ts | |
|
||||
| setting.expressInterface | expressInterfaceDelete | setting.expressInterface.delete | POST | 是 | 否 | setting.expressInterface/expressInterface.ts | |
|
||||
| setting.expressInterface | expressInterfaceList | setting.expressInterface.list | POST | 是 | 否 | setting.expressInterface/expressInterface.ts | |
|
||||
| setting.expressInterface | expressInterfaceUpdate | setting.expressInterface.update | POST | 是 | 否 | setting.expressInterface/expressInterface.ts | |
|
||||
| setting.permission | permissionAdd | setting.permission.add | POST | 是 | 否 | setting.permission/permission.ts | |
|
||||
| setting.permission | permissionDelete | setting.permission.delete | POST | 是 | 否 | setting.permission/permission.ts | |
|
||||
| setting.permission | permissionList | setting.permission.list | POST | 是 | 否 | setting.permission/permission.ts | |
|
||||
| setting.permission | permissionUpdate | setting.permission.update | POST | 是 | 否 | setting.permission/permission.ts | |
|
||||
| setting.platform | settingPlatformCreate | setting.platform.create | POST | 是 | 否 | setting.platform/platform.ts | |
|
||||
| setting.platform | settingPlatformDelete | setting.platform.delete | POST | 是 | 否 | setting.platform/platform.ts | |
|
||||
| setting.platform | settingPlatformList | setting.platform.list | POST | 是 | 否 | setting.platform/platform.ts | |
|
||||
| setting.platform | settingPlatformUpdate | setting.platform.update | POST | 是 | 否 | setting.platform/platform.ts | |
|
||||
| setting.printTemplate | addElement | setting.printTemplate.addElement | POST | 是 | 否 | setting.printTemplate/printTemplate.ts | |
|
||||
| setting.printTemplate | createTemplate | setting.printTemplate.create | POST | 是 | 否 | setting.printTemplate/printTemplate.ts | |
|
||||
| setting.printTemplate | deleteTemplate | setting.printTemplate.delete | POST | 是 | 否 | setting.printTemplate/printTemplate.ts | |
|
||||
|
||||
@ -16,13 +16,27 @@
|
||||
- 模块明细:`workflows/api-doc-system/data/module/<folder>/module.json`
|
||||
- 接口维护表:`workflows/api-doc-agent/config/接口.md`
|
||||
|
||||
## 1.1 最小读取范围(必须遵守)
|
||||
|
||||
1. 禁止全量读取 `src/api`、`data/module`、`data/interface-details`、`workflows` 下所有文件。
|
||||
2. 仅允许按“变更驱动”读取:
|
||||
- 固定必读:`workflow-mode.json`、`pending-updates.json`、`module-list.json`
|
||||
- 按需选读:`workflows/api-doc-system/data/module/<folder>/module.json`(只读取本次涉及 folder)
|
||||
- 按需选读:`src/api/<module>/...`(只读取本次涉及模块的文件)
|
||||
- 条件读取:`workflows/api-doc-agent/config/接口.md`(仅在存在删除项或软删除处理时读取)
|
||||
3. 若 `pending-updates.json` 已给出 `interfaceUpdates`,禁止再遍历读取无关模块文件。
|
||||
4. 任何“扫描全部文件/目录”行为均视为违规(包括为了“确认一下”而做的全量读取)。
|
||||
|
||||
## 2. 自动执行步骤(严格顺序)
|
||||
|
||||
1. 读取 `pending-updates.json`。
|
||||
2. 若 `pending-updates.json` 为 `{}`,先执行 `npm run apiconfig`。
|
||||
3. 无论 `pending-updates.json` 是否为 `{}`,都必须读取 `module-list.json`,并更新 `src/api` 的模块与接口结构,保证与 `module` 对齐。
|
||||
4. 若 `pending-updates.json` 存在变更项(接口增删、`Params/Response` 变化),按“增删优先”原则更新 `src/api`:新增模块/接口即创建,删除模块/接口即在 `config/接口.md` 标记 `启用=否`,并读取对应 `module.json` 的 `params` 生成或修改接口定义。
|
||||
5. 完成接口改动后,执行 `npm run apiagent -- --script api-list-update`。
|
||||
3. 无论 `pending-updates.json` 是否为 `{}`,都必须读取 `module-list.json`,但只提取本次变更涉及的 `folder` 列表(禁止全量展开所有模块细节)。
|
||||
4. 若 `pending-updates.json` 存在变更项(接口增删、`Params/Response` 变化),按“增删优先”原则更新 `src/api`:
|
||||
- 新增/更新:只读取对应 `folder` 的 `module.json`,并只修改对应 `src/api` 文件。
|
||||
- 删除:不硬删除代码;仅在 `config/接口.md` 标记 `启用=否`(仅处理命中 method)。
|
||||
5. 若 `pending-updates.json` 为 `{}` 且 `npm run apiconfig` 后仍为 `{}`,仅执行一致性检查,不得触发全量文件读取。
|
||||
6. 完成接口改动后,执行 `npm run apiagent -- --script api-list-update`。
|
||||
|
||||
## 3. `config/接口.md` 维护规则(必须遵守)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# API Doc System Workflow
|
||||
|
||||
该工作流用于自动抓取 `system` API 文档页面,按 `platform=网页端(web)`、`project=全部(all)` 条件进行校验后,清洗输出模块与接口数据。
|
||||
该工作流用于抓取 `system` API 文档页面,按 `platform=网页端(web)`、`project=全部(all)` 条件进行校验后,清洗输出模块与接口数据。
|
||||
|
||||
## 目录结构
|
||||
|
||||
@ -140,9 +140,9 @@ npm run apiagent -- --script list
|
||||
## 模块文件夹生命周期
|
||||
|
||||
- 新模块首次出现时自动创建模块文件夹并生成 `_module.lifecycle.json`。
|
||||
- 当模块在最新文档中消失时,不删除模块文件夹,而是在该目录新增 `_deleted.YYYYMMDD.json` 删除标记,并将生命周期状态更新为 `deleted`。
|
||||
- 若后续文档再次出现该模块,会自动恢复为 `active`。
|
||||
- 为避免误删导致不可恢复,当前工作流不提供物理删除入口,前端整体采用软删除策略。
|
||||
- 运行 `npm run apiconfig` 时会先完成与上一轮数据的差异对比并写入 `pending-updates.json`。
|
||||
- 对比完成后,当前文档中不存在的旧模块文件夹会被直接物理删除(不再保留 `_deleted.YYYYMMDD.json` 软删除标记)。
|
||||
- 目录内仅保留本轮解析到的最新模块数据,避免历史目录残留影响结构一致性。
|
||||
|
||||
## 结构优化说明
|
||||
|
||||
|
||||
@ -8,15 +8,54 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "order.reviewOrder.list",
|
||||
"method": "setting.expressInterface.list",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "order.reviewOrder.reviewOrder",
|
||||
"method": "setting.expressInterface.create",
|
||||
"body": {
|
||||
"ids": [1]
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.update",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.delete",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
|
||||
@ -3,118 +3,56 @@
|
||||
"接口": "user.login",
|
||||
"message": "登录成功",
|
||||
"data": {
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzYzNDM3MDksImV4cCI6MTc3NjM1ODEwOX0.7ZqQMkBW2GZWmiH0RHXcqgQTVJaatmCAK-76miv5v90"
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzY0Mjc1MTEsImV4cCI6MTc3NjQ0MTkxMX0.h2EZ06SLDAZAGSiC8sXdLb3VShAylMm_n2RF4NQe48g"
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "order.reviewOrder.list",
|
||||
"接口": "setting.expressInterface.list",
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"list": [
|
||||
{
|
||||
"id": 1,
|
||||
"delivery_order_code": "JY202604142929",
|
||||
"pre_delivery_order_code": "",
|
||||
"pre_delivery_order_id": "",
|
||||
"order_type": "JYCK",
|
||||
"warehouse_code": "100000",
|
||||
"order_flag": "",
|
||||
"source_platform_code": "TB",
|
||||
"source_platform_name": "淘宝",
|
||||
"sys_platform_code": null,
|
||||
"sys_platform_name": null,
|
||||
"create_at": "2026-04-14T06:53:07.000Z",
|
||||
"delete_at": null,
|
||||
"updated_at": "2026-04-15T09:30:32.000Z",
|
||||
"place_order_time": "2026-04-13T23:09:39.000Z",
|
||||
"pay_time": "2026-04-13T23:09:39.000Z",
|
||||
"pay_no": "",
|
||||
"service_code": null,
|
||||
"operator_name": "1",
|
||||
"operate_time": "2026-04-14T06:53:07.000Z",
|
||||
"delivery_time": null,
|
||||
"shop_nick": "加能量袜子店",
|
||||
"seller_nick": "1",
|
||||
"buyer_nick": "张三",
|
||||
"total_amount": "600.00",
|
||||
"item_amount": "600.00",
|
||||
"discount_amount": "0.00",
|
||||
"freight": "0.00",
|
||||
"ar_amount": "0.00",
|
||||
"got_amount": "0.00",
|
||||
"service_fee": null,
|
||||
"logistics_code": "ZTO",
|
||||
"logistics_name": "中通快递",
|
||||
"sys_logistics_code": null,
|
||||
"sys_logistics_name": null,
|
||||
"express_code": "",
|
||||
"logistics_area_code": "",
|
||||
"delivery_type": null,
|
||||
"is_urgency": "N",
|
||||
"invoice_flag": "N",
|
||||
"status": "pedding",
|
||||
"name": "张三",
|
||||
"zip_code": "",
|
||||
"tel": "",
|
||||
"mobile": "18022440198",
|
||||
"email": "",
|
||||
"country_code": "CN",
|
||||
"province": "广东省",
|
||||
"city": "广州市",
|
||||
"area": "白云区",
|
||||
"town": "人和镇",
|
||||
"detail_address": "广东省 广州市 白云区 人和镇 测试地址",
|
||||
"id_type": null,
|
||||
"id_number": null,
|
||||
"oaid": null,
|
||||
"sync_status": "padding",
|
||||
"store_id": 1000000,
|
||||
"id": 2,
|
||||
"name": "申通-快手",
|
||||
"express_code": "STO",
|
||||
"warehouse_id": 100000,
|
||||
"from_key": 24869601,
|
||||
"items": "101384+20",
|
||||
"items_count": 1,
|
||||
"items_total": 20,
|
||||
"items_weight": "0.00",
|
||||
"items_hash": "23ef3c5bc7ab12dc9bd25877afded196",
|
||||
"items_crc": 3353156042,
|
||||
"wave_id": 0,
|
||||
"post_status": "none",
|
||||
"storage_status": "none",
|
||||
"pick_status": "none",
|
||||
"pack_status": "none",
|
||||
"inspection_status": "none",
|
||||
"step": 0,
|
||||
"print_status": "none",
|
||||
"claim_status": "none",
|
||||
"outbound_status": "none",
|
||||
"lock_status": null,
|
||||
"intercept_status": null,
|
||||
"express_numbers": [],
|
||||
"waybill_codes": []
|
||||
"platform_code": "kuaishou",
|
||||
"express_platform_id": 1,
|
||||
"sender_name": "吴先生",
|
||||
"sender_tel": "15197817068",
|
||||
"weight": 1,
|
||||
"token": "db820eeeb6c8425eb3f1cc25a28fb2f8",
|
||||
"viewer": null,
|
||||
"client_id": null,
|
||||
"is_share": 0,
|
||||
"share_id": null,
|
||||
"can_use_count": 0,
|
||||
"province_name": "广东省",
|
||||
"city_name": "广州市",
|
||||
"district_name": "白云区",
|
||||
"site_code": "526126",
|
||||
"product_type": null,
|
||||
"shop_name": "仓配吴哥688(天豹云仓@仓配小吴哥)"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"page": 1,
|
||||
"pageSize": 20,
|
||||
"total": 1,
|
||||
"totalPages": 1,
|
||||
"hasPrevious": false,
|
||||
"hasNext": false
|
||||
}
|
||||
"total": 1,
|
||||
"page": 1,
|
||||
"page_size": 20
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "order.reviewOrder.reviewOrder",
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"inspection_status": "fin",
|
||||
"step": 1,
|
||||
"updated_at": "2026-04-16T12:48:29.000Z",
|
||||
"updated_count": 1,
|
||||
"ids": [
|
||||
1
|
||||
]
|
||||
}
|
||||
"接口": "setting.expressInterface.create",
|
||||
"message": "express_platform_id 参数不能为空",
|
||||
"data": null
|
||||
},
|
||||
{
|
||||
"接口": "setting.expressInterface.update",
|
||||
"message": "id 参数不能为空",
|
||||
"data": null
|
||||
},
|
||||
{
|
||||
"接口": "setting.expressInterface.delete",
|
||||
"message": "id 参数不能为空",
|
||||
"data": null
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -12,26 +12,49 @@
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"totalInterfaceCount": 169,
|
||||
"totalInterfaceCount": 182,
|
||||
"changes": {
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"moduleUpdated": 0,
|
||||
"moduleUpdated": 1,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceParamsUpdated": 1,
|
||||
"interfaceResponseUpdated": 0
|
||||
},
|
||||
"moduleUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"updated": []
|
||||
"updated": [
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"folder": "setting.platform",
|
||||
"previousModuleName": "平台编码管理模块",
|
||||
"previousModuleKey": "setting.platform",
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [
|
||||
"index.getPlatformList"
|
||||
],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"paramsUpdated": [
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"folder": "setting.platform",
|
||||
"method": "index.getPlatformList"
|
||||
}
|
||||
],
|
||||
"responseUpdated": []
|
||||
}
|
||||
},
|
||||
@ -276,12 +299,12 @@
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"moduleFolder": "index",
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"moduleFolder": "setting.express",
|
||||
"method": "index.getExpressList",
|
||||
"title": "index.getExpressList 接口",
|
||||
"description": "index.getExpressList 接口",
|
||||
"title": "合并后的快递列表",
|
||||
"description": "合并后的快递列表",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
@ -290,7 +313,14 @@
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"params": [
|
||||
{
|
||||
"name": "systemOnly",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "可选,是否仅返回系统基础快递列表;默认不传或 false 时返回合并仓库设置的快递列表;systemOnly=true 时只返回系统基础快递列表。"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
@ -369,12 +399,12 @@
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"moduleFolder": "index",
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"moduleFolder": "setting.platform",
|
||||
"method": "index.getPlatformList",
|
||||
"title": "index.getPlatformList 接口",
|
||||
"description": "index.getPlatformList 接口",
|
||||
"title": "合并后的平台列表",
|
||||
"description": "合并后的平台列表",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
@ -383,7 +413,14 @@
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"params": [
|
||||
{
|
||||
"name": "systemOnly",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "可选,是否仅返回系统基础平台列表;默认不传或 false 时返回合并仓库设置的平台列表;systemOnly=true 时只返回系统基础平台列表。"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
@ -2638,6 +2675,608 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"moduleFolder": "setting.express",
|
||||
"method": "setting.express.checkCodeUnique",
|
||||
"title": "校验快递编码在当前仓库/主体维度唯一性,仅支持 code 与可选 id 排除自身",
|
||||
"description": "校验快递编码在当前仓库/主体维度唯一性,仅支持 code 与可选 id 排除自身",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "待校验的快递编码"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "排除自身 id(更新时使用)"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"moduleFolder": "setting.express",
|
||||
"method": "setting.express.create",
|
||||
"title": "创建快递映射,仅写入已实现字段(code、name、platform 等)",
|
||||
"description": "创建快递映射,仅写入已实现字段(code、name、platform 等)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "快递编码"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "快递名称"
|
||||
},
|
||||
{
|
||||
"name": "platform",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "平台标识(可选)"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"moduleFolder": "setting.express",
|
||||
"method": "setting.express.list",
|
||||
"title": "查询当前仓库范围的快递映射列表,支持 where + pagination",
|
||||
"description": "查询当前仓库范围的快递映射列表,支持 where + pagination",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
},
|
||||
{
|
||||
"name": "where",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "统一 where 条件对象;推荐使用 { operator, value, type } 标准结构"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"moduleFolder": "setting.express",
|
||||
"method": "setting.express.listBase",
|
||||
"title": "返回系统快递基础列表(系统级别基础快递,不含仓库自定义)",
|
||||
"description": "返回系统快递基础列表(系统级别基础快递,不含仓库自定义)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"moduleFolder": "setting.express",
|
||||
"method": "setting.express.update",
|
||||
"title": "更新快递映射,仅更新已实现字段(例如 name、platform)",
|
||||
"description": "更新快递映射,仅更新已实现字段(例如 name、platform)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "快递记录ID"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递名称"
|
||||
},
|
||||
{
|
||||
"name": "platform",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "平台标识(可选)"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "快递接口管理模块",
|
||||
"moduleKey": "setting.expressInterface",
|
||||
"moduleFolder": "setting.expressinterface",
|
||||
"method": "setting.expressInterface.create",
|
||||
"title": "在当前仓库范围内创建快递接口,仅写入已实现字段(见 params),仓库由系统自动填充,禁止传入 warehouse_id/warehouseId。",
|
||||
"description": "在当前仓库范围内创建快递接口,仅写入已实现字段(见 params),仓库由系统自动填充,禁止传入 warehouse_id/warehouseId。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "接口名称"
|
||||
},
|
||||
{
|
||||
"name": "express_code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "快递编码(不区分大小写,会在服务端转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "platform_code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "平台代码(不区分大小写,会在服务端转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "express_platform_id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "平台接口 ID"
|
||||
},
|
||||
{
|
||||
"name": "sender_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人姓名"
|
||||
},
|
||||
{
|
||||
"name": "sender_tel",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人电话"
|
||||
},
|
||||
{
|
||||
"name": "weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "默认重量(可选)"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "接口密钥或 token"
|
||||
},
|
||||
{
|
||||
"name": "viewer",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "查看者标识"
|
||||
},
|
||||
{
|
||||
"name": "client_id",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "客户端 ID"
|
||||
},
|
||||
{
|
||||
"name": "is_share",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "是否共享(0/1)"
|
||||
},
|
||||
{
|
||||
"name": "share_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "共享记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "can_use_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "可用次数/配额"
|
||||
},
|
||||
{
|
||||
"name": "province_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "省"
|
||||
},
|
||||
{
|
||||
"name": "city_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "市"
|
||||
},
|
||||
{
|
||||
"name": "district_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "区/县"
|
||||
},
|
||||
{
|
||||
"name": "site_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "站点编码"
|
||||
},
|
||||
{
|
||||
"name": "product_type",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递产品类型"
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "店铺名称/分组标识"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "新建记录 ID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "快递接口管理模块",
|
||||
"moduleKey": "setting.expressInterface",
|
||||
"moduleFolder": "setting.expressinterface",
|
||||
"method": "setting.expressInterface.delete",
|
||||
"title": "删除快递接口,支持 id 别名 interface_id / interfaceId;返回被删除记录 id 与所属 warehouse_id。",
|
||||
"description": "删除快递接口,支持 id 别名 interface_id / interfaceId;返回被删除记录 id 与所属 warehouse_id。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "快递接口ID;兼容 interface_id / interfaceId"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "已删除记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "warehouse_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "记录所属仓库 ID"
|
||||
},
|
||||
{
|
||||
"name": "deleted",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否已删除,成功时为 true"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "快递接口管理模块",
|
||||
"moduleKey": "setting.expressInterface",
|
||||
"moduleFolder": "setting.expressinterface",
|
||||
"method": "setting.expressInterface.list",
|
||||
"title": "查询当前仓库范围的快递接口列表,支持 where + pagination;返回 data:{ list, total, page, page_size }。每条记录字段见 children。",
|
||||
"description": "查询当前仓库范围的快递接口列表,支持 where + pagination;返回 data:{ list, total, page, page_size }。每条记录字段见 children。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
},
|
||||
{
|
||||
"name": "where",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "统一 where 条件对象;支持字段:id、name、express_code、platform_code、express_platform_id、sender_name、sender_tel、viewer、client_id、share_id、site_code、product_type、shop_name。支持 quickWhere 快速关键词。"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "快递接口记录数组(每项字段如下)"
|
||||
},
|
||||
{
|
||||
"name": "total",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "匹配的总记录数"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "当前页"
|
||||
},
|
||||
{
|
||||
"name": "page_size",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "每页数量"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "快递接口管理模块",
|
||||
"moduleKey": "setting.expressInterface",
|
||||
"moduleFolder": "setting.expressinterface",
|
||||
"method": "setting.expressInterface.update",
|
||||
"title": "更新快递接口,支持局部字段更新;支持 id 别名 interface_id / interfaceId;禁止通过接口修改 warehouse_id。",
|
||||
"description": "更新快递接口,支持局部字段更新;支持 id 别名 interface_id / interfaceId;禁止通过接口修改 warehouse_id。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "快递接口ID;兼容 interface_id / interfaceId"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "接口名称"
|
||||
},
|
||||
{
|
||||
"name": "express_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递编码(更新时会被转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "platform_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "平台代码(更新时会被转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "express_platform_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "平台接口 ID"
|
||||
},
|
||||
{
|
||||
"name": "sender_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人姓名"
|
||||
},
|
||||
{
|
||||
"name": "sender_tel",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人电话"
|
||||
},
|
||||
{
|
||||
"name": "weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "默认重量"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "接口密钥或 token"
|
||||
},
|
||||
{
|
||||
"name": "viewer",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "查看者标识"
|
||||
},
|
||||
{
|
||||
"name": "client_id",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "客户端 ID"
|
||||
},
|
||||
{
|
||||
"name": "is_share",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "是否共享(0/1)"
|
||||
},
|
||||
{
|
||||
"name": "share_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "共享记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "can_use_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "可用次数/配额"
|
||||
},
|
||||
{
|
||||
"name": "province_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "省"
|
||||
},
|
||||
{
|
||||
"name": "city_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "市"
|
||||
},
|
||||
{
|
||||
"name": "district_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "区/县"
|
||||
},
|
||||
{
|
||||
"name": "site_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "站点编码"
|
||||
},
|
||||
{
|
||||
"name": "product_type",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递产品类型"
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "店铺名称/分组标识"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "首条更新记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "更新后的接口名称"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "权限管理模块",
|
||||
"moduleKey": "setting.permission",
|
||||
@ -2802,6 +3441,106 @@
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"moduleFolder": "setting.platform",
|
||||
"method": "setting.platform.create",
|
||||
"title": "创建当前仓库范围的平台设置",
|
||||
"description": "创建当前仓库范围的平台设置",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"moduleFolder": "setting.platform",
|
||||
"method": "setting.platform.delete",
|
||||
"title": "删除当前仓库范围的平台设置",
|
||||
"description": "删除当前仓库范围的平台设置",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"moduleFolder": "setting.platform",
|
||||
"method": "setting.platform.list",
|
||||
"title": "查询当前仓库范围的平台设置列表",
|
||||
"description": "查询当前仓库范围的平台设置列表",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"moduleFolder": "setting.platform",
|
||||
"method": "setting.platform.update",
|
||||
"title": "更新当前仓库范围的平台设置",
|
||||
"description": "更新当前仓库范围的平台设置",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "打印模板模块",
|
||||
"moduleKey": "setting.printTemplate",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -12,27 +12,50 @@
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"moduleCount": 27,
|
||||
"totalInterfaceCount": 169,
|
||||
"moduleCount": 30,
|
||||
"totalInterfaceCount": 182,
|
||||
"changes": {
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"moduleUpdated": 0,
|
||||
"moduleUpdated": 1,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceParamsUpdated": 1,
|
||||
"interfaceResponseUpdated": 0
|
||||
},
|
||||
"moduleUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"updated": []
|
||||
"updated": [
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"folder": "setting.platform",
|
||||
"previousModuleName": "平台编码管理模块",
|
||||
"previousModuleKey": "setting.platform",
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [
|
||||
"index.getPlatformList"
|
||||
],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"paramsUpdated": [
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"folder": "setting.platform",
|
||||
"method": "index.getPlatformList"
|
||||
}
|
||||
],
|
||||
"responseUpdated": []
|
||||
}
|
||||
},
|
||||
@ -365,7 +388,7 @@
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"interfaceCount": 15,
|
||||
"interfaceCount": 13,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "index.fastWhereTree"
|
||||
@ -405,12 +428,6 @@
|
||||
},
|
||||
{
|
||||
"method": "index.listInterfaceTypes"
|
||||
},
|
||||
{
|
||||
"method": "index.getExpressList"
|
||||
},
|
||||
{
|
||||
"method": "index.getPlatformList"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -492,6 +509,52 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "快递编码管理模块",
|
||||
"moduleKey": "setting.express",
|
||||
"folder": "setting.express",
|
||||
"interfaceCount": 6,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "index.getExpressList"
|
||||
},
|
||||
{
|
||||
"method": "setting.express.list"
|
||||
},
|
||||
{
|
||||
"method": "setting.express.listBase"
|
||||
},
|
||||
{
|
||||
"method": "setting.express.create"
|
||||
},
|
||||
{
|
||||
"method": "setting.express.checkCodeUnique"
|
||||
},
|
||||
{
|
||||
"method": "setting.express.update"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "快递接口管理模块",
|
||||
"moduleKey": "setting.expressInterface",
|
||||
"folder": "setting.expressinterface",
|
||||
"interfaceCount": 4,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "setting.expressInterface.list"
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.create"
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.update"
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.delete"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "配置模块",
|
||||
"moduleKey": "config",
|
||||
@ -503,6 +566,29 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "平台编码管理模块",
|
||||
"moduleKey": "setting.platform",
|
||||
"folder": "setting.platform",
|
||||
"interfaceCount": 5,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "index.getPlatformList"
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.list"
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.create"
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.update"
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.delete"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "权限管理模块",
|
||||
"moduleKey": "setting.permission",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -16,7 +16,7 @@
|
||||
"name": "基础模块",
|
||||
"key": "index",
|
||||
"folder": "index",
|
||||
"interfaceCount": 15
|
||||
"interfaceCount": 13
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
@ -405,36 +405,6 @@
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "index.getExpressList",
|
||||
"title": "index.getExpressList 接口",
|
||||
"description": "index.getExpressList 接口",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "index.getPlatformList",
|
||||
"title": "index.getPlatformList 接口",
|
||||
"description": "index.getPlatformList 接口",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"response": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.archiveorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.deliveryexpectionorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.deliveryorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.entrustorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.expectionorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.index",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.outboundorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.pendingorder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "order.revieworder",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"module": {
|
||||
"name": "快递编码管理模块",
|
||||
"key": "setting.express",
|
||||
"folder": "setting.express"
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:37:49",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
224
workflows/api-doc-system/data/module/setting.express/module.json
Normal file
224
workflows/api-doc-system/data/module/setting.express/module.json
Normal file
@ -0,0 +1,224 @@
|
||||
{
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
"value": "web",
|
||||
"label": "网页端"
|
||||
},
|
||||
"project": {
|
||||
"value": "all",
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"name": "快递编码管理模块",
|
||||
"key": "setting.express",
|
||||
"folder": "setting.express",
|
||||
"interfaceCount": 6
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
"moduleAdded": false,
|
||||
"moduleRenamed": false,
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "index.getExpressList",
|
||||
"title": "合并后的快递列表",
|
||||
"description": "合并后的快递列表",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [
|
||||
{
|
||||
"name": "systemOnly",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "可选,是否仅返回系统基础快递列表;默认不传或 false 时返回合并仓库设置的快递列表;systemOnly=true 时只返回系统基础快递列表。"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.express.list",
|
||||
"title": "查询当前仓库范围的快递映射列表,支持 where + pagination",
|
||||
"description": "查询当前仓库范围的快递映射列表,支持 where + pagination",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
},
|
||||
{
|
||||
"name": "where",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "统一 where 条件对象;推荐使用 { operator, value, type } 标准结构"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.express.listBase",
|
||||
"title": "返回系统快递基础列表(系统级别基础快递,不含仓库自定义)",
|
||||
"description": "返回系统快递基础列表(系统级别基础快递,不含仓库自定义)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.express.create",
|
||||
"title": "创建快递映射,仅写入已实现字段(code、name、platform 等)",
|
||||
"description": "创建快递映射,仅写入已实现字段(code、name、platform 等)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "快递编码"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "快递名称"
|
||||
},
|
||||
{
|
||||
"name": "platform",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "平台标识(可选)"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.express.checkCodeUnique",
|
||||
"title": "校验快递编码在当前仓库/主体维度唯一性,仅支持 code 与可选 id 排除自身",
|
||||
"description": "校验快递编码在当前仓库/主体维度唯一性,仅支持 code 与可选 id 排除自身",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "待校验的快递编码"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "排除自身 id(更新时使用)"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.express.update",
|
||||
"title": "更新快递映射,仅更新已实现字段(例如 name、platform)",
|
||||
"description": "更新快递映射,仅更新已实现字段(例如 name、platform)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "快递记录ID"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递名称"
|
||||
},
|
||||
{
|
||||
"name": "platform",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "平台标识(可选)"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"module": {
|
||||
"name": "快递接口管理模块",
|
||||
"key": "setting.expressInterface",
|
||||
"folder": "setting.expressinterface"
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 20:21:27",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
@ -0,0 +1,443 @@
|
||||
{
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
"value": "web",
|
||||
"label": "网页端"
|
||||
},
|
||||
"project": {
|
||||
"value": "all",
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"name": "快递接口管理模块",
|
||||
"key": "setting.expressInterface",
|
||||
"folder": "setting.expressinterface",
|
||||
"interfaceCount": 4
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
"moduleAdded": false,
|
||||
"moduleRenamed": false,
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "setting.expressInterface.list",
|
||||
"title": "查询当前仓库范围的快递接口列表,支持 where + pagination;返回 data:{ list, total, page, page_size }。每条记录字段见 children。",
|
||||
"description": "查询当前仓库范围的快递接口列表,支持 where + pagination;返回 data:{ list, total, page, page_size }。每条记录字段见 children。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
},
|
||||
{
|
||||
"name": "where",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "统一 where 条件对象;支持字段:id、name、express_code、platform_code、express_platform_id、sender_name、sender_tel、viewer、client_id、share_id、site_code、product_type、shop_name。支持 quickWhere 快速关键词。"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "快递接口记录数组(每项字段如下)"
|
||||
},
|
||||
{
|
||||
"name": "total",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "匹配的总记录数"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "当前页"
|
||||
},
|
||||
{
|
||||
"name": "page_size",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "每页数量"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.create",
|
||||
"title": "在当前仓库范围内创建快递接口,仅写入已实现字段(见 params),仓库由系统自动填充,禁止传入 warehouse_id/warehouseId。",
|
||||
"description": "在当前仓库范围内创建快递接口,仅写入已实现字段(见 params),仓库由系统自动填充,禁止传入 warehouse_id/warehouseId。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "接口名称"
|
||||
},
|
||||
{
|
||||
"name": "express_code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "快递编码(不区分大小写,会在服务端转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "platform_code",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "平台代码(不区分大小写,会在服务端转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "express_platform_id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "平台接口 ID"
|
||||
},
|
||||
{
|
||||
"name": "sender_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人姓名"
|
||||
},
|
||||
{
|
||||
"name": "sender_tel",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人电话"
|
||||
},
|
||||
{
|
||||
"name": "weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "默认重量(可选)"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "接口密钥或 token"
|
||||
},
|
||||
{
|
||||
"name": "viewer",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "查看者标识"
|
||||
},
|
||||
{
|
||||
"name": "client_id",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "客户端 ID"
|
||||
},
|
||||
{
|
||||
"name": "is_share",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "是否共享(0/1)"
|
||||
},
|
||||
{
|
||||
"name": "share_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "共享记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "can_use_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "可用次数/配额"
|
||||
},
|
||||
{
|
||||
"name": "province_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "省"
|
||||
},
|
||||
{
|
||||
"name": "city_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "市"
|
||||
},
|
||||
{
|
||||
"name": "district_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "区/县"
|
||||
},
|
||||
{
|
||||
"name": "site_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "站点编码"
|
||||
},
|
||||
{
|
||||
"name": "product_type",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递产品类型"
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "店铺名称/分组标识"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "新建记录 ID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.update",
|
||||
"title": "更新快递接口,支持局部字段更新;支持 id 别名 interface_id / interfaceId;禁止通过接口修改 warehouse_id。",
|
||||
"description": "更新快递接口,支持局部字段更新;支持 id 别名 interface_id / interfaceId;禁止通过接口修改 warehouse_id。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "快递接口ID;兼容 interface_id / interfaceId"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "接口名称"
|
||||
},
|
||||
{
|
||||
"name": "express_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递编码(更新时会被转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "platform_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "平台代码(更新时会被转为大写)"
|
||||
},
|
||||
{
|
||||
"name": "express_platform_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "平台接口 ID"
|
||||
},
|
||||
{
|
||||
"name": "sender_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人姓名"
|
||||
},
|
||||
{
|
||||
"name": "sender_tel",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "发件人电话"
|
||||
},
|
||||
{
|
||||
"name": "weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "默认重量"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "接口密钥或 token"
|
||||
},
|
||||
{
|
||||
"name": "viewer",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "查看者标识"
|
||||
},
|
||||
{
|
||||
"name": "client_id",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "客户端 ID"
|
||||
},
|
||||
{
|
||||
"name": "is_share",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "是否共享(0/1)"
|
||||
},
|
||||
{
|
||||
"name": "share_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "共享记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "can_use_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "可用次数/配额"
|
||||
},
|
||||
{
|
||||
"name": "province_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "省"
|
||||
},
|
||||
{
|
||||
"name": "city_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "市"
|
||||
},
|
||||
{
|
||||
"name": "district_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "区/县"
|
||||
},
|
||||
{
|
||||
"name": "site_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "站点编码"
|
||||
},
|
||||
{
|
||||
"name": "product_type",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "快递产品类型"
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "店铺名称/分组标识"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "首条更新记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "更新后的接口名称"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "setting.expressInterface.delete",
|
||||
"title": "删除快递接口,支持 id 别名 interface_id / interfaceId;返回被删除记录 id 与所属 warehouse_id。",
|
||||
"description": "删除快递接口,支持 id 别名 interface_id / interfaceId;返回被删除记录 id 与所属 warehouse_id。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "快递接口ID;兼容 interface_id / interfaceId"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "已删除记录 ID"
|
||||
},
|
||||
{
|
||||
"name": "warehouse_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "记录所属仓库 ID"
|
||||
},
|
||||
{
|
||||
"name": "deleted",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否已删除,成功时为 true"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"module": {
|
||||
"name": "平台编码管理模块",
|
||||
"key": "setting.platform",
|
||||
"folder": "setting.platform"
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:16:50",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
@ -0,0 +1,147 @@
|
||||
{
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
"value": "web",
|
||||
"label": "网页端"
|
||||
},
|
||||
"project": {
|
||||
"value": "all",
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"name": "平台编码管理模块",
|
||||
"key": "setting.platform",
|
||||
"folder": "setting.platform",
|
||||
"interfaceCount": 5
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
"moduleAdded": false,
|
||||
"moduleRenamed": false,
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [
|
||||
"index.getPlatformList"
|
||||
],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "index.getPlatformList",
|
||||
"title": "合并后的平台列表",
|
||||
"description": "合并后的平台列表",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [],
|
||||
"params": [
|
||||
{
|
||||
"name": "systemOnly",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "可选,是否仅返回系统基础平台列表;默认不传或 false 时返回合并仓库设置的平台列表;systemOnly=true 时只返回系统基础平台列表。"
|
||||
}
|
||||
],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.list",
|
||||
"title": "查询当前仓库范围的平台设置列表",
|
||||
"description": "查询当前仓库范围的平台设置列表",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.create",
|
||||
"title": "创建当前仓库范围的平台设置",
|
||||
"description": "创建当前仓库范围的平台设置",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.update",
|
||||
"title": "更新当前仓库范围的平台设置",
|
||||
"description": "更新当前仓库范围的平台设置",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "setting.platform.delete",
|
||||
"title": "删除当前仓库范围的平台设置",
|
||||
"description": "删除当前仓库范围的平台设置",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"folder": "storage_receiving",
|
||||
"deletedAt": "2026-04-17 17:28:24",
|
||||
"reason": "Missing from latest API doc parsing result"
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-16 20:30:46",
|
||||
"updatedAt": "2026-04-17 20:34:19",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-16 20:30:46",
|
||||
"generatedAtLocal": "2026-04-16 20:30:46",
|
||||
"generatedAt": "2026-04-17 20:34:19",
|
||||
"generatedAtLocal": "2026-04-17 20:34:19",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user