Commit 5aec1858 by liwk

commit

1 parent c6dcb92e
...@@ -459,14 +459,9 @@ export default { ...@@ -459,14 +459,9 @@ export default {
console.log('error submit!!') console.log('error submit!!')
return false return false
} else { } else {
if (!this.isNewGoods) {
this.createGoods('updateGoods')
return
}
this.brandNameList.map(e => { this.brandNameList.map(e => {
if (e.brandId == this.ruleForm.brandId) this.ruleForm.brandName = e.brandName if (e.brandId == this.ruleForm.brandId) this.ruleForm.brandName = e.brandName
}) })
let { supplier, brandId, productId, appearance } = this.ruleForm let { supplier, brandId, productId, appearance } = this.ruleForm
orderApi.sameGoodsCheck({ orderApi.sameGoodsCheck({
supplier, supplier,
...@@ -517,6 +512,7 @@ export default { ...@@ -517,6 +512,7 @@ export default {
obj.buysNotes = encodeURIComponent(obj.buysNotes) obj.buysNotes = encodeURIComponent(obj.buysNotes)
if (obj.useNotes) obj.useNotes = encodeURIComponent(obj.useNotes) if (obj.useNotes) obj.useNotes = encodeURIComponent(obj.useNotes)
if (obj.appearance == 1) delete obj.denomination if (obj.appearance == 1) delete obj.denomination
if (!this.isNewGoods) name = 'updateGoods'
orderApi[name](obj).then(({ code, message }) => { orderApi[name](obj).then(({ code, message }) => {
if (code == 0) { if (code == 0) {
this.$message({ this.$message({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!