Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a4138771
authored
Jan 23, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 添加渠道配置和门店申请组件,优化请求逻辑和参数处理
1 parent
03615958
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
326 additions
and
243 deletions
.vscode/settings.json
jsconfig.json
src/api/request.js
src/views/residentManage/salaryPerformance/performanceScheme/api/index.js
src/views/residentManage/salaryPerformance/performanceScheme/components/channelConfig/index.vue
src/views/residentManage/salaryPerformance/performanceScheme/components/paramConfigList/index.vue
src/views/residentManage/salaryPerformance/performanceScheme/components/paramConfigList/type1.vue
src/views/residentManage/salaryPerformance/performanceScheme/components/performanceRuleSelection/index.vue
src/views/residentManage/salaryPerformance/performanceScheme/components/storeApply/index.vue
src/views/residentManage/salaryPerformance/performanceScheme/view/index.vue
.vscode/settings.json
View file @
a413877
...
...
@@ -6,6 +6,10 @@
"scm.compactFolders"
:
false
,
"problems.decorations.enabled"
:
false
,
"eslint.format.enable"
:
true
,
"vetur.validation.template"
:
true
,
"vetur.validation.script"
:
true
,
"vetur.validation.style"
:
true
,
"vetur.experimental.templateInterpolationService"
:
true
,
"[vue]"
:
{
"editor.defaultFormatter"
:
"dbaeumer.vscode-eslint"
,
"editor.formatOnSave"
:
true
,
...
...
@@ -27,4 +31,4 @@
}
},
"i18n-ally.sourceLanguage"
:
"zh-chs"
}
\ No newline at end of file
}
jsconfig.json
View file @
a413877
...
...
@@ -22,6 +22,6 @@
"isolatedModules"
:
true
,
"skipLibCheck"
:
true
},
"include"
:
[
"src"
],
"include"
:
[
"src
/**/*
"
],
"exclude"
:
[
"node_modules"
,
"dist"
,
".git"
]
}
src/api/request.js
View file @
a413877
...
...
@@ -5,132 +5,129 @@
* @Last Modified time: 2021-06-30 14:30:41
*/
import
axiosPackage
from
"axios"
;
import
util
from
"@/libs/util.js"
;
import
{
baseConfig
}
from
"@/main"
;
// import axios from "@/plugin/axios"
import
axios
from
"@/plugin/axios/index_code"
import
sign
from
"./sign"
import
RequestMethods
from
"./request.methods"
import
util
from
"@/libs/util.js"
import
{
baseConfig
}
from
"@/main"
import
axiosPackage
from
"axios"
const
request
=
(
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[],
options
=
{}
)
=>
{
// 兼容线上dj和scrm appkey和secret不一样的情况
let
apiName
=
""
if
(
params
.
method
.
includes
(
"dj.api.smartcarlife"
))
{
apiName
=
"dj"
}
else
if
(
params
.
method
.
includes
(
"dj.api.script"
))
{
apiName
=
"script"
}
else
if
(
params
.
method
.
includes
(
"dj.staff.api"
))
{
apiName
=
"staff"
}
else
if
(
params
.
method
.
includes
(
"dj.smartcarlife.stock"
))
{
apiName
=
"dj.smartcarlife"
}
else
if
(
params
.
method
.
includes
(
"risk.manage.api"
))
{
apiName
=
"riskmanage"
}
else
{
// console.log(params.method.split(".api"))
apiName
=
params
.
method
.
split
(
".api"
)[
0
]
}
import
axios
from
"@/plugin/axios/index_code"
;
import
RequestMethods
from
"./request.methods"
;
import
sign
from
"./sign"
;
// console.log("params.method", params.method)
// console.log("apiName", apiName)
// 为空报错
if
(
!
apiName
)
{
throw
new
Error
(
"apiName is null"
)
}
const
mappingName
=
{
"dj.smartcarlife"
:
"axios"
,
dj
:
"axios"
,
scrm
:
"axios2"
,
merchants
:
"axios3"
,
reportExport
:
"axios4"
,
"glsx.accounts.biz.common.pictureUpload"
:
"common"
,
clue
:
"axios5"
,
"dj.businessSchool"
:
"axios6"
,
script
:
"axios7"
,
staff
:
"axios9"
,
riskmanage
:
"axios10"
,
}
const
baseApiName
=
mappingName
[
apiName
]
// console.log(baseApiName, "baseApiName")
// params.appKey = baseConfig[baseApiName].appkey
if
(
baseApiName
==
"common"
)
{
params
.
app_key
=
baseConfig
[
baseApiName
].
appkey
}
else
{
params
.
appKey
=
baseConfig
[
baseApiName
].
appkey
}
// console.log("params.appKey", params.appKey)
params
.
timestamp
=
new
Date
().
getTime
()
params
.
v
=
"1.0.0"
params
.
format
=
"json"
params
.
locale
=
"zh_CN"
if
(
params
.
method
!==
"dj.api.user.login"
)
{
params
.
sessionId
=
util
.
cookies
.
get
(
"token"
)
}
/**
* mock - url = params.method
* 调后端接口 - url = ''
*/
const
url
=
baseConfig
[
baseApiName
].
baseURL
// const url = "/api"
/**
* 调后端接口,请使用以下代码。
*/
const
signWay
=
{
"dj.smartcarlife"
:
"sha1"
,
dj
:
"sha1"
,
scrm
:
"sha1"
,
glsx
:
"md5"
,
"glsx.accounts.biz.common.pictureUpload"
:
"md5"
,
clue
:
"sha1"
,
script
:
"sha1"
,
staff
:
"sha1"
,
riskmanage
:
'sha1'
}
// console.log(signWay[apiName], "baseApiName")
const
secret
=
baseConfig
[
baseApiName
].
secret
const
CancelToken
=
axiosPackage
.
CancelToken
var
reqData
=
method
===
RequestMethods
.
POST
?
{
baseURL
:
"/"
,
data
:
sign
(
params
,
noSignAttr
,
secret
,
signWay
[
apiName
])
}
:
{
params
:
sign
(
params
,
noSignAttr
,
secret
,
signWay
[
apiName
])
}
function
request
(
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[],
options
=
{},
url
=
""
)
{
// 兼容线上dj和scrm appkey和secret不一样的情况
let
apiName
=
""
;
if
(
params
.
method
.
includes
(
"dj.api.smartcarlife"
))
{
apiName
=
"dj"
;
}
else
if
(
params
.
method
.
includes
(
"dj.api.script"
))
{
apiName
=
"script"
;
}
else
if
(
params
.
method
.
includes
(
"dj.staff.api"
))
{
apiName
=
"staff"
;
}
else
if
(
params
.
method
.
includes
(
"dj.smartcarlife.stock"
))
{
apiName
=
"dj.smartcarlife"
;
}
else
if
(
params
.
method
.
includes
(
"risk.manage.api"
))
{
apiName
=
"riskmanage"
;
}
else
{
// console.log(params.method.split(".api"))
apiName
=
params
.
method
.
split
(
".api"
)[
0
];
}
reqData
=
Object
.
assign
(
reqData
,
options
,
{})
// 请求进度
if
(
params
?.
onProcess
)
{
reqData
.
onUploadProgress
=
params
.
onProcess
}
// 取消请求
if
(
params
?.
cancelFun
)
{
reqData
.
cancelToken
=
new
CancelToken
(
function
excutor
(
c
)
{
params
.
cancelFun
.
cancel
=
c
})
}
// console.log(method === RequestMethods.POST)
// console.log(url)
// console.log(options)
// console.log(reqData)
let
axiosParams
=
{
url
,
method
,
...
reqData
}
if
(
options
.
returnAll
)
axiosParams
.
headers
=
{
'return-all'
:
true
}
return
axios
(
axiosParams
)
// console.log("params.method", params.method)
// console.log("apiName", apiName)
// 为空报错
if
(
!
apiName
)
{
throw
new
Error
(
"apiName is null"
);
}
const
mappingName
=
{
"dj.smartcarlife"
:
"axios"
,
"dj"
:
"axios"
,
"scrm"
:
"axios2"
,
"merchants"
:
"axios3"
,
"reportExport"
:
"axios4"
,
"glsx.accounts.biz.common.pictureUpload"
:
"common"
,
"clue"
:
"axios5"
,
"dj.businessSchool"
:
"axios6"
,
"script"
:
"axios7"
,
"staff"
:
"axios9"
,
"riskmanage"
:
"axios10"
,
};
const
baseApiName
=
mappingName
[
apiName
];
// console.log(baseApiName, "baseApiName")
// params.appKey = baseConfig[baseApiName].appkey
if
(
baseApiName
==
"common"
)
{
params
.
app_key
=
baseConfig
[
baseApiName
].
appkey
;
}
else
{
params
.
appKey
=
baseConfig
[
baseApiName
].
appkey
;
}
// console.log("params.appKey", params.appKey)
params
.
timestamp
=
new
Date
().
getTime
();
params
.
v
=
"1.0.0"
;
params
.
format
=
"json"
;
params
.
locale
=
"zh_CN"
;
if
(
params
.
method
!==
"dj.api.user.login"
)
{
params
.
sessionId
=
util
.
cookies
.
get
(
"token"
);
}
/**
* mock - url = params.method
* 调后端接口 - url = ''
*/
const
_url
=
baseConfig
[
baseApiName
].
baseURL
;
// const url = "/api"
/**
* 调后端接口,请使用以下代码。
*/
const
signWay
=
{
"dj.smartcarlife"
:
"sha1"
,
"dj"
:
"sha1"
,
"scrm"
:
"sha1"
,
"glsx"
:
"md5"
,
"glsx.accounts.biz.common.pictureUpload"
:
"md5"
,
"clue"
:
"sha1"
,
"script"
:
"sha1"
,
"staff"
:
"sha1"
,
"riskmanage"
:
"sha1"
,
};
// console.log(signWay[apiName], "baseApiName")
const
secret
=
baseConfig
[
baseApiName
].
secret
;
const
CancelToken
=
axiosPackage
.
CancelToken
;
let
reqData
=
method
===
RequestMethods
.
POST
?
{
baseURL
:
"/"
,
data
:
sign
(
params
,
noSignAttr
,
secret
,
signWay
[
apiName
]),
}
:
{
params
:
sign
(
params
,
noSignAttr
,
secret
,
signWay
[
apiName
])
};
/**
* mock,请使用以下代码。
*/
// return axios({
// url,
// method,
// params: sign(params, noSignAttr)
// })
reqData
=
Object
.
assign
(
reqData
,
options
,
{});
// 请求进度
if
(
params
?.
onProcess
)
{
reqData
.
onUploadProgress
=
params
.
onProcess
;
}
// 取消请求
if
(
params
?.
cancelFun
)
{
reqData
.
cancelToken
=
new
CancelToken
((
c
)
=>
{
params
.
cancelFun
.
cancel
=
c
;
});
}
// console.log(method === RequestMethods.POST)
// console.log(url)
// console.log(options)
// console.log(reqData)
let
axiosParams
=
{
_url
,
method
,
...
reqData
,
};
if
(
options
.
returnAll
)
axiosParams
.
headers
=
{
"return-all"
:
true
};
return
axios
(
axiosParams
);
/**
* mock,请使用以下代码。
*/
// return axios({
// url,
// method,
// params: sign(params, noSignAttr)
// })
}
export
default
request
export
default
request
;
src/views/residentManage/salaryPerformance/performanceScheme/api/index.js
0 → 100644
View file @
a413877
import
request
from
"@/api/request"
;
const
path
=
"dj.staff.api.service.merchant."
;
// 分页查询费用类目
export
function
getStoreWithBrandList
(
data
)
{
// data.method = `${path}selectFeeCategoryList`
data
.
method
=
`
${
path
}
page.with.brand//1.0.0`
;
data
.
url
=
"http://127.0.0.1:4523/m1/7746299-7491170-default/"
;
return
request
(
data
);
}
src/views/residentManage/salaryPerformance/performanceScheme/components/channelConfig/index.vue
0 → 100644
View file @
a413877
<
template
>
<div>
<el-form-item
label=
"适配业务:"
prop=
"checkList"
>
<el-radio-group
v-model=
"checkList"
>
<el-radio
label=
"0"
>
轻改
</el-radio>
<el-radio
label=
"1"
>
延保
</el-radio>
<el-radio
label=
"2"
>
权益
</el-radio>
</el-radio-group>
</el-form-item>
</div>
</
template
>
<
script
>
import
{
bindFormFields
}
from
"../../store/helper"
;
export
default
{
name
:
""
,
props
:
{
},
data
()
{
return
{
};
},
computed
:
{
checkList
:
bindFormFields
(
"checkList"
),
},
mounted
()
{
},
methods
:
{
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/residentManage/salaryPerformance/performanceScheme/components/paramConfigList/index.vue
View file @
a413877
...
...
@@ -27,8 +27,8 @@
</div>
</div>
<div
class=
"table-wrapper"
>
<
ParamsType2
:config-index=
"configIndex"
></ParamsType2
>
<
!--
<ParamsType1
:config-index=
"configIndex"
></ParamsType1>
--
>
<
!--
<ParamsType2
:config-index=
"configIndex"
></ParamsType2>
--
>
<
ParamsType1
:config-index=
"configIndex"
></ParamsType1
>
</div>
</div>
...
...
@@ -37,7 +37,6 @@
<
script
>
import
{
last
}
from
"lodash-es"
;
import
{
mapState
}
from
"vuex"
;
import
{
bindFormFields
}
from
"../../store/helper"
;
import
ParamsType1
from
"./type1.vue"
;
import
ParamsType2
from
"./type2.vue"
;
...
...
src/views/residentManage/salaryPerformance/performanceScheme/components/paramConfigList/type1.vue
View file @
a413877
...
...
@@ -59,7 +59,8 @@
<el-button
style=
"position: absolute;right:6px;"
title=
"删除列"
type=
"text"
>
type=
"text"
@
click=
"handleRemoveProductsCol(index)"
>
<i
class=
"el-icon-delete"
/>
</el-button>
</div>
...
...
@@ -152,6 +153,13 @@ export default {
handleProductChange
(
value
)
{
console
.
log
(
"product change"
,
value
);
},
// 删除商品列
handleRemoveProductsCol
(
productCol
)
{
this
.
curParamsConfig
.
products
.
splice
(
productCol
,
1
);
},
// 删除行
handleRemoveTableRow
(
row
)
{
this
.
curParamsConfig
.
priceRange
.
splice
(
row
,
1
);
this
.
curParamsConfig
.
commissionTypes
.
splice
(
row
,
1
);
...
...
src/views/residentManage/salaryPerformance/performanceScheme/components/performanceRuleSelection/index.vue
View file @
a413877
<
template
>
<el-form
class=
"form"
label-width=
"150px"
:model=
"formData"
:rules=
"rules"
>
<div>
<el-form-item
label=
"考核因子:"
prop=
"assessmentFactorValue"
>
<el-checkbox-group
v-model=
"assessmentFactorValue"
@
change=
"handleAssessmentFactorChange"
>
<div
v-for=
"(item, index) in assessmentFactorOptions"
...
...
@@ -18,7 +15,7 @@
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"提成基数:"
prop=
"commissionBases"
>
<el-checkbox-group
v-model=
"commissionBases"
>
<el-checkbox-group
v-model=
"commissionBases"
@
change=
"handleCommissionBasesChange"
>
<div
class=
"check-box-wrapper"
>
<el-checkbox
label=
"GMV"
>
GMV产值
...
...
@@ -41,14 +38,14 @@
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"提成方式:"
prop=
"commissionTypes"
>
<el-checkbox-group
v-model=
"commissionTypes"
>
<el-checkbox
:disabled=
"disableRatio"
label=
"BL"
>
<el-checkbox-group
v-model=
"commissionTypes"
@
change=
"handleCommissionTypesChange"
>
<el-checkbox
label=
"BL"
>
比例
</el-checkbox>
<el-checkbox
:disabled=
"disableCoefficient"
label=
"XS"
>
<el-checkbox
label=
"XS"
>
系数
</el-checkbox>
<el-checkbox
:disabled=
"disableFixedAmount"
label=
"GDJE"
>
<el-checkbox
label=
"GDJE"
>
固定金额
</el-checkbox>
</el-checkbox-group>
...
...
@@ -67,24 +64,11 @@
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"适配业务:"
prop=
"checkList"
>
<el-radio-group
v-model=
"checkList"
>
<el-radio
label=
"0"
>
轻改
</el-radio>
<el-radio
label=
"1"
>
延保
</el-radio>
<el-radio
label=
"2"
>
权益
</el-radio>
</el-radio-group>
</el-form-item>
<DefineProductsDialog
v-if=
"dialog.defineProducts.visible"
:define-visible=
"dialog.defineProducts.visible"
@
dialogClose=
"handleDefineProductsDialogClose"
/>
</
el-form
>
</
div
>
</
template
>
<
script
>
...
...
@@ -114,6 +98,7 @@ export default {
// 临时给组件用,会转换成OptionsItem 存储到 fromData里
assessmentFactorValue
:
[],
assessmentFactorOptions
,
isUpdating
:
false
,
// 防止循环更新
};
},
computed
:
{
...
...
@@ -125,80 +110,6 @@ export default {
commissionTypes
:
bindFormFields
(
"commissionTypes"
),
goodsConfigTypes
:
bindFormFields
(
"goodsConfigTypes"
),
paramConfigList
:
bindFormFields
(
"paramConfigList"
),
// // 判断是否同时选择了GMV产值和升级订单数
hasBothBases
()
{
return
(
this
.
commissionBases
&&
this
.
commissionBases
.
includes
(
"GMV"
)
&&
this
.
commissionBases
.
includes
(
"DDSL"
)
);
},
// 判断是否只选择了GMV产值
hasOnlyGMVBase
()
{
return
(
this
.
commissionBases
&&
this
.
commissionBases
.
includes
(
"GMV"
)
&&
!
this
.
commissionBases
.
includes
(
"DDSL"
)
);
},
// 判断是否只选择了升级订单数
hasOnlyOrderBase
()
{
return
(
this
.
commissionBases
&&
this
.
commissionBases
.
includes
(
"DDSL"
)
&&
!
this
.
commissionBases
.
includes
(
"GMV"
)
);
},
// 比例禁用:仅选升级订单数时禁用
disableRatio
()
{
return
this
.
hasOnlyOrderBase
;
},
// 系数禁用:仅选升级订单数时禁用
disableCoefficient
()
{
return
this
.
hasOnlyOrderBase
;
},
// 固定金额禁用:仅选GMV产值时禁用;选两者时不禁用但不可取消
disableFixedAmount
()
{
return
this
.
hasOnlyGMVBase
;
},
},
watch
:
{
// 监听提成基数变化
commissionBases
:
{
handler
(
newVal
)
{
if
(
!
newVal
)
return
;
// 仅选升级订单数:自动勾选固定金额,取消比例/系数
if
(
this
.
hasOnlyOrderBase
)
{
this
.
commissionTypes
=
[
"GDJE"
];
}
else
if
(
this
.
hasOnlyGMVBase
)
{
// 仅选GMV产值:自动勾选比例和系数,取消固定金额
this
.
commissionTypes
=
[
"BL"
,
"XS"
];
}
else
if
(
this
.
hasBothBases
)
{
// 两者都选:自动勾选比例、系数、固定金额(全选)
this
.
commissionTypes
=
[
"BL"
,
"XS"
,
"GDJE"
];
}
},
deep
:
true
,
},
// 监听提成方式变化:防止固定金额被非法取消或勾选
commissionTypes
:
{
handler
(
newVal
)
{
if
(
!
newVal
)
return
;
// 仅选升级订单数时,必须勾选固定金额
if
(
this
.
hasOnlyOrderBase
&&
!
newVal
.
includes
(
"GDJE"
))
{
this
.
commissionTypes
=
[
"GDJE"
];
}
// 选两者时,固定金额不可被取消
if
(
this
.
hasBothBases
&&
!
newVal
.
includes
(
"GDJE"
))
{
this
.
commissionTypes
=
[...
newVal
,
"GDJE"
];
}
this
.
setCommissionTypesOptions
(
newVal
);
},
deep
:
true
,
},
},
mounted
()
{
},
...
...
@@ -208,10 +119,93 @@ export default {
this
.
dialog
.
defineProducts
.
visible
=
true
;
},
handleDefineProductsDialogClose
(
productDefineList
)
{
console
.
log
(
"???"
);
this
.
setProductDefineList
(
productDefineList
);
this
.
dialog
.
defineProducts
.
visible
=
false
;
},
handleCommissionBasesChange
(
e
)
{
if
(
this
.
isUpdating
)
return
;
this
.
isUpdating
=
true
;
const
newTypes
=
[...
this
.
commissionTypes
];
// GMV 产值 <-> 比例 (BL)
if
(
e
.
includes
(
"GMV"
))
{
if
(
!
newTypes
.
includes
(
"BL"
))
newTypes
.
push
(
"BL"
);
}
else
{
const
index
=
newTypes
.
indexOf
(
"BL"
);
if
(
index
>
-
1
)
newTypes
.
splice
(
index
,
1
);
}
// 单店总提成 <-> 系数 (XS)
if
(
e
.
includes
(
"DDTC"
))
{
if
(
!
newTypes
.
includes
(
"XS"
))
newTypes
.
push
(
"XS"
);
}
else
{
const
index
=
newTypes
.
indexOf
(
"XS"
);
if
(
index
>
-
1
)
newTypes
.
splice
(
index
,
1
);
}
// 升级订单数 <-> 固定金额 (GDJE)
if
(
e
.
includes
(
"DDSL"
))
{
if
(
!
newTypes
.
includes
(
"GDJE"
))
newTypes
.
push
(
"GDJE"
);
}
else
{
const
index
=
newTypes
.
indexOf
(
"GDJE"
);
if
(
index
>
-
1
)
newTypes
.
splice
(
index
,
1
);
}
this
.
$set
(
this
,
"commissionTypes"
,
newTypes
);
this
.
$nextTick
(()
=>
{
this
.
isUpdating
=
false
;
});
},
handleCommissionTypesChange
(
e
)
{
if
(
this
.
isUpdating
)
return
;
this
.
isUpdating
=
true
;
const
newBases
=
[...
this
.
commissionBases
];
// 比例 (BL) <-> GMV 产值
if
(
e
.
includes
(
"BL"
))
{
if
(
!
newBases
.
includes
(
"GMV"
))
newBases
.
push
(
"GMV"
);
}
else
{
const
index
=
newBases
.
indexOf
(
"GMV"
);
if
(
index
>
-
1
)
newBases
.
splice
(
index
,
1
);
}
// 系数 (XS) <-> 单店总提成
if
(
e
.
includes
(
"XS"
))
{
if
(
!
newBases
.
includes
(
"DDTC"
))
newBases
.
push
(
"DDTC"
);
}
else
{
const
index
=
newBases
.
indexOf
(
"DDTC"
);
if
(
index
>
-
1
)
newBases
.
splice
(
index
,
1
);
}
// 固定金额 (GDJE) <-> 升级订单数
if
(
e
.
includes
(
"GDJE"
))
{
if
(
!
newBases
.
includes
(
"DDSL"
))
newBases
.
push
(
"DDSL"
);
}
else
{
const
index
=
newBases
.
indexOf
(
"DDSL"
);
if
(
index
>
-
1
)
newBases
.
splice
(
index
,
1
);
}
this
.
$set
(
this
,
"commissionBases"
,
newBases
);
this
.
$nextTick
(()
=>
{
this
.
isUpdating
=
false
;
});
},
handleAssessmentFactorChange
(
value
)
{
// 根据 value 数组从 assessmentFactorOptions 中找出对应的完整项
...
...
src/views/residentManage/salaryPerformance/performanceScheme/components/storeApply/index.vue
View file @
a413877
...
...
@@ -6,8 +6,9 @@
</div>
<div
class=
"search-wrapper"
>
<el-input
style=
"width:362px"
>
</el-input>
<el-input
placeholder=
"请输入门店名称/商户号"
style=
"width:362px"
/>
<el-input
placeholder=
"请输入品牌名称"
style=
"width:142px;margin-left: 12px;"
/>
<el-button
size=
"small"
style=
"margin-left: 12px"
type=
"primary"
>
...
...
@@ -16,7 +17,13 @@
</div>
<div
class=
"store-list-wrapper"
>
<el-tree></el-tree>
<el-table>
<el-table-column
label=
"门店名称"
prop=
"name"
/>
<el-table-column
label=
"品牌名称"
prop=
"account"
/>
</el-table>
</div>
</div>
...
...
@@ -77,6 +84,8 @@
</
template
>
<
script
>
import
{
getStoreWithBrandList
}
from
"../../api/index.js"
;
export
default
{
name
:
""
,
props
:
{
...
...
@@ -101,8 +110,9 @@ export default {
computed
:
{
},
mounted
()
{
async
mounted
()
{
const
data
=
await
getStoreWithBrandList
();
console
.
log
(
"data"
,
data
);
},
methods
:
{
handleSelectStores
()
{},
...
...
src/views/residentManage/salaryPerformance/performanceScheme/view/index.vue
View file @
a413877
...
...
@@ -6,6 +6,17 @@
:model=
"formData"
:rules=
"rules"
>
<!--
<div
class=
"warp-box"
>
<div
class=
"title space-b"
>
<div
class=
"title-wrap"
>
<span>
渠道配置
</span>
</div>
</div>
<div
class=
"warp-content"
>
<ChannelConfig></ChannelConfig>
</div>
</div>
<div
class=
"warp-box"
>
<div
class=
"title space-b"
>
<div
class=
"title-wrap"
>
...
...
@@ -37,18 +48,18 @@
class=
"params-config-list"
:config-index=
"index"
/>
</div>
</div>
</div>
-->
<!--
<div
class=
"warp-box"
>
<div
class=
"title space-b"
>
<div
class=
"title-wrap"
>
<span>
应用到门店
</span>
<div
class=
"warp-box"
>
<div
class=
"title space-b"
>
<div
class=
"title-wrap"
>
<span>
应用到门店
</span>
</div>
</div>
<div
class=
"warp-content"
>
<StoreApply
/>
</div>
</div>
<div
class=
"warp-content"
>
<StoreApply
/>
</div>
</div>
-->
<div
class=
"warp-box"
>
<el-button
@
click=
"handleSubmit"
>
...
...
@@ -62,6 +73,7 @@
<
script
>
import
{
mapMutations
,
mapState
}
from
"vuex"
;
import
{
getTargetProductConfigListAPI
}
from
"@/api/resident"
;
import
ChannelConfig
from
"../components/channelConfig/index.vue"
;
import
ParamConfigList
from
"../components/paramConfigList/index.vue"
;
import
PerformanceRuleSelection
from
"../components/performanceRuleSelection/index.vue"
;
import
StoreApply
from
"../components/storeApply/index.vue"
;
...
...
@@ -72,7 +84,8 @@ export default {
components
:
{
PerformanceRuleSelection
,
ParamConfigList
,
// StoreApply,
ChannelConfig
,
StoreApply
,
},
data
()
{
return
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment