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 = []
params.v = '1.0.0'
params.format = 'json'
params.locale = 'zh_CN'
console.log('开始')
let data = sign(params, noSignAttr)
return GlAxios.post('router', data)
}
......
......@@ -359,10 +359,10 @@ export default {
}
},
mounted () {
let { id } = this.getParams()
let { id, edit } = this.getParams()
if (id) {
this.getEquityGoodsById(id)
this.isEdit = true
this.isEdit = !edit
} else {
this.getListWithPageOutGoods()
}
......@@ -399,7 +399,6 @@ export default {
productId,
supplier: 'HW'
}).then(({ code, message, data }) => {
if (code == 0) {
console.log(data)
this.ruleForm.brandName = data.brandName
......@@ -459,6 +458,10 @@ export default {
this.createGoods('updateGoods')
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
orderApi.sameGoodsCheck({
supplier,
......
......@@ -106,7 +106,7 @@
>
<el-button
type="text"
@click="jump(scope.scope)"
@click="jump(scope.scope,true)"
>编辑</el-button>
<el-button
type="text"
......@@ -237,8 +237,11 @@ export default {
}
})
},
jump ({ id }) {
window.location.href = id ? `./addGoods.html?id=${id}` : './addGoods.html'
jump ({ id }, edit) {
let url = './addGoods.html'
if (id) url = `${url}?id=${id}`
if (edit) url = `${url}&edit=true`
window.location.href = url
},
toggleAll () {
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!