|
@@ -389,7 +389,10 @@ export default {
|
|
|
postEdit.goodsIds = this.form.goodsIds.join(',')
|
|
|
this.loading = true;
|
|
|
// const { code } = this.form.insertType == '2' ? await addSave({ ...this.form }) : this.form.id ? await saveAndEdit({ ...postEdit }) : await addSave({ ...this.form });
|
|
|
- const { code } = this.form.insertType == '2' ? await addSave({ ...this.form }) : await saveAndEdit({ ...postEdit });
|
|
|
+ const { code } = this.form.insertType == '2' ? await addSave({
|
|
|
+ ...this.form,
|
|
|
+ goodsIds: this.form.goodsIds.join(',')
|
|
|
+ }) : await saveAndEdit({ ...postEdit });
|
|
|
if (code === 200) {
|
|
|
this.$message.success("操作成功!");
|
|
|
this.$emit("getList");
|