From d2919817e697df6c2e3a9cecc1fd0348d01e4f53 Mon Sep 17 00:00:00 2001
From: 15820893422 <1978476055@qq.com>
Date: Sat, 13 Apr 2024 18:17:12 +0800
Subject: [PATCH] add
---
src/api/merchant.js | 6 +-
src/api/user.js | 70 ++++++++++---------
src/views/merchant/application/index.vue | 4 +-
src/views/merchant/application/merInfo.vue | 4 +-
src/views/merchant/deposit/index.vue | 62 ++++++++++------
.../merchant/list/handle/merEditForm.vue | 30 +++++---
src/views/merchant/list/handle/merInfo.vue | 32 ++++++++-
src/views/merchant/list/index.vue | 5 +-
src/views/order/list/index.vue | 24 ++++++-
src/views/order/list/orderDetails.vue | 18 +++++
src/views/product/productExamine/editAttr.vue | 60 +++++++++++-----
src/views/product/productExamine/index.vue | 14 +++-
src/views/product/productExamine/info.vue | 12 +++-
.../product/productExamine/proDetails.vue | 26 +++++--
src/views/user/list/index.vue | 67 +++++++++++++++++-
15 files changed, 333 insertions(+), 101 deletions(-)
diff --git a/src/api/merchant.js b/src/api/merchant.js
index b45ac8f..87fabc0 100644
--- a/src/api/merchant.js
+++ b/src/api/merchant.js
@@ -340,10 +340,10 @@ export function marginGoodsLstApi(data) {
return request.get(`margin/goods_lst`, data)
}
/**
- * @description 待缴保证金 -- 列表
+ * @description 线下转账 -- 列表
*/
export function marginDepositLstApi(data) {
- return request.get(`margin/make_up`, data)
+ return request.get(`margin/make_offline`, data)
}
/**
* @description 待缴服务费 -- 列表
@@ -361,7 +361,7 @@ export function marginGoodsDepositLstApi(data) {
* @description 待缴保证金 -- 线下付款
*/
export function marginPaymentApi(id) {
- return request.get(`margin/local/${id}/form`)
+ return request.get(`margin/offline/${id}/form`)
}
/**
* @description 待缴服务费 -- 财务审核
diff --git a/src/api/user.js b/src/api/user.js
index 9f57cab..953da88 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -53,7 +53,7 @@ export function getMenusApi() {
/**
* @description 创建用户
*/
- export function createUserApi() {
+export function createUserApi() {
return request.get(`user/create`)
}
/**
@@ -134,7 +134,7 @@ export function changelabelApi(id) {
/**
* @description 用户列表 -- 编辑会员等级
*/
- export function changeMemberApi(id) {
+export function changeMemberApi(id) {
return request.get(`user/member/${id}/form`)
}
/**
@@ -147,7 +147,7 @@ export function changeNowMoneyApi(id) {
* @description 用户列表 -- 修改积分
*/
export function changeNowIntegralApi(id) {
- return request.get(`user/change_integral/form/${id}`)
+ return request.get(`user/change_integral/form/${id}`)
}
/**
* @description 用户列表 -- 批量设置分组
@@ -237,102 +237,102 @@ export function cityListApi(uid) {
* @description 用户 -- 修改用户推荐人(表单)
*/
export function modifyUserReferrer(uid) {
- return request.get(`user/change_spread_form/${uid}`)
+ return request.get(`user/change_spread_form/${uid}`)
}
/**
* @description 用户 -- 推荐人修改记录
*/
export function modifyUserRefLog(uid, data) {
- return request.get(`user/spread_log/${uid}`, data)
+ return request.get(`user/spread_log/${uid}`, data)
}
/**
* @description 用户 -- 获取协议
*/
export function getAgreementApi(key) {
- return request.get(`agreement/${key}`)
+ return request.get(`agreement/${key}`)
}
/**
* @description 用户 -- 编辑协议
*/
export function updateAgreementApi(type, data) {
- return request.post(`agreement/${type}`, data)
+ return request.post(`agreement/${type}`, data)
}
/**
* @description 用户搜索信息 -- 列表
*/
export function userSearchLstApi(data) {
- return request.get("user/search_log", data)
+ return request.get("user/search_log", data)
}
/**
* @description 用户搜索信息 -- 导出
*/
export function recordListImportApi(data) {
- return request.get("user/search_log/export", data)
+ return request.get("user/search_log/export", data)
}
/**
* @description 会员管理 -- 添加会员
*/
- export function addInterestsApi() {
+export function addInterestsApi() {
return request.get('user/member/create/form')
}
/**
* @description 会员管理 -- 列表
*/
- export function interestsLstApi(data) {
+export function interestsLstApi(data) {
return request.get('user/member/lst', data)
}
/**
* @description 会员管理 -- 编辑
*/
- export function interestsUpdateApi(id) {
+export function interestsUpdateApi(id) {
return request.get(`user/member/update/${id}/form`)
}
/**
* @description 会员管理 -- 删除
*/
- export function interestsDeleteApi(id) {
+export function interestsDeleteApi(id) {
return request.delete(`user/member/delete/${id}`)
}
/**
* @description 会员 -- 说明
*/
- export function interestsInfo(key) {
+export function interestsInfo(key) {
return request.get(`agreement/${key}`)
}
/**
* @description 会员管理 -- 编辑
*/
- export function interestsUpdate(key,data) {
+export function interestsUpdate(key, data) {
return request.post(`agreement/${key}`, data)
}
/**
* @description 会员 -- 配置
*/
- export function interestsConfig(key) {
+export function interestsConfig(key) {
return request.get(`config/${key}`)
}
/**
* @description 会员权益 -- 添加
*/
- export function addBenefitsApi() {
+export function addBenefitsApi() {
return request.get('member/interests/create/form')
}
/**
* @description 会员权益 -- 列表
*/
- export function benefitsLstApi(data) {
+export function benefitsLstApi(data) {
return request.get('member/interests/lst', data)
}
/**
* @description 会员权益 -- 编辑
*/
- export function benefitsUpdateApi(id) {
+export function benefitsUpdateApi(id) {
return request.get(`/member/interests/update/${id}/form`)
}
/**
* @description 会员权益 -- 删除
*/
- export function benefitsDeleteApi(id) {
+export function benefitsDeleteApi(id) {
return request.delete(`member/interests/delete/${id}`)
}
/**
@@ -345,61 +345,61 @@ export function getVersion() {
/**
* @description 会员类型 -- 添加
*/
- export function levelCreateApi() {
+export function levelCreateApi() {
return request.get('user/svip/type/form')
}
/**
* @description 会员类型 -- 编辑
*/
- export function levelUpdateApi(id) {
+export function levelUpdateApi(id) {
return request.get(`user/svip/type/${id}/form`)
}
/**
* @description 会员类型 -- 删除
*/
- export function levelDeteleApi(id) {
+export function levelDeteleApi(id) {
return request.delete(`user/svip/type/delete/${id}`)
}
/**
* @description 付费会员权益 -- 权益状态
*/
- export function levelStatusApi(id, status) {
+export function levelStatusApi(id, status) {
return request.post(`user/svip/type/status/${id}`, { status })
}
/**
* @description 付费会员类型 -- 列表
*/
- export function levelListApi() {
+export function levelListApi() {
return request.get('user/svip/type/lst')
}
/**
* @description 付费会员权益 -- 列表
*/
- export function memberEquityListApi() {
+export function memberEquityListApi() {
return request.get('svip/interests/lst')
}
/**
* @description 付费会员权益 -- 编辑表单
*/
- export function memberEquityUpdateApi(id) {
+export function memberEquityUpdateApi(id) {
return request.get(`svip/interests/${id}/form`)
}
/**
* @description 付费会员权益 -- 权益状态
*/
- export function memberEquityStatusApi(id, status) {
+export function memberEquityStatusApi(id, status) {
return request.post(`svip/interests/status/${id}`, { status })
}
/**
* @description 付费会员记录 -- 列表
*/
- export function memberRecordListApi(data) {
+export function memberRecordListApi(data) {
return request.get('user/svip/order_lst', data)
}
/**
* @description 用户 -- 赠送付费会员
*/
- export function giveMemberApi(id) {
+export function giveMemberApi(id) {
return request.get(`user/svip/${id}/form`)
}
/**
@@ -447,7 +447,7 @@ export function exportUserApi(data) {
/**
* @description 用户列表 -- 编辑
*/
-export function userEditApi(id,data) {
+export function userEditApi(id, data) {
return request.post(`user/update/${id}`, data)
}
/**
@@ -466,7 +466,7 @@ export function userInfoSelectApi() {
* @description 付费会员记录 -- 数据统计
*/
export function memberRecordCard(data) {
- return request.get(`user/svip/count_info`,data)
+ return request.get(`user/svip/count_info`, data)
}
/**
@@ -474,4 +474,10 @@ export function memberRecordCard(data) {
*/
export function memberGrowthLog(data) {
return request.get(`user/member_log`, data)
+}
+/**
+ * @description 验证码 -- 查询
+ */
+export function sysVerifyCodeApi(data) {
+ return request.post(`verify_code`, data)
}
\ No newline at end of file
diff --git a/src/views/merchant/application/index.vue b/src/views/merchant/application/index.vue
index b24c3e2..7a0856e 100644
--- a/src/views/merchant/application/index.vue
+++ b/src/views/merchant/application/index.vue
@@ -93,7 +93,8 @@
-
+
+
{{(scope.row.merchant&&scope.row.merchant.mer_name) || scope.row.mer_name}}
-
+
+
+ {{ scope.row.type==10?'保证金':scope.row.type==30?'技术服务费':'上架费' }}
+
+
+
- {{ scope.row.is_margin == 1 ? scope.row.margin : (scope.row.ot_margin-scope.row.margin).toFixed(2) }}
+ {{ scope.row.pay_price }}
{{ scope.row.is_goods == 1 ? scope.row.goods_cost : (scope.row.ot_goods_cost-scope.row.goods_cost).toFixed(2) }}
-
{{ scope.row.ot_margin }}
-
+ -->
{{ type == 0 ? scope.row.admin_mark : scope.row.mark }}
+
+
+
+
+
+
+
财务审核
@@ -517,18 +539,18 @@ export default {
{
count: "",
type: "2",
- title: "待缴保证金",
- },
- {
- count: "",
- type: "3",
- title: "待缴服务费",
- },
- {
- count: "",
- type: "4",
- title: "待缴上架费",
+ title: "线下转账",
},
+ // {
+ // count: "",
+ // type: "3",
+ // title: "待缴服务费",
+ // },
+ // {
+ // count: "",
+ // type: "4",
+ // title: "待缴上架费",
+ // },
{
count: "",
type: "1",
diff --git a/src/views/merchant/list/handle/merEditForm.vue b/src/views/merchant/list/handle/merEditForm.vue
index bfc0c08..1d33de7 100644
--- a/src/views/merchant/list/handle/merEditForm.vue
+++ b/src/views/merchant/list/handle/merEditForm.vue
@@ -13,17 +13,17 @@
基础信息
-
+
-
+
+
+
+
+
+
+
+
@@ -207,7 +219,7 @@
-
+
无
有
@@ -215,7 +227,7 @@
元,
@@ -230,7 +242,7 @@
-
+
无
有
@@ -238,7 +250,7 @@
元,
@@ -274,7 +286,7 @@
-
+
{{merData.is_service == 1 ? '待缴' : merData.is_service == 0 ? '无' : '已缴' }}
@@ -291,7 +303,7 @@
-
+
{{merData.service_cost}}
diff --git a/src/views/merchant/list/handle/merInfo.vue b/src/views/merchant/list/handle/merInfo.vue
index e89f7a0..cb6aaed 100644
--- a/src/views/merchant/list/handle/merInfo.vue
+++ b/src/views/merchant/list/handle/merInfo.vue
@@ -11,6 +11,12 @@
{{merData.mer_name}}
+
+ 企业名称:
+
+ {{merData.ext.com?merData.ext.com.contact:'无'}}
+
+
商户类型:
{{merData.is_trader == 1 ? "自营" : "非自营"}}
@@ -122,11 +128,35 @@
- 产品服务费:
+ 技术服务费:
{{merData.is_service == 0 ? '无' : merData.service_cost}}
+
+ 上架费支付状态:
+
+ {{merData.is_goods == 1 ? '待缴' : merData.is_goods == 0 ? '无' : '已缴' }}
+
+
+
+ 技术服务费支付状态:
+
+ {{merData.is_service == 1 ? '待缴' : merData.is_service == 0 ? '无' : '已缴' }}
+
+
+
+ 上架费余额:
+
+ {{merData.goods_cost == 0 ? '无' : merData.goods_cost}}
+
+
+
+ 技术服务费余额:
+
+ {{merData.service_cost == 0 ? '无' : merData.service_cost}}
+
+
保证金支付状态:
{{merData.is_margin == 1 ? '待缴' : merData.is_margin == 0 ? '无' : '已缴' }}
diff --git a/src/views/merchant/list/index.vue b/src/views/merchant/list/index.vue
index 3b0252c..0fac67b 100644
--- a/src/views/merchant/list/index.vue
+++ b/src/views/merchant/list/index.vue
@@ -118,7 +118,7 @@
>
-
+
@@ -162,7 +162,8 @@
-
+
+
diff --git a/src/views/order/list/index.vue b/src/views/order/list/index.vue
index d38e8b4..1e18b51 100644
--- a/src/views/order/list/index.vue
+++ b/src/views/order/list/index.vue
@@ -146,7 +146,7 @@
@@ -169,6 +169,24 @@
clearable
/>
+
搜索
重置
@@ -388,7 +406,9 @@ export default {
pay_type: "",
filter_delivery: '',
filter_product : '',
- activity_type: ''
+ activity_type: '',
+ product_id:'',
+ bar_code:''
},
dliveryWayList: [
{ value: 1, label: '快递订单' },
diff --git a/src/views/order/list/orderDetails.vue b/src/views/order/list/orderDetails.vue
index 51f7e5f..7f054c9 100644
--- a/src/views/order/list/orderDetails.vue
+++ b/src/views/order/list/orderDetails.vue
@@ -194,6 +194,24 @@
+
+
+
+
+ {{ scope.row.cart_info.productAttr.product_id ? scope.row.cart_info.productAttr.product_id : '-' }}
+
+
+
+
+
+
+
+
+ {{ scope.row.cart_info.productAttr.bar_code ? scope.row.cart_info.productAttr.bar_code : '-' }}
+
+
+
+
diff --git a/src/views/product/productExamine/editAttr.vue b/src/views/product/productExamine/editAttr.vue
index 1904726..8a4a4d9 100644
--- a/src/views/product/productExamine/editAttr.vue
+++ b/src/views/product/productExamine/editAttr.vue
@@ -50,7 +50,7 @@
-
+
@@ -111,7 +111,7 @@
-
+
@@ -150,7 +150,7 @@
-
+
@@ -353,21 +353,36 @@ export default {
handleOnform(type){
if(type=='ot_price'){
this.oneFormBatch[0].ot_price = this.oneFormBatch[0].ot_price.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
+ }else if(type=='cost'){
+ this.oneFormBatch[0].cost = this.oneFormBatch[0].cost.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
+ this.oneFormBatch[0].growth = parseInt( this.oneFormBatch[0].price*(0.9-( this.oneFormBatch[0].cost/ this.oneFormBatch[0].price)))
+ this.oneFormBatch[0].proportion = (this.oneFormBatch[0].cost/this.oneFormBatch[0].price).toFixed(2)
+
}else{
this.oneFormBatch[0].price = this.oneFormBatch[0].price.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
- this.oneFormBatch[0].cost = (this.oneFormBatch[0].price * 0.6).toFixed(2)
- this.oneFormBatch[0].growth = parseInt(this.oneFormBatch[0].price * 0.3)
+ this.oneFormBatch[0].growth = parseInt( this.oneFormBatch[0].price*(0.9-( this.oneFormBatch[0].cost/ this.oneFormBatch[0].price)))
+ this.oneFormBatch[0].proportion = (this.oneFormBatch[0].cost/this.oneFormBatch[0].price).toFixed(2)
+
}
-
},
- handleCost(val,i,e){
+ handleCost(val,i){
+ console.log(val);
if(i=='price'){
val.price=val.price.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
- val.cost = (e * 0.6).toFixed(2)
- val.growth = parseInt(e*0.3)
+ // val.cost = (e * 0.6).toFixed(2)
+ // val.growth = parseInt(e*0.3)
+ val.growth = parseInt(val.price*(0.9-(val.cost/val.price)))
+ val.proportion = (val.cost/val.price).toFixed(2)
+ }
+ if(i=='cost'){
+ val.cost=val.cost.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
+ val.growth = parseInt(val.price*(0.9-(val.cost/val.price)))
+ val.proportion = (val.cost/val.price).toFixed(2)
}
if(i=='ot_price'){
val.ot_price=val.ot_price.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
+ // val.proportion = (val.cost/val.price).toFixed(2)
+ // val.growth = parseInt(val.price*(0.9-(val.cost/val.price)))
if(!val.price){
this.$message.error('成本价低于0')
}
@@ -528,18 +543,25 @@ export default {
content: info.content,
store_info: info.store_info
}
+ let oneFormBatch= [
+ {
+ image: '',
+ price: 0,
+ proportion:0.6,
+ growth:0,
+ cost: 0,
+ ot_price: 0,
+ stock: 0,
+ bar_code: '',
+ weight: 0,
+ volume: 0
+ }
+ ]
+ this.oneFormBatch = oneFormBatch
if (this.formValidate.spec_type === 0) {
- this.OneattrValue = info.attrValue.map((item) => {
- item.growth = (item.price * 0.3).toFixed(2)
- item.proportion = '0.6'
- return item
- })
+ this.OneattrValue = info.attrValue
} else {
- this.ManyAttrValue = info.attrValue.map((item) => {
- item.growth = (item.price * 0.3).toFixed(2)
- item.proportion = '0.6'
- return item
- })
+ this.ManyAttrValue = info.attrValue
console.log(this.ManyAttrValue);
this.ManyAttrValue.forEach(val => {
if (val.detail !== 'undefined' && val.detail !== null) {
diff --git a/src/views/product/productExamine/index.vue b/src/views/product/productExamine/index.vue
index ccbf866..47a5835 100644
--- a/src/views/product/productExamine/index.vue
+++ b/src/views/product/productExamine/index.vue
@@ -155,6 +155,11 @@
+
+
+ {{ scope.row.merchant.is_huimei ? '是' : '否' }}
+
+
{{ scope.row.is_huimei ? '是' : '否' }}
@@ -188,7 +193,7 @@
-
+
详情
审核
@@ -221,6 +226,9 @@
+
+
+
@@ -474,6 +482,7 @@ export default {
keyword:'',
cate_id:0,
slider_image: [],
+ qualification:{}
},
productStatusList: [
{ label: "上架显示", value: 1 },
@@ -741,7 +750,8 @@ export default {
star: info.star,
keyword:info.keyword,
cate_id:info.cate_id,
- slider_image: info.slider_image
+ slider_image: info.slider_image,
+ qualification:info.qualification
}
if(info.is_benefit === 1) this.checkboxGroup.push('is_benefit')
if(info.is_hot === 1) this.checkboxGroup.push('is_hot')
diff --git a/src/views/product/productExamine/info.vue b/src/views/product/productExamine/info.vue
index 25470a9..5c5fa7f 100644
--- a/src/views/product/productExamine/info.vue
+++ b/src/views/product/productExamine/info.vue
@@ -332,7 +332,7 @@
-
+
{{ scope.row[iii] }}
@@ -492,7 +492,9 @@ const defaultObj = {
svip_price: null,
cost: null,
ot_price: null,
- stock: null,
+ proportion:0.6,
+ stock: 0,
+ growth:0,
bar_code: '',
weight: null,
volume: null,
@@ -517,9 +519,15 @@ const objTitle = {
ot_price: {
title: '市场价'
},
+ proportion: {
+ title: '占比'
+ },
stock: {
title: '库存'
},
+ growth: {
+ title: '成长值'
+ },
bar_code: {
title: '商品编号'
},
diff --git a/src/views/product/productExamine/proDetails.vue b/src/views/product/productExamine/proDetails.vue
index 30f8d05..2c6a821 100644
--- a/src/views/product/productExamine/proDetails.vue
+++ b/src/views/product/productExamine/proDetails.vue
@@ -67,11 +67,19 @@
-
+
-
+
@@ -208,7 +216,7 @@
-
+
{{ scope.row[iii] }}
@@ -777,7 +785,9 @@ const defaultObj = {
svip_price: null,
cost: null,
ot_price: null,
- stock: null,
+ proportion:0.6,
+ stock: 0,
+ growth:0,
bar_code: '',
weight: null,
volume: null
@@ -801,9 +811,15 @@ const objTitle = {
ot_price: {
title: '市场价'
},
+ proportion: {
+ title: '占比'
+ },
stock: {
title: '库存'
},
+ growth: {
+ title: '成长值'
+ },
bar_code: {
title: '商品编号'
},
diff --git a/src/views/user/list/index.vue b/src/views/user/list/index.vue
index 3c751e2..f6554ec 100644
--- a/src/views/user/list/index.vue
+++ b/src/views/user/list/index.vue
@@ -19,6 +19,9 @@
+
+
+
@@ -144,6 +147,7 @@
创建用户
+
验证码查询
发送图文消息
批量设置分组
批量设置标签
@@ -224,6 +228,8 @@
+
+
{{ row.member?row.member.brokerage_name:'-' }}
@@ -279,6 +285,20 @@
+
+
+
+
+
+
+ {{verifyInfo}}
+
+
+ 查询
+
+
+
+
{
+ const regMobile = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
+ if (regMobile.test(value)) {
+ // 合法的手机号码
+ return cb();
+ }
+ cb(new Error("手机号码格式不正确"));
+ };
export default {
name: 'UserList',
components: {
@@ -361,6 +390,14 @@ export default {
data() {
return {
moren: require("@/assets/images/f.png"),
+ verifyCode:false,
+ verifyInfo:'',
+ verify:{
+ phone:''
+ },
+ rules :{
+ phone: [{ required: true, message: "手机号不能为空", trigger: "blur" },{ validator: checkMobile, trigger: ["blur"] }],
+ },
pickerOptions: {
shortcuts: [{
text: '今天',
@@ -535,6 +572,24 @@ export default {
this.$refs.searchForm.resetFields()
this.changeSearch(1)
},
+ handleRefer(){
+ this.$refs['verify'].validate((valid) => {
+ if (valid) {
+ sysVerifyCodeApi(this.verify).then((res)=>{
+ if(res.status == 200){
+ this.verifyInfo = res.message
+ }else{
+ this.verifyInfo = ''
+ this.$message.warning(res.message)
+ }
+ }).catch((res)=>{
+ this.verifyInfo = ''
+ this.$message.error(res.message)
+ })
+ }
+ });
+
+ },
changeSearch(num){
this.resetSearchVal()
switch(this.select){
@@ -723,6 +778,12 @@ export default {
// this.$modalForm(createUserApi()).then(() => this.getList(''))
this.createDrawer = true
},
+ // 验证码查询
+ GetverifyCode() {
+ this.verify.phone = ''
+ this.verifyInfo = ''
+ this.verifyCode = true
+ },
// 分组列表
groupLists() {
groupLstApi({
@@ -939,6 +1000,10 @@ export default {
.check {
color: #00a2d4;
}
+.btn_bottom{
+ display: flex;
+ justify-content: end
+}
.dia ::v-deep .el-dialog__body {
height: 700px !important;
}