From ccc3affa99284591b65ad1e10718a6157a3cf36b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 31 May 2022 11:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=AE=A2=E6=88=B7=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/main.css | 3 + src/setting.js | 4 +- src/utils/api.js | 1 + src/views/course/AddCurriculum.vue | 20 ++- src/views/course/Curriculum.vue | 2 +- src/views/course/contentSettings.vue | 3 +- src/views/customer/AddCustomer.vue | 128 +++++++++---------- src/views/customer/Order.vue | 15 +-- src/views/data/Product.vue | 23 +++- src/views/join/index.vue | 6 +- src/views/order/AddOrder.vue | 176 ++++++++++++++------------- src/views/parner/staff.vue | 6 +- src/views/system/manageLog.vue | 33 ++++- src/views/system/staff.vue | 1 + 14 files changed, 236 insertions(+), 185 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index d5f8164..6091a66 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -161,6 +161,9 @@ li { .orderTable td .el-input{ width: 60%; } +.orderTable td .normal{ + width: auto; +} .orderTable .el-select>.el-input{ display: inline-block; diff --git a/src/setting.js b/src/setting.js index 70e8e90..413d772 100644 --- a/src/setting.js +++ b/src/setting.js @@ -9,8 +9,8 @@ let jumpPath = `${location.origin}/judgmentPoint` let host = `${location.origin}:9000/` if (isDev) { jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统 - // host = 'http://39.108.250.202:9000/' - host = 'http://192.168.31.151:9000/'// 榕 + host = 'http://39.108.250.202:9000/' + // host = 'http://192.168.31.151:9000/'// 榕 // host = 'http://192.168.31.137:9000/'// 赓 } else if (isPro) { jumpPath = "http://www.huorantech.cn/judgmentPoint/"; diff --git a/src/utils/api.js b/src/utils/api.js index 3fddbc7..edee29c 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -256,6 +256,7 @@ export default { platformLogList: `nakadai/log/platformLogList`, listUpdate: `nakadai/log/update`, checkRepeat: `nakadai/log/checkRepeat`, + logWithdrawal: `nakadai/log/logWithdrawal`, // 合伙人 deleteParner: `${host1}nakadai/partnerClassification/delete`, diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index 584c244..2916389 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -62,9 +62,13 @@
比例分成 商务经理占比 - + + + 产品厂商占比 - + + +
@@ -656,6 +660,18 @@ export default { this.$refs.form.validate((valid) => { if (valid) { if (this.submiting) return false + const { form } = this + const { businessProportion, manufacturerProportion, settlementMethod, settlementPrice } = form + if (settlementMethod == 0) { + if(!settlementPrice) return this.$message.warning('请输入结算单价') + if(isNaN(settlementPrice)) return this.$message.warning('结算单价请输入数字') + } else { + if(!businessProportion) return this.$message.warning('请输入商务经理占比') + if(isNaN(businessProportion)) return this.$message.warning('商务经理占比请输入数字') + if(!manufacturerProportion) return this.$message.warning('请输入产品厂商占比') + if(isNaN(manufacturerProportion)) return this.$message.warning('产品厂商占比请输入数字') + if(+businessProportion + +manufacturerProportion !== 100) return this.$message.warning('比例分成总和须为100%,请重新修改') + } if (!this.form.coverUrl) { this.$message.warning("请上传课程封面"); return; diff --git a/src/views/course/Curriculum.vue b/src/views/course/Curriculum.vue index d69542c..ed7faaa 100644 --- a/src/views/course/Curriculum.vue +++ b/src/views/course/Curriculum.vue @@ -238,7 +238,7 @@ export default { }, // 内容设置 config(row) { - this.$router.push(`/contentSettings?cid=${row.cid}`); + this.$router.push(`/contentSettings?cid=${row.cid}&name=${row.curriculumName}`); }, // 删除 handleDelete(row) { diff --git a/src/views/course/contentSettings.vue b/src/views/course/contentSettings.vue index 20bd7b4..4c2d106 100644 --- a/src/views/course/contentSettings.vue +++ b/src/views/course/contentSettings.vue @@ -2,7 +2,7 @@
- +
@@ -218,6 +218,7 @@ export default { name: "contentSettings", data() { return { + name: this.$route.query.name, headers: { token: sessionStorage.getItem('token') }, diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index 06c5e57..6bdaea0 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -7,7 +7,6 @@ 返回
- 确定 @@ -15,68 +14,72 @@
{{ item }}
+
+ + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 确定 +
+
@@ -558,6 +561,7 @@ export default { e.startTime = list[0].startTime e.endTime = connect ? list[list.length - 1].endTime : list[0].endTime e.status = '未生效' + e.orderEnable = list[0].isEnable } else if (now > new Date(list[list.length - 1].endTime).getTime()) { e.status = '已过期' } else { @@ -718,7 +722,7 @@ export default { }, // 商务经理查看 toOrder(row) { - this.$router.push(`/bmOrder?businessManagerId=${row.businessManagerId}&customerId=${this.customerId}&customerName=${this.form.customerName}`) + this.$router.push(`/bmOrder?businessManagerId=${row.businessManagerId}&customerId=${this.customerId}&customerName=${this.form.customerName}&userName=${row.userName}`) }, tabChange(index) { diff --git a/src/views/customer/Order.vue b/src/views/customer/Order.vue index 99d4fb4..96ccca3 100644 --- a/src/views/customer/Order.vue +++ b/src/views/customer/Order.vue @@ -5,19 +5,7 @@
返回 - 商务经理订单 -
-
- - - -
-
-

- 筛选 -
-
- + {{ $route.query.userName }}
@@ -28,6 +16,7 @@

订单列表
+ diff --git a/src/views/data/Product.vue b/src/views/data/Product.vue index 8f24f62..eebea10 100644 --- a/src/views/data/Product.vue +++ b/src/views/data/Product.vue @@ -76,11 +76,15 @@
商务经理占比 - + + +
产品厂商占比 - + + +
@@ -530,8 +534,19 @@ export default { if(this.submited) return false const { productName, market, businessProportion, manufacturerProportion, settlementMethod, settlementPrice, supplier } = this if(!productName) return this.$message.warning('请输入数据产品名称') - if(!market) return this.$message.warning('请输入市场价格') - if(isNaN(market)) return this.$message.warning('市场价格请输入数字') + if(!market) return this.$message.warning('请输入市场单价格') + if(isNaN(market)) return this.$message.warning('市场单价格请输入数字') + if(!supplier) return this.$message.warning('请输入供应厂商') + if (settlementMethod == 0) { + if(!settlementPrice) return this.$message.warning('请输入结算单价') + if(isNaN(settlementPrice)) return this.$message.warning('结算单价请输入数字') + } else { + if(!businessProportion) return this.$message.warning('请输入商务经理占比') + if(isNaN(businessProportion)) return this.$message.warning('商务经理占比请输入数字') + if(!manufacturerProportion) return this.$message.warning('请输入产品厂商占比') + if(isNaN(manufacturerProportion)) return this.$message.warning('产品厂商占比请输入数字') + if(+businessProportion + +manufacturerProportion !== 100) return this.$message.warning('比例分成总和须为100%,请重新修改') + } if(!this.checkedIds.length) return this.$message.warning('请选择数据') this.submited = true // 提交状态 let tableId = this.checkedIds diff --git a/src/views/join/index.vue b/src/views/join/index.vue index ddb6391..cb4d3f4 100644 --- a/src/views/join/index.vue +++ b/src/views/join/index.vue @@ -6,7 +6,7 @@
-

或然科技城市合伙人计划

+

城市合伙人计划

加入并自动为你创建一个团队群组

@@ -26,9 +26,6 @@ {{ phoneBtnText }}
- - - 立即加入 @@ -49,7 +46,6 @@ export default { partnerClassificationId: this.$route.query.id, isTeam: 0, account: '', - email: '', phone: '', code: '', userName: '' diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index fcafdcc..d32a3ff 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -24,7 +24,7 @@ 基本信息
- + @@ -171,43 +171,40 @@
- + - + - + @@ -347,7 +344,7 @@ @@ -355,7 +352,7 @@