From 6011fca268b591368dddb5ddb97040a67c3ae166 Mon Sep 17 00:00:00 2001 From: zhx Date: Fri, 17 Jul 2026 18:12:09 +0800 Subject: [PATCH] feat: add coin seller parent unbind dialog --- src/api/app-user.js | 18 +++ src/lang/messages/pages/en.js | 13 +- src/lang/messages/pages/zh.js | 13 +- src/views/user/freight/index.vue | 28 ++++- src/views/user/freight/parent-unbind.vue | 144 +++++++++++++++++++++++ 5 files changed, 212 insertions(+), 4 deletions(-) create mode 100644 src/views/user/freight/parent-unbind.vue diff --git a/src/api/app-user.js b/src/api/app-user.js index b54801d..4be74a0 100644 --- a/src/api/app-user.js +++ b/src/api/app-user.js @@ -523,6 +523,24 @@ export function removeFreightSeller(id) { }); } +// 查询币商当前绑定的上级经理 +export function getFreightSubSellerParent(params) { + return request({ + url: "/freight/sub-seller-parent", + method: "get", + params + }); +} + +// 解绑币商当前绑定的上级经理 +export function unbindFreightSubSellerParent(data) { + return request({ + url: "/freight/sub-seller-parent/unbind", + method: "post", + data + }); +} + // 获取指定用户运行资料 export function getUserRunProfileById(userId) { return request({ diff --git a/src/lang/messages/pages/en.js b/src/lang/messages/pages/en.js index 39b2ba4..c1c2a52 100644 --- a/src/lang/messages/pages/en.js +++ b/src/lang/messages/pages/en.js @@ -2447,7 +2447,8 @@ export default { submit: 'Submit', save: 'Save', delete: 'Delete', - confirm: 'Confirm' + confirm: 'Confirm', + unbindParent: 'Unbind Parent' }, table: { system: 'System', @@ -2535,6 +2536,16 @@ export default { deleteConfirm: 'This action will delete the seller. Continue?', deleteCanceled: 'Deletion canceled' }, + parentUnbind: { + title: 'Unbind Coin Seller Parent', + notBound: 'This coin seller is not currently bound to a parent manager.', + warning: 'After unbinding, this coin seller can be bound to the current manager. Verify both users before continuing.', + coinSeller: 'Coin Seller', + currentParent: 'Current Parent Manager', + bindTime: 'Bound At', + confirmUnbind: 'Confirm Unbind', + confirmMessage: 'Unbind this coin seller from the current parent manager?' + }, sellerRunningWater: { title: 'Dealer Seller Freight Running Water' } diff --git a/src/lang/messages/pages/zh.js b/src/lang/messages/pages/zh.js index 2c09a11..a02169e 100644 --- a/src/lang/messages/pages/zh.js +++ b/src/lang/messages/pages/zh.js @@ -2446,7 +2446,8 @@ export default { submit: '提交', save: '保存', delete: '删除', - confirm: '确定' + confirm: '确定', + unbindParent: '解绑上级' }, table: { system: '系统', @@ -2534,6 +2535,16 @@ export default { deleteConfirm: '此操作将删除该卖家,是否继续?', deleteCanceled: '已取消删除' }, + parentUnbind: { + title: '币商解绑上级', + notBound: '该币商当前没有绑定上级经理', + warning: '解绑后,该币商可以重新绑定到现任经理名下。请核对币商和原上级后再操作。', + coinSeller: '币商', + currentParent: '当前上级经理', + bindTime: '绑定时间', + confirmUnbind: '确认解绑', + confirmMessage: '确定解除该币商与当前上级经理的绑定关系吗?' + }, sellerRunningWater: { title: '经销商卖家货运流水' } diff --git a/src/views/user/freight/index.vue b/src/views/user/freight/index.vue index 9d377d2..69ce972 100644 --- a/src/views/user/freight/index.vue +++ b/src/views/user/freight/index.vue @@ -224,7 +224,7 @@ {{ scope.row.createTime | dateFormat }} - + @@ -272,6 +278,13 @@ @close="sellerInfoClose" /> + +
value === undefined || value === null || String(value).trim() === ""; const validateEarnPoints = (rule, value, callback) => { @@ -432,6 +446,8 @@ export default { runningWaterVisible: false, showSellerInfoVisable: false, sellerInfoEditParam: {}, + parentUnbindVisible: false, + parentUnbindRow: {}, thatRow: null, userInfo: {}, searchDisabled: false, @@ -571,6 +587,14 @@ export default { this.showSellerInfoVisable = false; this.renderData(); }, + showParentUnbind(row) { + this.parentUnbindRow = row; + this.parentUnbindVisible = true; + }, + parentUnbindSuccess() { + this.parentUnbindVisible = false; + this.renderData(); + }, showGoldInputBox(row, type) { const that = this; that.type = type; diff --git a/src/views/user/freight/parent-unbind.vue b/src/views/user/freight/parent-unbind.vue new file mode 100644 index 0000000..686297d --- /dev/null +++ b/src/views/user/freight/parent-unbind.vue @@ -0,0 +1,144 @@ + + + + +