Commit ddf3028b by zhouzy

Merge branch 'master' of http://192.168.3.233:8090/glsx-web/glsx-dj-oss-equity into master

2 parents 79b6353c 45bcc799
...@@ -12,7 +12,6 @@ const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = [] ...@@ -12,7 +12,6 @@ const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []
params.v = '1.0.0' params.v = '1.0.0'
params.format = 'json' params.format = 'json'
params.locale = 'zh_CN' params.locale = 'zh_CN'
console.log('开始')
let data = sign(params, noSignAttr) let data = sign(params, noSignAttr)
return GlAxios.post('router', data) return GlAxios.post('router', data)
} }
......
...@@ -359,10 +359,10 @@ export default { ...@@ -359,10 +359,10 @@ export default {
} }
}, },
mounted () { mounted () {
let { id } = this.getParams() let { id, edit } = this.getParams()
if (id) { if (id) {
this.getEquityGoodsById(id) this.getEquityGoodsById(id)
this.isEdit = true this.isEdit = !edit
} else { } else {
this.getListWithPageOutGoods() this.getListWithPageOutGoods()
} }
...@@ -399,7 +399,6 @@ export default { ...@@ -399,7 +399,6 @@ export default {
productId, productId,
supplier: 'HW' supplier: 'HW'
}).then(({ code, message, data }) => { }).then(({ code, message, data }) => {
if (code == 0) { if (code == 0) {
console.log(data) console.log(data)
this.ruleForm.brandName = data.brandName this.ruleForm.brandName = data.brandName
...@@ -459,6 +458,10 @@ export default { ...@@ -459,6 +458,10 @@ export default {
this.createGoods('updateGoods') this.createGoods('updateGoods')
return return
} }
this.brandNameList.map(e => {
if (e.brandId == this.ruleForm.brandId) this.ruleForm.brandName = e.brandName
})
console.log(this.ruleForm)
let { supplier, brandId, productId } = this.ruleForm let { supplier, brandId, productId } = this.ruleForm
orderApi.sameGoodsCheck({ orderApi.sameGoodsCheck({
supplier, supplier,
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
> >
<el-button <el-button
type="text" type="text"
@click="jump(scope.scope)" @click="jump(scope.scope,true)"
>编辑</el-button> >编辑</el-button>
<el-button <el-button
type="text" type="text"
...@@ -237,8 +237,11 @@ export default { ...@@ -237,8 +237,11 @@ export default {
} }
}) })
}, },
jump ({ id }) { jump ({ id }, edit) {
window.location.href = id ? `./addGoods.html?id=${id}` : './addGoods.html' let url = './addGoods.html'
if (id) url = `${url}?id=${id}`
if (edit) url = `${url}&edit=true`
window.location.href = url
}, },
toggleAll () { toggleAll () {
let { goodsIndexMutiTable } = this.$refs.table.$refs let { goodsIndexMutiTable } = this.$refs.table.$refs
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!