Commit ab05d263 by chenwq

服务配置,bug

1 parent 35c250bc
...@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true, common) { ...@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true, common) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // 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 common.utils.getConfig(params)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config') // 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) // 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)
......
...@@ -88,8 +88,7 @@ export default { ...@@ -88,8 +88,7 @@ export default {
{ {
label: '质保年限', label: '质保年限',
name: 'warrantyPeriod', name: 'warrantyPeriod',
isNum: true, isNum: true
suffix: '年'
} }
], ],
// 门店表格 // 门店表格
...@@ -142,11 +141,16 @@ export default { ...@@ -142,11 +141,16 @@ export default {
this.detailForm.baseProductFlag == 'Y' ? list.push('基础产品') : '' this.detailForm.baseProductFlag == 'Y' ? list.push('基础产品') : ''
this.detailForm.upgradeProductFlag == 'Y' ? list.push('升级产品') : '' this.detailForm.upgradeProductFlag == 'Y' ? list.push('升级产品') : ''
this.detailForm.typeTxt = list.join(',') 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.sellPrice = '-';
this.detailForm.minSellPrice = '-' this.detailForm.minSellPrice = '-'
this.detailForm.productCost = '-' this.detailForm.productCost = '-'
} }
if(this.detailForm.goodsCodeName != '太阳膜') {
this.detailForm.warrantyPeriod = '-'
} else {
this.detailForm.warrantyPeriod = (this.detailForm.warrantyPeriod || 0) + '年'
}
}) })
}, },
handleCancel() { handleCancel() {
......
...@@ -170,8 +170,8 @@ export default { ...@@ -170,8 +170,8 @@ export default {
}) })
}) })
}, },
validateProduct(goodsCode) { validateProduct(goodsCodeName) {
let isFlag = goodsCode != '太阳膜' let isFlag = goodsCodeName != '太阳膜'
let AttrList = isFlag ? ['售价/元', '最低售价/元', '产品成本/元'] : ['产品类型', '质保年限'] let AttrList = isFlag ? ['售价/元', '最低售价/元', '产品成本/元'] : ['产品类型', '质保年限']
this.changeFormAttr('editFormData', 'isHide', AttrList, false) this.changeFormAttr('editFormData', 'isHide', AttrList, false)
if (!isFlag) if (!isFlag)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!