diff --git a/src/api/shop/shopDealerCapital/model/index.ts b/src/api/shop/shopDealerCapital/model/index.ts index b62e6e5..bc9bd11 100644 --- a/src/api/shop/shopDealerCapital/model/index.ts +++ b/src/api/shop/shopDealerCapital/model/index.ts @@ -8,6 +8,8 @@ export interface ShopDealerCapital { id?: number; // 分销商用户ID userId?: number; + // 分销商昵称 + nickName?: string; // 订单ID orderId?: number; // 订单编号 diff --git a/src/api/shop/shopDealerOrder/model/index.ts b/src/api/shop/shopDealerOrder/model/index.ts index e76f732..2bf954c 100644 --- a/src/api/shop/shopDealerOrder/model/index.ts +++ b/src/api/shop/shopDealerOrder/model/index.ts @@ -12,6 +12,8 @@ export interface ShopDealerOrder { title?: string; // 买家用户昵称 nickname?: string; + // 真实姓名 + realName?: string; // 订单编号 orderNo?: string; // 订单总金额(不含运费) diff --git a/src/api/shop/shopDealerUser/model/index.ts b/src/api/shop/shopDealerUser/model/index.ts index d443ef2..4f57555 100644 --- a/src/api/shop/shopDealerUser/model/index.ts +++ b/src/api/shop/shopDealerUser/model/index.ts @@ -6,8 +6,12 @@ import type { PageParam } from '@/api'; export interface ShopDealerUser { // 主键ID id?: number; + // 类型 0经销商 1企业 2集团 + type?: number; // 自增ID userId?: number; + // 头像 + avatar?: string; // 姓名 realName?: string; // 手机号 diff --git a/src/api/shop/shopGoods/model/index.ts b/src/api/shop/shopGoods/model/index.ts index 493295d..3b8f926 100644 --- a/src/api/shop/shopGoods/model/index.ts +++ b/src/api/shop/shopGoods/model/index.ts @@ -94,7 +94,7 @@ export interface ShopGoods { supplierMerchantId?: number; supplierName?: string; // 状态(0:未上架,1:上架) - isShow?: number; + isShow?: boolean; // 状态, 0上架 1待上架 2待审核 3审核不通过 status?: number; // 备注 @@ -124,6 +124,19 @@ export interface ShopGoods { canUseDate?: string; ensureTag?: string; expiredDay?: number; + + // --- 分销/佣金(新字段,后端保持 snake_case)--- + // 是否开启分销佣金:0关闭 1开启 + isOpenCommission?: number; + // 分佣类型:10固定金额 20百分比 + commissionType?: number; + // 一级/二级/三级分销佣金(单位以服务端为准) + firstMoney?: number; + secondMoney?: number; + thirdMoney?: number; + // 一级/二级分红(单位以服务端为准) + firstDividend?: number; + secondDividend?: number; } export interface BathSet { diff --git a/src/views/glt/shopDealerApply/components/search.vue b/src/views/glt/shopDealerApply/components/search.vue new file mode 100644 index 0000000..054a3a1 --- /dev/null +++ b/src/views/glt/shopDealerApply/components/search.vue @@ -0,0 +1,158 @@ + + + + + + diff --git a/src/views/glt/shopDealerApply/components/shopDealerApplyEdit.vue b/src/views/glt/shopDealerApply/components/shopDealerApplyEdit.vue new file mode 100644 index 0000000..777e3b3 --- /dev/null +++ b/src/views/glt/shopDealerApply/components/shopDealerApplyEdit.vue @@ -0,0 +1,645 @@ + + + + + + diff --git a/src/views/glt/shopDealerApply/index.vue b/src/views/glt/shopDealerApply/index.vue new file mode 100644 index 0000000..5eaa246 --- /dev/null +++ b/src/views/glt/shopDealerApply/index.vue @@ -0,0 +1,458 @@ + + + + + diff --git a/src/views/glt/shopDealerApplyRs/components/search.vue b/src/views/glt/shopDealerApplyRs/components/search.vue new file mode 100644 index 0000000..5adc9bb --- /dev/null +++ b/src/views/glt/shopDealerApplyRs/components/search.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/shop/shopDealerUser/components/Import.vue b/src/views/glt/shopDealerApplyRs/components/shop-dealer-apply-import.vue similarity index 64% rename from src/views/shop/shopDealerUser/components/Import.vue rename to src/views/glt/shopDealerApplyRs/components/shop-dealer-apply-import.vue index 1679e73..32c2917 100644 --- a/src/views/shop/shopDealerUser/components/Import.vue +++ b/src/views/glt/shopDealerApplyRs/components/shop-dealer-apply-import.vue @@ -1,9 +1,9 @@ - + @@ -43,7 +36,7 @@ import { ref } from 'vue'; import { message } from 'ant-design-vue/es'; import { CloudUploadOutlined } from '@ant-design/icons-vue'; - import { importShopDealerUsers } from '@/api/shop/shopDealerUser'; + import { importShopDealerApplies } from '@/api/shop/shopDealerApply'; const emit = defineEmits<{ (e: 'done'): void; @@ -74,7 +67,7 @@ return false; } loading.value = true; - importShopDealerUsers(file) + importShopDealerApplies(file) .then((msg) => { loading.value = false; message.success(msg); @@ -93,14 +86,3 @@ emit('update:visible', value); }; - - diff --git a/src/views/glt/shopDealerApplyRs/components/shopDealerApplyEdit.vue b/src/views/glt/shopDealerApplyRs/components/shopDealerApplyEdit.vue new file mode 100644 index 0000000..33ce93a --- /dev/null +++ b/src/views/glt/shopDealerApplyRs/components/shopDealerApplyEdit.vue @@ -0,0 +1,298 @@ + + + + + + diff --git a/src/views/glt/shopDealerApplyRs/index.vue b/src/views/glt/shopDealerApplyRs/index.vue new file mode 100644 index 0000000..43ef48e --- /dev/null +++ b/src/views/glt/shopDealerApplyRs/index.vue @@ -0,0 +1,301 @@ + + + + + diff --git a/src/views/glt/shopDealerCapital/components/search.vue b/src/views/glt/shopDealerCapital/components/search.vue new file mode 100644 index 0000000..ad1a2c6 --- /dev/null +++ b/src/views/glt/shopDealerCapital/components/search.vue @@ -0,0 +1,117 @@ + + + + diff --git a/src/views/glt/shopDealerCapital/components/shopDealerCapitalEdit.vue b/src/views/glt/shopDealerCapital/components/shopDealerCapitalEdit.vue new file mode 100644 index 0000000..35917d9 --- /dev/null +++ b/src/views/glt/shopDealerCapital/components/shopDealerCapitalEdit.vue @@ -0,0 +1,406 @@ + + + + + + diff --git a/src/views/glt/shopDealerCapital/index.vue b/src/views/glt/shopDealerCapital/index.vue new file mode 100644 index 0000000..e73f34a --- /dev/null +++ b/src/views/glt/shopDealerCapital/index.vue @@ -0,0 +1,295 @@ + + + + + + + diff --git a/src/views/glt/shopDealerOrder/components/Import.vue b/src/views/glt/shopDealerOrder/components/Import.vue new file mode 100644 index 0000000..867c61c --- /dev/null +++ b/src/views/glt/shopDealerOrder/components/Import.vue @@ -0,0 +1,89 @@ + + + + diff --git a/src/views/glt/shopDealerOrder/components/search.vue b/src/views/glt/shopDealerOrder/components/search.vue new file mode 100644 index 0000000..355d4c3 --- /dev/null +++ b/src/views/glt/shopDealerOrder/components/search.vue @@ -0,0 +1,182 @@ + + + diff --git a/src/views/glt/shopDealerOrder/components/shopDealerOrderEdit.vue b/src/views/glt/shopDealerOrder/components/shopDealerOrderEdit.vue new file mode 100644 index 0000000..46b49bf --- /dev/null +++ b/src/views/glt/shopDealerOrder/components/shopDealerOrderEdit.vue @@ -0,0 +1,363 @@ + + + + + + diff --git a/src/views/glt/shopDealerOrder/index.vue b/src/views/glt/shopDealerOrder/index.vue new file mode 100644 index 0000000..481e06e --- /dev/null +++ b/src/views/glt/shopDealerOrder/index.vue @@ -0,0 +1,448 @@ + + + + + + + diff --git a/src/views/glt/shopDealerOrder2/components/Import.vue b/src/views/glt/shopDealerOrder2/components/Import.vue new file mode 100644 index 0000000..073da9f --- /dev/null +++ b/src/views/glt/shopDealerOrder2/components/Import.vue @@ -0,0 +1,79 @@ + + + + diff --git a/src/views/glt/shopDealerOrder2/components/search.vue b/src/views/glt/shopDealerOrder2/components/search.vue new file mode 100644 index 0000000..74cd0e5 --- /dev/null +++ b/src/views/glt/shopDealerOrder2/components/search.vue @@ -0,0 +1,143 @@ + + + + diff --git a/src/views/glt/shopDealerOrder2/components/shopDealerOrderEdit.vue b/src/views/glt/shopDealerOrder2/components/shopDealerOrderEdit.vue new file mode 100644 index 0000000..fe3f924 --- /dev/null +++ b/src/views/glt/shopDealerOrder2/components/shopDealerOrderEdit.vue @@ -0,0 +1,333 @@ + + + + + + diff --git a/src/views/glt/shopDealerOrder2/index.vue b/src/views/glt/shopDealerOrder2/index.vue new file mode 100644 index 0000000..ca4422b --- /dev/null +++ b/src/views/glt/shopDealerOrder2/index.vue @@ -0,0 +1,500 @@ + + + + + + + diff --git a/src/views/glt/shopDealerReferee/components/RefereeTree.vue b/src/views/glt/shopDealerReferee/components/RefereeTree.vue new file mode 100644 index 0000000..45a0f6c --- /dev/null +++ b/src/views/glt/shopDealerReferee/components/RefereeTree.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/src/views/glt/shopDealerReferee/components/search.vue b/src/views/glt/shopDealerReferee/components/search.vue new file mode 100644 index 0000000..b237175 --- /dev/null +++ b/src/views/glt/shopDealerReferee/components/search.vue @@ -0,0 +1,185 @@ + + + + + + diff --git a/src/views/glt/shopDealerReferee/components/shopDealerRefereeEdit.vue b/src/views/glt/shopDealerReferee/components/shopDealerRefereeEdit.vue new file mode 100644 index 0000000..0fe37c5 --- /dev/null +++ b/src/views/glt/shopDealerReferee/components/shopDealerRefereeEdit.vue @@ -0,0 +1,158 @@ + + + + diff --git a/src/views/glt/shopDealerReferee/index.vue b/src/views/glt/shopDealerReferee/index.vue new file mode 100644 index 0000000..4f72029 --- /dev/null +++ b/src/views/glt/shopDealerReferee/index.vue @@ -0,0 +1,563 @@ + + + + + + + diff --git a/src/views/glt/shopDealerUser/components/search.vue b/src/views/glt/shopDealerUser/components/search.vue new file mode 100644 index 0000000..5adc9bb --- /dev/null +++ b/src/views/glt/shopDealerUser/components/search.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/shop/shopDealerUser/components/shopDealerApplyEdit.vue b/src/views/glt/shopDealerUser/components/shopDealerApplyEdit.vue similarity index 100% rename from src/views/shop/shopDealerUser/components/shopDealerApplyEdit.vue rename to src/views/glt/shopDealerUser/components/shopDealerApplyEdit.vue diff --git a/src/views/glt/shopDealerUser/index.vue b/src/views/glt/shopDealerUser/index.vue new file mode 100644 index 0000000..65bdd6f --- /dev/null +++ b/src/views/glt/shopDealerUser/index.vue @@ -0,0 +1,517 @@ + + + + + + + diff --git a/src/views/glt/shopDealerWithdraw/components/Import.vue b/src/views/glt/shopDealerWithdraw/components/Import.vue new file mode 100644 index 0000000..867c61c --- /dev/null +++ b/src/views/glt/shopDealerWithdraw/components/Import.vue @@ -0,0 +1,89 @@ + + + + diff --git a/src/views/glt/shopDealerWithdraw/components/search.vue b/src/views/glt/shopDealerWithdraw/components/search.vue new file mode 100644 index 0000000..472b7dc --- /dev/null +++ b/src/views/glt/shopDealerWithdraw/components/search.vue @@ -0,0 +1,101 @@ + + + diff --git a/src/views/glt/shopDealerWithdraw/components/shopDealerWithdrawEdit.vue b/src/views/glt/shopDealerWithdraw/components/shopDealerWithdrawEdit.vue new file mode 100644 index 0000000..8721290 --- /dev/null +++ b/src/views/glt/shopDealerWithdraw/components/shopDealerWithdrawEdit.vue @@ -0,0 +1,697 @@ + + + + + + diff --git a/src/views/glt/shopDealerWithdraw/index.vue b/src/views/glt/shopDealerWithdraw/index.vue new file mode 100644 index 0000000..2999e31 --- /dev/null +++ b/src/views/glt/shopDealerWithdraw/index.vue @@ -0,0 +1,464 @@ + + + + + + + diff --git a/src/views/shop/shopDealerApplyRs/components/search.vue b/src/views/shop/shopDealerApplyRs/components/search.vue new file mode 100644 index 0000000..5adc9bb --- /dev/null +++ b/src/views/shop/shopDealerApplyRs/components/search.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/shop/shopDealerApplyRs/components/shop-dealer-apply-import.vue b/src/views/shop/shopDealerApplyRs/components/shop-dealer-apply-import.vue new file mode 100644 index 0000000..32c2917 --- /dev/null +++ b/src/views/shop/shopDealerApplyRs/components/shop-dealer-apply-import.vue @@ -0,0 +1,88 @@ + + + + diff --git a/src/views/shop/shopDealerApplyRs/components/shopDealerApplyEdit.vue b/src/views/shop/shopDealerApplyRs/components/shopDealerApplyEdit.vue new file mode 100644 index 0000000..33ce93a --- /dev/null +++ b/src/views/shop/shopDealerApplyRs/components/shopDealerApplyEdit.vue @@ -0,0 +1,298 @@ + + + + + + diff --git a/src/views/shop/shopDealerApplyRs/index.vue b/src/views/shop/shopDealerApplyRs/index.vue new file mode 100644 index 0000000..43ef48e --- /dev/null +++ b/src/views/shop/shopDealerApplyRs/index.vue @@ -0,0 +1,301 @@ + + + + + diff --git a/src/views/shop/shopDealerCapital/components/search.vue b/src/views/shop/shopDealerCapital/components/search.vue index 82fea9d..218dfcd 100644 --- a/src/views/shop/shopDealerCapital/components/search.vue +++ b/src/views/shop/shopDealerCapital/components/search.vue @@ -1,19 +1,28 @@ diff --git a/src/views/shop/shopDealerOrder/components/shopDealerOrderEdit.vue b/src/views/shop/shopDealerOrder/components/shopDealerOrderEdit.vue index 46b49bf..5267361 100644 --- a/src/views/shop/shopDealerOrder/components/shopDealerOrderEdit.vue +++ b/src/views/shop/shopDealerOrder/components/shopDealerOrderEdit.vue @@ -24,66 +24,36 @@ - - - {{ form.title }} - - {{ form.orderNo }} - - {{ parseFloat(form.orderPrice || 0).toFixed(2) }} - - - - - {{ parseFloat(form.degreePrice || 0).toFixed(2) }} - - - - - {{ form.rate }} - - - - - {{ form.price }} - - - - - {{ parseFloat(form.settledPrice || 0).toFixed(2) }} - - - - + {{ parseFloat(form.payPrice || 0).toFixed(2) }} -
开发调试
-
-
业务员({{ form.userId }}):{{ form.nickname }}
-
一级分销商({{ form.firstUserId }}):{{ - form.firstNickname - }},一级佣金30%:{{ form.firstMoney }}
-
二级分销商({{ form.secondUserId }}):{{ - form.secondNickname - }},二级佣金10%:{{ form.secondMoney }}
-
三级分销商({{ form.thirdUserId }}):{{ - form.thirdNickname - }},三级佣金60%:{{ form.thirdMoney }}
-
+ + + + + + + + + + + + + + + + + + + 收益计算 @@ -92,7 +62,7 @@

- 一级佣金30% + 一级佣金10%

@@ -105,7 +75,7 @@ - {{ '30%' }} + {{ '10%' }} {{ form.firstMoney }} @@ -179,7 +149,7 @@ import { assignObject } from 'ele-admin-pro'; import { ShopDealerOrder } from '@/api/shop/shopDealerOrder/model'; import { FormInstance } from 'ant-design-vue/es/form'; - import { updateSdyDealerOrder } from '@/api/sdy/sdyDealerOrder'; + import { updateShopDealerOrder } from '@/api/shop/shopDealerOrder'; // 是否是修改 const isUpdate = ref(false); @@ -275,7 +245,7 @@ ...form, isSettled: 1 }; - updateSdyDealerOrder(formData) + updateShopDealerOrder(formData) .then((msg) => { loading.value = false; message.success(msg); diff --git a/src/views/shop/shopDealerOrder/index.vue b/src/views/shop/shopDealerOrder/index.vue index 481e06e..c44b4da 100644 --- a/src/views/shop/shopDealerOrder/index.vue +++ b/src/views/shop/shopDealerOrder/index.vue @@ -7,28 +7,24 @@ :columns="columns" :datasource="datasource" :customRow="customRow" - v-model:selection="selection" tool-class="ele-toolbar-form" class="sys-org-table" >