Commit 5aec1858 by liwk

commit

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