Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 878e41fc
authored
Feb 25, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
广汇配置
1 parent
7a296596
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
15 deletions
src/setup/qiankun.js
src/views/config/addConfig.vue
src/views/config/index.vue
src/setup/qiankun.js
View file @
878e41f
...
@@ -21,8 +21,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -21,8 +21,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-b3e17a50-717c-47f0-bd89-86865eced24c-rop'
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-b3e17a50-717c-47f0-bd89-86865eced24c-rop'
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/views/config/addConfig.vue
View file @
878e41f
...
@@ -12,7 +12,15 @@
...
@@ -12,7 +12,15 @@
<el-table-column
prop=
"merchantName"
label=
"商户名称"
width=
"180"
></el-table-column>
<el-table-column
prop=
"merchantName"
label=
"商户名称"
width=
"180"
></el-table-column>
</el-table>
</el-table>
</el-form-item>
</el-form-item>
<!--
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<template>
<el-form-item
class=
"special-config"
size=
"small"
label=
"特殊配置"
></el-form-item>
<el-form-item>
<el-checkbox
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
列表字段
</el-checkbox>
<el-checkbox
style=
"display: block; margin-left: 30px;"
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
门店成本
</el-checkbox>
</el-form-item>
</
template
>
<!-- <template>
<el-form-item size="small" label="配置可见产品及产品属性"></el-form-item>
<el-form-item>
<el-form-item>
<el-checkbox v-model="theftAll" @change="handleTheftAllChange">盗抢全损无忧</el-checkbox>
<el-checkbox v-model="theftAll" @change="handleTheftAllChange">盗抢全损无忧</el-checkbox>
<el-checkbox-group v-model="againstTheft" @change="handleCheckedTheftsChange">
<el-checkbox-group v-model="againstTheft" @change="handleCheckedTheftsChange">
...
@@ -57,7 +65,8 @@
...
@@ -57,7 +65,8 @@
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-checkbox v-model="carefree">优享版</el-checkbox>
<el-checkbox v-model="carefree">优享版</el-checkbox>
</el-form-item>
-->
</el-form-item>
</template> -->
</el-form>
</el-form>
<!-- 弹窗 -->
<!-- 弹窗 -->
<relateStoreDialog
v-if=
"relateStoreVisible"
ref=
"relateStore"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSearchForm=
"searchForm"
:storeSelected=
"selectedList"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
<relateStoreDialog
v-if=
"relateStoreVisible"
ref=
"relateStore"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSearchForm=
"searchForm"
:storeSelected=
"selectedList"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
...
@@ -150,7 +159,8 @@ export default {
...
@@ -150,7 +159,8 @@ export default {
collisionAll
:
false
,
collisionAll
:
false
,
againstCollision
:
[],
againstCollision
:
[],
collisions
:
collisionOptions
,
collisions
:
collisionOptions
,
collisionTerminate
:
false
collisionTerminate
:
false
,
costPrice
:
false
,
//选择门店成本
}
}
},
},
...
@@ -163,7 +173,6 @@ export default {
...
@@ -163,7 +173,6 @@ export default {
let
merchantId
=
this
.
$route
.
query
.
merchantId
let
merchantId
=
this
.
$route
.
query
.
merchantId
if
(
merchantId
)
{
if
(
merchantId
)
{
this
.
getConfig
(
merchantId
)
this
.
getConfig
(
merchantId
)
console
.
log
(
'11111'
)
this
.
configTitle
=
'修改'
this
.
configTitle
=
'修改'
}
else
{
}
else
{
this
.
configTitle
=
'开通'
this
.
configTitle
=
'开通'
...
@@ -234,6 +243,7 @@ export default {
...
@@ -234,6 +243,7 @@ export default {
// },
// },
getConfig
(
merchantId
)
{
getConfig
(
merchantId
)
{
this
.
$apis
.
openconfig
.
getConfig
({
merchantId
}).
then
(
res
=>
{
this
.
$apis
.
openconfig
.
getConfig
({
merchantId
}).
then
(
res
=>
{
this
.
costPrice
=
res
.
openCostPrice
==
1
this
.
storeSelParams
=
res
this
.
storeSelParams
=
res
this
.
id
=
res
.
id
this
.
id
=
res
.
id
let
arrs
=
[]
let
arrs
=
[]
...
@@ -334,7 +344,7 @@ export default {
...
@@ -334,7 +344,7 @@ export default {
}
}
console
.
log
(
params
,
'????????????'
)
console
.
log
(
params
,
'????????????'
)
if
(
this
.
add
==
true
)
{
if
(
this
.
add
==
true
)
{
this
.
$apis
.
openconfig
.
addConfig
({
merchantIds
:
this
.
merchantIds
,
createDetailRequests
:
params
}).
then
(
res
=>
{
this
.
$apis
.
openconfig
.
addConfig
({
merchantIds
:
this
.
merchantIds
,
openCostPrice
:
this
.
costPrice
?
1
:
0
,
createDetailRequests
:
params
}).
then
(
res
=>
{
if
(
res
.
code
==
'32'
)
{
if
(
res
.
code
==
'32'
)
{
this
.
$message
.
error
(
'请选择商户'
)
this
.
$message
.
error
(
'请选择商户'
)
}
else
if
(
res
.
code
==
'0'
)
{
}
else
if
(
res
.
code
==
'0'
)
{
...
@@ -342,7 +352,7 @@ export default {
...
@@ -342,7 +352,7 @@ export default {
}
}
})
})
}
else
{
}
else
{
this
.
$apis
.
openconfig
.
modifyConfig
({
id
:
this
.
id
,
createDetailRequests
:
params
}).
then
(
res
=>
{
this
.
$apis
.
openconfig
.
modifyConfig
({
id
:
this
.
id
,
openCostPrice
:
this
.
costPrice
?
1
:
0
,
createDetailRequests
:
params
}).
then
(
res
=>
{
console
.
log
(
res
,
'12313'
)
console
.
log
(
res
,
'12313'
)
if
(
res
.
code
==
'32'
)
{
if
(
res
.
code
==
'32'
)
{
this
.
$message
.
error
(
'请正确勾选信息'
)
this
.
$message
.
error
(
'请正确勾选信息'
)
...
@@ -419,6 +429,9 @@ export default {
...
@@ -419,6 +429,9 @@ export default {
if
(
this
.
againstTyre
.
length
>
0
)
{
if
(
this
.
againstTyre
.
length
>
0
)
{
this
.
tyreAll
=
true
this
.
tyreAll
=
true
}
}
},
checkCostPrice
(){
}
}
}
}
}
}
...
@@ -539,4 +552,8 @@ export default {
...
@@ -539,4 +552,8 @@ export default {
}
}
}
}
}
}
.special-config
{
margin-bottom
:
0
!important
;
}
</
style
>
</
style
>
src/views/config/index.vue
View file @
878e41f
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
<span
slot=
"operate"
slot-scope=
"scope"
>
<span
slot=
"operate"
slot-scope=
"scope"
>
<
GLButton
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</GLButton
>
<
!--
<GLButton
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</GLButton>
--
>
<
!--
<el-button
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</el-button>
--
>
<
el-button
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</el-button
>
</span>
</span>
<span
slot=
"openFlag"
slot-scope=
"scope"
>
<span
slot=
"openFlag"
slot-scope=
"scope"
>
<el-switch
:value=
"scope.scope.openFlag == 1"
active-color=
"#5850ff"
inactive-color=
"#eee"
@
change=
"changStatus(scope.scope.openFlag, scope.scope.id)"
></el-switch>
<el-switch
:value=
"scope.scope.openFlag == 1"
active-color=
"#5850ff"
inactive-color=
"#eee"
@
change=
"changStatus(scope.scope.openFlag, scope.scope.id)"
></el-switch>
...
@@ -138,11 +138,11 @@ export default {
...
@@ -138,11 +138,11 @@ export default {
label
:
'操作人'
,
label
:
'操作人'
,
prop
:
'updatedBy'
prop
:
'updatedBy'
},
},
//
{
{
//
label: '操作',
label
:
'操作'
,
//
minWidth: '200',
minWidth
:
'200'
,
//
addHtml: 'operate'
addHtml
:
'operate'
//
},
},
{
{
label
:
'开通开关'
,
label
:
'开通开关'
,
addHtml
:
'openFlag'
,
addHtml
:
'openFlag'
,
...
...
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