diff --git a/src/views/system/jdorder/components/DistributionMarkTouserConfig.vue b/src/views/system/jdorder/components/DistributionMarkTouserConfig.vue new file mode 100644 index 0000000..57ddfc4 --- /dev/null +++ b/src/views/system/jdorder/components/DistributionMarkTouserConfig.vue @@ -0,0 +1,650 @@ + + + + + + 分销标识接收人配置 + + 已配置 {{ configuredCount }} 项 + + + + + + + + + + 分销标识接收人映射 + + 添加配置 + + + + + + + + + 删除 + + + + + + + 配置键名:logistics.push.touser.{{ item.distributionMark || '分销标识' }} + + + + + + + 暂无配置,点击"添加配置"开始设置 + + + + + + + + + + + + + + {{ hasConfigured ? '配置完成' : '配置未完成' }} + + {{ hasConfigured ? `已配置 ${configuredCount} 个分销标识的接收人` : '请至少配置一个分销标识的接收人' }} + + + + + + + + + 配置说明 + + + + + 分销标识必须与订单中的分销标识完全匹配 + + + + 接收人列表用逗号分隔,例如:abc,bcd,efg + + + + 配置会自动保存到系统配置表中 + + + + 推送时会根据订单的分销标识自动匹配接收人 + + + + + + + + + 常见分销标识 + + + + + {{ mark }} + + + + + + + + + + + + + + + + diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index 2ead6dc..12e0276 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -64,6 +64,7 @@ 导出 腾峰文档配置 推送监控 + 接收人配置 一键发货到腾峰 @@ -440,6 +441,9 @@ + + + @@ -449,13 +453,15 @@ import { fillLogisticsByOrderNo, getTokenStatus, getTencentDocAuthUrl, testUserI import ListLayout from '@/components/ListLayout' import TencentDocAutoWriteConfig from './components/TencentDocAutoWriteConfig' import TencentDocPushMonitor from './components/TencentDocPushMonitor' +import DistributionMarkTouserConfig from './components/DistributionMarkTouserConfig' export default { name: 'JDOrderList', components: { ListLayout, TencentDocAutoWriteConfig, - TencentDocPushMonitor + TencentDocPushMonitor, + DistributionMarkTouserConfig }, data() { return { @@ -499,6 +505,7 @@ export default { // H-TF订单自动写入配置 showAutoWriteConfig: false, showPushMonitor: false, + showTouserConfig: false, // 批量同步loading状态 batchSyncLoading: false, // 批量标记后返到账loading状态 @@ -1165,6 +1172,11 @@ export default { this.$message.success('H-TF订单自动写入配置已更新') }, + /** 分销标识接收人配置更新后的回调 */ + handleTouserConfigUpdated() { + this.$message.success('分销标识接收人配置已更新') + }, + /** 批量标记后返到账(赔付金额>0的订单) */ async handleBatchMarkRebateReceived() { try {
暂无配置,点击"添加配置"开始设置