Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-commodity
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 ab05d263
authored
May 06, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务配置,bug
1 parent
35c250bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
src/config/index.js
src/views/commodity/commodityDetail.vue
src/views/commodity/editCommodity.vue
src/config/index.js
View file @
ab05d26
...
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true, common) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
let
params
=
{
moduleName
:
'commodity'
,
mockUrl
:
'http://oss-config.dev.glsx.com.cn/mock/64489a52ad0aa72e7cd2bd3d/commodity/config'
,
env
:
'test'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
let
params
=
{
moduleName
:
'commodity'
,
mockUrl
:
'http://oss-config.dev.glsx.com.cn/mock/64489a52ad0aa72e7cd2bd3d/commodity/config'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
return
common
.
utils
.
getConfig
(
params
)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res)
...
...
src/views/commodity/commodityDetail.vue
View file @
ab05d26
...
...
@@ -88,8 +88,7 @@ export default {
{
label
:
'质保年限'
,
name
:
'warrantyPeriod'
,
isNum
:
true
,
suffix
:
'年'
isNum
:
true
}
],
// 门店表格
...
...
@@ -142,11 +141,16 @@ export default {
this
.
detailForm
.
baseProductFlag
==
'Y'
?
list
.
push
(
'基础产品'
)
:
''
this
.
detailForm
.
upgradeProductFlag
==
'Y'
?
list
.
push
(
'升级产品'
)
:
''
this
.
detailForm
.
typeTxt
=
list
.
join
(
','
)
if
(
list
.
length
!=
2
&&
this
.
detailForm
.
baseProductFlag
==
'Y'
){
if
(
list
.
length
!=
2
&&
this
.
detailForm
.
baseProductFlag
==
'Y'
){
this
.
detailForm
.
sellPrice
=
'-'
;
this
.
detailForm
.
minSellPrice
=
'-'
this
.
detailForm
.
productCost
=
'-'
}
if
(
this
.
detailForm
.
goodsCodeName
!=
'太阳膜'
)
{
this
.
detailForm
.
warrantyPeriod
=
'-'
}
else
{
this
.
detailForm
.
warrantyPeriod
=
(
this
.
detailForm
.
warrantyPeriod
||
0
)
+
'年'
}
})
},
handleCancel
()
{
...
...
src/views/commodity/editCommodity.vue
View file @
ab05d26
...
...
@@ -170,8 +170,8 @@ export default {
})
})
},
validateProduct
(
goodsCode
)
{
let
isFlag
=
goodsCode
!=
'太阳膜'
validateProduct
(
goodsCode
Name
)
{
let
isFlag
=
goodsCode
Name
!=
'太阳膜'
let
AttrList
=
isFlag
?
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
:
[
'产品类型'
,
'质保年限'
]
this
.
changeFormAttr
(
'editFormData'
,
'isHide'
,
AttrList
,
false
)
if
(
!
isFlag
)
...
...
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